!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2416)}([function(e,t,n){e.exports=n(1684)()},function(e,t,n){"use strict";e.exports=n(1460)},function(e,t,n){var r;
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){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(o.apply(null,r));else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){e.exports=n(1559)},function(e,t,n){e.exports=n(1556)},function(e,t,n){var r=n(18),o=n(524);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,o(arguments))}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(574),o=n.n(r);function i(e,t,n){return t in e?o()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(574),o=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),o()(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(745),o=n.n(r),i=n(585),a=n.n(i);function s(e){return(s=a.a?o.a:function(e){return e.__proto__||o()(e)})(e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(584),o=n(15);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";var r=n(1147),o=n.n(r),i=n(585),a=n.n(i);function s(e,t){return(s=a.a||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=o()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}n.d(t,"a",function(){return l})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return t[e]})},function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"h",function(){return g}),n.d(t,"e",function(){return y});var r=n(17),o=n.n(r),i=n(20),a=n.n(i),s=n(57),l=n.n(s),c=n(722),u=n.n(c),f=l()(2,function(e,t){return{type:e,payload:t}}),d=l()(2,function(e,t){return[t,e]}),p=l()(2,function(e,t){return{type:e,payload:t,error:!0}}),h=function(e){var t=e.dispatch;return function(e){return function(n){"function"!=typeof o()(n)?e(n):o()(n).call(n,t)}}},m=l()(2,function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,o=r.type,i=r.payload,a=r.error;return t[o]?t[o](n,i,a):n}}),v=function(e){return function(t,n,r){return r?t:e(t,n)}},g=function(e){var t;return o()(t=u()(e)).call(t,a()({type:"SIDE_EFFECT"}))},y=a()(g(function(){return location.href="/"}))},function(e,t,n){var r=n(666),o=n(21);e.exports=o(function(e,t){return r({},e,t)})},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(62),o=n(35);e.exports=r(function(e,t,n){return o(t,n[e])})},function(e,t,n){e.exports=n(1596)},function(e,t,n){var r=n(237),o=n(1549),i=n(73),a=n(457);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,i(o,arguments[0],a(arguments)))}},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){var r={};for(var o in n)r[o]=n[o];return r[e]=t,r})},function(e,t,n){var r=n(52);e.exports=r(function(e){return function(){return e}})},function(e,t,n){var r=n(52),o=n(517);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"h",function(){return j}),n.d(t,"k",function(){return A}),n.d(t,"l",function(){return N}),n.d(t,"i",function(){return M}),n.d(t,"j",function(){return I}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return D}),n.d(t,"d",function(){return R}),n.d(t,"e",function(){return F}),n.d(t,"f",function(){return B}),n.d(t,"g",function(){return U});var r=n(222),o=n.n(r),i=n(34),a=n.n(i),s=n(76),l=n.n(s),c=n(138),u=n.n(c),f=n(90),d=n.n(f),p=n(20),h=n.n(p),m=n(80),v=n.n(m),g=n(149),y=n.n(g),b=n(43),_=n.n(b),w=n(205),E=n(24),x=n(63),k=n(39),S=n(187),T=function(){return document.getElementById("focus-ring-style")||C()},C=function(){var e=document.createElement("style");return e.id="focus-ring-style",document.head.appendChild(e),e},O=0,j=-1,A=function(){var e=T();document.addEventListener("mousedown",function(){a()(function(){e.innerHTML=":focus{outline: none}"},0),Object(k.a)(Object(S.c)(!1))}),window.addEventListener("keydown",function(t){var n=t.target;(Object(E.k)(t)||Object(E.d)(t)&&!n.classList.contains("ignore-prefers"))&&(e.innerHTML="",Object(k.a)(Object(S.c)(!0)))})},N=function(e){return e?O:j},M=function(e,t){var n=t!==O;(e||{}).tabIndex=t,Object(x.g)({element:e,isHidden:n})},I=function(e){var t=e.element,n=e.selector,r=e.tabIndex,i=Object(w.b)(t.querySelectorAll(n));o()(i).call(i,function(e){M(e,r)})},L=function(e){var t=Object(w.b)(e.getElementsByTagName("*"));o()(t).call(t,function(e){M(e,j)})},P=function(e){return function(t){var n,r,o=t.querySelectorAll('[tabindex = "0"]');return!!o.length&&(n=h()(e),r=o,d()(n,l.a,u.a)(r).focus(),!0)}},D=P(!0),R=P(!1),F=function(e){var t=e.list,n=e.index;n>=0&&n<_()(t)&&t[n].focus()},B=function(e){var t=e.list,n=e.currentIndex,r=v()(n||0),o=r<_()(t)?r:0;return F({list:t,index:o}),o},U=function(e){var t=e.list,n=e.currentIndex,r=y()(n||_()(t));return F({list:t,index:r}),r}},function(e,t,n){var r=n(66),o=n(166).f,i=n(158),a=n(178),s=n(618),l=n(777),c=n(410);e.exports=function(e,t){var n,u,f,d,p,h=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!c(m?u:h+(v?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,u,d,e)}}},function(e,t,n){"use strict";n.d(t,"c",function(){return T}),n.d(t,"k",function(){return C}),n.d(t,"j",function(){return O}),n.d(t,"e",function(){return j}),n.d(t,"l",function(){return A}),n.d(t,"b",function(){return N}),n.d(t,"f",function(){return M}),n.d(t,"h",function(){return I}),n.d(t,"d",function(){return L}),n.d(t,"i",function(){return P}),n.d(t,"g",function(){return D}),n.d(t,"m",function(){return R}),n.d(t,"a",function(){return F}),n.d(t,"o",function(){return B}),n.d(t,"n",function(){return U}),n.d(t,"p",function(){return q});var r=n(1157),o=n.n(r),i=n(286),a=n.n(i),s=n(41),l=n.n(s),c=n(79),u=n.n(c),f=n(89),d=n.n(f),p=n(31),h=n.n(p),m=n(126),v=n.n(m),g={keys:["Enter"],keyCode:a.a.KEY_RETURN},y={keys:["Tab"],keyCode:a.a.KEY_TAB},b={keys:[" "],keyCode:a.a.KEY_SPACE},_={keys:["Escape","Esc"],keyCode:a.a.KEY_ESCAPE},w={keys:["ArrowUp"],keyCode:a.a.KEY_UP},E={keys:["ArrowDown"],keyCode:a.a.KEY_DOWN},x={keys:["ArrowLeft"],keyCode:a.a.KEY_LEFT},k={keys:["ArrowRight"],keyCode:a.a.KEY_RIGHT},S=function(e){var t=e.keyCode,n=o()(e);return function(e){return e.keyCode?e.keyCode===t:u()(e.key,n)}},T=S(g),C=S(y),O=S(b),j=S(_),A=S(w),N=S(E),M=S(x),I=S(k),L=v()(O,T),P=(v()(C,T),v()(I,A)),D=v()(M,N),R=v()(A,N),F=h()(L),B=d()(function(e,t){0!==e.scrollTop&&(t.preventDefault(),e.scrollTop-=25)}),U=d()(function(e,t,n){t&&(n.preventDefault(),e.scrollTop+=25)}),q=function(e,t){return function(n){var r=U(e,t),o=B(e);l()([[N,r],[A,o]])(n)}}},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n})},function(e,t,n){var r=n(21),o=n(295),i=n(530),a=n(431),s=n(438);e.exports=r(function(e,t){if(o(e)){if(o(t))return e.concat(t);throw new TypeError(s(t)+" is not an array")}if(a(e)){if(a(t))return e+t;throw new TypeError(s(t)+" is not a string")}if(null!=e&&i(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&i(e.concat))return e.concat(t);throw new TypeError(s(e)+' does not have a method named "concat" or "fantasy-land/concat"')})},function(e,t,n){var r=n(21),o=n(137),i=n(526),a=n(198),s=n(1553),l=n(57),c=n(95);e.exports=r(o(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},c(t));default:return i(e,t)}}))},function(e,t,n){var r=n(52),o=n(89);e.exports=r(function(e){return o(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})})},function(e,t,n){var r=n(62),o=n(169),i=n(25);e.exports=r(function(e,t,n){return o(e,i(t,n))})},function(e,t,n){var r=n(21);e.exports=r(function e(t,n){var r,o,i,a={};for(o in n)i=typeof(r=t[o]),a[o]="function"===i?r(n[o]):r&&"object"===i?e(r,n[o]):n[o];return a})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e(n)?t(n):n})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(160),o=n.n(r);function i(){return(i=o.a||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}).apply(this,arguments)}},function(e,t,n){e.exports=n(1688)},function(e,t,n){e.exports=n(1586)},function(e,t,n){var r=n(21),o=n(1550);e.exports=r(function(e,t){return o(e,t,[],[])})},function(e,t,n){var r=n(21),o=n(137),i=n(1686);e.exports=r(o(["find"],i,function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}}))},function(e,t,n){var r=n(21),o=n(137),i=n(667),a=n(663),s=n(198),l=n(1555),c=n(95);e.exports=r(o(["filter"],l,function(e,t){return a(t)?s(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},c(t)):i(e,t)}))},function(e,t,n){var r=n(52);e.exports=r(function(e){return null==e})},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return g}),n.d(t,"a",function(){return y});var r=n(250),o=n(5),i=n.n(o),a=n(575),s=n.n(a),l=n(576),c=n.n(l),u=n(577),f=n.n(u),d=n(578),p=n.n(d),h=n(13),m=n(1257),v=e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||i.a,g=Object(r.d)(Object(r.c)(m.a),v(Object(r.a)(p.a,f.a,c()("run"),s.a,h.d))),y=g.dispatch}).call(this,n(71))},function(e,t,n){"use strict";var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=n(377),c=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(o.a)(t,[{key:"pause",value:function(){this.isPlaying=!1}},{key:"mute",value:function(){this.isMuted=!1}},{key:"addChangeListener",value:function(e){this.on("change",e)}},{key:"removeChangeListener",value:function(e){this.removeListener("change",e)}},{key:"isPlaying",get:function(){return this._isPlaying},set:function(e){this._isPlaying=e,this.emit("change")}},{key:"playerId",set:function(e){this._playerId=e},get:function(){return this._playerId}},{key:"isMuted",get:function(){return this._isMuted},set:function(e){this._isMuted=e,this.emit("change")}}]),t}(l.EventEmitter);t.a=new c},function(e,t,n){var r=n(237),o=n(52),i=n(27),a=n(240),s=n(73);e.exports=o(function(e){var t=s(a,0,i(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})})},function(e,t,n){"use strict";n(1897);var r=n(1),o=n.n(r),i=n(22),a=function(e){var t=e.allowTabNavigation,n=e.className,a=e.tagName,s=e.value,l=Object(r.useRef)(null);return Object(r.useEffect)(function(){return Object(i.j)({element:l.current,selector:"div.fr-view a",tabIndex:Object(i.l)(t)})}),o.a.createElement("div",{"aria-hidden":!t,className:"".concat(n," brand--linkColor"),ref:l},Object(r.createElement)(a,{className:"fr-view",dangerouslySetInnerHTML:{__html:s}}))};a.defaultProps={allowTabNavigation:!0,tagName:"div"},t.a=a},function(e,t,n){var r=n(52),o=n(868);e.exports=r(function(e){return null!=e&&o(e.length)?e.length:NaN})},function(e,t,n){"use strict";n(2034),n(963),n(964);var r=n(965),o=(n(966),n(967),n(968),n(969),n(970),n(971)),i=(n(972),n(973),n(974),n(975),n(976)),a=(n(977),n(978)),s=n(979),l=n(980),c=(n(981),n(982),n(572)),u=(n(983),n(984),n(985),n(986),n(987)),f=(n(988),n(989),n(990)),d=(n(991),n(992),n(993)),p=(n(994),n(995),n(996),n(1)),h=n.n(p),m=n(2),v=n.n(m),g=(n(997),n(998),n(999)),y=(n(1e3),n(1001)),b=n(1002),_=(n(1003),n(1004)),w=n(1005),E=n(1006),x=n(1007),k=n(1008),S=n(1009),T=n(1010),C=(n(1011),n(1012),n(1013),n(1014),n(1015),n(1016),n(1017),n(1018),n(1019),n(1020),n(1021),n(1022),n(1023),n(1024),n(1025),n(1026)),O=(n(1027),n(1028)),j=(n(1029),n(1030)),A=n(1031),N=(n(1032),n(1033),n(1034),n(1035)),M=(n(1036),n(1037),n(1038),n(1039),n(4)),I=n.n(M),L=n(9),P=n(7),D=n(10),R=n(8),F=n(11),B=n(478),U=n.n(B),q=function(e){function t(){var e,n,r;Object(L.a)(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=Object(D.a)(this,(e=Object(R.a)(t)).call.apply(e,I()(n=[this]).call(n,i)))).maskId="person-unknown-mask-".concat(U()()),r.pathId="person-unknown-path-".concat(U()()),r}return Object(F.a)(t,e),Object(P.a)(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=void 0===t?"Person Unknown":t,r=e.desc,o=void 0===r?"Person Unknown":r,i=e.width,a=void 0===i?"38":i,s=e.height,l=void 0===s?"38":s,c=e.className,u=e.focusable,f=void 0===u?"false":u;return h.a.createElement("svg",{viewBox:"0 0 38 38",width:a,height:l,className:v()("i i-person-unknown",c),focusable:f},h.a.createElement("title",null,n),h.a.createElement("desc",null,o),h.a.createElement("defs",null,h.a.createElement("circle",{id:this.pathId,cx:"19",cy:"19",r:"19"})),h.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},h.a.createElement("mask",{id:this.maskId,fill:"#fff"},h.a.createElement("use",{href:"#".concat(this.pathId)})),h.a.createElement("use",{fill:"#D8D8D8",href:"#".concat(this.pathId)}),h.a.createElement("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:"url(#".concat(this.maskId,")")})))}}]),t}(p.Component),z=n(1040),H=(n(1041),n(1042),n(1043)),W=(n(1044),n(1045),n(1046),n(464),n(1047),n(1048)),$=(n(1049),n(1050),n(1051),n(1052),n(1053),n(1054),n(1055)),Y=(n(1056),n(1057),n(1058),n(1059),n(1060),n(1061),n(1062)),K=(n(1063),n(1064),n(1065));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return o.a}),n.d(t,"c",function(){return i.a}),n.d(t,"d",function(){return a.a}),n.d(t,"e",function(){return s.a}),n.d(t,"f",function(){return l.a}),n.d(t,"g",function(){return c.a}),n.d(t,"h",function(){return u.a}),n.d(t,"i",function(){return f.a}),n.d(t,"j",function(){return d.a}),n.d(t,"k",function(){return g.a}),n.d(t,"l",function(){return y.a}),n.d(t,"m",function(){return b.a}),n.d(t,"n",function(){return _.a}),n.d(t,"o",function(){return w.a}),n.d(t,"p",function(){return E.a}),n.d(t,"q",function(){return x.a}),n.d(t,"r",function(){return k.a}),n.d(t,"s",function(){return S.a}),n.d(t,"t",function(){return T.a}),n.d(t,"u",function(){return C.a}),n.d(t,"v",function(){return O.a}),n.d(t,"w",function(){return j.a}),n.d(t,"x",function(){return A.a}),n.d(t,"y",function(){return N.a}),n.d(t,"z",function(){return q}),n.d(t,"A",function(){return z.a}),n.d(t,"B",function(){return H.a}),n.d(t,"C",function(){return W.a}),n.d(t,"D",function(){return $.a}),n.d(t,"E",function(){return Y.a}),n.d(t,"F",function(){return K.a})},function(e,t,n){"use strict";var r=n(1161),o=n.n(r),i=n(84),a="".concat(Object(i.d)("RISE_RUNTIME_URI"),"/socket.io"),s=o()({uri:a});s.on("hard-reload",function(){return window.location.reload(!0)}),t.a=s},function(e,t,n){"use strict";var r,o,i,a,s,l,c,u,f,d,p,h,m,v,g,y,b,_,w,E,x,k,S,T,C,O,j,A,N,M,I,L,P,D,R,F,B,U,q,z,H,W,$,Y,K,V,G,X,Z,Q,J,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,fe,de,pe,he,me,ve,ge,ye,be,_e,we,Ee,xe,ke,Se,Te,Ce,Oe,je,Ae,Ne=n(17),Me=n.n(Ne),Ie=n(3),Le=n.n(Ie),Pe=n(125),De=n(6),Re=(n(242),n(20)),Fe=n.n(Re),Be=n(100),Ue=n.n(Be),qe=n(19),ze=n.n(qe),He=n(155),We=n.n(He),$e=n(5),Ye=n.n($e),Ke=n(26),Ve=n.n(Ke),Ge=n(89),Xe=n.n(Ge),Ze=n(57),Qe=n.n(Ze),Je=n(110),et=n.n(Je),tt=n(347),nt=n.n(tt),rt=n(30),ot=n.n(rt),it=n(37),at=n.n(it),st=n(36),lt=n.n(st),ct=n(97),ut=n.n(ct),ft=n(28),dt=n.n(ft),pt=n(171),ht=n.n(pt),mt=n(50),vt=n.n(mt),gt=n(90),yt=n.n(gt),bt=n(282),_t=n.n(bt),wt=n(67),Et=n.n(wt),xt=n(38),kt=n.n(xt),St=n(113),Tt=n.n(St),Ct=n(43),Ot=n.n(Ct),jt=n(27),At=n.n(jt),Nt=n(14),Mt=n.n(Nt),It=n(70),Lt=n.n(It),Pt=n(311),Dt=n.n(Pt),Rt=n(54),Ft=n.n(Rt),Bt=(n(127),n(25)),Ut=n.n(Bt),qt=n(49),zt=n.n(qt),Ht=n(18),Wt=n.n(Ht),$t=n(215),Yt=n.n($t),Kt=n(12),Vt=n.n(Kt),Gt=n(16),Xt=n.n(Gt),Zt=n(73),Qt=n.n(Zt),Jt=(n(105),n(69)),en=n.n(Jt),tn=n(31),nn=n.n(tn),rn=n(1164),on=n.n(rn),an=n(13),sn=(n(251),n(84)),ln=n(310),cn=n.n(ln),un=n(4),fn=n.n(un),dn=(n(240),n(160),n(33)),pn=n.n(dn),hn=n(59),mn=n.n(hn),vn=n(245),gn="".concat(Object(sn.d)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/blocks"),yn=("".concat(gn,"/text_paragraph@2x.png"),"".concat(gn,"/text_paragraph_heading@2x.png"),"".concat(gn,"/text_paragraph_subheading@2x.png"),"".concat(gn,"/text_heading@2x.png"),"".concat(gn,"/text_subheading@2x.png"),"".concat(gn,"/text_2column@2x.png"),"".concat(gn,"/table@2x.png"),"".concat(gn,"/statement_A@2x.png"),"".concat(gn,"/statement_B@2x.png"),"".concat(gn,"/statement_C@2x.png"),"".concat(gn,"/statement_D@2x.png"),"".concat(gn,"/statement_note@2x.png"),"".concat(gn,"/quote_A@2x.png"),"".concat(gn,"/quote_B@2x.png"),"".concat(gn,"/quote_C@2x.png"),"".concat(gn,"/quote_D@2x.png"),"".concat(gn,"/quote_on_image@2x.png"),"".concat(gn,"/quote_carousel@2x.png"),"".concat(gn,"/list_numbered@2x.png"),"".concat(gn,"/list_checkbox@2x.png"),"".concat(gn,"/list_bulleted@2x.png"),"".concat(gn,"/image_centered@2x.png"),"".concat(gn,"/image_full_width@2x.png"),"".concat(gn,"/image_image_and_text@2x.png"),"".concat(gn,"/image_text_on_image@2x.png"),"".concat(gn,"/gallery_carousel@2x.png"),"".concat(gn,"/gallery_two_column_grid@2x.png"),"".concat(gn,"/gallery_three_column_grid@2x.png"),"".concat(gn,"/gallery_four_column_grid@2x.png"),"".concat(gn,"/multimedia_audio@2x.png"),"".concat(gn,"/multimedia_video@2x.png"),"".concat(gn,"/multimedia_embed@2x.png"),"".concat(gn,"/multimedia_attachment@2x.png"),"".concat(gn,"/text_code_snippet@2x.png"),"".concat(gn,"/interactive_accordion@2x.png"),"".concat(gn,"/interactive_tabs@2x.png"),"".concat(gn,"/interactive_labeledgraphic@2x.png"),"".concat(gn,"/interactive_process@2x.png"),"".concat(gn,"/interactive_scenario@2x.png"),"".concat(gn,"/interactive_sorting_activity@2x.png"),"".concat(gn,"/interactive_timeline@2x.png"),"".concat(gn,"/interactive_card_grid@2x.png"),"".concat(gn,"/interactive_card@2x.png"),"".concat(gn,"/interactive_text_button@2x.png"),"".concat(gn,"/interactive_text_button_stack@2x.png"),"".concat(gn,"/interactive_storyline@2x.png"),"".concat(gn,"/chart_bar@2x.png"),"".concat(gn,"/chart_line@2x.png"),"".concat(gn,"/chart_pie@2x.png"),"".concat(gn,"/interactive_continue@2x.png"),"".concat(gn,"/divider@2x.png"),"".concat(gn,"/divider_numbered@2x.png"),"".concat(gn,"/spacer@2x.png"),"".concat(gn,"/multiple-choice-thumb@2x.png"),"".concat(gn,"/multiple-response-thumb@2x.png"),"".concat(gn,"/fill-in-the-blank-thumb@2x.png"),"".concat(gn,"/matching-thumb@2x.png"),cn.a),bn=["#ff6602","#eb524d","#730300","#9764ae","#730676","#3c003e","#4399ea","#1360aa","#003465","#21a689","#006a53","#00392d"],_n=n(384),wn=n.n(_n),En=bn.length,xn=function(e,t){return Mt()(e,{color:(n=t,bn[n%En]),id:yn()});var n},kn=function(e){var t,n;return"pie"===e?Me()(n=[{type:"Item 1",value:"70"},{type:"Item 2",value:"30"}]).call(n,xn):Me()(t=[{type:"Item 1",value:"42"},{type:"Item 2",value:"81"},{type:"Item 3",value:"17"},{type:"Item 4",value:"64"},{type:"Item 5",value:"82"}]).call(t,xn)},Sn=n(216),Tn=n.n(Sn),Cn=n(51),On=n.n(Cn)()("",Tn.a,{bar:"Bar Chart Title",line:"Line Chart Title",pie:"Pie Chart Title"}),jn=wn()({items:kn,itemsLabel:"",title:On,valuesLabel:""}),An=Object(sn.d)("CDN_USER_CONTENT_URI"),Nn=Object(sn.d)("IPC_URI"),Mn="assets/rise/assets/block-defaults",In=[{id:yn(),title:"Embracing Discovery",description:"<p>Every creative endeavor requires that you take risks. If you try and don't succeed,\n      you've still learned something. It took Thomas Edison more than 10,000 tries to invent a viable\n      lightbulb. You're not failing. You're discovering what doesn't work.</p>",media:{image:{originalUrl:"paraglide.jpg",thumbnail:fn()(r="".concat(An,"/")).call(r,Mn,"/paraglide_thumb.jpg"),src:fn()(o="".concat(An,"/")).call(o,Mn,"/paraglide.jpg"),key:"".concat(Mn,"/paraglide.jpg"),type:"image"}}},{id:yn(),title:"Gaining Insight",description:"<p>To spark creativity, feed your brain material like you're cramming for a tough test.\n      Then stop thinking about the problem you want to solve. Go surfing or take a leisurely walk.\n      Research shows that letting your mind wander fosters creativity.</p><br>\n      <p>It’s also found that meditation helps you spot and solve problems in creative ways. It promotes\n      divergent thinking that gets novel ideas flowing. According to these studies, meditation also makes\n      you more open to considering new solutions. Time to breathe.</p>"},{id:yn(),title:"Making It Real",description:"<p>No creative process is truly complete until it manifests a tangible reality. Whether your\n      idea is an action or a physical creation, bringing it to life will likely involve the hard work of\n      iteration, testing, and refinement.</p><br>\n      <p>Just be wary of perfectionism. Push yourself to share your creations with others. By maintaining an\n      open stance, you’ll be able to learn from their feedback. Consider their responses new material that you\n      can draw from the next time you’re embarking on a creative endeavor.</p>"}],Ln=[{id:yn()}],Pn=[{id:yn(),title:"Embracing Discovery",description:"<p>Every creative endeavor requires that you take risks. If you try and don't succeed,\n      you've still learned something. It took Thomas Edison more than 10,000 tries to invent a viable\n      lightbulb. You're not failing. You're discovering what doesn't work.</p>",media:{image:{originalUrl:"golden_gate.jpg",thumbnail:fn()(i="".concat(An,"/")).call(i,Mn,"/golden_gate_thumb.jpg"),src:fn()(a="".concat(An,"/")).call(a,Mn,"/golden_gate.jpg"),key:"".concat(Mn,"/golden_gate.jpg"),type:"image"}}},{id:yn(),title:"Gaining Insight",description:"<p>To spark creativity, feed your brain material like you're cramming for a tough test.\n      Then stop thinking about the problem you want to solve. Go surfing or take a leisurely walk.\n      Research shows that letting your mind wander fosters creativity.</p><br>\n      <p>It’s also found that meditation helps you spot and solve problems in creative ways. It promotes\n      divergent thinking that gets novel ideas flowing. According to these studies, meditation also makes\n      you more open to considering new solutions. Time to breathe.</p>"},{id:yn(),title:"Making It Real",description:"<p>No creative process is truly complete until it manifests a tangible reality. Whether your\n      idea is an action or a physical creation, bringing it to life will likely involve the hard work of\n      iteration, testing, and refinement.</p><br>\n      <p>Just be wary of perfectionism. Push yourself to share your creations with others. By maintaining an\n      open stance, you’ll be able to learn from their feedback. Consider their responses new material that you\n      can draw from the next time you’re embarking on a creative endeavor.</p>"}],Dn=[{id:yn(),title:"Embracing Discovery",description:"<p>Every creative endeavor requires that you take risks. If you try and don't succeed,\n      you've still learned something. It took Thomas Edison more than 10,000 tries to invent a viable\n      lightbulb. You're not failing. You're discovering what doesn't work.</p>",media:{image:{originalUrl:"paraglide.jpg",thumbnail:fn()(s="".concat(An,"/")).call(s,Mn,"/paraglide_thumb.jpg"),src:fn()(l="".concat(An,"/")).call(l,Mn,"/paraglide.jpg"),key:"".concat(Mn,"/paraglide.jpg"),type:"image"}}},{id:yn(),title:"Gaining Insight",description:"<p>To spark creativity, feed your brain material like you're cramming for a tough test.\n      Then stop thinking about the problem you want to solve. Go surfing or take a leisurely walk.\n      Research shows that letting your mind wander fosters creativity.</p><br>\n      <p>It’s also found that meditation helps you spot and solve problems in creative ways. It promotes\n      divergent thinking that gets novel ideas flowing. According to these studies, meditation also makes\n      you more open to considering new solutions. Time to breathe.</p>"},{id:yn(),title:"Making It Real",description:"<p>No creative process is truly complete until it manifests a tangible reality. Whether your\n      idea is an action or a physical creation, bringing it to life will likely involve the hard work of\n      iteration, testing, and refinement.</p><br>\n      <p>Just be wary of perfectionism. Push yourself to share your creations with others. By maintaining an\n      open stance, you’ll be able to learn from their feedback. Consider their responses new material that you\n      can draw from the next time you’re embarking on a creative endeavor.</p>"}],Rn=[{id:yn(),front:{type:"description",description:"Front of card 1",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(c="".concat(An,"/")).call(c,Mn,"/mountains_thumb.jpg"),src:fn()(u="".concat(An,"/")).call(u,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card 1",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(f="".concat(An,"/")).call(f,Mn,"/mountains_thumb.jpg"),src:fn()(d="".concat(An,"/")).call(d,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}}},{id:yn(),front:{type:"description",description:"Front of card 2",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(p="".concat(An,"/")).call(p,Mn,"/mountains_thumb.jpg"),src:fn()(h="".concat(An,"/")).call(h,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}},back:{type:"fullimage",description:"Back of card 2",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(m="".concat(An,"/")).call(m,Mn,"/mountains_thumb.jpg"),src:fn()(v="".concat(An,"/")).call(v,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}}},{id:yn(),front:{type:"description",description:"Front of card 3",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(g="".concat(An,"/")).call(g,Mn,"/mountains_thumb.jpg"),src:fn()(y="".concat(An,"/")).call(y,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card 3",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(b="".concat(An,"/")).call(b,Mn,"/mountains_thumb.jpg"),src:fn()(_="".concat(An,"/")).call(_,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}}}],Fn=[{id:yn(),type:"",label:"Go to location 1",destination:"",description:"<p><b>Location 1</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},{id:yn(),label:"Go to location 2",type:"",destination:"",description:"<p><b>Location 2</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},{id:yn(),type:"",label:"Go to location 3",destination:"",description:"<p><b>Location 3</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"}],Bn=[{id:yn(),media:{audio:{originalUrl:"sample_audio.mp3",src:fn()(w="".concat(An,"/")).call(w,Mn,"/sample_audio.mp3"),key:"".concat(Mn,"/sample_audio.mp3"),type:"audio"}},caption:""}],Un=[{id:yn(),media:{video:{originalUrl:"Coastline.mp4",thumbnail:fn()(E="".concat(An,"/")).call(E,Mn,"/coastline_thumb.png"),poster:fn()(x="".concat(An,"/")).call(x,Mn,"/coastline_poster.png"),src:fn()(k="".concat(An,"/")).call(k,Mn,"/coastline.mp4"),key:"".concat(Mn,"/coastline.mp4"),type:"video"}},caption:""}],qn=[{id:yn(),media:{embed:{originalUrl:"https://vimeo.com/183051371",title:"Collecting the World: Inside the Smithsonian",thumbnail:"https://i.vimeocdn.com/video/592147574.jpg?mw=1920&mh=1080&q=70",favicon:"https://f.vimeocdn.com/images_v6/favicon.ico",provider:"Vimeo",providerUrl:"https://vimeo.com/",description:"The Smithsonian National Museum of Natural History has over 144 million different objects in its collections. A sample of these collections are on display to the public, but 99 percent of the Smithsonian's treasures remain behind the scenes.",embedType:"video",src:"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F183051371&url=https%3A%2F%2Fvimeo.com%2F183051371&image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F592147574_1280.jpg&key=5cbac80a25df462a99e58eccd801acc0&type=text%2Fhtml&schema=vimeo",type:"embed"}}},{id:yn(),media:{embed:{originalUrl:"https://vimeo.com/183051371",title:"Collecting the World: Inside the Smithsonian",thumbnail:"https://i.vimeocdn.com/video/592147574.jpg?mw=1920&mh=1080&q=70",favicon:"https://f.vimeocdn.com/images_v6/favicon.ico",provider:"Vimeo",providerUrl:"https://vimeo.com/",description:"The Smithsonian National Museum of Natural History has over 144 million different objects in its collections. A sample of these collections are on display to the public, but 99 percent of the Smithsonian's treasures remain behind the scenes.",embedType:"video",src:"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F183051371&url=https%3A%2F%2Fvimeo.com%2F183051371&image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F592147574_1280.jpg&key=5cbac80a25df462a99e58eccd801acc0&type=text%2Fhtml&schema=vimeo",type:"embed"}}}],zn=[{id:yn(),media:{attachment:{originalUrl:"",size:0,src:"",type:"attachment"}}}],Hn=[{id:yn(),title:"Enter a question title here ...",type:"MULTIPLE_CHOICE",answers:[{id:yn(),title:"Correct choice",correct:!0},{id:yn(),title:"Incorrect choice",correct:!1}],feedback:""}],Wn=[{id:yn(),title:"CONTINUE",type:"",buttonColor:"brand",completeHint:"Complete the content above before moving on."}];function $n(){var e;return Me()(e=pn()(Wn).call(Wn,0,1)).call(e,mn.a)}function Yn(e,t){var n,r,o,i,a,s,l,c,u;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return function(e){return mn()(cr[e]||{})}(e);var f=t||3;switch(e){case"accordion":return Me()(n=pn()(In).call(In,0,f)).call(n,mn.a);case"storyline":return Me()(r=pn()(Ln).call(Ln,0,1)).call(r,mn.a);case"slider":return Me()(o=pn()(Pn).call(Pn,0,f)).call(o,mn.a);case"tabs":return Me()(i=pn()(Dn).call(Dn,0,f)).call(i,mn.a);case"flashcard":return Me()(a=pn()(Rn).call(Rn,0,f)).call(a,mn.a);case"stack":return Me()(s=pn()(Rn).call(Rn,0,f)).call(s,mn.a);case"button":return Me()(l=pn()(Fn).call(Fn,0,1)).call(l,mn.a);case"button stack":return Me()(c=pn()(Fn).call(Fn,0,f)).call(c,mn.a);case"knowledge":return Me()(u=pn()(Hn).call(Hn,0,f)).call(u,mn.a);default:return[]}}var Kn=[{id:yn(),title:"Enter a question title here...",type:"MULTIPLE_CHOICE",answers:[{id:yn(),title:"Choice 1",correct:!0},{id:yn(),title:"Choice 2",correct:!1}],feedback:""},{id:yn(),title:"Enter a question title here...",type:"MULTIPLE_RESPONSE",answers:[{id:yn(),title:"Choice 1",correct:!0},{id:yn(),title:"Choice 2",correct:!1},{id:yn(),title:"Choice 3",correct:!1},{id:yn(),title:"Choice 4",correct:!0}],feedback:""},{id:yn(),title:"Enter a question title here...",type:"FILL_IN_THE_BLANK",answers:[{id:yn(),title:"Answer 1",correct:!0}]},{id:yn(),title:"Enter a question title here...",type:"MATCHING",answers:[{id:yn(),title:"First Choice",matchTitle:"First Match",correct:!0},{id:yn(),title:"Second Choice",matchTitle:"Second Match",correct:!0},{id:yn(),title:"Third Choice",matchTitle:"Third Match",correct:!0}],feedback:""}];var Vn=[{id:yn(),title:"Item 1",isActive:!1,description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit. Nunc vitae neque mattis elit ullamcorper euismod vel eu quam. Vivamus et dolor sit amet justo tempus faucibus. Integer quis nulla laoreet, consectetur felis in, ullamcorper ligula.",x:51,y:34,icon:"01"},{id:yn(),title:"Item 2",isActive:!1,description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit. Nunc vitae neque mattis elit ullamcorper euismod vel eu quam. Vivamus et dolor sit amet justo tempus faucibus. Integer quis nulla laoreet, consectetur felis in, ullamcorper ligula.",x:83,y:31,icon:"01"}],Gn=[{description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit.</p>",id:yn(),isHidden:!1,title:"Introduction",type:"intro"},{description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit.</p>",id:yn(),isHidden:!1,title:"Summary",type:"summary"},{description:"<p>Lorem ipsum excepteur sint occaecat cupidatat non proident, in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>",id:yn(),isHidden:!1,media:{image:{originalUrl:"beach_rocks.jpg",thumbnail:fn()(S="".concat(An,"/")).call(S,Mn,"/beach_rocks_thumb.jpg"),src:fn()(T="".concat(An,"/")).call(T,Mn,"/beach_rocks.jpg"),key:"".concat(Mn,"/beach_rocks.jpg"),type:"image"}},title:"Step 1 Title",type:"step"},{description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>",id:yn(),isHidden:!1,media:{image:{originalUrl:"sky_mountains.jpg",thumbnail:fn()(C="".concat(An,"/")).call(C,Mn,"/sky_mountains_thumb.jpg"),src:fn()(O="".concat(An,"/")).call(O,Mn,"/sky_mountains.jpg"),key:"".concat(Mn,"/sky_mountains.jpg"),type:"image"}},title:"Step 2 Title",type:"step"}],Xn={scene:yn(),slide:yn()},Zn=[{background:{media:{image:{originalUrl:"hotel.jpg",thumbnail:fn()(j="".concat(An,"/")).call(j,Mn,"/backgrounds/hotel_thumb.jpg"),src:fn()(A="".concat(An,"/")).call(A,Mn,"/backgrounds/hotel.jpg"),key:"".concat(Mn,"/backgrounds/hotel.jpg"),type:"image"}}},character:{id:/articulate\.com/.test(window.location.hostname)?"photo-female-00021":"0CAviWa3pH4-a6LU"},id:Xn.scene,slides:[{description:"<p>Add text to explain the situation your scenario will address.</p>",emotion:"neutral",goTo:"next",hasCharacter:!0,id:Xn.slide,nextSlide:null,responses:[],title:"Scenario Title",type:"text"},{description:"<p>Add dialogue text here to ask your learners to make a choice, then choose your character's expression. You can create different feedback and follow-up actions for each learner response.</p>",emotion:"neutral",goTo:"next",hasCharacter:!0,id:yn(),nextSlide:null,responses:[{action:"continue",description:"<p>Learners who choose this response will continue on.</p>",emotion:"happy",feedback:"<p>Add feedback here to let learners know they got it right.</p>",goTo:"next",id:yn(),nextSlide:null},{action:"tryAgain",description:"<p>Learners who choose this incorrect response will be able to try again.</p>",emotion:"disappointed",feedback:"<p>Add helpful feedback here and let learners try again.</p>",goTo:"next",id:yn(),nextSlide:null}],title:null,type:"dialogue"},{description:"<p>Add another question to your scenario here. There are may ways to branch learners based on their responses.</p>",emotion:"happy",goTo:"next",hasCharacter:!0,id:yn(),nextSlide:null,responses:[{action:"continue",description:"<p>End this scenario.</p>",emotion:"happy",feedback:null,goTo:"next",id:yn(),nextSlide:null},{action:"continue",description:"<p>I want to do the scenario again.</p>",emotion:"thinking",feedback:null,goTo:"slide",id:yn(),nextSlide:Xn}],title:null,type:"dialogue"},{description:'<p>Add text here to let learners know your scenario is over.  View <a href="'.concat(Nn,'/rs/360/en/scenario-block" rel="noopener noreferrer" target="_blank">this tutorial</a> to learn how to create branching scenarios.</p>'),emotion:"happy",goTo:"end",hasCharacter:!0,id:yn(),nextSlide:null,responses:[],title:"Scenario End",type:"text"}],title:"Scene 1"}],Qn={items:[{id:yn(),title:"Item 1",pileId:1},{id:yn(),title:"Item 2",pileId:2}],piles:[{id:1,title:"Category 1"},{id:2,title:"Category 2"}]},Jn=[{id:yn(),date:"Date 1",title:"Event 1 Title",description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>"},{id:yn(),date:"Date 2",title:"Event 2 Title",description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>"}];var er=[{id:yn(),paragraph:"<p>My secret power is actually a practice. I tell myself every morning that I'm on a once-in-a-lifetime adventure. So when things go wacky, I actually feel thankful that I'm experiencing something new.</p>",name:"<p>Avani Sadana</p>",avatar:{media:{image:{key:"".concat(Mn,"/avatar.jpg"),src:fn()(N="".concat(An,"/")).call(N,Mn,"/avatar.jpg"),thumbnail:fn()(M="".concat(An,"/")).call(M,Mn,"/avatar_thumb.jpg"),originalUrl:"avatar.jpg",type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:fn()(I="".concat(An,"/")).call(I,Mn,"/quote_background.jpg"),thumbnail:fn()(L="".concat(An,"/")).call(L,Mn,"/quote_background_thumb.jpg"),key:"".concat(Mn,"/quote_background.jpg"),type:"image"}}}},{id:yn(),paragraph:"<p>My secret power is actually a practice. I tell myself every morning that I'm on a once-in-a-lifetime adventure. So when things go wacky, I actually feel thankful that I'm experiencing something new.</p>",name:"<p>Avani Sadana</p>",avatar:{media:{image:{src:fn()(P="".concat(An,"/")).call(P,Mn,"/avatar.jpg"),thumbnail:fn()(D="".concat(An,"/")).call(D,Mn,"/avatar_thumb.jpg"),originalUrl:"avatar.jpg",key:"".concat(Mn,"/avatar.jpg"),type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:fn()(R="".concat(An,"/")).call(R,Mn,"/quote_background.jpg"),thumbnail:fn()(F="".concat(An,"/")).call(F,Mn,"/quote_background_thumb.jpg"),key:"".concat(Mn,"/quote_background.jpg"),type:"image"}}}},{id:yn(),paragraph:"<p>My secret power is actually a practice. I tell myself every morning that I'm on a once-in-a-lifetime adventure. So when things go wacky, I actually feel thankful that I'm experiencing something new.</p>",name:"<p>Avani Sadana</p>",avatar:{media:{image:{src:fn()(B="".concat(An,"/")).call(B,Mn,"/avatar.jpg"),thumbnail:fn()(U="".concat(An,"/")).call(U,Mn,"/avatar_thumb.jpg"),originalUrl:"avatar.jpg",key:"".concat(Mn,"/avatar.jpg"),type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:fn()(q="".concat(An,"/")).call(q,Mn,"/quote_background.jpg"),thumbnail:fn()(z="".concat(An,"/")).call(z,Mn,"/quote_background_thumb.jpg"),key:"".concat(Mn,"/quote_background.jpg"),type:"image"}}}}];var tr=[{id:yn(),paragraph:"<p>When we show up to the present moment with all of our senses, we invite the world\n    to fill us with joy.  The pains of the past are behind us.  The future has yet to unfold. But\n    the now is full of beauty simply waiting for our attention.</p>"},{id:yn(),paragraph:'<p>By all means, write your to-do list. Make careful arrangements. Choose your\n    traveling companions. Pack up your talismans. And then scrap your well-thought out plan when\n    your intuition whispers, "This way."</p>'},{id:yn(),paragraph:"<p>We open ourselves to discovery by following our deepest questions. If we take\n    them seriously, they teach us everything we want to know. If we abandon them, we forfeit a\n    powerful chance to become someone new.</p>"},{id:yn(),heading:"<strong>Heading</strong>",paragraph:"<p>When we show up to the present moment with all of our senses, we invite the world\n    to fill us with joy. The pains of the past are behind us. The future has yet to unfold. But\n    the now is full of beauty simply waiting for our attention.</p>"},{id:yn(),heading:"<strong>Subheading</strong>",paragraph:"<p>When we show up to the present moment with all of our senses, we invite the world\n    to fill us with joy. The pains of the past are behind us. The future has yet to unfold. But\n    the now is full of beauty simply waiting for our attention.</p>"},{id:yn(),heading:"<strong>Heading</strong>"},{id:yn(),heading:"<strong>Subheading</strong>"}],nr=[{id:yn(),code:Object(vn.htmlEncode)("<!DOCTYPE html>\n<html lang=”en”>\n\t<head>\n\t\t<meta charset=”utf-8”>\n\t\t<title>title</title>\n\t\t<link rel=”stylesheet” href=”style.css”>\n\t\t<script src=”script.js”><\/script>\n\t</head>\n\t<body>\n\t\t\x3c!-- page content --\x3e\n\t</body>\n</html>"),caption:""}],rr=function(e){var t,n,r,o,i,a,s,l,c,u,f,d,p,h,m,v,g,y,b,_,w,E,x,k,S,T,C,O,j,A=e.color,N=["width: 20%",A?"background-color: ".concat(A):""].join(";"),M=["color: rgb(255, 255, 255)","font-size: 14px","font-weight: bold"].join(";"),I="text-align: center;",L="font-size: 14px;";return{id:yn(),paragraph:fn()(t=fn()(n=fn()(r=fn()(o=fn()(i=fn()(a=fn()(s=fn()(l=fn()(c=fn()(u=fn()(f=fn()(d=fn()(p=fn()(h=fn()(m=fn()(v=fn()(g=fn()(y=fn()(b=fn()(_=fn()(w=fn()(E=fn()(x=fn()(k=fn()(S=fn()(T=fn()(C=fn()(O=fn()(j='\n  <table style="width: 100%;">\n    <thead>\n    <tr>\n      <th style="'.concat(N,'">\n        <span style="')).call(j,M,'">Column 1</span>\n      </th>\n      <th style="')).call(O,N,'">\n        <span style="')).call(C,M,'">Column 2</span>\n      </th>\n      <th style="')).call(T,N,'">\n        <span style="')).call(S,M,'">Column 3</span>\n      </th>\n      <th style="')).call(k,N,'">\n        <span style="')).call(x,M,'">Column 4</span>\n      </th>\n      <th style="')).call(E,N,'">\n        <span style="')).call(w,M,'">Column 5</span>\n      </th>\n    </tr>\n    </thead\n    <tbody>\n      <tr>\n        <td style="')).call(_,I,'">\n          <span style="')).call(b,L,'">Cell 1</span>\n        </td>\n        <td style="')).call(y,I,'">\n          <span style="')).call(g,L,'">Cell 2</span>\n        </td>\n        <td style="')).call(v,I,'">\n          <span style="')).call(m,L,'">Cell 3</span>\n        </td>\n        <td style="')).call(h,I,'">\n          <span style="')).call(p,L,'">Cell 4</span>\n        </td>\n        <td style="')).call(d,I,'">\n          <span style="')).call(f,L,'">Cell 5</span>\n        </td>\n      </tr>\n      <tr>\n        <td style="')).call(u,I,'">\n          <span style="')).call(c,L,'">Cell 6</span>\n        </td>\n        <td style="')).call(l,I,'">\n          <span style="')).call(s,L,'">Cell 7</span>\n        </td>\n        <td style="')).call(a,I,'">\n          <span style="')).call(i,L,'">Cell 8</span>\n        </td>\n        <td style="')).call(o,I,'">\n          <span style="')).call(r,L,'">Cell 9</span>\n        </td>\n        <td style="')).call(n,I,'">\n          <span style="')).call(t,L,'">Cell 10</span>\n        </td>\n      </tr>\n    </tbody>\n  </table>\n    ')}};var or=[{id:yn(),paragraph:"<p><strong>You're the master of your life, the captain of your ship. Steer it with\n      intention. Will you skirt the coast from one safe harbor to the next? Or will you sail\n      into the vast open blue? Every day you get to decide anew what course to chart.</strong></p>"},{id:yn(),paragraph:"<p>Stop chasing <strong>your thoughts</strong> in circles. <strong>Open your eyes</strong>, breathe deeply,\n    and then <strong>pay attention</strong>. The air is sweet. <strong>The sun is warm</strong>. There's a path ahead.</p>"},{id:yn(),paragraph:"<p>You're the master of your life, the captain of your ship. Steer it with\n      intention. Will you skirt the coast from one safe harbor to the next? Or will you sail\n      into the vast open blue? Every day you get to decide anew what course to chart.</p>"}],ir=[{id:yn(),paragraph:"<p><strong>When you’re on a new path but aren't sure where it leads, keep putting\n    one foot in front of the other. It's the only way you'll arrive.</strong></p>"}];var ar=[{id:yn(),paragraph:"<p>Say yes more. Yes opens doors. No closes them. Yes pushes us. No keeps us safe at home. Imagine all the opportunities waiting for a yes.</p>"},{id:yn(),paragraph:"<p>Let go of expectation. You’ve done your best to prepare. Now, let go. There’s no one way your life should unfold. Enjoy the journey.</p>"},{id:yn(),paragraph:"<p>Welcome diversions. The most rewarding adventures often start with an unexpected detour. Perhaps that distraction will guide you onward.</p>"}];var sr=[{id:yn(),paragraph:"",caption:"",media:{image:{originalUrl:"bike.jpg",thumbnail:fn()(H="".concat(An,"/")).call(H,Mn,"/bike_thumb.jpg"),src:fn()(W="".concat(An,"/")).call(W,Mn,"/bike.jpg"),key:"".concat(Mn,"/bike.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"ocean.jpg",thumbnail:fn()($="".concat(An,"/")).call($,Mn,"/ocean_thumb.jpg"),src:fn()(Y="".concat(An,"/")).call(Y,Mn,"/ocean.jpg"),key:"".concat(Mn,"/ocean.jpg"),type:"image"}}},{id:yn(),caption:"",paragraph:"<p><strong>Finding a way</strong></p><p>Where the road leads, I will go. Along the stark desert, across the wide plains, into the deep forests I will follow the call of the world and embrace its ferocious beauty.</p>",media:{image:{originalUrl:"vw.jpg",thumbnail:fn()(K="".concat(An,"/")).call(K,Mn,"/vw_thumb.jpg"),src:fn()(V="".concat(An,"/")).call(V,Mn,"/vw.jpg"),key:"".concat(Mn,"/vw.jpg"),type:"image"}}},{id:yn(),paragraph:"",caption:"<p><b>Dip your toes in the water. Laugh with us by the sea. Let your friends carry you on their good humor to the place where you ultimately belong.</b></p>",media:{image:{originalUrl:"city.jpg",thumbnail:fn()(G="".concat(An,"/")).call(G,Mn,"/city_thumb.jpg"),src:fn()(X="".concat(An,"/")).call(X,Mn,"/city.jpg"),key:"".concat(Mn,"/city.jpg"),type:"image"}}}];var lr=[{id:yn(),paragraph:"",caption:"",media:{image:{originalUrl:"beach.jpg",thumbnail:fn()(Z="".concat(An,"/")).call(Z,Mn,"/beach_thumb.jpg"),src:fn()(Q="".concat(An,"/")).call(Q,Mn,"/beach.jpg"),key:"".concat(Mn,"/beach.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"concert.jpg",thumbnail:fn()(J="".concat(An,"/")).call(J,Mn,"/concert_thumb.jpg"),src:fn()(ee="".concat(An,"/")).call(ee,Mn,"/concert.jpg"),key:"".concat(Mn,"/concert.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"underwater.jpg",thumbnail:fn()(te="".concat(An,"/")).call(te,Mn,"/underwater_thumb.jpg"),src:fn()(ne="".concat(An,"/")).call(ne,Mn,"/underwater.jpg"),key:"".concat(Mn,"/underwater.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"field.jpg",thumbnail:fn()(re="".concat(An,"/")).call(re,Mn,"/field_thumb.jpg"),src:fn()(oe="".concat(An,"/")).call(oe,Mn,"/field.jpg"),key:"".concat(Mn,"/field.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"night.jpg",thumbnail:fn()(ie="".concat(An,"/")).call(ie,Mn,"/night_thumb.jpg"),src:fn()(ae="".concat(An,"/")).call(ae,Mn,"/night.jpg"),key:"".concat(Mn,"/night.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"beach_dusk.jpg",thumbnail:fn()(se="".concat(An,"/")).call(se,Mn,"/beach_dusk_thumb.jpg"),src:fn()(le="".concat(An,"/")).call(le,Mn,"/beach_dusk.jpg"),key:"".concat(Mn,"/beach_dusk.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"sparkler.jpg",thumbnail:fn()(ce="".concat(An,"/")).call(ce,Mn,"/sparkler_thumb.jpg"),src:fn()(ue="".concat(An,"/")).call(ue,Mn,"/sparkler.jpg"),key:"".concat(Mn,"/sparkler.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"amp.jpg",thumbnail:fn()(fe="".concat(An,"/")).call(fe,Mn,"/amp_thumb.jpg"),src:fn()(de="".concat(An,"/")).call(de,Mn,"/amp.jpg"),key:"".concat(Mn,"/amp.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"cafe.jpg",thumbnail:fn()(pe="".concat(An,"/")).call(pe,Mn,"/cafe_thumb.jpg"),src:fn()(he="".concat(An,"/")).call(he,Mn,"/cafe.jpg"),key:"".concat(Mn,"/cafe.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"record.jpg",thumbnail:fn()(me="".concat(An,"/")).call(me,Mn,"/record_thumb.jpg"),src:fn()(ve="".concat(An,"/")).call(ve,Mn,"/record.jpg"),key:"".concat(Mn,"/record.jpg"),type:"image"}}},{id:yn(),caption:"",media:{image:{originalUrl:"tracks.jpg",thumbnail:fn()(ge="".concat(An,"/")).call(ge,Mn,"/tracks_thumb.jpg"),src:fn()(ye="".concat(An,"/")).call(ye,Mn,"/tracks.jpg"),key:"".concat(Mn,"/tracks.jpg"),type:"image"}}}];var cr={accordion:{title:"",description:"",media:{}},button:{type:"",label:"Go to location",destination:"",description:"<p><b>Location</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},"button stack":{type:"",label:"Go to location",destination:"",description:"<p><b>Location</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},flashcard:{front:{type:"description",description:"Front of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(be="".concat(An,"/")).call(be,Mn,"/mountains_thumb.jpg"),src:fn()(_e="".concat(An,"/")).call(_e,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(we="".concat(An,"/")).call(we,Mn,"/mountains_thumb.jpg"),src:fn()(Ee="".concat(An,"/")).call(Ee,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}}},quote:{paragraph:"",name:"",avatar:{media:{image:{originalUrl:"avatar.jpg",src:fn()(xe="".concat(An,"/")).call(xe,Mn,"/avatar.jpg"),key:"".concat(Mn,"/avatar.jpg"),thumbnail:fn()(ke="".concat(An,"/")).call(ke,Mn,"/avatar_thumb.jpg"),type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:fn()(Se="".concat(An,"/")).call(Se,Mn,"/quote_background.jpg"),key:"".concat(Mn,"/quote_background.jpg"),thumbnail:fn()(Te="".concat(An,"/")).call(Te,Mn,"/quote_background_thumb.jpg"),type:"image"}}}},slider:{title:"",description:"",media:{}},stack:{front:{type:"description",description:"Front of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(Ce="".concat(An,"/")).call(Ce,Mn,"/mountains_thumb.jpg"),src:fn()(Oe="".concat(An,"/")).call(Oe,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:fn()(je="".concat(An,"/")).call(je,Mn,"/mountains_thumb.jpg"),src:fn()(Ae="".concat(An,"/")).call(Ae,Mn,"/mountains.jpg"),key:"".concat(Mn,"/mountains.jpg"),type:"image"}}}},tabs:{title:"",description:"",media:{}}};var ur,fr,dr,pr,hr,mr=function(e,t,n){var r=n[e];return lt()(function(e){return e.id===t},r.items)},vr=n(146),gr=n(122),yr=(n(590),Qe()(3,function(e,t,n){var r=(t=t.split("/")).shift();t.length&&(e=yr(e,t.join("/")));var o=r.split(":"),i=Object(Pe.a)(o,2),a=i[0],s=i[1];return ot()(Object(De.a)({},a,s?Object(gr.a)(e,s):e),n)})),br=yr,_r=n(252),wr=n(114),Er=(ur={},Object(De.a)(ur,wr.a.FILL_IN_THE_BLANK,function(){return{title:"Enter a question title here...",answers:[{id:yn(),title:"Answer 1"}]}}),Object(De.a)(ur,wr.a.MATCHING,function(){return{title:"Enter a question title here...",answers:[{id:yn(),title:"First choice",matchTitle:"First match"},{id:yn(),title:"Second choice",matchTitle:"Second match"},{id:yn(),title:"Third choice",matchTitle:"Third match"}]}}),Object(De.a)(ur,wr.a.MULTIPLE_CHOICE,function(){var e=yn();return{title:"Enter a question title here...",answers:[{id:e,title:"Choice 1",feedback:""},{id:yn(),title:"Choice 2",feedback:""}],correct:e,corrects:[e]}}),Object(De.a)(ur,wr.a.MULTIPLE_RESPONSE,function(){var e=yn(),t=yn();return{title:"Enter a question title here...",answers:[{id:e,title:"Choice 1",feedback:""},{id:yn(),title:"Choice 2",feedback:""},{id:yn(),title:"Choice 3",feedback:""},{id:t,title:"Choice 4",feedback:""}],correct:e,corrects:[e,t]}}),ur),xr=function(e){var t=e.id,n=e.type;return Mt()(Er[n](),{id:t,type:n,feedback:""})},kr=n(35),Sr=n.n(kr),Tr=n(41),Cr=n.n(Tr),Or=n(58),jr=n.n(Or),Ar=n(121),Nr=n.n(Ar),Mr=n(91),Ir=n.n(Mr),Lr=n(163),Pr=Lr.a.ANY,Dr=Lr.a.CHOICE,Rr=Lr.a.CORRECT_INCORRECT,Fr={label:"Any Response",prop:"feedback"},Br=(Cr()([[Sr()(Pr),Fe()(Fr)],[Sr()(Dr),Fe()({label:"By Choice",prop:"choice"})],[Sr()(Rr),Fe()({correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"})],[Ir.a,Fe()(Fr)]]),n(74),n(47),n(172),nn()(Xt()("feedbackType",Lr.a.CHOICE),Nr()(jr()("feedbackType"),Lr.a.ANY)),n(729),Object(sn.d)("CDN_USER_CONTENT_URI")),Ur=_r.a.ARTICLE,qr=_r.a.INTERACTION,zr=_r.a.QUIZ,Hr=_r.a.VIDEO;yn(),fn()(fr="".concat(Br,"/")).call(fr,"assets/rise/assets/block-defaults","/beach_rocks_thumb.jpg"),fn()(dr="".concat(Br,"/")).call(dr,"assets/rise/assets/block-defaults","/beach_rocks.jpg"),"".concat("assets/rise/assets/block-defaults","/beach_rocks.jpg"),yn(),fn()(pr="".concat(Br,"/")).call(pr,"assets/rise/assets/block-defaults","/sky_mountains_thumb.jpg"),fn()(hr="".concat(Br,"/")).call(hr,"assets/rise/assets/block-defaults","/sky_mountains.jpg"),"".concat("assets/rise/assets/block-defaults","/sky_mountains.jpg"),yn(),yn(),"".concat(Object(sn.d)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/map-balloon.jpg"),xr({id:yn(),type:wr.a.MULTIPLE_CHOICE}),xr({id:yn(),type:wr.a.MULTIPLE_RESPONSE});var Wr,$r=n(45),Yr=n(225);n.d(t,"a",function(){return Vr}),n.d(t,"b",function(){return Gr}),n.d(t,"c",function(){return Xr}),n.d(t,"l",function(){return mo}),n.d(t,"d",function(){return vo}),n.d(t,"e",function(){return go}),n.d(t,"f",function(){return yo}),n.d(t,"h",function(){return bo}),n.d(t,"i",function(){return wo}),n.d(t,"j",function(){return Eo}),n.d(t,"k",function(){return ko}),n.d(t,"m",function(){return So});var Kr=Ve()("rise/lessons/"),Vr=Kr("CREATE_LESSON"),Gr=Kr("CREATE_LESSON_CLIENT"),Xr=Kr("DELETE_LESSON"),Zr=Kr("DELETE_LESSON_CLIENT"),Qr=Kr("DUPLICATE_LESSON"),Jr=Kr("UPDATE_COURSE_LESSONS"),eo=Kr("UPDATE_LESSON"),to=Kr("UPDATE_LESSON_DEBOUNCE"),no=Kr("COPY_LESSON"),ro=Kr("COPY_LESSON_SUCCESS"),oo=Kr("INSERT_BLOCK_TEMPLATE"),io=Kr("INSERT_BLOCK_TEMPLATE_SUCCESS"),ao=function(e,t){var n=t.lessons;return Qt()(so,{},n)},so=function(e,t){return ze()(t.id,t,e)},lo=function(e,t){return ot()(Object(De.a)({},t.id,dt()(Mt.a)(t)),e)},co=Ye()(en.a,Yt()("id"),at()(Vt()("pending"))),uo=Ye()(dt()(ht.a)(0),Ot.a,co),fo=function(e,t){var n=t.lesson,r=co(e);return Ye()(et()(n.id),Ft()(r))(e)},po=(t.g=Object(an.f)({},(Wr={},Object(De.a)(Wr,ro,lo),Object(De.a)(Wr,no,Object(an.g)(function(e){return e})),Object(De.a)(Wr,Vr,Object(an.g)(function(e,t){var n=t.lesson,r=co(e);return Ye()(dt()(so)(n),Ft()(r))(e)})),Object(De.a)(Wr,Gr,function(e,t){var n=t.lesson;return so(e,n)}),Object(De.a)(Wr,Xr,Object(an.g)(fo)),Object(De.a)(Wr,Zr,lo),Object(De.a)(Wr,Qr,Object(an.g)(fo)),Object(De.a)(Wr,"rise/courses/GET_COURSE",Object(an.g)(ao)),Object(De.a)(Wr,"rise/courses/IMPORT_TRANSLATION",Object(an.g)(ao)),Object(De.a)(Wr,io,lo),Object(De.a)(Wr,Yr.b,function(e,t,n){if(n)return console.error(t),e;var r=t.id.match(/[^\/]+/g),o=Object(Pe.a)(r,2),i=o[0],a=o[1],s=t.updatedAt;return"lessons"===i?ot()(Object(De.a)({},a,dt()(Mt.a)({updatedAt:s})),e):e}),Object(De.a)(Wr,Yr.a,Object(an.g)(function(e,t){var n,r=t.id.match(/[^\/]+/g),o=Object(Pe.a)(r,3),i=o[0],a=o[1],s=o[2],l=t.updatedAt,c=t.value;return"lessons"===i?ot()(Object(De.a)({},a,dt()(Mt.a)((n={},Object(De.a)(n,s,c),Object(De.a)(n,"updatedAt",l),n))),e):e})),Object(De.a)(Wr,Jr,Object(an.g)(ao)),Object(De.a)(Wr,to,function(e,t,n){if(n)return console.error(t),e;var r=zt()(["lastUpdatedBy","updatedAt"],t);return ot()(Object(De.a)({},t.id,dt()(Mt.a)(r)),e)}),Object(De.a)(Wr,eo,Object(an.g)(lo)),Wr)),$r.a.send(no),Object(an.a)(Gr)),ho=($r.a.send(Vr),Object(an.a)(Zr),$r.a.send(Jr),$r.a.send(eo)),mo=(Object(an.a)(eo),Tt()([Object(an.a)(eo),$r.a.debounce(500,to)])),vo=function(e){var t=e.lessonId,n=e.blockId,r=e.index,o=e.item,i=e.itemFactory;return function(e,a){var s=a().lessons,l=s[t].items,c=mr(t,n,s),u=kt()(r)?Ue.a:_t()(r),f=Mt()(o,{isNewlyInserted:!0}),d=on()(i)?i(f):Mt()({id:yn()},f),p=Ye()(u(d),At()(Ft()(["isNewlyInserted"])),Vt()("items"))(c);e(So({itemId:n,lessonId:t,items:l,payload:{items:p}}))}},go=function(e){var t=e.lessonId,n=e.blockId,r=e.itemId,o=e.payload;return function(e,i){var a=i().lessons,s=a[t].items,l=mr(t,n,a),c=Mt()({id:yn(),isNewlyInserted:!0},o),u=ut()(function(e){return e.id===r},l.items)+1,f=Wt()(Vt()("items"),_t()(u,c))(l);e(So({itemId:n,lessonId:t,items:s,payload:{items:f}}))}},yo=function(e){var t=e.index,n=e.lessonId,r=e.payload;return function(e,o){return Wt()(Ut()(["lessons",n,"items"]),_t()(t,r),xo(n),e)(o())}},bo=function(e){var t=e.blockId,n=e.itemId,r=e.lessonId,o=e.showNotification;return function(e,i){var a=i().lessons[r].items,s=function(e){return Wt()(lt()(Xt()("id",t)),e,Vt()("items"))(a)},l={items:Object(gr.b)(n)},c=s(ot()(l)),u=s(vt.a),f=So({itemId:t,lessonId:r,items:a,payload:{items:c}}),d=Object(vr.b)({message:"Item removed",action:function(){return e(So({itemId:t,lessonId:r,items:a,payload:{items:u}}))},actionText:"undo"});Wt()(Dt.a,nn()(Fe()(o),Ue()([d])),e)(f)}},_o=Xe()(function(e,t,n){var r=n.payload;e(Object(an.a)(Vr,r)),t&&t()}),wo=(Xe()(function(e,t,n){var r=n.payload,o=t(),i=r.lesson,a=o.lessons[i.id],s="section"===a.type?"Section":"Lesson",l=Wt()(Ft()(["id","deleted","pending","createdAt","updatedAt"]),ze()("position",a.position),nn()(Ye()(Et.a,Vt()("author")),ze()("author",o.user)));a.type&&e(Object(vr.b)({message:"".concat(s," removed"),action:function(){return e((t=l(a),function(e,n){var r,o=n(),i=o.lessons;if(!uo(i)){var a=t.onSuccess,s=t.position,l=Mt()(t,{pending:!0,id:cn()()}),c=ot()({lessons:_t()(s,l.id)},o.course);e(po({course:c,lesson:l}));var u=Ft()(["transferredAt"],t);$r.a.send(Vr,u).fork(Le()(r=console.error).call(r,console),_o(e,a))}}));var t},actionText:"undo"})),e(Object(an.a)(Xr,r))}),yt()(Vt()("refs"),function(e){return function(t,n){var r=e.asset,o=e.existingMediaType,i=e.hasRemovableMedia,a=e.itemId,s=e.lessonId,l=e.type,c=n().lessons[s],u=e.refs||"items:".concat(a),f=Wt()(We()(["media",l],r),nt()(["media","tmp",l]),nn()(Fe()(i),nt()(["media",o]))),d=Wt()(zt()(["id","items"]),br(f,u));t(ho(d(c)))}},function(e){return function(t,n){var r=e.asset,o=e.lessonId,i=e.type,a=n().lessons[o],s=Wt()(zt()(["id","media"]),We()(["media",i],r),nt()(["media","tmp",i]));t(ho(s(a)))}})),Eo=function(e){var t=e.lessonId,n=e.blockId,r=e.from,o=e.to;return function(e,i){var a=i().lessons[t].items,s=Wt()(lt()(Xt()("id",n)),Vt()("items"),Object(gr.d)(r,o))(a);e(So({itemId:n,lessonId:t,items:a,payload:{items:s}}))}},xo=Qe()(2,function(e,t){return Ye()(mo,ze()("id",e),Lt()("items"))(t)}),ko=(Qe()(2,function(e,t){return Ye()(mo,ze()("id",e),Lt()("piles"))(t)}),function(e){var t=e.lessonId,n=e.blockId,r=e.itemId,o=e.payload;return function(e,i){var a=Ut()(["lessons",t,"items"],i()),s={items:Object(gr.e)(r,o)},l=Wt()(lt()(Xt()("id",n)),ot()(s),Vt()("items"))(a);e(So({itemId:n,lessonId:t,items:a,payload:{items:l}}))}}),So=function(e){var t=e.itemId,n=e.lessonId,r=e.payload;return function(e,o){return Wt()(Ut()(["lessons",n,"items"]),Object(gr.e)(t,r),xo(n),e)(o())}};$r.a.send(oo)},function(e,t,n){var r,o=n(62);e.exports=(r=function(e){return{value:e,map:function(t){return r(t(e))}}},o(function(e,t,n){return e(function(e){return r(t(e))})(n).value}))},function(e,t,n){"use strict";t.__esModule=!0;var r=d(n(141)),o=f(n(124)),i=f(n(108)),a=f(n(375)),s=f(n(264)),l=d(n(184)),c=d(n(376)),u=d(n(265));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=(0,u.default)({},this.options_),n=this.options_=(0,u.default)(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var o=t&&t.id&&t.id()||"no_player";this.id_=o+"_component_"+a.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(r),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),o.removeElData(this.el_),this.el_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return l.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=(0,u.default)(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return o.createEl(e,t,n)},e.prototype.localize=function(e){var t=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!t||!n)return e;var r=n[t];if(r&&r[e])return r[e];var o=n[t.split("-")[0]];return o&&o[e]?o[e]:e},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){return this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,o=void 0,i=void 0;if("string"==typeof t){i=t,n||(n={}),!0===n&&(l.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),n={});var a=n.componentClass||(0,c.default)(i);n.name=i;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;o=new s(this.player_||this,n)}else o=t;if(this.children_.splice(r,0,o),"function"==typeof o.id&&(this.childIndex_[o.id()]=o),(i=i||o.name&&o.name())&&(this.childNameIndex_[i]=o),"function"==typeof o.el&&o.el()){var u=this.contentEl().children[r]||null;this.contentEl().insertBefore(o.el(),u)}return o},e.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t,n,r,o=this,i=this.options_.children;i&&(t=o.options_,n=void 0,r=e.getComponent("Tech"),(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(o.options_).filter(function(e){return!n.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var t=void 0,n=void 0;return"string"==typeof e?n=i[t=e]||o.options_[t]||{}:(t=e.name,n=e),{name:t,opts:n}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||(0,c.default)(t.name));return n&&!r.isTech(n)}).forEach(function(e){var n=e.name,r=e.opts;if(void 0!==t[n]&&(r=t[n]),!1!==r){!0===r&&(r={}),r.playerOptions=o.options_.playerOptions;var i=o.addChild(n,r);i&&(o[n]=i)}}))},e.prototype.buildCSSClass=function(){return""},e.prototype.on=function(e,t,n){var r=this;return"string"==typeof e||Array.isArray(e)?s.on(this.el_,e,i.bind(this,t)):function(){var o=e,a=t,l=i.bind(r,n),c=function(){return r.off(o,a,l)};c.guid=l.guid,r.on("dispose",c);var u=function(){return r.off("dispose",c)};u.guid=l.guid,e.nodeName?(s.on(o,a,l),s.on(o,"dispose",u)):"function"==typeof e.on&&(o.on(a,l),o.on("dispose",u))}(),this},e.prototype.off=function(e,t,n){if(!e||"string"==typeof e||Array.isArray(e))s.off(this.el_,e,t);else{var r=e,o=t,a=i.bind(this,n);this.off("dispose",a),e.nodeName?(s.off(r,o,a),s.off(r,"dispose",a)):(r.off(o,a),r.off("dispose",a))}return this},e.prototype.one=function(e,t,n){var r,o,a,l,c=this,u=arguments;return"string"==typeof e||Array.isArray(e)?s.one(this.el_,e,i.bind(this,t)):(r=e,o=t,a=i.bind(c,n),(l=function e(){c.off(r,o,e),a.apply(null,u)}).guid=a.guid,c.on(r,o,l)),this},e.prototype.trigger=function(e,t){return s.trigger(this.el_,e,t),this},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(this.isReady_?t?e.call(this):this.setTimeout(e,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e))),this},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(e,t){return o.$(e,t||this.contentEl())},e.prototype.$$=function(e,t){return o.$$(e,t||this.contentEl())},e.prototype.hasClass=function(e){return o.hasElClass(this.el_,e)},e.prototype.addClass=function(e){return o.addElClass(this.el_,e),this},e.prototype.removeClass=function(e){return o.removeElClass(this.el_,e),this},e.prototype.toggleClass=function(e,t){return o.toggleElClass(this.el_,e,t),this},e.prototype.show=function(){return this.removeClass("vjs-hidden"),this},e.prototype.hide=function(){return this.addClass("vjs-hidden"),this},e.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},e.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){return this.width(e,!0).height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[e],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+(0,c.default)(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof r.default.getComputedStyle){var n=r.default.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}else if(this.el_.currentStyle){var o="offset"+(0,c.default)(e);t=this.el_[o]}return t=parseFloat(t)},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.emitTapEvents=function(){var e=0,t=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=(new Date).getTime(),n=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)n=!1;else if(t){var r=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY;Math.sqrt(r*r+o*o)>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(t=null,!0===n)&&((new Date).getTime()-e<200&&(r.preventDefault(),this.trigger("tap")))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=i.bind(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){e=i.bind(this,e);var n=r.default.setTimeout(e,t),o=function(){this.clearTimeout(n)};return o.guid="vjs-timeout-"+n,this.on("dispose",o),n},e.prototype.clearTimeout=function(e){r.default.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){e=i.bind(this,e);var n=r.default.setInterval(e,t),o=function(){this.clearInterval(n)};return o.guid="vjs-interval-"+n,this.on("dispose",o),n},e.prototype.clearInterval=function(e){r.default.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.registerComponent=function(t,n){return e.components_||(e.components_={}),e.components_[t]=n,n},e.getComponent=function(t){return e.components_&&e.components_[t]?e.components_[t]:r.default&&r.default.videojs&&r.default.videojs[t]?(l.default.warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r.default.videojs[t]):void 0},e.extend=function(t){t=t||{},l.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var n=t.init||t.init||this.prototype.init||this.prototype.init||function(){},r=function(){n.apply(this,arguments)};for(var o in(r.prototype=Object.create(this.prototype)).constructor=r,r.extend=e.extend,t)t.hasOwnProperty(o)&&(r.prototype[o]=t[o]);return r},e}();p.registerComponent("Component",p),t.default=p},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})},function(e,t,n){var r=n(52),o=n(650);e.exports=r(o)},function(e,t,n){var r=n(62),o=n(168);e.exports=r(function(e,t,n){return null!=n&&o(t,n)?n[t]:e})},function(e,t,n){var r=n(517);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r;
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";var i=[],a=n.document,s=Object.getPrototypeOf,l=i.slice,c=i.concat,u=i.push,f=i.indexOf,d={},p=d.toString,h=d.hasOwnProperty,m=h.toString,v=m.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},_={type:!0,src:!0,noModule:!0};function w(e,t,n){var r,o=(t=t||a).createElement("script");if(o.text=e,n)for(r in _)n[r]&&(o[r]=n[r]);t.head.appendChild(o).parentNode.removeChild(o)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)},k=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.3.1",constructor:x,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(x.isPlainObject(r)||(o=Array.isArray(r)))?(o?(o=!1,i=n&&Array.isArray(n)?n:[]):i=n&&x.isPlainObject(n)?n:{},a[t]=x.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===v)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){w(e)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(k,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?x.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:f.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c.apply([],a)},guid:1,support:g}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var T=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){var t,n,r,o,i,a,s,l,c,u,f,d,p,h,m,v,g,y,b,_="sizzle"+1*new Date,w=e.document,E=0,x=0,k=ae(),S=ae(),T=ae(),C=function(e,t){return e===t&&(f=!0),0},O={}.hasOwnProperty,j=[],A=j.pop,N=j.push,M=j.push,I=j.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+D+"*("+R+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+D+"*\\]",B=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",U=new RegExp(D+"+","g"),q=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),z=new RegExp("^"+D+"*,"+D+"*"),H=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),W=new RegExp("="+D+"*([^\\]'\"]*?)"+D+"*\\]","g"),$=new RegExp(B),Y=new RegExp("^"+R+"$"),K={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+D+"?|("+D+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){d()},oe=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{M.apply(j=I.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(e){M={apply:j.length?function(e,t){N.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,o){var i,s,c,u,f,h,g,y=t&&t.ownerDocument,E=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return r;if(!o&&((t?t.ownerDocument||t:w)!==p&&d(t),t=t||p,m)){if(11!==E&&(f=Z.exec(e)))if(i=f[1]){if(9===E){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(y&&(c=y.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(f[2])return M.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!T[e+" "]&&(!v||!v.test(e))){if(1!==E)y=t,g=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=_),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+ge(h[s]);g=h.join(","),y=Q.test(e)&&me(t.parentNode)||t}if(g)try{return M.apply(r,y.querySelectorAll(g)),r}catch(e){}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,r,o)}function ae(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function se(e){return e[_]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=ie.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!i(p),w!==p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(p.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=X.test(p.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+D+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+_+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+D+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=X.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",B)}),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(h.compareDocumentPosition),b=t||X.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===w&&b(w,e)?-1:t===p||t.ownerDocument===w&&b(w,t)?1:u?L(u,e)-L(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===p?-1:t===p?1:o?-1:i?1:u?L(u,e)-L(u,t):0;if(o===i)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&d(e),t=t.replace(W,"='$1']"),n.matchesSelector&&m&&!T[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&d(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&d(e);var o=r.attrHandle[t.toLowerCase()],i=o&&O.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(C),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=ie.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:se,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ie.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,f,d,p,h,m=i!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(i){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&y){for(b=(p=(c=(u=(f=(d=v)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&c[1])&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[E,p,b];break}}else if(y&&(b=p=(c=(u=(f=(d=t)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&c[1]),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++b||(y&&((u=(f=d[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return o[_]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=L(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[_]?se(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return ie(e,t).length>0}}),contains:se(function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:se(function(e){return Y.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=de(t);function ve(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=x++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,l){var c,u,f,d=[E,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(f=t[_]||(t[_]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===E&&c[1]===s)return d[2]=c[2];if(u[i]=d,d[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function we(e,t,n,r,o,i){return r&&!r[_]&&(r=we(r)),o&&!o[_]&&(o=we(o,i)),se(function(i,a,s,l){var c,u,f,d=[],p=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?m:_e(m,d,e,s,l),g=n?o||(i?e:h||r)?[]:a:v;if(n&&n(v,g,s,l),r)for(c=_e(g,p),r(c,[],s,l),u=c.length;u--;)(f=c[u])&&(g[p[u]]=!(v[p[u]]=f));if(i){if(o||e){if(o){for(c=[],u=g.length;u--;)(f=g[u])&&c.push(v[u]=f);o(null,g=[],c,l)}for(u=g.length;u--;)(f=g[u])&&(c=o?L(i,f):d[u])>-1&&(i[c]=!(a[c]=f))}}else g=_e(g===a?g.splice(h,g.length):g),o?o(null,a,g,l):M.apply(a,g)})}function Ee(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=ye(function(e){return e===t},s,!0),f=ye(function(e){return L(t,e)>-1},s,!0),d=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):f(e,n,r));return t=null,o}];l<i;l++)if(n=r.relative[e[l].type])d=[ye(be(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(o=++l;o<i&&!r.relative[e[o].type];o++);return we(l>1&&be(d),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<o&&Ee(e.slice(l,o)),o<i&&Ee(e=e.slice(o)),o<i&&ge(e))}d.push(n)}return be(d)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,a=ie.tokenize=function(e,t){var n,o,i,a,s,l,c,u=S[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(o=z.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=H.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(o=K[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):S(e,l).slice(0)},s=ie.compile=function(e,t){var n,o=[],i=[],s=T[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[_]?o.push(s):i.push(s);(s=T(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var f,h,v,g=0,y="0",b=i&&[],_=[],w=c,x=i||o&&r.find.TAG("*",u),k=E+=null==w?1:Math.random()||.1,S=x.length;for(u&&(c=a===p||a||u);y!==S&&null!=(f=x[y]);y++){if(o&&f){for(h=0,a||f.ownerDocument===p||(d(f),s=!m);v=e[h++];)if(v(f,a||p,s)){l.push(f);break}u&&(E=k)}n&&((f=!v&&f)&&g--,i&&b.push(f))}if(g+=y,n&&y!==g){for(h=0;v=t[h++];)v(b,_,a,s);if(i){if(g>0)for(;y--;)b[y]||_[y]||(_[y]=A.call(l));_=_e(_)}M.apply(l,_),u&&!i&&_.length>0&&g+t.length>1&&ie.uniqueSort(l)}return u&&(E=k,c=w),b};return n?se(i):i}(i,o))).selector=e}return s},l=ie.select=function(e,t,n,o){var i,l,c,u,f,d="function"==typeof e&&e,p=!o&&a(e=d.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(J,ee),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=K.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((f=r.find[u])&&(o=f(c.matches[0].replace(J,ee),Q.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(i,1),!(e=o.length&&ge(l)))return M.apply(n,o),n;break}}return(d||s(e,p))(o,t,!m,n,!t||Q.test(e)&&me(t.parentNode)||t),n},n.sortStable=_.split("").sort(C).join("")===_,n.detectDuplicates=!!f,d(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(n);x.find=T,x.expr=T.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=T.uniqueSort,x.text=T.getText,x.isXMLDoc=T.isXML,x.contains=T.contains,x.escapeSelector=T.escape;var C=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(n))break;r.push(e)}return r},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=x.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){return y(t)?x.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return f.call(t,e)>-1!==n}):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,o[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&j.test(e)?x(e):e||[],!1).length}});var I,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||I,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),N.test(r[1])&&x.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=a.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,I=x(a);var P=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&x(e);if(!j.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?f.call(x(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return A(e,"iframe")?e.contentDocument:(A(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(n,r){var o=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=x.filter(r,o)),this.length>1&&(D[e]||x.uniqueSort(o),P.test(e)&&o.reverse()),this.pushStack(o)}});var F=/[^\x20\t\r\n\f]+/g;function B(e){return e}function U(e){throw e}function q(e,t,n,r){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(F)||[],function(e,n){t[n]=!0}),t}(e):x.extend({},e);var t,n,r,o,i=[],a=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){x.each(n,function(n,r){y(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==E(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;(n=x.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?x.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,r){var o=y(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?o?c.call(n,a(i,t,B,o),a(i,t,U,o)):(i++,c.call(n,a(i,t,B,o),a(i,t,U,o),a(i,t,B,t.notifyWith))):(r!==B&&(s=void 0,l=[n]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,u.stackTrace),e+1>=i&&(r!==U&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),n.setTimeout(u))}}return x.Deferred(function(n){t[0][3].add(a(0,n,y(o)?o:B,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:B)),t[2][3].add(a(0,n,y(r)?r:U))}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},i={};return x.each(t,function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=l.call(arguments),i=x.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(q(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(o[n]&&o[n].then)))return i.then();for(;n--;)q(o[n],a(n),i.reject);return i.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&z.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){n.setTimeout(function(){throw e})};var H=x.Deferred();function W(){a.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),x.ready()}x.fn.ready=function(e){return H.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||H.resolveWith(a,[x]))}}),x.ready.then=H.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(x.ready):(a.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var $=function(e,t,n,r,o,i,a){var s=0,l=e.length,c=null==n;if("object"===E(n))for(s in o=!0,n)$(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,y(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):i},Y=/^-ms-/,K=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function G(e){return e.replace(Y,"ms-").replace(K,V)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=x.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[G(t)]=n;else for(r in t)o[G(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in r?[t]:t.match(F)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var Q=new Z,J=new Z,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=J.get(i),1===i.nodeType&&!Q.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=G(r.slice(5)),ne(i,r,o[r]));Q.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){J.set(this,e)}):$(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=J.get(i,e))?n:void 0!==(n=ne(i,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,o=n.shift(),i=x._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){x.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:x.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=x.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Q.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&x.contains(e.ownerDocument,e)&&"none"===x.css(e,"display")},se=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o};function le(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=s(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=(x.cssNumber[t]||"px"!==c&&+l)&&oe.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)x.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),u/=i;u*=2,x.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var ce={};function ue(e){var t,n=e.ownerDocument,r=e.nodeName,o=ce[r];return o||(t=n.body.appendChild(n.createElement(r)),o=x.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ce[r]=o,o)}function fe(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=Q.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ae(r)&&(o[i]=ue(r))):"none"!==n&&(o[i]="none",Q.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}x.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?x(this).show():x(this).hide()})}});var de=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?x.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var ye,be,_e=/<|&#?\w+;/;function we(e,t,n,r,o){for(var i,a,s,l,c,u,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===E(i))x.merge(d,i.nodeType?[i]:i);else if(_e.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(pe.exec(i)||["",""])[1].toLowerCase(),l=me[s]||me._default,a.innerHTML=l[1]+x.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;x.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(i));for(f.textContent="",p=0;i=d[p++];)if(r&&x.inArray(i,r)>-1)o&&o.push(i);else if(c=x.contains(i.ownerDocument,i),a=ve(f.appendChild(i),"script"),c&&ge(a),n)for(u=0;i=a[u++];)he.test(i.type||"")&&n.push(i);return f}ye=a.createDocumentFragment().appendChild(a.createElement("div")),(be=a.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ye.appendChild(be),g.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var Ee=a.documentElement,xe=/^key/,ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ce(){return!1}function Oe(){try{return a.activeElement}catch(e){}}function je(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)je(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ce;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each(function(){x.event.add(this,t,o,r,n)})}x.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,f,d,p,h,m,v=Q.get(e);if(v)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&x.find.matchesSelector(Ee,o),n.guid||(n.guid=x.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)p=m=(s=Se.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=x.event.special[p]||{},p=(o?f.delegateType:f.bindType)||p,f=x.event.special[p]||{},u=x.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:h.join(".")},i),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),x.event.global[p]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,f,d,p,h,m,v=Q.hasData(e)&&Q.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(F)||[""]).length;c--;)if(p=m=(s=Se.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=x.event.special[p]||{},d=l[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)u=d[i],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(i,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(e,u));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||x.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],n,r,!0);x.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=x.event.fix(e),l=new Array(arguments.length),c=(Q.get(this,"events")||{})[s.type]||[],u=x.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=x.event.handlers.call(this,s,c),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?x(o,this).index(c)>-1:x.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Oe()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Oe()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&A(this,"input"))return this.click(),!1},_default:function(e){return A(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ke.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.fn.extend({on:function(e,t,n,r){return je(this,e,t,n,r)},one:function(e,t,n,r){return je(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each(function(){x.event.remove(this,e,n,t)})}});var Ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ne=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,o,i,a,s,l,c;if(1===t.nodeType){if(Q.hasData(e)&&(i=Q.access(e),a=Q.set(t,i),c=i.events))for(o in delete a.handle,a.events={},c)for(n=0,r=c[o].length;n<r;n++)x.event.add(t,o,c[o][n]);J.hasData(e)&&(s=J.access(e),l=x.extend({},s),J.set(t,l))}}function Fe(e,t,n,r){t=c.apply([],t);var o,i,a,s,l,u,f=0,d=e.length,p=d-1,h=t[0],m=y(h);if(m||d>1&&"string"==typeof h&&!g.checkClone&&Me.test(h))return e.each(function(o){var i=e.eq(o);m&&(t[0]=h.call(this,o,i.html())),Fe(i,t,n,r)});if(d&&(i=(o=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=x.map(ve(o,"script"),Pe)).length;f<d;f++)l=o,f!==p&&(l=x.clone(l,!0,!0),s&&x.merge(a,ve(l,"script"))),n.call(e[f],l,f);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,De),f=0;f<s;f++)l=a[f],he.test(l.type||"")&&!Q.access(l,"globalEval")&&x.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&x._evalUrl(l.src):w(l.textContent.replace(Ie,""),u,l))}return e}function Be(e,t,n){for(var r,o=t?x.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||x.cleanData(ve(r)),r.parentNode&&(n&&x.contains(r.ownerDocument,r)&&ge(ve(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e.replace(Ae,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s,l,c,u=e.cloneNode(!0),f=x.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=ve(u),r=0,o=(i=ve(e)).length;r<o;r++)s=i[r],l=a[r],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&de.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(i=i||ve(e),a=a||ve(u),r=0,o=i.length;r<o;r++)Re(i[r],a[r]);else Re(e,u);return(a=ve(u,"script")).length>0&&ge(a,!f&&ve(e,"script")),u},cleanData:function(e){for(var t,n,r,o=x.event.special,i=0;void 0!==(n=e[i]);i++)if(X(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return $(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!me[(pe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(ve(this)),n&&n.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var n,r=[],o=x(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),x(o[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var Ue=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},ze=new RegExp(ie.join("|"),"i");function He(e,t,n){var r,o,i,a,s=e.style;return(n=n||qe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),!g.pixelBoxStyles()&&Ue.test(a)&&ze.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ee.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),o=36===t(e.width),u.style.position="absolute",i=36===u.offsetWidth||"absolute",Ee.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,s,l,c=a.createElement("div"),u=a.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i}}))}();var $e=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ke={position:"absolute",visibility:"hidden",display:"block"},Ve={letterSpacing:"0",fontWeight:"400"},Ge=["Webkit","Moz","ms"],Xe=a.createElement("div").style;function Ze(e){var t=x.cssProps[e];return t||(t=x.cssProps[e]=function(e){if(e in Xe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Xe)return e}(e)||e),t}function Qe(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Je(e,t,n,r,o,i){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=x.css(e,n+ie[a],!0,o)),r?("content"===n&&(l-=x.css(e,"padding"+ie[a],!0,o)),"margin"!==n&&(l-=x.css(e,"border"+ie[a]+"Width",!0,o))):(l+=x.css(e,"padding"+ie[a],!0,o),"padding"!==n?l+=x.css(e,"border"+ie[a]+"Width",!0,o):s+=x.css(e,"border"+ie[a]+"Width",!0,o));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))),l}function et(e,t,n){var r=qe(e),o=He(e,t,r),i="border-box"===x.css(e,"boxSizing",!1,r),a=i;if(Ue.test(o)){if(!n)return o;o="auto"}return a=a&&(g.boxSizingReliable()||o===e.style[t]),("auto"===o||!parseFloat(o)&&"inline"===x.css(e,"display",!1,r))&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(o=parseFloat(o)||0)+Je(e,t,n||(i?"border":"content"),a,r,o)+"px"}function tt(e,t,n,r,o){return new tt.prototype.init(e,t,n,r,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=G(t),l=Ye.test(t),c=e.style;if(l||(t=Ze(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=le(e,t,o),i="number"),null!=n&&n==n&&("number"===i&&(n+=o&&o[3]||(x.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,s=G(t);return Ye.test(t)||(t=Ze(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=He(e,t,r)),"normal"===o&&t in Ve&&(o=Ve[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!$e.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):se(e,Ke,function(){return et(e,t,r)})},set:function(e,n,r){var o,i=qe(e),a="border-box"===x.css(e,"boxSizing",!1,i),s=r&&Je(e,t,r,a,i);return a&&g.scrollboxSize()===i.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-Je(e,t,"border",!1,i)-.5)),s&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),Qe(0,n,s)}}}),x.cssHooks.marginLeft=We(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=Qe)}),x.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=qe(e),o=t.length;a<o;a++)i[t[a]]=x.css(e,t[a],!1,r);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}}),x.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[x.cssProps[e.prop]]&&!x.cssHooks[e.prop]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=tt.prototype.init,x.fx.step={};var nt,rt,ot=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function at(){rt&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,x.fx.interval),x.fx.tick())}function st(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function lt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ct(e,t,n){for(var r,o=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ut(e,t,n){var r,o,i=0,a=ut.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=nt||st(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=G(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=x.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=ut.prefilters[i].call(c,e,u,c.opts))return y(r.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,ct,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(F);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,l,c,u,f="width"in t||"height"in t,d=this,p={},h=e.style,m=e.nodeType&&ae(e),v=Q.get(e,"fxshow");for(r in n.queue||(null==(a=x._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],ot.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[r])continue;m=!0}p[r]=v&&v[r]||x.style(e,r)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=v&&v.display)&&(c=Q.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=x.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(l||(d.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(v?"hidden"in v&&(m=v.hidden):v=Q.access(e,"fxshow",{display:c}),i&&(v.hidden=!m),m&&fe([e],!0),d.done(function(){for(r in m||fe([e]),Q.remove(e,"fxshow"),p)x.style(e,r,p[r])})),l=ct(m?v[r]:0,r,d),r in v||(v[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=x.isEmptyObject(e),i=x.speed(t,n,r),a=function(){var t=ut(this,x.extend({},e),i);(o||Q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=x.timers,a=Q.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&it.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||x.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Q.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,o)}}),x.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),nt=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){rt||(rt=!0,at())},x.fx.stop=function(){rt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var ft,dt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return $(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(F);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||x.find.attr;dt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=dt[a],dt[a]=o,o=null!=n(e,t,r)?a:null,dt[a]=i),o}});var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function mt(e){return(e.match(F)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}x.fn.extend({prop:function(e,t){return $(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,l=0;if(y(e))return this.each(function(t){x(this).addClass(e.call(this,t,vt(this)))});if((t=gt(e)).length)for(;n=this[l++];)if(o=vt(n),r=1===n.nodeType&&" "+mt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,l=0;if(y(e))return this.each(function(t){x(this).removeClass(e.call(this,t,vt(this)))});if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[l++];)if(o=vt(n),r=1===n.nodeType&&" "+mt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,vt(this),t),t)}):this.each(function(){var t,o,i,a;if(r)for(o=0,i=x(this),a=gt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;x.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=y(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,x(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(yt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:mt(x.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(r=i<0?l:a?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=x.makeArray(t),a=o.length;a--;)((r=o[a]).selected=x.inArray(x.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},g.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,r,o){var i,s,l,c,u,f,d,p,m=[r||a],v=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(s=p=l=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!bt.test(v+x.event.triggered)&&(v.indexOf(".")>-1&&(g=v.split("."),v=g.shift(),g.sort()),u=v.indexOf(":")<0&&"on"+v,(e=e[x.expando]?e:new x.Event(v,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[v]||{},o||!d.trigger||!1!==d.trigger.apply(r,t))){if(!o&&!d.noBubble&&!b(r)){for(c=d.delegateType||v,bt.test(c+v)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(r.ownerDocument||a)&&m.push(l.defaultView||l.parentWindow||n)}for(i=0;(s=m[i++])&&!e.isPropagationStopped();)p=s,e.type=i>1?c:d.bindType||v,(f=(Q.get(s,"events")||{})[e.type]&&Q.get(s,"handle"))&&f.apply(s,t),(f=u&&s[u])&&f.apply&&X(s)&&(e.result=f.apply(s,t),!1===e.result&&e.preventDefault());return e.type=v,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!X(r)||u&&y(r[v])&&!b(r)&&((l=r[u])&&(r[u]=null),x.event.triggered=v,e.isPropagationStopped()&&p.addEventListener(v,_t),r[v](),e.isPropagationStopped()&&p.removeEventListener(v,_t),x.event.triggered=void 0,l&&(r[u]=l)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),g.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Q.access(r,t);o||r.addEventListener(e,n,!0),Q.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Q.access(r,t)-1;o?Q.access(r,t,o):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}});var wt=n.location,Et=Date.now(),xt=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var kt=/\[\]$/,St=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var o;if(Array.isArray(t))x.each(t,function(t,o){n||kt.test(e)?r(e,o):Ot(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==E(t))r(e,t);else for(o in t)Ot(e+"["+o+"]",t[o],n,r)}x.param=function(e,t){var n,r=[],o=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(n in e)Ot(n,e[n],t,o);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Ct.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var jt=/%20/g,At=/#.*$/,Nt=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Lt=/^\/\//,Pt={},Dt={},Rt="*/".concat("*"),Ft=a.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(F)||[];if(y(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ut(e,t,n,r){var o={},i=e===Dt;function a(s){var l;return o[s]=!0,x.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function qt(e,t){var n,r,o=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Ft.href=wt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,x.ajaxSettings),t):qt(x.ajaxSettings,e)},ajaxPrefilter:Bt(Pt),ajaxTransport:Bt(Dt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,s,l,c,u,f,d,p,h=x.ajaxSetup({},t),m=h.context||h,v=h.context&&(m.nodeType||m.jquery)?x(m):x.event,g=x.Deferred(),y=x.Callbacks("once memory"),b=h.statusCode||{},_={},w={},E="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Mt.exec(i);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)k.always(e[k.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),S(0,t),this}};if(g.promise(k),h.url=((e||h.url||wt.href)+"").replace(Lt,wt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){c=a.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ft.protocol+"//"+Ft.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Ut(Pt,h,t,k),u)return k;for(d in(f=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!It.test(h.type),o=h.url.replace(At,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(xt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Nt,"$1"),p=(xt.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(x.lastModified[o]&&k.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&k.setRequestHeader("If-None-Match",x.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(m,k,h)||u))return k.abort();if(E="abort",y.add(h.complete),k.done(h.success),k.fail(h.error),r=Ut(Dt,h,t,k)){if(k.readyState=1,f&&v.trigger("ajaxSend",[k,h]),u)return k;h.async&&h.timeout>0&&(l=n.setTimeout(function(){k.abort("timeout")},h.timeout));try{u=!1,r.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,s){var c,d,p,_,w,E=t;u||(u=!0,l&&n.clearTimeout(l),r=void 0,i=s||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,k,a)),_=function(e,t,n,r){var o,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,_,k,c),c?(h.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(x.etag[o]=w)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=_.state,d=_.data,c=!(p=_.error))):(p=E,!e&&E||(E="error",e<0&&(e=0))),k.status=e,k.statusText=(t||E)+"",c?g.resolveWith(m,[d,E,k]):g.rejectWith(m,[k,E,p]),k.statusCode(b),b=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[k,h,c?d:p]),y.fireWith(m,[k,E]),f&&(v.trigger("ajaxComplete",[k,h]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,r,o){return y(n)&&(o=o||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:n,success:r},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ht=x.ajaxSettings.xhr();g.cors=!!Ht&&"withCredentials"in Ht,g.ajax=Ht=!!Ht,x.ajaxTransport(function(e){var t,r;if(g.cors||Ht&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=x("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Wt,$t=[],Yt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||x.expando+"_"+Et++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+o):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||x.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always(function(){void 0===i?x(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,$t.push(o)),a&&y(i)&&i(a[0]),a=i=void 0}),"script"}),g.createHTMLDocument=((Wt=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(r)):t=a),i=!n&&[],(o=N.exec(e))?[t.createElement(o[1])]:(o=we([e],t,i),i&&i.length&&x(i).remove(),x.merge([],o.childNodes)));var r,o,i},x.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=mt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&x.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,n){var r,o,i,a,s,l,c=x.css(e,"position"),u=x(e),f={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),y(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):u.css(f)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),o.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-x.css(r,"marginTop",!0),left:t.left-o.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||Ee})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return $(this,function(e,r,o){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=We(g.pixelPosition,function(e,n){if(n)return n=He(e,t),Ue.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return $(this,function(t,n,o){var i;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?x.css(t,n,s):x.style(t,n,o,s)},t,a?o:void 0,a)}})}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),x.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=l.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(l.call(arguments)))}).guid=e.guid=e.guid||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=A,x.isFunction=y,x.isWindow=b,x.camelCase=G,x.type=E,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return x}.apply(t,[]))||(e.exports=r);var Kt=n.jQuery,Vt=n.$;return x.noConflict=function(e){return n.$===x&&(n.$=Vt),e&&n.jQuery===x&&(n.jQuery=Kt),x},o||(n.jQuery=n.$=x),x})},function(e,t,n){var r=n(334),o=n(21);e.exports=o(function(e,t){var n={};for(var o in t)r(o,e)||(n[o]=t[o]);return n})},function(e,t,n){"use strict";(function(e){var r=n(306),o=n.n(r),i=(n(1898),n(1175)),a=n.n(i),s=function(t){var n=t.afterAnimatedIn,r=t.animateBlockEntrance,i=t.animateIn,s=t.animateOnce,l=t.children,c=t.className,u=t.duration,f=t.initiallyVisible,d=t.isLearner,p=t.offset,h=t.siblingDelay;return d&&r?e.createElement(a.a,{afterAnimatedIn:n,animateIn:i,animateOnce:s,className:c,duration:u,initiallyVisible:f,scrollableParentSelector:"#page-wrap",siblingDelay:h,offset:p},l):o()(l)?e.createElement("div",null,l):l};s.defaultProps={animateOnce:!0,duration:.75,offset:200,siblingDelay:0},t.a=s}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return v});var r=n(133),o=n.n(r),i=n(112),a=n(28),s=n.n(a),l=n(12),c=n.n(l),u=window.Runtime,f=s()(c.a)(window.env||{}),d="rise"===f("SERVICE_PRODUCT"),p=function(e){return(u||i.a)[e]};function h(e){var t=e||"";return p("resolvePath")?o()(t).call(t,"http")||o()(t).call(t,"data:")||o()(t).call(t,"//")?t:(u||i.a).resolvePath(t):o()(t).call(t,"data:")||o()(t).call(t,"http")||o()(t).call(t,"//")?t:"/".concat(t)}function m(){p("exit")&&u.exit()}function v(){return!!p("isExport")&&u.isExport()}},function(e,t,n){var r=n(237),o=n(52),i=n(21),a=n(518);e.exports=i(function(e,t){return 1===e?o(t):r(e,a(e,[],t))})},function(e,t,n){var r=n(52),o=n(19),i=n(525),a=n(12);e.exports=r(function(e){return i(a(e),o(e))})},function(e,t,n){var r=n(1825),o=n(697);e.exports=function(e,t,n){return"function"==typeof t?r(e,!0,o(t,n,3)):r(e,!0)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return k});var r=n(250),o=n(5),i=n.n(o),a=n(575),s=n.n(a),l=n(576),c=n.n(l),u=n(18),f=n.n(u),d=n(577),p=n.n(d),h=n(578),m=n.n(h),v=n(1261),g=n(348),y=n(223),b=n(225),_=n(13),w=n(1256),E=n(45),x=e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||i.a,k=Object(r.d)(Object(r.c)(w.a),x(Object(r.a)(m.a,p.a,c()("run"),s.a,_.d))).dispatch,S=f()(v.a,g.c,y.b,b.c,k);E.a.on("action",S)}).call(this,n(71))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(52),o=n(21),i=n(517);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(a)?t:i(n)?o(function(t,n){return e(t,a,n)}):i(a)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return i(n)&&i(a)&&i(s)?t:i(n)&&i(a)?o(function(t,n){return e(t,n,s)}):i(n)&&i(s)?o(function(t,n){return e(t,a,n)}):i(a)&&i(s)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,a,s)}):i(a)?r(function(t){return e(n,t,s)}):i(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"i",function(){return l}),n.d(t,"j",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return d});var r="menu",o="menuitem",i="group",a="heading",s="tablist",l="tabpanel",c="tab",u="radiogroup",f="radio",d=function(e){var t=e.element,n=e.isHidden;t&&t.setAttribute("aria-hidden",n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),o=function(e,t){return r.test(t)?t:e}},function(e,t,n){"use strict";n.d(t,"b",function(){return Ie}),n.d(t,"d",function(){return Le}),n.d(t,"a",function(){return Pe}),n.d(t,"f",function(){return De}),n.d(t,"e",function(){return He});var r,o=n(219),i=n.n(o),a=n(6),s=n(148),l=n.n(s),c=n(19),u=n.n(c),f=n(130),d=n.n(f),p=n(5),h=n.n(p),m=n(26),v=n.n(m),g=n(57),y=n.n(g),b=n(110),_=n.n(b),w=n(270),E=n.n(w),x=n(35),k=n.n(x),S=n(37),T=n.n(S),C=n(28),O=n.n(C),j=n(38),A=n.n(j),N=n(95),M=n.n(N),I=n(43),L=n.n(I),P=n(74),D=n.n(P),R=n(58),F=n.n(R),B=n(14),U=n.n(B),q=n(241),z=n.n(q),H=n(70),W=n.n(H),$=n(47),Y=n.n($),K=n(127),V=n.n(K),G=n(25),X=n.n(G),Z=n(49),Q=n.n(Z),J=n(18),ee=n.n(J),te=n(12),ne=n.n(te),re=n(16),oe=n.n(re),ie=n(73),ae=n.n(ie),se=n(121),le=n.n(se),ce=n(142),ue=n.n(ce),fe=n(69),de=n.n(fe),pe=n(31),he=n.n(pe),me=n(13),ve=n(280),ge=n(470),ye=n(471),be=n(352),_e=n(398),we=n(401),Ee=n(472),xe=n(203),ke=n(81),Se=l()(ae.a),Te=v()("rise/course/"),Ce=Te("BOOKMARK_LESSON"),Oe=Te("COMPLETE_LESSON_PROGRESS"),je=Te("RESET_LESSON_PROGRESS"),Ae=Te("UPDATE_LESSON_PROGRESS"),Ne=function(e,t){var n=t.id,r=t.updateFn;return ee()(Me({id:n,updateFn:r}),ue()(h()(ke.c,ne()("percentComplete"))))(e)},Me=function(e){var t=e.id,n=e.updateFn;return function(e){return ee()(Y()(D()(["lessons",t]),n),he()(qe(X()(["lessons",t,"isComplete"]),e),We(t)),ue()(function(e){return function(t){return Object(ke.n)(X()(["lessons",e],t))}}(t)))(e)}};t.c=Object(me.f)({lessons:{},percentComplete:0},(r={},Object(a.a)(r,Ce,function(e,t){return h()(ue()(V()(ke.a,[t])),u()("currentLesson",t))(e)}),Object(a.a)(r,Oe,function(e,t){var n=t.id;switch(t.type){case"blocks":return Ne(e,{id:n,updateFn:ve.a});case"embed":return Ne(e,{id:n,updateFn:ge.a});case"map":return Ne(e,{id:n,updateFn:ye.b});case"process":return Ne(e,{id:n,updateFn:be.a});case"sorting":return Ne(e,{id:n,updateFn:_e.a});case"timeline":return Ne(e,{id:n,updateFn:we.b});case"video":return Ne(e,{id:n,updateFn:Ee.a});default:return e}}),Object(a.a)(r,xe.a,function(e,t){return U()(e,Object(ke.f)(Re(t)))}),Object(a.a)(r,je,function(e,t){var n=t.id;switch(t.type){case"blocks":return Ne(e,{id:n,updateFn:ve.c});case"embed":return Ne(e,{id:n,updateFn:ge.b});case"map":return Ne(e,{id:n,updateFn:ye.c});case"process":return Ne(e,{id:n,updateFn:be.c});case"sorting":return Ne(e,{id:n,updateFn:_e.c});case"timeline":return Ne(e,{id:n,updateFn:we.c});case"video":return Ne(e,{id:n,updateFn:Ee.b});default:return e}}),Object(a.a)(r,Ae,Ne),r));var Ie=Object(me.a)(Oe),Le=Object(me.a)(je),Pe=Object(me.a)(Ce),De=Object(me.a)(Ae),Re=ee()(Q()(["course"]),function(e){return ee()(X()(["course","lessons"]),Se(Ue,{}),W()("lessons"),U()(e))(e)},_()("course")),Fe=d()(k()("section")),Be=d()(A.a),Ue=function e(t,n,r){var o=n.id,i=n.items,a=n.type;return he()(function(){return Fe(a)},ee()(u()(o,{index:r}),he()(function(){return Be(i)},function(t){return le()(D()([o,"items"]),Se(e,{},i))(t)})))(t)},qe=y()(3,function(e,t,n){return e(t)!==e(n)}),ze=function(e){var t=e.key,n=e.percent;return function(e){return u()(n,ee()(ne()("items"),de.a,T()(oe()(t,!0)),L.a,O()(E.a)(h()(L.a,M.a,ne()("items"))(e)),z()(100),Math.round)(e),e)}},He=ze({key:"isComplete",percent:"percentComplete"}),We=(ze({key:"isViewed",percent:"percentViewed"}),function(e){return function(t){return ee()(le()(F()("percentComplete"),$e(t)),ue()(function(t){return Object(ke.m)(t,e)}))(t)}}),$e=function(e){var t=e.lessons;return Math.round(L()(i()(T()(ne()("isComplete"),t)))/L()(i()(t))*100)}},function(e,t){e.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(e,t,n){var r=n(52),o=n(567),i=n(35);e.exports=r(function(e){return null!=e&&i(e,o(e))})},function(e,t,n){"use strict";var r=n(128),o=n(421).f,i=n(813),a=n(116),s=n(363),l=n(235),c=n(197),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,f,d,p,h,m,v,g,y=e.target,b=e.global,_=e.stat,w=e.proto,E=b?r:_?r[y]:(r[y]||{}).prototype,x=b?a:a[y]||(a[y]={}),k=x.prototype;for(d in t)n=!i(b?d:y+(_?".":"#")+d,e.forced)&&E&&c(E,d),h=x[d],n&&(m=e.noTargetGet?(g=o(E,d))&&g.value:E[d]),p=n&&m?m:t[d],n&&typeof h==typeof p||(v=e.bind&&n?s(p,r):e.wrap&&n?u(p):w&&"function"==typeof p?s(Function.call,p):p,(e.sham||p&&p.sham||h&&h.sham)&&l(v,"sham",!0),x[d]=v,w&&(c(a,f=y+"Prototype")||l(a,f,{}),a[f][d]=p,e.real&&k&&!k[d]&&l(k,d,p)))}},function(e,t,n){var r=n(52),o=n(95);e.exports=r(function(e){for(var t=o(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){var n={};return n[e]=t,n})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"b",function(){return te}),n.d(t,"f",function(){return ne}),n.d(t,"i",function(){return re}),n.d(t,"j",function(){return oe}),n.d(t,"e",function(){return ie}),n.d(t,"d",function(){return se}),n.d(t,"c",function(){return le}),n.d(t,"a",function(){return ce}),n.d(t,"g",function(){return fe}),n.d(t,"h",function(){return de});var r=n(17),o=n.n(r),i=n(580),a=n.n(i),s=n(581),l=n.n(s),c=n(125),u=n(6),f=n(160),d=n.n(f),p=n(216),h=n.n(p),m=n(242),v=n.n(m),g=n(343),y=n.n(g),b=n(344),_=n.n(b),w=n(569),E=n.n(w),x=n(5),k=n.n(x),S=n(79),T=n.n(S),C=n(89),O=n.n(C),j=n(57),A=n.n(j),N=n(35),M=n.n(N),I=n(37),L=n.n(I),P=n(28),D=n.n(P),R=n(307),F=n.n(R),B=n(346),U=n.n(B),q=n(95),z=n.n(q),H=n(43),W=n.n(H),$=n(202),Y=n.n($),K=n(27),V=n.n(K),G=n(459),X=n.n(G),Z=n(220),Q=n.n(Z),J=O()(function(e,t,n){var r;return d()([],n,(r={},Object(u.a)(r,e,n[t]),Object(u.a)(r,t,n[e]),r))}),ee=y()(function(e){var t=Object(c.a)(e,2),n=t[0],r=t[1];return M()(Number(n),Number(r))}),te=k()(ee,Q.a),ne=function(e){return function(t,n){var r=Object(c.a)(n,2),o=r[0],i=r[1],a=U()(Number(o),t),s=U()(Number(i),e);return a===s?t:J(a,s,t)}},re=k()(X()(0),W.a);function oe(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=l()(t);!(r=(a=s.next()).done);r=!0){var c=a.value;if(n.push(c),e(c))break}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}var ie=A()(2,function(e,t){return k()(F.a,V()(v()(e,1)),Q.a)(t)}),ae=A()(2,function(e,t){return k()(F.a,L()(E()(e)),Q.a)(t)}),se=A()(2,function(e,t){return k()(z.a,ae(function(e,n){return t(n)}))(e)}),le=A()(2,function(e,t){return L()(k()(D()(T.a)(t),e))}),ce=_()(Y()(h.a,0)),ue=k()(a.a,Array),fe=O()(function(e,t){var n;return o()(n=ue(t)).call(n,function(){return e})}),de=O()(function(e,t,n,r){var i;return o()(i=ue(n)).call(i,function(n,o){return o===r?t:e})})},function(e,t,n){var r=n(62),o=n(198);e.exports=r(o)},function(e,t,n){var r=n(52),o=n(155),i=n(525),a=n(25);e.exports=r(function(e){return i(a(e),o(e))})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(9),o=n(7),i=function(){function e(){Object(r.a)(this,e)}return Object(o.a)(e,null,[{key:"isSafari",get:function(){return!(!window||!window.navigator)&&(/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor))}},{key:"isIphoneSafari",get:function(){if(!window||!window.navigator)return!1;var e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,t=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/CriOS/.test(window.navigator.userAgent);return e&&t&&!n}},{key:"isSafari9",get:function(){if(!window||!window.navigator)return!1;var e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),t=/version\/9./i.test(window.navigator.userAgent);return e&&t}},{key:"isIe11",get:function(){return!(!window||!Object.hasOwnProperty.call(window,"ActiveXObject")||window.ActiveXObject)}},{key:"isEdge",get:function(){return!(!window||!window.navigator)&&/Edge/.test(window.navigator.userAgent)}},{key:"isMobile",get:function(){return!(!window||!window.navigator)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}]),e}()},function(e,t,n){var r=n(268);e.exports=r(0)},function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"a",function(){return m});var r=n(1176),o=n.n(r),i=n(4),a=n.n(i),s=n(269),l=n.n(s),c=n(56),u=Object(c.b)("CDN_USER_CONTENT_URI"),f=Object(c.b)("IMAGES_URI"),d=function(e){var t=e.key,n=e.src,r=l.a.basename(t),o=l.a.basename(n);return Object(c.e)(o&&r!==o?o:r)},p=function(e){var t,n=e.key,r=e.src;return f?a()(t="".concat(f,"/f:jpg,b:fff,s:cover,t:true,w:340/")).call(t,n):d({key:n,src:r})},h=function(e){var t,n,r=e.key,i=e.src,s=r&&o()(r).call(r,"-stock-image.jpg")?"f:jpg|png,a:retain,b:fff,w:1680,q:65":"f:jpg|png,a:retain,b:fff";return f?a()(t=a()(n="".concat(f,"/")).call(n,s,"/")).call(t,r):d({key:r,src:i})},m=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"src",o=e.key,i=e.src,s=e.thumbnail,l=e.thumbnailKey,c=u?a()(t="".concat(u,"/")).call(t,o):d({key:o,src:i}),f=u?a()(n="".concat(u,"/")).call(n,l):d({key:l,src:s});return"src"===r?c:f}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(e){return function(t){return e(t),t.preventDefault()}},o=function(e){return function(t){e(t),t.preventDefault(),function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}(t)}}},function(e,t,n){var r=n(334),o=n(21);e.exports=o(r)},function(e,t,n){var r=n(305);e.exports=r(1)},function(e,t,n){"use strict";var r,o,i=n(133),a=n.n(i),s=n(103),l=n.n(s),c=n(12),u=n.n(c),f=n(28),d=n.n(f),p=n(111),h=n(6),m=n(5),v=n.n(m),g=n(76),y=n.n(g),b=n(50),_=n.n(b),w=n(67),E=n.n(w),x=n(95),k=n.n(x),S=n(138),T=n.n(S),C=n(58),O=n.n(C),j=n(27),A=n.n(j),N=n(102),M=n.n(N),I=n(204),L=n.n(I),P=n(70),D=n.n(P),R=n(49),F=n.n(R),B=n(51),U=n.n(B),q=n(105),z=n.n(q),H=n(121),W=n.n(H),$=n(143),Y=n.n($),K=n(69),V=n.n(K),G={activeIndex:["a",_.a],correctlyAnswered:["n",_.a],currentTime:["t",_.a],isComplete:["c",Number],percentComplete:["p",_.a],percentViewed:["v",_.a],retryAttempts:["r",_.a],score:["s",_.a],reportResults:["rr",_.a],passed:["pq",_.a]},X=function(e,t){return Object(h.a)({},y()(te[t]),T()(te[t])(e))},Z=v()(L.a,V.a,A()(function(e){return v()(Y()(E.a,D()(u()("index",e))),L.a,V.a,M()(X))(z()(E.a,F()(k()(te),e)))})),Q=function(e,t){return Object(h.a)({},y()(G[t]),T()(G[t])(e))},J=function(e){var t=u()("items",e),n=u()("index",e);return v()(D()(n),Y()(function(){return E()(t)},W()(O()("i"),Z(t))),L.a,V.a,M()(Q))(F()(k()(G),e))},ee=v()(D()("p"),U()(0,"percentComplete")),te={correctlyAnswered:["n",_.a],isComplete:["c",Number],isCorrect:["k",Number],isViewed:["v",Number],items:["i",Z],matches:["m",_.a],percentViewed:["pv",_.a],selectedIndex:["s",_.a],selectedIndices:["x",A()(Number)],text:["t",_.a]},ne=n(19),re=n.n(ne),oe=n(30),ie=n.n(oe),ae=n(38),se=n.n(ae),le=n(14),ce=n.n(le),ue=function(e){return!!e},fe=(r={},Object(h.a)(r,"a",["activeIndex",_.a]),Object(h.a)(r,"c",["isComplete",ue]),Object(h.a)(r,"n",["correctlyAnswered",_.a]),Object(h.a)(r,"p",["percentComplete",_.a]),Object(h.a)(r,"r",["retryAttempts",_.a]),Object(h.a)(r,"s",["score",_.a]),Object(h.a)(r,"t",["currentTime",_.a]),Object(h.a)(r,"v",["percentViewed",_.a]),Object(h.a)(r,"rr",["reportResults",_.a]),Object(h.a)(r,"pq",["passed",_.a]),r),de=function(e){return function(t){var n=e[t.index];return Y()(function(){return se()(n)},function(){return v()(ce()(t),L.a,V.a,M()(function(e){return function(t,n){var r=T()(ve[n])(t);return"i"===n&&(r=r(u()("items",e))),Object(h.a)({},y()(ve[n]),r)}}(t)))(n)})(t)}},pe=function(e){return A()(de(e))},he=function(e){return function(t){var n=u()("i",e),r=u()("items",t);return v()(ce()(t),Y()(function(){return E()(n)},W()(O()("items"),pe(n)(r))),L.a,V.a,M()(function(e){return function(t,n){return re()([y()(fe[n])],T()(fe[n])(t),e)}}(t)))(F()(k()(fe),e))}},me=function(e,t){var n=u()("lessons",t);return Y()(function(){return E()(n)},v()(re()("percentComplete",U()(0,"p",t)),ie()({lessons:A()(function(e){var t=u()(e.index,n);return Y()(function(){return se()(t)},he(t))(e)})})))(e)},ve=(o={},Object(h.a)(o,"n",["correctlyAnswered",_.a]),Object(h.a)(o,"c",["isComplete",ue]),Object(h.a)(o,"k",["isCorrect",ue]),Object(h.a)(o,"v",["isViewed",ue]),Object(h.a)(o,"i",["items",pe]),Object(h.a)(o,"pv",["percentViewed",_.a]),Object(h.a)(o,"m",["matches",_.a]),Object(h.a)(o,"s",["selectedIndex",_.a]),Object(h.a)(o,"x",["selectedIndices",_.a]),Object(h.a)(o,"t",["text",_.a]),o),ge=n(37),ye=n.n(ge),be=n(186),_e=n.n(be),we=n(268),Ee=n.n(we),xe=n(215),ke=n.n(xe),Se=n(16),Te=n.n(Se),Ce=function(e,t,n){return(e[t]||e.MULTIPLE_CHOICE)(n)},Oe=function(e){var t=e.startTime;return e.stopTime-t},je=function(e){return Ce({FILL_IN_THE_BLANK:Be,MATCHING:$e,MULTIPLE_CHOICE:Ie,MULTIPLE_RESPONSE:Ie},De(e),e)},Ae=function(e){return Ce({FILL_IN_THE_BLANK:Be,MATCHING:$e,MULTIPLE_CHOICE:Ue,MULTIPLE_RESPONSE:ze},De(e),e)},Ne=function(e){var t=e.item,n=e.itemProgress,r={FILL_IN_THE_BLANK:u()("text"),MATCHING:Ye(t),MULTIPLE_CHOICE:qe(t),MULTIPLE_RESPONSE:He(t)};return Ce(r,De(t),n)},Me=function(e){return[e]},Ie=u()("answers"),Le=u()("id"),Pe=u()("title"),De=u()("type"),Re=function(e){return function(t){return ye()(Te()("id",t),Ie(e))}},Fe=function(e){return d()(Ee.a)(Ie(e))},Be=v()(ke()("title"),Ie),Ue=function(e){return v()(Re(e),u()("correct"))(e)},qe=function(e){return v()(Me,Fe(e),u()("selectedIndex"))},ze=function(e){return v()(_e.a,A()(Re(e)),u()("corrects"))(e)},He=function(e){return v()(_e.a,A()(Fe(e)),u()("selectedIndices"))},We=function(e){var t=e.sourceId,n=e.sourceTitle,r=e.targetId,o=e.targetTitle;return{source:{id:"source_".concat(t),title:n},target:{id:"target_".concat(r),title:o}}},$e=v()(A()(function(e){var t=u()("id",e);return We({sourceId:t,sourceTitle:Pe(e),targetId:t,targetTitle:u()("matchTitle",e)})}),Ie),Ye=function(e){return v()(V.a,M()(function(e){return function(t,n){var r=Fe(e)(n),o=Fe(e)(t);return We({sourceId:Le(r),sourceTitle:Pe(r),targetId:Le(o),targetTitle:u()("matchTitle",o)})}}(e)),u()("matches"))},Ke=n(4),Ve=n.n(Ke),Ge=n(140),Xe=n(1145),Ze=n(31),Qe=n.n(Ze)()(function(e){return void 0!==e},v()(JSON.parse,Xe.Base64.decode)),Je=function(e,t){return window.courseData?e(window.courseData):window.course?{course:e(window.course),media:[]}:t},et=function(e){return(window.env||{})[e]},tt={fetch:function(){if(nt.isExport||window.courseData||window.course)return Je(Qe,{});var e,t;return Object(Ge.b)({method:"GET",url:window.shareId?Ve()(e="".concat(et("RISE_RUNTIME_URI"),"/boot/share/")).call(e,window.shareId):Ve()(t="".concat(et("RISE_RUNTIME_URI"),"/boot/")).call(t,window.courseId),json:!0,withCredentials:!0}).then(u()("body")).then(Qe)},getEnv:et,isPasswordProtected:function(){return!!window.shareId&&!!window.hasPassword},isShare:function(){return!!window.shareId},resolvePath:function(e){var t;return Ve()(t="".concat(et("CDN_USER_CONTENT_URI"),"/")).call(t,e)},verifySharePassword:function(e){return Object(Ge.b)({method:"POST",url:"".concat(et("RISE_RUNTIME_URI"),"/password"),data:{shareId:window.shareId,password:e},json:!0}).then(u()("body"))}},nt=ce()(tt,window.Runtime||{}),rt=nt;n.d(t,"j",function(){return it}),n.d(t,"b",function(){return at}),n.d(t,"a",function(){return st}),n.d(t,"f",function(){return lt}),n.d(t,"n",function(){return ct}),n.d(t,"m",function(){return ut}),n.d(t,"c",function(){return ft}),n.d(t,"d",function(){return dt}),n.d(t,"e",function(){return pt}),n.d(t,"g",function(){return ht}),n.d(t,"i",function(){return mt}),n.d(t,"h",function(){return vt}),n.d(t,"l",function(){return gt}),n.d(t,"o",function(){return yt}),n.d(t,"k",function(){return bt});d()(u.a)(window.env||{});var ot=function(e){return rt&&rt[e]};function it(e){if(ot("onCreateHistory"))return rt.onCreateHistory(e)}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ot("fetch")?l.a.resolve(rt.fetch()):l.a.resolve(e)}function st(e){if(ot("bookmark"))return rt.bookmark(e)}function lt(e){return ot("getProgress")?me(e,rt.getProgress()):e}function ct(e){return ot("setLessonProgress")?rt.setLessonProgress(J(e)):e}function ut(e,t){return ot("setCourseProgress")?rt.setCourseProgress(ee(e),t):e}function ft(e){if(ot("finish"))return rt.finish(e)}function dt(e,t,n){ot("finishQuiz")&&rt.finishQuiz(e,t,n)}function pt(e,t,n,r){ot("finishStoryline")&&rt.finishStoryline(e,t,n,r)}function ht(){return ot("isComplete")?rt.isComplete():null}function mt(){return!!ot("isShare")&&rt.isShare()}function vt(){return!!ot("isPasswordProtected")&&rt.isPasswordProtected()}function gt(e){var t=e||"";return ot("resolvePath")?a()(t).call(t,"http")||a()(t).call(t,"data:")||a()(t).call(t,"//")?t:rt.resolvePath(t):a()(t).call(t,"data:")||a()(t).call(t,"http")||a()(t).call(t,"//")?t:"/".concat(t)}function yt(e){return ot("verifySharePassword")?rt.verifySharePassword(e):l.a.resolve({isValid:!0})}function bt(e){if(ot("reportAnswer")){var t=e.id,n=e.isCorrect,r=e.item,o=e.itemProgress,i=e.duration,a=e.retryAttempts,s=e.title,l=r.id,c=r.title,u=r.type;return rt.reportAnswer({id:t,type:u,isCorrect:n,itemId:l,questionTitle:Object(p.c)(c),quizTitle:Object(p.c)(s),retryAttempts:a,answers:je(r),correctResponse:Ae(r),response:Ne({item:r,itemProgress:o}),latency:Oe(i)})}return!1}},function(e,t,n){"use strict";var r=s(n(1650)),o=s(n(1656)),i=s(n(881)),a=s(n(878));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){var r=n(700),o=n(701);e.exports=function(e,t,n){var i=null==e?void 0:r(e,o(t),t+"");return void 0===i?n:i}},function(e,t,n){"use strict";n.d(t,"d",function(){return c}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return d});n(103),n(133),n(269),n(30);var r=n(28),o=n.n(r),i=(n(1162),n(12)),a=n.n(i),s=n(112);function l(e){return s.a[e]}var c=o()(a.a)(window.env||{});function u(e){if(l("cancelProcessingPromise"))return s.a.cancelProcessingPromise(e)}function f(e){if(l("copyReviewItem"))return s.a.copyReviewItem(e)}function d(e){if(l("courseAuthorUrl"))return s.a.courseAuthorUrl(e)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";e.exports=n(555),e.exports.easing=n(2100),e.exports.canvas=n(2101),e.exports.options=n(2102)},function(e,t,n){var r=n(52);e.exports=r(function(e){return!e})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=n(0),c=n.n(l),u=n(313),f=n(42),d=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"setFocus",value:function(){this.editor&&this.editor.setFocus()}},{key:"renderEditable",value:function(){var t=this,n=this.props,r=n.allowBold,o=n.value,i=n.placeholder,a=n.className,s=n.onChange,l=n.onKeyDown;return e.createElement(u.a,{allowBold:r,ref:function(e){t.editor=e},className:a,value:o,placeholder:i,onChange:s,onKeyDown:l})}},{key:"renderReadOnly",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.className,o=t.value;return o?e.createElement(f.a,{className:r,value:o,allowTabNavigation:n}):null}},{key:"render",value:function(){return this.props.editable?this.renderEditable():this.renderReadOnly()}}],[{key:"propTypes",get:function(){return{value:c.a.string,placeholder:c.a.string,className:c.a.string,onChange:c.a.func.isRequired,onKeyDown:c.a.func,editable:c.a.bool,allowTabNavigation:c.a.bool}}},{key:"defaultProps",get:function(){return{allowBold:!0,placeholder:"",editable:!1,onKeyDown:function(){},allowTabNavigation:!0}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){var r=n(52),o=n(57);e.exports=r(function(e){return o(e.length,e)})},function(e,t,n){var r=n(62),o=n(57);e.exports=r(function(e,t,n){return o(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})})},function(e,t,n){var r=n(20);e.exports=r(!0)},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});n(2254);var r=n(2),o=n.n(r);t.c=function(t){var n=t.type,r=t.children;return e.createElement("div",{className:"page","data-type":n,"data-page":!0},r)};var i=function(t){var n=t.type,r=t.children,i="video"===n||"embed"===n||"blocks"===n,a=o()("page__wrapper",{"page__wrapper--white":i});return e.createElement("div",{className:a},r)},a=function(t){var n=t.type,r=t.children,i=o()("page__content",{"page__content--timeline":"timeline"===n});return e.createElement("div",{className:i},r)}}).call(this,n(1))},function(e,t,n){var r=n(85);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){var r,o,i,a,s=n(52),l=n(168),c=n(857);e.exports=(r=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],i=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},"function"!=typeof Object.keys||i?s(function(e){if(Object(e)!==e)return[];var t,n,s=[],u=i&&c(e);for(t in e)!l(t,e)||u&&"length"===t||(s[s.length]=t);if(r)for(n=o.length-1;n>=0;)l(t=o[n],e)&&!a(s,t)&&(s[s.length]=t),n-=1;return s}):s(function(e){return Object(e)!==e?[]:Object.keys(e)}))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1461)},function(e,t,n){var r=n(21),o=n(137),i=n(1687);e.exports=r(o([],i,function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1}))},function(e,t,n){var r=n(407)("wks"),o=n(408),i=n(66).Symbol,a=n(779);e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}},function(e,t,n){"use strict";var r,o=n(107),i=n(66),a=n(85),s=n(134),l=n(494),c=n(158),u=n(178),f=n(118).f,d=n(234),p=n(415),h=n(98)("toStringTag"),m=n(408)("TYPED_ARRAY_TAG"),v=i.DataView,g=v&&v.prototype,y=i.Int8Array,b=y&&y.prototype,_=i.Uint8ClampedArray,w=_&&_.prototype,E=y&&d(y),x=b&&d(b),k=Object.prototype,S=k.isPrototypeOf,T=!(!i.ArrayBuffer||!i.DataView),C=T&&!!p,O=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A=function(e){return a(e)&&s(j,l(e))};for(r in j)i[r]||(C=!1);if((!C||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},C))for(r in j)i[r]&&p(i[r],E);if((!C||!x||x===k)&&(x=E.prototype,C))for(r in j)i[r]&&p(i[r].prototype,x);if(C&&d(w)!==x&&p(w,x),o&&!s(x,h))for(r in O=!0,f(x,h,{get:function(){return a(this)?this[m]:void 0}}),j)i[r]&&c(i[r],m,r);T&&p&&d(g)!==k&&p(g,k),e.exports={NATIVE_ARRAY_BUFFER:T,NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:O&&m,aTypedArray:function(e){if(A(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(S.call(E,e))return e}else for(var t in j)if(s(j,r)){var n=i[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(o){if(n)for(var r in j){var a=i[r];a&&s(a.prototype,e)&&delete a.prototype[e]}x[e]&&!n||u(x,e,n?t:C&&b[e]||t)}},exportStatic:function(e,t,n){var r,a;if(o){if(p){if(n)for(r in j)(a=i[r])&&s(a,e)&&delete a[e];if(E[e]&&!n)return;try{return u(E,e,n?t:C&&y[e]||t)}catch(e){}}for(r in j)!(a=i[r])||a[e]&&!n||u(a,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||s(j,t)},isTypedArray:A,TypedArray:E,TypedArrayPrototype:x}},function(e,t,n){var r=n(213),o=n(21);e.exports=o(function(e,t){return r(t,[e])})},function(e,t,n){e.exports=n(1664)()},function(e,t,n){var r=n(21),o=n(198),i=n(95);e.exports=r(function(e,t){return o(function(n,r){return n[r]=e(t[r],r,t),n},{},i(t))})},function(e,t,n){e.exports=n(1475)},function(e,t,n){var r=n(194),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(859),o=n(21),i=n(37);e.exports=o(function(e,t){return i(r(e),t)})},function(e,t,n){"use strict";n.d(t,"d",function(){return se}),n.d(t,"e",function(){return ue}),n.d(t,"f",function(){return fe}),n.d(t,"b",function(){return de}),n.d(t,"a",function(){return pe}),n.d(t,"g",function(){return me}),n.d(t,"h",function(){return ve}),n.d(t,"i",function(){return ge}),n.d(t,"j",function(){return ye}),n.d(t,"c",function(){return ke});var r=n(20),o=n.n(r),i=n(5),a=n.n(i),s=n(131),l=n.n(s),c=n(149),u=n.n(c),f=n(126),d=n.n(f),p=n(724),h=n.n(p),m=n(35),v=n.n(m),g=n(37),y=n.n(g),b=n(36),_=n.n(b),w=n(97),E=n.n(w),x=n(76),k=n.n(x),S=n(90),T=n.n(S),C=n(80),O=n.n(C),j=n(67),A=n.n(j),N=n(38),M=n.n(N),I=n(138),L=n.n(I),P=n(43),D=n.n(P),R=n(87),F=n.n(R),B=n(25),U=n.n(B),q=n(29),z=n.n(q),H=n(49),W=n.n(H),$=n(18),Y=n.n($),K=n(12),V=n.n(K),G=n(16),X=n.n(G),Z=n(345),Q=n.n(Z),J=n(220),ee=n.n(J),te=n(725),ne=n.n(te),re=n(56),oe=n(308),ie=n(249),ae=a()(F.a,A.a),se=function(e){var t=e.type,n=e.settings;return"quiz"!==t||n.asLesson||void 0===n.asLesson},le=a()(y()(se),V()("lessonsOnly")),ce=function(e){return function(t){return F()(U()(["lessons",t.id,"isComplete"],e))}},ue=function(e){var t=e.course,n=e.lesson;return X()("id",n.id,k()(V()("lessonsOnly",t)))},fe=a()(F.a,X()("type","section")),de=function(e){var t=e.course,n=e.courseProgress,r=e.lesson,o=e.restrictingQuiz,i=Object(oe.b)({courseProgress:n,lesson:r,restrictingQuiz:o}),a=Object(ie.a)(t),s=a||ae(i),l=function(e){var t=e.course,n=e.courseProgress;return _()(ce(n))(t.lessonsOnly)}({course:t,courseProgress:n}),c=re.d&&!t.enrolled,u=c&&!t.riseComLearningPathId&&"preview"!==window.viewType,f=c&&t.riseComLearningPathId&&"preview"!==window.viewType,d=fe(r)&&F()(function(e){var t=e.lesson,n=e.courseProgress;return z()(!1,["lessons",t.id,"isComplete"],n)}({lesson:r,courseProgress:n}));return{isRestricted:u&&d||f&&d||s&&d&&F()(function(e){var t=e.lesson,n=e.currentLesson;return t&&X()("id",t.id,n)}({lesson:r,currentLesson:l})),isRestrictedNotEnrolledCourse:u,isRestrictedNotEnrolledLP:f,restrictingQuiz:i,isRestrictedCourse:a,currentLesson:l}},pe=function(e){var t=e.labels,n=e.restrictions,r=t.lessonRestricted,o=t.quizRequirePassingScore,i=n.isRestrictedCourse,a=n.isRestrictedNotEnrolledCourse,s=n.isRestrictedNotEnrolledLP,l=n.restrictingQuiz,c=n.currentLesson,u=c&&h()("id",l,c);return a?"Please save to My Learning to take this course":s?null:!i||i&&u?o.replace("quiz",'"'.concat(l.title,'"')):r},he=l()(function(e){return E()(ne()(W()(["id"],e||{})))}),me=function(e){var t=e.course,n=e.lesson;return a()(O.a,he(n),le)(t)},ve=function(e){var t=e.course,n=e.lesson;return!function(e){var t=e.course,n=e.lesson;return X()("id",n.id,L()(V()("lessonsOnly",t)))}({course:t,lesson:n})&&t.lessonsOnly[O()(he(n,t.lessonsOnly))]},ge=function(e){var t=e.course,n=e.lesson;return!ue({course:t,lesson:n})&&t.lessonsOnly[u()(he(n,t.lessonsOnly))]},ye=a()(D.a,le),be=d()(M.a,A.a),_e=d()(M.a,v()(!1)),we=Q()(_e,"isComplete"),Ee=_()(a()(we,L.a)),xe=Y()(ee.a,Ee,k.a),ke=T()(be,o()(null),xe)},function(e,t,n){e.exports=!n(61)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";t.__esModule=!0,t.bind=void 0;var r=n(375);t.bind=function(e,t,n){t.guid||(t.guid=(0,r.newGUID)());var o=function(){return t.apply(e,arguments)};return o.guid=n?n+"_"+t.guid:t.guid,o}},function(e,t,n){"use strict";var r=n(86);e.exports={_set:function(e,t){return r.merge(this[e]||(this[e]={}),t)}}},function(e,t,n){var r=n(21);e.exports=r(function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})},function(e,t,n){"use strict";n.d(t,"c",function(){return m}),n.d(t,"b",function(){return v});var r=n(20),o=n.n(r),i=n(28),a=n.n(i),s=n(50),l=n.n(s),c=n(90),u=n.n(c),f=n(612),d=n.n(f),p=a()(d.a)({allowedTags:["h2","h3","b","i","u","ul","ol","li","span","a","blockquote","p","br","mark"],allowedAttributes:{a:["href","target"],span:["data-*"]}}),h=u()(l.a,p,o()("")),m=a()(d.a)({allowedTags:[],allowedAttributes:[]}),v=a()(d.a)({allowedTags:["mark"],allowedAttributes:[]});t.a=h},function(e,t,n){"use strict";var r,o=n(160),i=n.n(o),a=n(3),s=n.n(a),l=n(34),c=n.n(l),u=n(219),f=n.n(u),d=n(4),p=n.n(d),h=n(103),m=n.n(h),v=n(117),g=n.n(v),y=n(275),b=n.n(y),_=n(12),w=n.n(_),E=n(142),x=n.n(E),k=n(140),S=n(56),T=function(e){return(window.env||{})[e]},C=T("RISE_RUNTIME_URI"),O=T("IMAGES_URI"),j=(T("CDN_USER_CONTENT_URI"),"".concat(O,"/f:jpg,b:fff,w:340,s:cover")),A="".concat(O,"/f:jpg,b:fff,w:1680,s:cover,q:65"),N="".concat(O,"/f:png,w:1920,s:cover,q:65"),M="".concat(O,"/f:jpg,b:fff,w:100,h:100,s:cover"),I=window.courseId,L={courseId:I},P={},D={};function R(e){return 200===e.status?e.body:m.a.reject(e.body)}var F=function(e){return function(t){var n,r;return g()({key:t.key,thumbnail:p()((r=e.refs,n="".concat("coverImage"===r?j:M,"/"))).call(n,t.key),url:T("CDN_USER_CONTENT_URI")+"/"+t.key},e)}};var B={getEnv:T,resolvePath:function(e){return T("CDN_USER_CONTENT_URI")+"/"+e},getCourseAuthorIndexPath:function(){return S.d?"/author":"/"},previewUrl:function(e,t){var n="/preview/".concat(t.courseId||t.id);return n+=e?"#/lessons/".concat(e,"/preview-lesson"):"#/preview"},uploadAsset:function(e){var t,n=e.filename,r=e.data,o=e.mediaType,i=e.mimeType,a=e.size;return(t=n,Object(k.b)({withCredentials:!0,method:"GET",url:"".concat(C,"/yurl"),json:!0,data:{courseId:I,filename:t}}).then(R)).then(function(e,t,n,r,o,i,a,s){return function(e){return(P[s]=Object(k.b)({method:"PUT",url:e.url,data:t,headers:{"Content-Type":e.type},onUploadProgress:b()(a,k.a)})).then(function(){return{url:e.filename,key:e.key,mediaType:n,originalMediaUrl:i,mimeType:r,size:o}})}}(0,r,o,i,a,e.originalMediaUrl,e.progress,e.id))},fetchEmbed:function(e){return Object(k.b)({method:"GET",url:"".concat(C,"/embed"),json:!0,withCredentials:!0,data:{url:e}}).then(function(e){return e.body.statusCode?m.a.reject({}):e}).then(w()("body"))},cancelUpload:function(e){var t=P[e];t&&t.abort()},cancelProcessing:function(e){var t=e.jobId,n=D[t];n&&(clearTimeout(r),n.abort())},cancelProcessingPromise:function(e){var t=e.jobId;return D[t].abort()},processAsset:function(e){var t={courseId:I,lessonId:e.lessonId,key:e.key,mediaType:e.mediaType};return e.itemId&&(t.itemId=e.itemId),e.refs&&(t.refs=e.refs),Object(k.b)({method:"POST",url:"".concat(C,"/transcode"),data:t,json:!0,withCredentials:!0}).then(b()(g()({mediaType:e.mediaType}),w()("body")))},resolveAsset:function(e){return new m.a(function(t,n){!function o(i){var a;D[e.jobId]=i,i.open("GET",p()(a="".concat(C,"/processed?jobId=")).call(a,e.jobId)),i.withCredentials=!0,i.addEventListener("load",function(){var n=JSON.parse(this.response)||{};if(f()(n).length){var i,a;t(g()({jobId:e.jobId,thumbnail:p()(i="".concat(M,"/")).call(i,n.thumbnail),poster:p()(a="".concat(N,"/")).call(a,n.thumbnail)},n))}else{var l=new XMLHttpRequest;D[e.jobId]=l,r=c()(s()(o).call(o,null,l),1500)}}),i.addEventListener("error",function(e){n(e)}),i.send()}(new XMLHttpRequest)})},resizeImage:function(e){return e.opts.isLogo?function(e){return new m.a(function(t,n){var r,o,a=T("IMAGES_URI"),s=new Image;s.src=p()(r=p()(o="".concat(a)).call(o,"/f:png/")).call(r,e.key),s.onload=function(n){var r,o,s,l,c,u,f=n.target.width,d=n.target.height,h=function(e){var t={square:{width:150,height:150},average:{width:280,height:140},wide:{width:440,height:80},tall:{width:140,height:200}};return e<.8?t.tall:e>=.8&&e<=1.2?t.square:e>1.2&&e<=3.5?t.average:t.wide}(f/d),m=Math.min(h.width/f,h.height/d),v=p()(r=p()(o=p()(s=p()(l=p()(c=p()(u="".concat(a)).call(u,"/f:png,w:")).call(c,Math.ceil(f*m))).call(l,",h:")).call(s,Math.ceil(d*m))).call(o,"/")).call(r,e.key),g=Math.ceil(f*m/2),y=Math.ceil(d*m/2);return t(i()({},e,{url:v,width:g,height:y}))},s.onerror=function(e){return n(e)}})}(e):(t=e.key,Object(k.b)({method:"POST",url:"".concat(C,"/crush"),json:!0,withCredentials:!0,data:{courseId:I,original:t}}).then(w()("body"))).then(F(e));var t},buildExport:function(){var e=!1;function t(t){return new m.a(function(n,r){!function o(){Object(k.b)({method:"GET",url:t.url,json:!0,jwt:!0}).then(R).then(function(t){return e?m.a.reject(new Error("cancelled")):t}).then(function(e){if(e.error)return console.error(e.error),r(e.error);e.reviewId||e.location?n(e):c()(o,2e3)}).catch(r)}()})}return{promise:function(e){var n,r,o,a=T("RISE_FRONTEND_BUNDLE_SHA"),s=i()({},a&&{sha:a}),l=p()(n="".concat(C,"/build_pdf/")).call(n,I);return"raw"===e.exportType&&(e.target="raw"),"pdf"!==e.exportType&&(s.format=e.format,l=p()(r=p()(o="".concat(C,"/build/")).call(o,I,"/")).call(r,e.target),e.existingItemId&&(s.existingItemId=e.existingItemId),e.quizId&&(s.quizId=e.quizId),e.storylineId&&(s.storylineId=e.storylineId),void 0!==e.completionPercentage&&(s.completionPercentage=e.completionPercentage),void 0!==e.identifier&&(s.identifier=e.identifier),e.title&&(s.title=e.title),e.emailNotificationType&&(s.emailNotificationType=e.emailNotificationType),e.reporting&&(s.reporting=e.reporting),e.enableExitCourse&&(s.enableExitCourse=e.enableExitCourse)),Object(k.b)({method:"GET",url:l,json:!0,withCredentials:!0,data:s}).then(R).then(t)},cancel:function(){e=!0}}},fetchPresignedExport:function(e){var t,n;return Object(k.b)({method:"GET",json:!0,url:p()(t=p()(n="".concat(C,"/presigned/")).call(n,I,"/")).call(t,e),withCredentials:!0}).then(R)},exportLabelSetUrl:function(e){var t;return p()(t="".concat(C,"/export_label_set/")).call(t,e)},fetchFeaturedStockPhotos:function(e){return Object(k.b)({method:"GET",url:"".concat(C,"/featured_stock"),json:!0,withCredentials:!0,data:{page:e||1}}).then(R)},searchStockPhotos:function(e,t){return Object(k.b)({method:"GET",url:"".concat(C,"/search_stock"),json:!0,withCredentials:!0,data:{page:t||1,query:encodeURI(e)}}).then(R)},selectStockPhoto:function(e){return Object(k.b)({method:"GET",url:"".concat(C,"/select_stock_photo"),json:!0,withCredentials:!0,data:{courseId:e.courseId,url:e.url}}).then(w()("body")).then(function(e){var t,n,r=e.key||e.Key;return{key:r,thumbnail:p()(t="".concat(j,"/")).call(t,r),src:p()(n="".concat(A,"/")).call(n,r),type:"image"}}).then(x()(function(){return(t=e.downloadPingbackUrl)&&Object(k.b)({method:"GET",url:t,headers:{"Content-Type":"application/json","X-Articulate-Client":"rise-frontend"},jwt:!0});var t}))},getLockProfile:function(){return L},reviewItemUrl:function(e){var t;return p()(t="".concat(T("THREESIXTY_FRONTEND_URI"),"/review/content/")).call(t,e,"/review")},copyReviewItem:function(e){var t=Object(k.b)({method:"POST",url:"".concat(C,"/copy_review_item"),data:e,json:!0,withCredentials:!0});return D[e.jobId]=t,t.then(w()("body"))},courseAuthorUrl:function(e){return window.location.href="/author/"+e}};t.a=B},function(e,t,n){var r=n(52),o=n(271);e.exports=r(function(e){return o(function(){return Array.prototype.slice.call(arguments,0)},e)})},function(e,t,n){"use strict";t.a={FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"}},function(e,t,n){e.exports=n(2039)()},function(e,t){e.exports={}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(120),o=n(296),i=n(670);e.exports=r(function(e,t){if(!o(e)||!o(t))throw new TypeError("assign: Objects required for both arguments");return i.assign(e,t)})},function(e,t,n){var r=n(107),o=n(774),i=n(93),a=n(232),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(505)("wks"),o=n(642),i=n(128).Symbol,a=n(812);e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(435),o=n(94);function i(e,t){return o(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){var n=r(arguments),a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(i,t);return o(s)?e(s):s}}},function(e,t,n){var r=n(62),o=n(20),i=n(47);e.exports=r(function(e,t,n){return i(e,o(t),n)})},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return $}),n.d(t,"d",function(){return Y}),n.d(t,"e",function(){return K}),n.d(t,"c",function(){return V});var r=n(242),o=n.n(r),i=n(20),a=n.n(i),s=n(130),l=n.n(s),c=n(5),u=n.n(c),f=n(89),d=n.n(f),p=n(57),h=n.n(p),m=n(728),v=n.n(m),g=n(37),y=n.n(g),b=n(97),_=n.n(b),w=n(28),E=n.n(w),x=n(90),k=n.n(x),S=n(67),T=n.n(S),C=n(282),O=n.n(C),j=n(14),A=n.n(j),N=n(87),M=n.n(N),I=n(18),L=n.n(I),P=n(12),D=n.n(P),R=n(570),F=n.n(R),B=n(277),U=n.n(B),q=h()(3,function(e,t,n){return n[e]==t}),z=d()(function(e,t,n){return o()(e,n,t)}),H=function(e){return-1===e},W=h()(3,function(e,t,n){return L()(_()(q("id",t)),k()(H,a()(n),z(e,n)))(n)}),$=function(e){return y()(l()(q("id",e)))},Y=h()(3,function(e,t,n){return O()(t,n[e],F()(e,1,n))}),K=h()(3,function(e,t,n){return W(E()(A.a)(t),e,n)}),V=U()(v()(D()("createdAt"))),G=u()(M.a,T.a);y()(G)},function(e,t,n){"use strict";(function(e){n.d(t,"v",function(){return Ee}),n.d(t,"o",function(){return xe}),n.d(t,"m",function(){return ke}),n.d(t,"l",function(){return Se}),n.d(t,"n",function(){return Te}),n.d(t,"k",function(){return Ce}),n.d(t,"s",function(){return Oe}),n.d(t,"j",function(){return je}),n.d(t,"a",function(){return Ae}),n.d(t,"u",function(){return Ne}),n.d(t,"d",function(){return Me}),n.d(t,"h",function(){return Ie}),n.d(t,"p",function(){return Le}),n.d(t,"q",function(){return De}),n.d(t,"g",function(){return Re}),n.d(t,"t",function(){return Be}),n.d(t,"b",function(){return Ue}),n.d(t,"f",function(){return ze}),n.d(t,"i",function(){return He}),n.d(t,"c",function(){return We}),n.d(t,"e",function(){return $e}),n.d(t,"r",function(){return Ge});var r=n(17),o=n.n(r),i=n(6),a=n(4),s=n.n(a),l=n(156),c=n(32),u=n(103),f=n.n(u),d=n(34),p=n.n(d),h=n(9),m=n(7),v=n(10),g=n(8),y=n(11),b=(n(2306),n(287)),_=n(151),w=n.n(_),E=n(216),x=n.n(E),k=n(309),S=n.n(k),T=n(2),C=n.n(T),O=n(130),j=n.n(O),A=n(5),N=n.n(A),M=n(26),I=n.n(M),L=n(37),P=n.n(L),D=n(36),R=n.n(D),F=n(38),B=n.n(F),U=n(27),q=n.n(U),z=n(14),H=n.n(z),W=n(189),$=n.n(W),Y=n(70),K=n.n(Y),V=n(25),G=n.n(V),X=n(16),Z=n.n(X),Q=n(51),J=n.n(Q),ee=n(742),te=n.n(ee),ne=n(31),re=n.n(ne),oe=n(1),ie=n(1250),ae=n(602),se=n.n(ae),le=n(44),ce=n(1251),ue=n(77),fe=n(24),de=n(56),pe=n(81),he=n(608),me=n(42),ve=n(173),ge=n(350),ye=n(1252),be=Object(ve.a)("modernOverview"),_e=te()(q()(N()(K()(x.a,!be),I()("brand--"))),H.a,{}),we=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return C()(e,_e(n))},Ee=function(t){function n(){return Object(h.a)(this,n),Object(v.a)(this,Object(g.a)(n).apply(this,arguments))}return Object(y.a)(n,t),Object(m.a)(n,[{key:"render",value:function(){var t=C()("overview",{"overview--modern":be});return e.createElement("div",{className:t,"data-overview":!0,id:"overview"},this.props.children)}},{key:"animate",value:function(e){var t=this,n=this.props.sidebarOpen,r=document.querySelector("[data-overview]"),o=document.querySelector("[data-overview-side]"),i=document.querySelector("[data-overview-side-panel]"),a=document.querySelector("[data-overview-side-panel-content]"),s=n?document.querySelector("[data-lesson-side] [data-overview-sidebar-header-wrap]"):{offsetWidth:0,offsetHeight:0},l={width:e?s.offsetWidth:o.offsetWidth,height:e?s.offsetHeight:o.offsetHeight},c={width:e?o.offsetWidth:s.offsetWidth,height:e?o.offsetHeight:s.offsetHeight};return a.style.width="".concat(s.offsetWidth,"px"),i.style.width="".concat(l.width,"px"),i.style.height="".concat(l.height,"px"),r.classList.add(e?"overview--will-enter":"overview--will-exit"),p()(function(){r.classList.add(e?"overview--will-enter-active":"overview--will-exit-active"),(e&&window.innerWidth<960||window.innerWidth>=960)&&(i.style.width="".concat(c.width,"px"),i.style.height="".concat(c.height,"px"))},10),new f.a(function(n){r.addEventListener("transitionend",t.sidePanelTransitionEndRef=function(o){var a=o.target;(e&&a.hasAttribute("data-overview-content")||!e&&a.hasAttribute("data-overview-side-panel-content")||!e&&a.hasAttribute("data-overview")&&window.innerWidth<960)&&(r.removeEventListener("transitionend",t.sidePanelTransitionEndRef),i.style.width=i.style.height="",r.classList.remove("overview--will-enter","overview--will-enter-active","overview--will-exit","overview--will-exit-active"),n())})})}}]),n}(e.Component),xe=function(t){function n(e){var t;return Object(h.a)(this,n),(t=Object(v.a)(this,Object(g.a)(n).call(this,e))).state={coverImageLoaded:!1},t}return Object(y.a)(n,t),Object(m.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.coverImage.media,n=(void 0===t?{}:t).image,r=void 0===n?{}:n,o=r.key,i=r.src,a=o?Object(ue.c)({key:o,src:i}):i;(o||i)&&(this.image=new Image,this.image.src=a,this.image.addEventListener("load",this.imageLoadRef=function(){e.setState({coverImageLoaded:!0})}))}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.removeEventListener("load",this.imageLoadRef),this.image=null)}},{key:"render",value:function(){var t=this.props.coverImage,n=t.media,r=void 0===n?{}:n,o=t.alpha,i=r.image,a=void 0===i?{}:i,s=a.key,l=a.src,c=e.Children.toArray(this.props.children),u=s?{backgroundImage:"url('".concat(Object(ue.c)({key:s,src:l}),"')")}:null,f=C()("overview__side-panel",{"brand--background":!s});return e.createElement("div",{className:"overview__side","data-overview-side":!0},e.createElement("div",{className:f,"data-overview-side-panel":!0,style:u},this.state.coverImageLoaded?e.createElement(he.a,{alpha:o}):null,e.createElement("div",{className:"overview__side-panel-content","data-overview-side-panel-content":!0},P()(Z()("type",ge.a),c))),e.createElement("div",{className:"overview__side-content","data-overview-content":!0},e.createElement("div",{className:"overview__side-container"},P()(j()(Z.a)("type",ge.a),c))))}}]),n}(e.Component),ke=function(t){var n=t.children;return e.createElement("div",{className:"overview__main",id:"overview-main",tabIndex:"-1"},e.createElement("div",{className:"overview__content"},e.createElement("div",{className:"overview__container"},n)))},Se=function(t){return e.createElement("div",Object(c.a)({},t,{className:"overview__columns"}))},Te=function(t){return e.createElement("div",Object(c.a)({},t,{className:"overview__main-col"}))},Ce=Object(ce.a)("modernOverview")(function(t){return e.createElement("aside",Object(c.a)({},t,{className:"overview__aside"}))}),Oe=function(t){var n=be?"overview__section-header":"srOnly";return e.createElement("header",Object(c.a)({},t,{className:n}))},je=function(t){var n=t.children,r=Object(l.a)(t,["children"]),o=be?we("overview__heading","ui"):null;return e.createElement("h2",Object(c.a)({},r,{className:o}),n)},Ae=function(t){var n=t.avatar,r=t.authorName;return n&&r?e.createElement("div",{className:we("overview__author","ui")},e.createElement("div",{className:"overview__author-image",style:{backgroundImage:"url(".concat(Object(pe.l)(n),")")}}),e.createElement("p",null,e.createElement("span",{className:"srOnly"},"By"),r)):null},Ne=function(t){var n=t.children;return e.createElement("div",{className:"overview__title-wrap"},e.createElement(me.a,{className:we("overview__title","head"),tagName:"h1",value:n}))},Me=function(t){var n=t.children,r=t.coverImage,o=t.startAgain,i=Object(l.a)(t,["children","coverImage","startAgain"]),a=r.media,s=(void 0===a?{}:a).image,u=(void 0===s?{}:s).key,f=C()("overview__button",{"brand--color":!u,"brand--ui":!be,"overview__outline-btn":o,"overview__start-again":o});return e.createElement(b.a,Object(c.a)({className:f},i),n)},Ie=function(t){var n=t.text;return e.createElement(w.a.Link,{className:"overview__details-trigger",containerId:"overview",duration:1e3,href:"#overview-main",smooth:!0,to:"overview-main"},e.createElement("span",{className:we("overview__details-trigger-text","ui")},n),e.createElement(le.f,null))},Le=function(t){var n=t.src,r=t.width,o=t.height;return n?e.createElement("div",{className:"overview__logo"},e.createElement("img",{src:n,width:r,height:o,alt:"Logo"})):null},Pe=function(e){return"<p><br></p>"===e?"":e},De=function(t){var n=t.publishedAt,r=$()(n);return r.isValid()&&e.createElement("span",{className:"overview__description-published"},r.format("[Published] MMMM D, YYYY"))},Re=function(t){var n=t.text,r=t.publishedAt;return Pe(n)?e.createElement(oe.Fragment,null,e.createElement(Oe,null,e.createElement(je,null,"Description"),de.d&&e.createElement(De,{publishedAt:r})),e.createElement(me.a,{key:"text",value:Pe(n),className:we("overview__description brand--linkColor","body")})):null},Fe=function(e,t){return 1===e?t:s()(t).call(t,"s")},Be=function(t){var n=t.numLessons,r=t.timeToComplete,o=r>=36e5?$.a.duration(r).asHours():$.a.duration(r).asMinutes();return e.createElement("ul",{className:"overview__stat"},e.createElement("li",{className:"overview__stat-value-wrap"},e.createElement("span",{className:"overview__stat-value"},n),"  Lessons"),de.d&&e.createElement("li",{className:"overview__stat-value-wrap"},e.createElement("span",{className:"overview__stat-value"},o)," ",Fe(o,r>=36e5?"Hour":"Minute")))},Ue=function(t){var n=t.avatar,r=t.authorName,o=t.authorTitle;return n&&r?e.createElement("div",{className:we("overview__author-card","ui")},e.createElement("img",{className:"overview__author-card-image",src:Object(pe.l)(n),alt:""}),e.createElement("span",{className:"overview__author-card-wrap"},e.createElement("span",{className:"overview__author-card-name"},r),o&&e.createElement("span",{className:"overview__author-card-title"},o))):null},qe=function(t){var n=t.component;return e.createElement("span",{className:"overview__requirements-icon"},e.createElement(n,{className:"overview__requirements-icon-svg"}))},ze=function(t){var n,r=t.numLessons,o=t.lessons,i=void 0===o?[]:o,a=t.trackingCompletionPercentage,l=t.trackingQuizId,c=!B()(a),u=!!l,f=Math.ceil(a/100*r),d=R()(S()(Z()("type","quiz"),Z()("id",l)),i),p=J()(void 0,"title",d),h=G()(["settings","passingScore"],d);return c||u?e.createElement("section",{className:"overview__requirements"},e.createElement("h1",{className:"overview__requirements-header"},"Course requirements"),e.createElement("ul",{className:"overview__requirements-list"},c&&!isNaN(f)&&e.createElement("li",{className:"overview__requirements-list-item"},Object(pe.g)()?e.createElement("span",{className:"overview__requirements-icon"},e.createElement(le.e,null)):e.createElement(qe,{component:le.A}),"Complete",f===r?" all ":s()(n=" ".concat(f," of ")).call(n,r," "),"lessons in this course"),u&&p&&e.createElement("li",{className:"overview__requirements-list-item"},Object(pe.g)()?e.createElement("span",{className:"overview__requirements-icon"},e.createElement(le.e,null)):e.createElement(qe,{component:le.s}),p," ",!B()(h)&&e.createElement("span",{className:"overview__requirements-passing-score"}," Score of ",h,"% or higher")))):null},He=function(t){var n,r=t.dueAt,o=function(e){return $()(e).isSameOrBefore($()().add(3,"d"),"days")}(r),a=C()("overview__due-date","brand--border",(n={},Object(i.a)(n,"brand--color",!o),Object(i.a)(n,"overview__due-date--urgent brand--background",o),n));return r?e.createElement("div",{className:a},function(e){var t=$()(e),n=$()();return t.isBefore(n)?"Overdue by ".concat(n.to(t,!0)):t.isSame(n,"day")?"Due in ".concat(n.to(t,!0)):"Due ".concat(t.format("MMM D"))}(r)):null},We=function(t){return e.createElement("div",Object(c.a)({},t,{className:"overview__author-requirements-wrap"}))},$e=function(t){var n=t.categories,r=void 0===n?[]:n;return 0===r.length?null:e.createElement("ul",{className:"overview__categories-list"},o()(r).call(r,function(t,n){return e.createElement("li",{className:"overview__categories-list-item",key:n},e.createElement("span",{className:"overview__categories-icon"},e.createElement(le.c,null)),t)}))},Ye=function(t){var n=t.enrolled,r=t.enrollmentType,o=t.onClick,i=t.onUnenroll,a=t.percentComplete;return e.createElement(oe.Fragment,null,n&&"self"===r&&!a&&e.createElement("span",{role:"button",tabIndex:"0",className:"overview__enroll-button",onClick:i,onKeyDown:re()(fe.d,i)},e.createElement(le.d,{width:16,height:12,className:"overview__enroll-check"}),"Saved to My Learning"),!n&&e.createElement("span",{role:"button",tabIndex:"0",className:"overview__enroll-button",onClick:o,onKeyDown:re()(fe.d,o)},"Save to My Learning"))},Ke="".concat(Object(de.b)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/trophy.svg"),Ve=se()("(max-width: 500px)","smallAvatar")(function(t){var n=t.currentUser,r=t.smallAvatar;return e.createElement("div",{className:"overview__completion-wrap"},e.createElement("div",{className:"overview__completion-avatar"},e.createElement(ie.a,Object(c.a)({},n,{size:r?40:60})),e.createElement("img",{className:"overview__trophy",src:Ke,alt:"trophy"})),e.createElement("div",{className:"overview__completed"},"Completed"),e.createElement(ye.a,null))}),Ge=function(t){var n=t.courseBtnText,r=t.coverImage,o=t.currentUser,i=t.enrolled,a=t.enrollmentType,s=t.handleEnrollClick,l=t.handleUnenrollClick,c=t.nextLessonId,u=t.nextLessonText,f=t.percentComplete,d=t.startAgain;return e.createElement("div",{className:C()("overview__continueWrapper",{"overview__start-again-wrapper":d&&i})},i&&e.createElement(Me,{to:"/lessons/".concat(c),coverImage:r,startAgain:d},e.createElement("span",{className:"overview__continueBtn"},n),!!f&&!d&&e.createElement(le.b,{className:"overview__continueIcon"})),!!f&&i&&!d&&e.createElement("span",{className:"overview__nextLessonText"},u),d&&i&&e.createElement(Ve,{currentUser:o}),de.d&&"preview"!==window.viewType&&e.createElement(Ye,{enrolled:i,enrollmentType:a,onClick:s,onUnenroll:l,percentComplete:f}))}}).call(this,n(1))},function(e,t,n){"use strict";t.__esModule=!0,t.$$=t.$=void 0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=((r=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]).raw=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],r);t.isEl=h,t.getEl=function(e){0===e.indexOf("#")&&(e=e.slice(1));return a.default.getElementById(e)},t.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(c.default.warn((0,u.default)(i,e,n)),r.setAttribute(e,n)):r[e]=n}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),r},t.textContent=function(e,t){void 0===e.textContent?e.innerText=t:e.textContent=t},t.insertElFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},t.getElData=function(e){var t=e[g];t||(t=e[g]=l.newGUID());v[t]||(v[t]={});return v[t]},t.hasElData=function(e){var t=e[g];if(!t)return!1;return!!Object.getOwnPropertyNames(v[t]).length},t.removeElData=function(e){var t=e[g];if(!t)return;delete v[t];try{delete e[g]}catch(t){e.removeAttribute?e.removeAttribute(g):e[g]=null}},t.hasElClass=y,t.addElClass=b,t.removeElClass=_,t.toggleElClass=function(e,t,n){var r=y(e,t);"function"==typeof n&&(n=n(e,t));"boolean"!=typeof n&&(n=!r);if(n===r)return;n?b(e,t):_(e,t);return e},t.setElAttributes=function(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})},t.getElAttributes=function(e){var t={},n=",autoplay,controls,loop,muted,default,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,o=r.length-1;o>=0;o--){var i=r[o].name,a=r[o].value;"boolean"!=typeof e[i]&&-1===n.indexOf(","+i+",")||(a=null!==a),t[i]=a}return t},t.blockTextSelection=function(){a.default.body.focus(),a.default.onselectstart=function(){return!1}},t.unblockTextSelection=function(){a.default.onselectstart=function(){return!0}},t.findElPosition=w,t.getPointerPosition=function(e,t){var n={},r=w(e),o=e.offsetWidth,i=e.offsetHeight,a=r.top,s=r.left,l=t.pageY,c=t.pageX;t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(a-l+i)/i)),n.x=Math.max(0,Math.min(1,(c-s)/o)),n},t.isTextNode=E,t.emptyEl=x,t.normalizeContent=k,t.appendContent=S,t.insertContent=function(e,t){return S(x(e),t)};var a=f(n(129)),s=f(n(141)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(375)),c=f(n(184)),u=f(n(937));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return"string"==typeof e&&/\S/.test(e)}function p(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function h(e){return!!e&&"object"===(void 0===e?"undefined":o(e))&&1===e.nodeType}function m(e){return function(t,n){if(!d(t))return a.default[e](null);d(n)&&(n=a.default.querySelector(n));var r=h(n)?n:a.default;return r[e]&&r[e](t)}}var v={},g="vdata"+(new Date).getTime();function y(e,t){return p(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function b(e,t){return e.classList?e.classList.add(t):y(e,t)||(e.className=(e.className+" "+t).trim()),e}function _(e,t){return e.classList?e.classList.remove(t):(p(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function w(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=a.default.documentElement,r=a.default.body,o=n.clientLeft||r.clientLeft||0,i=s.default.pageXOffset||r.scrollLeft,l=t.left+i-o,c=n.clientTop||r.clientTop||0,u=s.default.pageYOffset||r.scrollTop,f=t.top+u-c;return{left:Math.round(l),top:Math.round(f)}}function E(e){return!!e&&"object"===(void 0===e?"undefined":o(e))&&3===e.nodeType}function x(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function k(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),h(e)||E(e)?e:"string"==typeof e&&/\S/.test(e)?a.default.createTextNode(e):void 0}).filter(function(e){return e})}function S(e,t){return k(t).forEach(function(t){return e.appendChild(t)}),e}t.$=m("querySelector"),t.$$=m("querySelectorAll")},function(e,t,n){"use strict";var r=n(582),o=n(581),i=n.n(o);var a=n(583);function s(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,l=i()(e);!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||Object(a.a)()}n.d(t,"a",function(){return s})},function(e,t,n){var r=n(21),o=n(530),i=n(532),a=n(378);e.exports=r(function(e,t){return o(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:i(a)(e,t)})},function(e,t,n){var r=n(213),o=n(869);e.exports=o(r)},function(e,t){e.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(e,t,n){(function(t){var r=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(1944);if("undefined"!=typeof document)e.exports=document;else{var i=r["__GLOBAL_DOCUMENT_CACHE@4"];i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=i}}).call(this,n(71))},function(e,t,n){var r=n(532),o=n(87);e.exports=r(o)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(94);e.exports=function(e){if(!o(e))throw new TypeError("curry: Function required");return r(e)}},function(e,t,n){t.action=n(876),t.also=n(1613),t.error=n(1614),t.handle=n(1615),t.logError=n(1616),t.onSuccess=n(1617),t.sideEffect=n(1618)},function(e,t,n){e.exports=n(1469)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(192);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(116);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){var r=n(295),o=n(665);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),a=i.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,i);s+=1}if(o(a))return t.apply(null,i)(a)}return n.apply(this,arguments)}}},function(e,t,n){var r=n(268);e.exports=r(-1)},function(e,t,n){var r=n(2035),o=n(183),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return!1===n?a=!1:o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:+t,trailing:s})}},function(e,t,n){"use strict";n.d(t,"a",function(){return j}),n.d(t,"b",function(){return A});var r=n(3),o=n.n(r),i=n(103),a=n.n(i),s=n(1142),l=n.n(s),c=n(170),u=n.n(c),f=n(274),d=n.n(f),p=n(483),h=n.n(p),m=n(1143),v=n.n(m),g=n(275),y=n.n(g),b=n(468),_=n.n(b),w=n(1144),E=n.n(w),x=n(342),k=n.n(x),S=n(56);function T(e,t){return void 0===t?e:t}var C=y()(E()(function(e,t){var n,r,o=t.split("=");return v()(h()(n=o[0]).call(n),h()(r=o[1]).call(r),e)},{}),k()(/; */));function O(e,t){var n,r,o=d()(t).call(t,":"),i=h()(n=t.substr(0,o)).call(n).toLowerCase(),a=h()(r=t.substr(o+1)).call(r);return i&&(e[i]=e[i]?e[i]+", "+a:a),e}function j(e){return Math.floor(e.loaded/e.total*100)}function A(e){var t,n=e.data,r=T(_.a,e.deserialize),i=T({},e.headers),s=T(!1,e.json),c=T(!1,e.jwt),f=T(null,e.token),d=T("GET",e.method),p=e.onUploadProgress,h=T(_.a,e.serialize),m=e.url,v=T(!1,e.withCredentials),g=new XMLHttpRequest;if(g.withCredentials=v,s&&(r=JSON.parse,h=l.a,i["Content-Type"]="application/json"),c){var y=Object(S.b)("SESSION_COOKIE_NAME"),b=f||C(document.cookie)[y];i.Authorization="Bearer "+b}"GET"===d&&n&&(m+="?"+function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}(n));var w=new a.a(function(e,t){for(var o in g.addEventListener("abort",t),g.addEventListener("error",t),g.addEventListener("load",function(){var n,o;g.status>=400?t(r(g.response)):e({body:r(g.response),headers:(n=g.getAllResponseHeaders(),n?u()(o=n.split("\n")).call(o,O,{}):{}),status:g.status})}),g.upload&&"function"==typeof p&&g.upload.addEventListener("progress",p),g.open(d,m),i)g.setRequestHeader(o,i[o]);"GET"!==d&&n?g.send(h(n)):g.send()});return w.abort=o()(t=g.abort).call(t,g),w}},function(e,t,n){(function(t){"undefined"!=typeof window?e.exports=window:void 0!==t?e.exports=t:"undefined"!=typeof self?e.exports=self:e.exports={}}).call(this,n(71))},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e(t),t})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e(n)?n:t(n)})},function(e,t,n){e.exports=n(1669)},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return g});var r,o=n(6),i=n(319),a=n.n(i),s=n(20),l=n.n(s),c=n(26),u=n.n(c),f=n(14),d=n.n(f),p=n(13),h=u()("rise/notification/"),m=h("CLEAR"),v=h("NOTIFY");t.a=Object(p.f)(null,(r={},Object(o.a)(r,m,l()(null)),Object(o.a)(r,v,function(e,t){return d()(t,{key:"notify-".concat(a()())})}),r));l()(Object(p.a)(m,null));var g=Object(p.a)(v)},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){var r=n(213),o=n(52),i=n(57);e.exports=o(function(e){return i(e.length,function(){var t=0,n=arguments[0],o=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,r(arguments,[t,o]));return t+=1,e},e.apply(this,i)})})},function(e,t,n){var r=n(305);e.exports=r(-1)},function(e,t,n){"use strict";n.d(t,"b",function(){return b}),n.d(t,"d",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"a",function(){return E});var r=n(754),o=n.n(r),i=n(594),a=n.n(i),s=n(1185),l=n.n(s),c=n(755),u=n.n(c),f=n(1186),d=n.n(f),p=n(756),h=n.n(p),m=n(1187),v=n.n(m),g=n(31),y=n.n(g),b=h()(u.a),_=y()(u.a,function(){return{}}),w=h()(l.a),E=a()(o()(w),o()(d.a));v()(E)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Helpers=t.ScrollElement=t.ScrollLink=t.animateScroll=t.scrollSpy=t.Events=t.scroller=t.Element=t.Button=t.Link=void 0;var r=p(n(1708)),o=p(n(1713)),i=p(n(1714)),a=p(n(533)),s=p(n(680)),l=p(n(678)),c=p(n(884)),u=p(n(677)),f=p(n(886)),d=p(n(1715));function p(e){return e&&e.__esModule?e:{default:e}}t.Link=r.default,t.Button=o.default,t.Element=i.default,t.scroller=a.default,t.Events=s.default,t.scrollSpy=l.default,t.animateScroll=c.default,t.ScrollLink=u.default,t.ScrollElement=f.default,t.Helpers=d.default,t.default={Link:r.default,Button:o.default,Element:i.default,scroller:a.default,Events:s.default,scrollSpy:l.default,animateScroll:c.default,ScrollLink:u.default,ScrollElement:f.default,Helpers:d.default}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(116),o=n(197),i=n(675),a=n(293).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";t.__esModule=!0,t.BACKGROUND_SIZE_SUPPORTED=t.TOUCH_ENABLED=t.IE_VERSION=t.IS_IE8=t.IS_CHROME=t.IS_EDGE=t.IS_FIREFOX=t.IS_NATIVE_ANDROID=t.IS_OLD_ANDROID=t.ANDROID_VERSION=t.IS_ANDROID=t.IOS_VERSION=t.IS_IOS=t.IS_IPOD=t.IS_IPHONE=t.IS_IPAD=void 0;var r=i(n(129)),o=i(n(141));function i(e){return e&&e.__esModule?e:{default:e}}var a,s,l=o.default.navigator&&o.default.navigator.userAgent||"",c=/AppleWebKit\/([\d.]+)/i.exec(l),u=c?parseFloat(c.pop()):null,f=t.IS_IPAD=/iPad/i.test(l),d=t.IS_IPHONE=/iPhone/i.test(l)&&!f,p=t.IS_IPOD=/iPod/i.test(l),h=(t.IS_IOS=d||f||p,t.IOS_VERSION=(a=l.match(/OS (\d+)_/i))&&a[1]?a[1]:null,t.IS_ANDROID=/Android/i.test(l)),m=t.ANDROID_VERSION=function(){var e=l.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),v=(t.IS_OLD_ANDROID=h&&/webkit/i.test(l)&&m<2.3,t.IS_NATIVE_ANDROID=h&&m<5&&u<537,t.IS_FIREFOX=/Firefox/i.test(l),t.IS_EDGE=/Edge/i.test(l));t.IS_CHROME=!v&&/Chrome/i.test(l),t.IS_IE8=/MSIE\s8\.0/.test(l),t.IE_VERSION=(s=/MSIE\s(\d+)\.\d/.exec(l))&&parseFloat(s[1]),t.TOUCH_ENABLED=!!("ontouchstart"in o.default||o.default.DocumentTouch&&r.default instanceof o.default.DocumentTouch),t.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in r.default.createElement("video").style},function(e,t,n){var r=n(62),o=n(168),i=n(295),a=n(674),s=n(19),l=n(38);e.exports=r(function e(t,n,r){if(0===t.length)return n;var c=t[0];if(t.length>1){var u=!l(r)&&o(c,r)?r[c]:a(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,u)}if(a(c)&&i(r)){var f=[].concat(r);return f[c]=n,f}return s(c,n,r)})},function(e,t,n){"use strict";var r=n(274),o=n.n(r),i=n(396),a=n.n(i),s=n(219),l=n.n(s);function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=l()(e);for(r=0;r<a.length;r++)n=a[r],o()(t).call(t,n)>=0||(i[n]=e[n]);return i}(e,t);if(a.a){var s=a()(e);for(r=0;r<s.length;r++)n=s[r],o()(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",function(){return c})},function(e,t,n){e.exports=n(2097)()},function(e,t,n){var r=n(118),o=n(323);e.exports=n(107)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=n(1583)},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var r=n(222),o=n.n(r),i=n(588),a=n.n(i),s=n(221),l=n.n(s),c=n(4),u=n.n(c),f=n(396),d=n.n(f),p=n(219),h=n.n(p),m=n(6);function v(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{},i=h()(r);if("function"==typeof d.a)i=u()(i).call(i,l()(n=d()(r)).call(n,function(e){return a()(r,e).enumerable}));o()(i).call(i,function(t){Object(m.a)(e,t,r[t])})}return e}},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return h}),n.d(t,"g",function(){return m});n(144);var r=n(1154),o=n.n(r),i=n(402),a=n.n(i),s=n(56),l=function(){return o.a.load(Object(s.b)("SESSION_COOKIE_NAME"))},c=function(){return l()&&a()(l()).subscription||{}},u=function(){return l()?a()(l()).sub:""},f=function(){return l()?a()(l()).roles:[]},d=function(){return c().plan_id||""},p=function(){return c().status||""},h=function(){return l()?a()(l()).tenantId:""},m=function(){return!!l()&&a()(l()).staff}},function(e,t,n){"use strict";t.a={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"}},function(e,t,n){"use strict";var r,o=n(17),i=n.n(o),a=n(160),s=n.n(a),l=n(221),c=n.n(l),u=n(170),f=n.n(u),d=n(6),p=n(20),h=n.n(p),m=n(117),v=n.n(m),g=n(19),y=n.n(g),b=n(155),_=n.n(b),w=n(246),E=n.n(w),x=(n(726),n(5)),k=n.n(x),S=n(26),T=n.n(S),C=n(110),O=n.n(C),j=n(30),A=n.n(j),N=n(90),M=n.n(N),I=n(113),L=n.n(I),P=n(27),D=n.n(P),R=n(14),F=n.n(R),B=n(70),U=n.n(B),q=n(25),z=n.n(q),H=n(49),W=n.n(H),$=n(18),Y=n.n($),K=n(12),V=n.n(K),G=n(51),X=n.n(G),Z=n(206),Q=n.n(Z),J=n(142),ee=n.n(J),te=(n(31),n(132)),ne=n(589),re=n(400),oe=n(4),ie=n.n(oe),ae=n(191),se=n.n(ae),le=n(271),ce=n.n(le),ue=n(126),fe=n.n(ue),de=n(16),pe=n.n(de),he=n(143),me=n.n(he),ve=me()(V()("courseId"),se()("courseId",z()(["course","id"]))),ge=me()(V()("lessonId"),se()("lessonId",z()(["lesson","id"]))),ye=k()(function(e){var t,n=e.courseId,r=e.lessonId,o=e.refs;return o?ie()(t="".concat(r,"-")).call(t,o):r||n},ge,ve),be=(Y()(me()(V()("id"),se()("id",ye)),fe()(ce()(V.a,[V()("id"),V()("uploads")]),W()(["id"])),se()("isUploading",pe()("status","uploading"))),n(45)),_e=n(355);n.d(t,"a",function(){return Re}),n.d(t,"f",function(){return Fe}),n.d(t,"h",function(){return Be}),n.d(t,"c",function(){return Ue}),n.d(t,"d",function(){return qe}),n.d(t,"e",function(){return ze}),n.d(t,"g",function(){return He});var we=T()("rise/uploads/"),Ee=we("CANCEL_UPLOAD"),xe=we("CLEAR_UPLOAD"),ke=we("CRUSH_IMAGE"),Se=we("END_UPLOAD"),Te=we("ERROR_UPLOAD"),Ce=we("GET_YURL"),Oe=we("PROCESSING"),je=we("REPLAY_UPLOADS"),Ae=we("SELECT_STOCK_PHOTO"),Ne=we("START_UPLOAD"),Me=we("TRANSCODE_ASSET"),Ie=we("UPDATE_UPLOAD"),Le={progress:0,status:"uploading"},Pe=function(e,t){var n=t.jobId,r=t.uploadId;return y()(r,{id:r,jobId:n,status:"processing"},e)},De=(t.b=Object(te.handle)({},(r={},Object(d.a)(r,je,function(e,t){var n;return f()(n=c()(t).call(t,V()("uploadId"))).call(n,Pe,e)}),Object(d.a)(r,Ee,function(e,t){var n=t.id;return A()(Object(d.a)({},n,y()("status","canceled")),e)}),Object(d.a)(r,xe,function(e,t){return O()(t,e)}),Object(d.a)(r,Se,function(e,t){return A()(Object(d.a)({},t.id,k()(v()(t),y()("status","complete"))),e)}),Object(d.a)(r,Te,function(e,t){var n=t.data;return y()(n.id,{data:n,status:"errored"},e)}),Object(d.a)(r,Oe,function(e,t){var n=t.id;return A()(Object(d.a)({},n,y()("status","processing")),e)}),Object(d.a)(r,Ne,function(e,t){var n=t.id;return y()(n,F()(Le,{id:n}),e)}),Object(d.a)(r,Me,Object(te.onSuccess)(function(e,t){var n=t.id,r=t.jobId;return _()([n,"jobId"],r,e)})),Object(d.a)(r,Ie,function(e,t,n){var r=t.id,o=t.data;return n?A()(Object(d.a)({},r,v()({data:o,status:"errored"})),e):A()(Object(d.a)({},r,v()(o)),e)}),r)),function(e){return M()(E.a.isCancel,Y()(Q()("message","id"),Object(te.action)(Ee)),Y()(ee()(console.error),function(e){return function(t){return s()(t,e)}}(e),Object(te.error)(Ie)))}),Re=function(e){var t;return i()(t=be.a.send(ke,e)).call(t,V()("payload"))},Fe=function(e){var t;return i()(t=be.a.send(Ae,e)).call(t,V()("payload"))},Be=function(e){return k()(Object(te.action)(Te),Object(_e.a)(e))},Ue=(Object(te.action)(xe),Object(te.action)(Se)),qe=Object(te.action)(Oe),ze=Object(te.action)(je),He=Object(te.action)(Ne),We=Object(te.action)(Ie),$e=k()(D()(function(e){return e.processFn(e)}),function(e){var t,n,r,o=e.file,i=e.data;return Object(ne.a)({method:"PUT",url:i.url,data:o,cancelToken:z()(["cancelSource","token"],i),headers:{"Content-Type":i.type},onUploadProgress:(t=e,n=t.id,r=t.store,k()(r.dispatch,We,Object(_e.b)(n)))}).bimap(De(e),h()(e))}),Ye=L()([We,$e]),Ke=k()(D()(Ye),function(e){var t,n,r=e.assetPath,o=e.store;return i()(t=i()(n=be.a.send(Ce,{assetPath:r,courseId:z()(["course","id"],o.getState()),filename:Object(re.b)(e)})).call(n,V()("payload"))).call(t,function(e){return Y()(v()({original:Object(re.b)(e),cancelSource:E.a.CancelToken.source()}),v()(X()({},"opts",e)),U()("data"),v()(W()(["file","id","processFn","store","opts"],e)))}(e))});L()([He,Ke])},function(e,t,n){e.exports=n(2086)()},function(e,t,n){var r=n(107),o=n(406),i=n(323),a=n(177),s=n(232),l=n(134),c=n(774),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(290),o=n(489),i=n(135),a=n(104),s=n(411);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var m,v,g=i(t),y=o(g),b=r(s,h,3),_=a(y.length),w=0,E=n?p(t,_):l?p(t,0):void 0;_>w;w++)if((d||w in y)&&(v=b(m=y[w],w,g),e))if(n)E[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:E.push(m)}else if(u)return!1;return f?-1:c||u?u:E}}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return null==t||t!=t?e:t})},function(e,t,n){e.exports=n(1566)},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e>t})},function(e,t,n){var r=n(334),o=n(21),i=n(28),a=n(105);e.exports=o(function(e,t){return a(i(r)(e),t)})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(38),o=n.n(r),i=n(56),a=n(399),s=n(162),l={modernOverview:{name:"Modern Overview",defaults:{rise:!0,360:!1},description:"Enables modern course overview."},scenario:{name:"Scenario Block",defaults:{rise:!0},description:"Enables scenario block"},table:{name:"Table Block",description:"Enables table block support"},bigHeadMode:{name:"Big Head Mode",description:"Enables big head mode, a way to easily test feature flagging."}},c=Object(i.b)("SERVICE_PRODUCT"),u=function(e){return"feature-".concat(e)},f=function(e){var t=l[e];return!!t&&(!(!t.defaults||!t.defaults[c])&&t.defaults[c])},d=function(e){return Object(s.g)()?function(e){if(l[e]){var t=u(e),n=Object(a.a)(t);return o()(n)?f(e):"true"===n}}(e):f(e)}},function(e,t,n){e.exports=n(1903)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(4),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(1938),n(2)),f=n.n(u),d=n(0),p=n.n(d),h=n(243),m=n(386),v=n(248),g=n(387),y=n(77),b=function(e){return e&&e.src&&!e.isProcessing&&!e.error},_=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"renderAudio",value:function(t){var n,r=this.props,i=r.allowTabNavigation,a=r.index,s=r.labels,l=r.lessonNumber,c=t.audio,u=o()(n="audio-".concat(l,"-")).call(n,a);if(b(c))return e.createElement(h.a,{allowTabNavigation:i,id:u,key:u,labels:s,mediaSrc:c.key,shouldPause:c.pause})}},{key:"renderImage",value:function(t){var n=this.props,r=n.allowTabNavigation,o=n.index,i=n.onLoad,a=n.opts,s=t.image,l="image-".concat(o),c=a.disableZoom;if(b(s))return e.createElement(v.a,{key:l,id:l,src:Object(y.c)({key:s.key,src:s.src}),alt:s.alt,disableZoom:c,allowTabNavigation:r,onLoad:i})}},{key:"renderVideo",value:function(t){var n,r=t.video,i=void 0===r?{}:r,a=this.props,s=a.allowTabNavigation,l=a.blockId,c=a.index,u=a.labels,f=a.onFullScreenChange,d=o()(n="video-".concat(l,"-")).call(n,c);if(b(i))return e.createElement(g.a,{allowTabNavigation:s,id:d,key:d,labels:u,onFullScreenChange:f,poster:i.poster,shouldPause:i.pause,src:i.key})}},{key:"renderEmbed",value:function(t){var n=this.props,r=n.allowTabNavigation,o=n.opts,i=n.labels,a=o.fullEmbed,s=o.showMetaData,l=void 0===s||s,c=t.embed,u="embed-".concat(this.props.index);if(b(c))return e.createElement(m.a,{labels:i,key:u,isLesson:a,id:u,showMetaData:l,data:c,allowTabNavigation:r,shouldPause:c.pause})}},{key:"render",value:function(){var t=this.props,n=t.media,r=t.hasPadding,o=f()({"media-group":r});return e.createElement("div",{className:o},this.renderAudio(n),this.renderImage(n),this.renderVideo(n),this.renderEmbed(n))}}],[{key:"propTypes",get:function(){return{allowTabNavigation:p.a.bool,blockId:p.a.string,hasPadding:p.a.bool,index:p.a.string,media:p.a.object,onLoad:p.a.func,opts:p.a.object}}},{key:"defaultProps",get:function(){return{media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";var r=n(1070);n.d(t,"a",function(){return r.a});var o=n(1071);n.d(t,"b",function(){return o.a});var i=n(1072);n.d(t,"c",function(){return i.a});var a=n(1073);n.d(t,"d",function(){return a.a});var s=n(1074);n.d(t,"e",function(){return s.a});var l=n(1075);n.d(t,"f",function(){return l.a});var c=n(1076);n.d(t,"g",function(){return c.a})},function(e,t,n){var r=n(489),o=n(192);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(66),o=n(158),i=n(134),a=n(618),s=n(775),l=n(193),c=l.get,u=l.enforce,f=String(s).split("toString");n(407)("inspectSource",function(e){return s.call(e)}),(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s.call(this)})},function(e,t,n){var r=n(621),o=n(134),i=n(780),a=n(118).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(192),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(61);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t,n){var r=n(214),o=n(535);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},function(e,t){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";t.__esModule=!0,t.logByType=void 0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(141),a=(r=i)&&r.__esModule?r:{default:r},s=n(154);var l=void 0,c=t.logByType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!s.IE_VERSION&&s.IE_VERSION<11;"log"!==e&&t.unshift(e.toUpperCase()+":"),l.history.push(t),t.unshift("VIDEOJS:");var r=a.default.console&&a.default.console[e];r&&(n&&(t=t.map(function(e){if(e&&"object"===(void 0===e?"undefined":o(e))||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),r.apply?r[Array.isArray(t)?"apply":"call"](a.default.console,t):r(t))};(l=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c("log",t)}).history=[],l.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c("error",t)},l.warn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c("warn",t)},t.default=l},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return n.replace(e,t)})},function(e,t,n){var r=n(52),o=n(860);e.exports=r(o(!0))},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return y});var r,o=n(6),i=n(26),a=n.n(i),s=n(20),l=n.n(s),c=n(14),u=n.n(c),f=n(13),d=a()("rise/sessionPreferences/"),p=d("LOAD_SESSION_PREFERENCES"),h=d("SET_PREFERS_KEYBOARD_NAVIGATION"),m=d("SET_STARTING_COURSE_LESSON_SELECTED");t.a=Object(f.f)({prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},(r={},Object(o.a)(r,p,u.a),Object(o.a)(r,h,function(e,t){return u()(e,{prefersKeyboardNavigation:t})}),Object(o.a)(r,m,function(e,t){return u()(e,{startedCourseWithLessonSelected:t})}),r));var v=l()(Object(f.a)(p,null)),g=Object(f.a)(h),y=Object(f.a)(m)},function(e,t,n){e.exports=n(2089)},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return jt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=p(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=o.momentProperties=[];function y(e,t){var n,r,o;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)r=g[n],s(o=t[r])||(e[r]=o);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,o.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=E(t)),n}function k(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&x(e[r])!==x(t[r]))&&a++;return a+i}function S(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return d(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var r,i=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var C,O={};function j(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),O[e]||(S(t),O[e]=!0)}function A(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e,t){var n,r=d({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function M(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var I={};function L(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function P(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function D(e){var t,n,r={};for(n in e)f(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var R={};function F(e,t){R[e]=t}function B(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};function W(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(H[e]=o),t&&(H[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=Y(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,o=e.match(U);for(t=0,n=o.length;t<n;t++)H[o[t]]?o[t]=H[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=A(o[r])?o[r].call(t,e):o[r];return i}}(t),z[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var K=/\d/,V=/\d\d/,G=/\d{3}/,X=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=A(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return f(ce,e)?ce[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){he(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function ve(e,t,n){null!=t&&f(pe,e)&&pe[e](t,n._a,n,e)}var ge=0,ye=1,be=2,_e=3,we=4,Ee=5,xe=6,ke=7,Se=8;function Te(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),L("year","y"),F("year",1),ue("Y",ie),ue("YY",Q,V),ue("YYYY",ne,X),ue("YYYYY",re,Z),ue("YYYYYY",re,Z),he(["YYYYY","YYYYYY"],ge),he("YYYY",function(e,t){t[ge]=2===e.length?o.parseTwoDigitYear(e):x(e)}),he("YY",function(e,t){t[ge]=o.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ge]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var Oe,je=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Me(this,e,n),o.updateOffset(this,t),this):Ne(this,e)}}function Ne(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ce(e)?29:28:31-r%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),F("month",8),ue("M",Q),ue("MM",Q,V),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=x(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ye]=o:h(n).invalidMonth=e});var Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Re(this,e),o.updateOffset(this,!0),this):Ne(this,"Month")}var Be=le,Ue=le;function qe(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=de(r[t]),o[t]=de(o[t]);for(t=0;t<24;t++)i[t]=de(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,o=(7+ze(e,0,r).getUTCDay()-t)%7;return-o+r-1}function We(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=He(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Te(i=e-1)+c:c>Te(e)?(i=e+1,a=c-Te(e)):(i=e,a=c),{year:i,dayOfYear:a}}function $e(e,t,n){var r,o,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Ye(o,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ye(e,t,n){var r=He(e,t,n),o=He(e+1,t,n);return(Te(e)-r+o)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",Q),ue("ww",Q,V),ue("W",Q),ue("WW",Q,V),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=le,Ze=le,Qe=le;function Je(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,et),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),tt("a",!0),tt("A",!1),L("hour","h"),F("hour",13),ue("a",nt),ue("A",nt),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,V),ue("hh",Q,V),ue("kk",Q,V),ue("hmm",J),ue("hmmss",ee),ue("Hmm",J),ue("Hmmss",ee),he(["H","HH"],_e),he(["k","kk"],function(e,t,n){var r=x(e);t[_e]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[_e]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[Ee]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[Ee]=x(e.substr(o))});var rt,ot=Ae("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:De,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Ge,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(2307)("./"+t),ut(r)}catch(e){}return at[t]}function ut(e,t){var n;return e&&(n=s(t)?dt(e):ft(e,t))&&(rt=n),rt._abbr}function ft(e,t){if(null!==t){var n=it;if(t.abbr=e,null!=at[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=at[e]._config;else if(null!=t.parentLocale){if(null==at[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=at[t.parentLocale]._config}return at[e]=new M(N(n,t)),st[e]&&st[e].forEach(function(e){ft(e.name,e.config)}),ut(e),at[e]}return delete at[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(o=lt(e[i]).split("-"),t=o.length,n=(n=lt(e[i+1]))?n.split("-"):null;t>0;){if(r=ct(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&k(o,n,!0)>=t-1)break;t--}i++}return null}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ie(n[ge],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[Ee]||0!==n[xe])?_e:n[we]<0||n[we]>59?we:n[Ee]<0||n[Ee]>59?Ee:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(t<ge||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=ke),h(e)._overflowWeekday&&-1===t&&(t=Se),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ht(t.GG,e._a[ge],$e(At(),1,4).year),r=ht(t.W,1),((o=ht(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=$e(At(),i,a);n=ht(t.gg,e._a[ge],c.year),r=ht(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Ye(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=We(n,r,o,i,a),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[ge],r[ge]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[we]&&0===e._a[Ee]&&0===e._a[xe]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var vt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Et(e){var t,n,r,o,i,a,s=e._i,l=vt.exec(s)||gt.exec(s);if(l){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){o=bt[t][0],r=!1!==bt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){i=(l[2]||" ")+_t[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!yt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Ct(e)}else e._isValid=!1}var xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function kt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,o,i,a,s,l=xt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(l){var c=(t=l[4],n=l[3],r=l[2],o=l[5],i=l[6],a=l[7],s=[kt(t),De.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(i,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ve.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return 60*i+o}(l[8],l[9],l[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Ct(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,i,a,s=""+e._i,l=s.length,c=0;for(r=Y(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)i=r[t],(n=(s.match(fe(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),H[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ve(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[_e]<=12&&!0===h(e).bigHour&&e._a[_e]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[_e]=(u=e._locale,f=e._a[_e],null==(d=e._meridiem)?f:null!=u.meridiemHour?u.meridiemHour(f,d):null!=u.isPM?((p=u.isPM(d))&&f<12&&(f+=12),p||12!==f||(f=0),f):f),mt(e),pt(e)}else Tt(e);else Et(e);var u,f,d,p}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(pt(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Ct(t),m(t)&&(i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;s(t)?e._d=new Date(o.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=D(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function jt(e,t,n,r,o){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(pt(Ot(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function At(e,t,n,r){return jt(e,t,n,r,!1)}o.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var Nt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Mt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function It(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=D(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Oe.call(Lt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Lt.length;++r)if(e[Lt[r]]){if(n)return!1;parseFloat(e[Lt[r]])!==x(e[Lt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Dt(e){return e instanceof Pt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ue("Z",se),ue("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var Bt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],o=(r+"").match(Bt)||["-",0,0],i=60*o[1]+x(o[2]);return 0===i?0:"+"===o[0]?i:-i}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):At(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,r,o,i,a,s,c=e,u=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Wt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:x(u[be])*n,h:x(u[_e])*n,m:x(u[we])*n,s:x(u[Ee])*n,ms:x(Rt(1e3*u[xe]))*n}):(u=$t.exec(e))?(n="-"===u[1]?-1:(u[1],1),c={y:Kt(u[2],n),M:Kt(u[3],n),w:Kt(u[4],n),d:Kt(u[5],n),h:Kt(u[6],n),m:Kt(u[7],n),s:Kt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=At(c.from),a=At(c.to),o=i.isValid()&&a.isValid()?(a=qt(a,i),i.isBefore(a)?s=Vt(i,a):((s=Vt(a,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),r=new Pt(c),Dt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Xt(this,Yt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var i=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Ne(e,"Month")+s*n),a&&Me(e,"Date",Ne(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Yt.fn=Pt.prototype,Yt.invalid=function(){return Yt(NaN)};var Zt=Gt(1,"add"),Qt=Gt(-1,"subtract");function Jt(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}function rn(e,t){W(0,[e,e.length],0,t)}function on(e,t,n,r,o){var i;return null==e?$e(this,r,o).year:(i=Ye(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=We(e,t,n,r,o),a=ze(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ue("G",ie),ue("g",ie),ue("GG",Q,V),ue("gg",Q,V),ue("GGGG",ne,X),ue("gggg",ne,X),ue("GGGGG",re,Z),ue("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),L("quarter","Q"),F("quarter",7),ue("Q",K),he("Q",function(e,t){t[ye]=3*(x(e)-1)}),W("D",["DD",2],"Do","date"),L("date","D"),F("date",9),ue("D",Q),ue("DD",Q,V),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=x(e.match(Q)[0])});var an=Ae("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",te),ue("DDDD",G),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),W("m",["mm",2],0,"minute"),L("minute","m"),F("minute",14),ue("m",Q),ue("mm",Q,V),he(["m","mm"],we);var sn=Ae("Minutes",!1);W("s",["ss",2],0,"second"),L("second","s"),F("second",15),ue("s",Q),ue("ss",Q,V),he(["s","ss"],Ee);var ln,cn=Ae("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),F("millisecond",16),ue("S",te,K),ue("SS",te,V),ue("SSS",te,G),ln="SSSS";ln.length<=9;ln+="S")ue(ln,oe);function un(e,t){t[xe]=x(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,un);var fn=Ae("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var dn=_.prototype;function pn(e){return e}dn.add=Zt,dn.calendar=function(e,t){var n=e||At(),r=qt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(A(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,At(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":i=Jt(this,r)/12;break;case"month":i=Jt(this,r);break;case"quarter":i=Jt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:E(i)},dn.endOf=function(e){return void 0===(e=P(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(At(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(At(),e)},dn.get=function(e){return A(this[e=P(e)])?this[e]():this},dn.invalidAt=function(){return h(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(s(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},dn.isSame=function(e,t){var n,r=w(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=tn,dn.locale=en,dn.localeData=nn,dn.max=Mt,dn.min=Nt,dn.parsingFlags=function(){return d({},h(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(A(this[e=P(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Qt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=je,dn.isLeapYear=function(){return Ce(this.year())},dn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Fe,dn.daysInMonth=function(){return Ie(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=ot,dn.minute=dn.minutes=sn,dn.second=dn.seconds=cn,dn.millisecond=dn.milliseconds=fn,dn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Xt(this,Yt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:zt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ht,dn.isUTC=Ht,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",an),dn.months=T("months accessor is deprecated. Use month instead",Fe),dn.years=T("years accessor is deprecated. Use year instead",je),dn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ot(e))._a){var t=e._isUTC?p(e._a):At(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function mn(e,t,n,r){var o=dt(),i=p().set(r,t);return o[n](i,e)}function vn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=mn(e,r,n,"month");return o}function gn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=dt(),a=e?i._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=mn(t,(o+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return A(o)?o(e,t,n,r):o.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)A(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",ut),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var yn=Math.abs;function bn(e,t,n,r){var o=Yt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var kn=xn("ms"),Sn=xn("s"),Tn=xn("m"),Cn=xn("h"),On=xn("d"),jn=xn("w"),An=xn("M"),Nn=xn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var In=Mn("milliseconds"),Ln=Mn("seconds"),Pn=Mn("minutes"),Dn=Mn("hours"),Rn=Mn("days"),Fn=Mn("months"),Bn=Mn("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),o=zn(this._months);e=E(n/60),t=E(e/60),n%=60,e%=60;var i=E(o/12),a=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",p=Hn(this._months)!==Hn(f)?"-":"",h=Hn(this._days)!==Hn(f)?"-":"",m=Hn(this._milliseconds)!==Hn(f)?"-":"";return d+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var $n=Pt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},$n.add=function(e,t){return bn(this,e,t,1)},$n.subtract=function(e,t){return bn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=kn,$n.asSeconds=Sn,$n.asMinutes=Tn,$n.asHours=Cn,$n.asDays=On,$n.asWeeks=jn,$n.asMonths=An,$n.asYears=Nn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},$n._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*_n(En(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=E(i/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,a+=E(n/24),o=E(wn(a)),s+=o,a-=_n(En(o)),r=E(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},$n.clone=function(){return Yt(this)},$n.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=In,$n.seconds=Ln,$n.minutes=Pn,$n.hours=Dn,$n.days=Rn,$n.weeks=function(){return E(this.days()/7)},$n.months=Fn,$n.years=Bn,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Yt(e).abs(),o=Un(r.as("s")),i=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),l=Un(r.as("M")),c=Un(r.as("y")),u=o<=qn.ss&&["s",o]||o<qn.s&&["ss",o]||i<=1&&["m"]||i<qn.m&&["mm",i]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||l<=1&&["M"]||l<qn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Wn,$n.toString=Wn,$n.toJSON=Wn,$n.locale=en,$n.localeData=nn,$n.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),$n.lang=tn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ue("x",ie),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.20.1",t=At,o.fn=dn,o.min=function(){return It("isBefore",[].slice.call(arguments,0))},o.max=function(){return It("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return At(1e3*e)},o.months=function(e,t){return vn(e,t,"months")},o.isDate=c,o.locale=ut,o.invalid=v,o.duration=Yt,o.isMoment=w,o.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},o.parseZone=function(){return At.apply(null,arguments).parseZone()},o.localeData=dt,o.isDuration=Dt,o.monthsShort=function(e,t){return vn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},o.defineLocale=ft,o.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=(r=ct(e))&&(o=r._config),t=N(o,t),(n=new M(t)).parentLocale=at[e],at[e]=n,ut(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return C(at)},o.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},o.normalizeUnits=P,o.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=dn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(256)(e))},function(e,t,n){"use strict";n.d(t,"d",function(){return s}),n.d(t,"g",function(){return l}),n.d(t,"f",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return p});var r=n(103),o=n.n(r),i=window.RiseDotCom,a=function(e){return i&&i[e]},s=function(){a("enroll")&&o.a.resolve().then(i.enroll).catch(console.error)},l=function(){a("unenroll")&&o.a.resolve().then(i.unenroll).catch(console.error)},c=function(){a("on")&&i.on.apply(i,arguments)},u=function(){a("off")&&i.off.apply(i,arguments)},f=function(){if(a("downloadCertificate"))return i.downloadCertificate.apply(i,arguments)},d=function(){if(a("downloadCertificateCancel"))return i.downloadCertificateCancel.apply(i,arguments)},p=function(){a("emitOdometerComplete")&&i.emitOdometerComplete.apply(i,arguments)}},function(e,t,n){var r=n(887),o=n(888),i=n(1728),a=n(897);e.exports=a(3,function(e,t){return o(r(e),[t,i])})},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,o,i,a=n(776),s=n(85),l=n(158),c=n(134),u=n(490),f=n(409),d=n(66).WeakMap;if(a){var p=new d,h=p.get,m=p.has,v=p.set;r=function(e,t){return v.call(p,e,t),t},o=function(e){return h.call(p,e)||{}},i=function(e){return m.call(p,e)}}else{var g=u("state");f[g]=!0,r=function(e,t){return l(e,g,t),t},o=function(e){return c(e,g)?e[g]:{}},i=function(e){return c(e,g)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(418),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(159);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(523),o=n(855),i=n(856);e.exports=function(){function e(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function t(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}var n="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(i,a,s){if("function"==typeof i&&(i=o(i)),r(s))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(i,a,s);if("function"==typeof s["fantasy-land/reduce"])return t(i,a,s,"fantasy-land/reduce");if(null!=s[n])return e(i,a,s[n]());if("function"==typeof s.next)return e(i,a,s);if("function"==typeof s.reduce)return t(i,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}()},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(259),i=n(94),a=n(866);function s(e){return!!e&&i(e.type)}function l(e){return o(e)?"array":typeof e}e.exports=r(function(e,t){return s(e)||s(t)?function(e,t){return s(e)&&s(t)&&e.type()===t.type()}(e,t):a(e)||a(t)?e===t:function(e,t){return e.name===t.constructor.name||t.name===e.constructor.name}(e,t)||l(e)===l(t)})},function(e,t,n){"use strict";var r=n(898),o=n(1734),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"==typeof e||a(e)||(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(432),o=n(62);e.exports=o(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}))},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e<t})},function(e,t,n){"use strict";var r,o=n(6),i=n(216),a=n.n(i),s=n(19),l=n.n(s),c=n(5),u=n.n(c),f=n(26),d=n.n(f),p=n(30),h=n.n(p),m=n(27),v=n.n(m),g=n(14),y=n.n(g),b=n(70),_=n.n(b),w=n(18),E=n.n(w),x=n(16),k=n.n(x),S=n(105),T=n.n(S),C=n(579),O=n.n(C),j=n(13),A=n(81),N=n(131),M=n.n(N),I=n(57),L=n.n(I),P=n(169),D=n.n(P),R=n(126),F=n.n(R),B=n(568),U=n.n(B),q=n(102),z=n.n(q),H=n(25),W=n.n(H),$=n(143),Y=n.n($),K=M()(function(e){return h()({avatar:Z(e),back:Z(e),background:Z(e),front:Z(e),media:J(e)})}),V=M()(function(e){return h()({items:v()(K(e)),media:J(e)})}),G=M()(function(e){return h()({coverImage:Z(e),lessons:v()(Y()(U()(String),X(e))),media:J(e)})}),X=M()(function(e){return h()({items:v()(V(e)),media:J(e)})}),Z=M()(function(e){return h()({media:J(e)})}),Q=(M()(function(e){return E()(F()(W()(["media",e]),W()(["media","tmp",e])),D()({}))}),M()(function(e,t,n){return"tmp"===n?J(e,t):"string"==typeof t?e[t]:t})),J=L()(2,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z()(Q(e),t)}),ee=n(279),te=n(276);n.d(t,"a",function(){return ne}),n.d(t,"c",function(){return ae});var ne=d()("rise/course/")("LOAD_COURSE"),re=function(e){return u()(y()(e),_()("lessonsOnly"),T()(k()("type","section")))(e.lessons)},oe=O()(E()(l()("enrolled",!0),l()("riseComEnrollmentType","self"))),ie=O()(E()(l()("enrolled",!1),l()("riseComEnrollmentType",null))),ae=(t.b=Object(j.f)({},(r={},Object(o.a)(r,ee.a,oe),Object(o.a)(r,ee.b,ie),Object(o.a)(r,ne,function(e,t){var n=t.course,r=t.media,o=t.riseComCurrentUser,i=t.riseComEnrollmentType,s=t.riseComLearningPathId;return E()(G(r),re,h()({lessons:v()(X(r))}),y()(a.a,{riseComEnrollmentType:i,riseComCurrentUser:o,riseComLearningPathId:s}))(n)}),r)),function(){return function(e){return Object(A.b)().then(function(t){return e(Object(j.a)(ne,t))}).then(function(){return e(Object(te.c)(!0))})}})},function(e,t,n){var r=n(666),o=n(52);e.exports=o(function(e){return r.apply(null,[{}].concat(e))})},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n(33),o=n.n(r),i=(n(25),function(e){return function(){return document.querySelector(e)}}),a=function(e){return o()(Array.prototype).call(e)}},function(e,t,n){var r=n(887),o=n(888),i=n(1730),a=n(1731),s=n(895),l=n(897),c=n(1732);e.exports=l(3,function(e,t){return c(a(e),o(r(t),[s(e),i(e)]))})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n(32),o=n(156),i=(n(2069),function(t){var n=t.children,r=t.className;return e.createElement("div",{className:"authoring-tooltip ".concat(r||"")},n)}),a=function(t){var n=t.children,i=t.side,a=Object(o.a)(t,["children","side"]);return e.createElement("span",Object(r.a)({},a,{className:"authoring-tooltip__content authoring-tooltip__content--".concat(i)}),n)}}).call(this,n(1))},function(e,t,n){e.exports=n(1464)()},function(e,t,n){"use strict";n.d(t,"c",function(){return w}),n.d(t,"d",function(){return E}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return T}),n.d(t,"i",function(){return C}),n.d(t,"j",function(){return O}),n.d(t,"b",function(){return N}),n.d(t,"a",function(){return M});var r,o,i,a,s=n(174),l=n.n(s),c=n(125),u=n(4),f=n.n(u),d=n(89),p=n.n(d),h=n(76),m=n.n(h),v=n(25),g=n.n(v),y=n(29),b=n.n(y),_=["media","storyline"],w=b()(null,["payload","result"]),E=g()(_),x=g()(f()(r=[]).call(r,_,["thumbnail"])),k=g()(f()(o=[]).call(o,_,["meta","version"])),S=b()(null,f()(i=[]).call(i,_,["src"])),T=g()(["payload","result","completion"]),C=g()(f()(a=[]).call(a,_,["processing"])),O=b()(!1,["payload","result","score"]),j=p()(function(e,t){if(!t)return!1;var n=e.majorLimit,r=e.minorLimit,o=t.split("."),i=Object(c.a)(o,2),a=i[0],s=i[1],u=l()(a)===n&&s>=r;return a>n||u}),A={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},N=j({majorLimit:3,minorLimit:13}),M=function(e,t,n){var r,o,i,a=t&&(o=n,i=m()(o.split("-")),A[i]);return a?f()(r="".concat(e)).call(r,a):"".concat(e,"?rise=true")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){e.exports=!n(152)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e,t){var n;t=t||[];var r=(e=e||[]).length,o=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<o;)i[i.length]=t[n],n+=1;return i}},function(e,t,n){var r=n(535);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(21),o=n(27),i=n(12);e.exports=r(function(e,t){return o(i(e),t)})},function(e,t){e.exports={"@@functional/placeholder":!0}},function(e,t,n){var r=n(437);e.exports=r(0,"toLowerCase")},function(e,t,n){var r=n(437);e.exports=r(1,"join")},function(e,t,n){e.exports=n(1589)},function(e,t,n){var r=n(52),o=n(168);e.exports=r(function(e){var t=[];for(var n in e)o(n,e)&&(t[t.length]=[n,e[n]]);return t})},function(e,t,n){e.exports=n(1678)},function(e,t,n){e.exports=n(1698)},function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"d",function(){return P}),n.d(t,"b",function(){return F});var r,o=n(6),i=n(125),a=n(19),s=n.n(a),l=n(26),c=n.n(l),u=n(57),f=n.n(u),d=(n(30),n(28),n(113)),p=n.n(d),h=(n(58),n(14)),m=n.n(h),v=(n(127),n(49)),g=n.n(v),y=(n(18),n(16)),b=n.n(y),_=(n(121),n(31)),w=n.n(_),E=(n(251),n(146),n(45)),x=n(13),k=n(46),S=n(225),T=c()("rise/courses/"),C=T("DELETE_COURSE"),O=T("GET_COURSE"),j=T("IMPORT_TRANSLATION"),A=T("SET_OWNER"),N=T("UPDATE_COURSE"),M=T("UPDATE_COURSE_DEBOUNCE"),I=T("UPDATE_LESSON_ORDER"),L=(T("UPDATE_COURSE_THEME"),function(e,t){var n=t.course;return m()(e,n)});t.c=Object(x.f)({},(r={},Object(o.a)(r,k.a,Object(x.g)(L)),Object(o.a)(r,k.b,L),Object(o.a)(r,k.c,Object(x.g)(L)),Object(o.a)(r,O,function(e,t,n){return n?t:t.course}),Object(o.a)(r,j,Object(x.g)(function(e,t){var n=t.course;return m()(e,n)})),Object(o.a)(r,S.a,Object(x.g)(function(e,t){var n,r=t.id.match(/[^\/]+/g),a=Object(i.a)(r,3),s=a[0],l=a[1],c=a[2],u=t.updatedAt,f=t.value;return"courses"===s&&l===e.id?m()(e,(n={},Object(o.a)(n,c,f),Object(o.a)(n,"updatedAt",u),n)):e})),Object(o.a)(r,S.b,function(e,t,n){if(n)return console.error(t),e;var r=t.id.match(/[^\/]+/g),o=Object(i.a)(r,2),a=o[0],s=o[1];return"courses"===a&&s===e.id?m()(e,g()(["updatedAt"],t)):e}),Object(o.a)(r,A,Object(x.g)(function(e,t){var n=t.author,r=t.courseId;return e.id===r?s()("author",n,e):e})),Object(o.a)(r,N,Object(x.g)(m.a)),Object(o.a)(r,M,function(e,t,n){return n?(console.error(t),e):m()(e,g()(["bodyTypefaceId","headingTypefaceId","typefaces","updatedAt"],t))}),Object(o.a)(r,I,Object(x.g)(function(e,t){var n=t.lessons;return m()(e,{lessons:n})})),r));E.a.send(O),E.a.send(A);var P=E.a.send(N),D=(Object(x.a)(N),b()("type",C)),R=f()(2,function(e,t,n){return t(e.payload.id===n().course.id?Object(x.e)():e)}),F=w()(D,R);p()([Object(x.a)(I),E.a.send(I)]),p()([Object(x.a)(N),E.a.debounce(500,M)]),E.a.send(j)},function(e,t,n){var r,o=n(52);e.exports=(r="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff","function"==typeof String.prototype.trim&&!r.trim()&&"​".trim()?o(function(e){return e.trim()}):o(function(e){var t=new RegExp("^["+r+"]["+r+"]*"),n=new RegExp("["+r+"]["+r+"]*$");return e.replace(t,"").replace(n,"")}))},function(e,t,n){"use strict";n.d(t,"a",function(){return A}),n.d(t,"b",function(){return N}),n.d(t,"c",function(){return P});n(17);var r=n(34),o=n.n(r),i=n(461),a=n.n(i),s=n(19),l=n.n(s),c=n(5),u=n.n(c),f=n(26),d=n.n(f),p=n(57),h=n.n(p),m=n(113),v=n.n(m),g=n(353),y=n.n(g),b=(n(14),n(25),n(49)),_=n.n(b),w=n(12),E=n.n(w),x=n(16),k=n.n(x),S=n(31),T=n.n(S),C=n(13),O=n(45),j=d()("rise/items/"),A=j("PUT_ITEM"),N=j("PUT_ITEM_THROTTLE"),M={},I=h()(2,function(e,t){D(t,e.payload),t(e)}),L=a()([k()("type",A),k()("type",N)]),P=T()(L,I),D=(u()(_()(["author","session"]),E()("user")),u()(y()(I),O.a.send(A)),h()(2,function(e,t){var n=t.id,r=t.ttl;r&&(clearTimeout(M[n]),M[n]=o()(function(){delete M[n],e(Object(C.a)("rise/locks/DEL_LOCK",{id:n}))},r))}));v()([u()(Object(C.a)(A),function(e){return l()("updatedAt",(new Date).toJSON(),e)}),u()(y()(y()(I)),O.a.throttle(500,N))])},function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return h});var r=n(126),o=n.n(r),i=n(25),a=n.n(i),s=n(29),l=n.n(s),c=n(18),u=n.n(c),f=n(12),d=n.n(f),p=u()(l()({},[0]),o()(a()(["media","embed","embedType"]),a()(["media","embed","type"]))),h=o()(d()("embedType"),d()("type"))},function(e,t,n){"use strict";var r=n(758),o=n.n(r);o.a.dynamicDrop(!0),t.a=o.a},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return Q}),n.d(t,"g",function(){return J}),n.d(t,"h",function(){return ee}),n.d(t,"a",function(){return te}),n.d(t,"d",function(){return ne}),n.d(t,"c",function(){return re}),n.d(t,"e",function(){return oe}),n.d(t,"f",function(){return ie}),n.d(t,"i",function(){return ae});var r=n(20),o=n.n(r),i=n(467),a=n.n(i),s=n(5),l=n.n(s),c=n(79),u=n.n(c),f=n(35),d=n.n(f),p=n(30),h=n.n(p),m=n(37),v=n.n(m),g=n(97),y=n.n(g),b=n(28),_=n.n(b),w=n(76),E=n.n(w),x=n(50),k=n.n(x),S=n(95),T=n.n(S),C=n(43),O=n.n(C),j=n(27),A=n.n(j),N=n(18),M=n.n(N),I=n(215),L=n.n(I),P=n(12),D=n.n(P),R=n(16),F=n.n(R),B=n(277),U=n.n(B),q=n(217),z=n.n(q),H=n(224),W=n.n(H),$=n(31),Y=n.n($),K=n(111),V=n(44),G=a()(k.a),X=v()(F()("correct",!0)),Z=A()(h()({title:K.c})),Q=l()(Y()(d()(-1),o()(0)),y()(F()("correct",!0))),J=function(e){var t=e.answers,n=e.fillinValue,r=e.isCaseSensitive?W.a:l()(W.a,z.a);return M()(A()(D()("title")),A()(r),u()(r(n)))(t)},ee=function(e){var t=e.answers,n=e.selectedIndices;return d()(U()(G,n),l()(U()(G),A()(l()(_()(y.a)(t),F()("id"))),ne)(t))},te=function(e){return{MATCHING:Z,FILL_IN_THE_BLANK:oe,MULTIPLE_CHOICE:k.a,MULTIPLE_RESPONSE:k.a}[e]},ne=l()(L()("id"),X),re=l()(E.a,ne),oe=M()(v()(F()("correct",!0)),Z),ie=l()(D()("id"),E.a),ae=l()(O.a,T.a);e.createElement(V.w,null),e.createElement(V.x,null),e.createElement(V.s,null),e.createElement(V.v,null)}).call(this,n(1))},function(e,t,n){e.exports={F:n(732),T:n(91),__:n(216),add:n(305),addIndex:n(148),adjust:n(242),all:n(343),allPass:n(733),always:n(20),and:n(462),any:n(344),anyPass:n(461),ap:n(673),aperture:n(2309),append:n(100),apply:n(569),applySpec:n(2312),ascend:n(467),assoc:n(19),assocPath:n(155),binary:n(2313),bind:n(856),both:n(309),call:n(726),chain:n(719),clamp:n(2317),clone:n(2318),comparator:n(2319),complement:n(130),compose:n(5),composeK:n(1125),composeP:n(2320),concat:n(26),cond:n(41),construct:n(2322),constructN:n(1127),contains:n(79),converge:n(271),countBy:n(2323),curry:n(89),curryN:n(57),dec:n(149),defaultTo:n(169),descend:n(728),difference:n(573),differenceWith:n(1128),dissoc:n(110),dissocPath:n(347),divide:n(270),drop:n(1129),dropLast:n(2326),dropLastWhile:n(2330),dropRepeats:n(2333),dropRepeatsWith:n(1131),dropWhile:n(2334),either:n(126),empty:n(567),endsWith:n(2336),eqBy:n(2337),eqProps:n(724),equals:n(35),evolve:n(30),filter:n(37),find:n(36),findIndex:n(97),findLast:n(737),findLastIndex:n(2338),flatten:n(186),flip:n(28),forEach:n(736),forEachObjIndexed:n(2340),fromPairs:n(307),groupBy:n(2341),groupWith:n(2342),gt:n(171),gte:n(312),has:n(596),hasIn:n(2343),head:n(76),identical:n(858),identity:n(50),ifElse:n(90),inc:n(80),indexBy:n(2344),indexOf:n(346),init:n(2345),innerJoin:n(2346),insert:n(282),insertAll:n(2347),intersection:n(2348),intersectionWith:n(2349),intersperse:n(2350),into:n(2351),invert:n(2353),invertObj:n(2354),invoker:n(437),is:n(568),isEmpty:n(67),isNil:n(38),join:n(218),juxt:n(113),keys:n(95),keysIn:n(2355),last:n(138),lastIndexOf:n(2356),length:n(43),lens:n(525),lensIndex:n(2357),lensPath:n(74),lensProp:n(58),lift:n(532),liftN:n(867),lt:n(202),lte:n(272),map:n(27),mapAccum:n(2358),mapAccumRight:n(2359),mapObjIndexed:n(102),match:n(273),mathMod:n(2360),max:n(240),maxBy:n(2361),mean:n(1133),median:n(2362),memoize:n(2363),memoizeWith:n(1134),merge:n(14),mergeAll:n(204),mergeDeepLeft:n(2364),mergeDeepRight:n(385),mergeDeepWith:n(2365),mergeDeepWithKey:n(544),mergeWith:n(2366),mergeWithKey:n(698),min:n(2367),minBy:n(2368),modulo:n(2369),multiply:n(241),nAry:n(531),negate:n(740),none:n(2370),not:n(87),nth:n(268),nthArg:n(2371),o:n(2372),objOf:n(70),of:n(311),omit:n(54),once:n(2373),or:n(378),over:n(47),pair:n(2374),partial:n(127),partialRight:n(2375),partition:n(2376),path:n(25),pathEq:n(723),pathOr:n(29),pathSatisfies:n(460),pick:n(49),pickAll:n(1135),pickBy:n(734),pipe:n(18),pipeK:n(2377),pipeP:n(1126),pluck:n(215),prepend:n(379),product:n(2378),project:n(2379),prop:n(12),propEq:n(16),propIs:n(2380),propOr:n(51),propSatisfies:n(345),props:n(730),range:n(459),reduce:n(73),reduceBy:n(565),reduceRight:n(1137),reduceWhile:n(2381),reduced:n(2382),reject:n(105),remove:n(570),repeat:n(2383),replace:n(185),reverse:n(524),scan:n(2384),sequence:n(1139),set:n(121),slice:n(201),sort:n(277),sortBy:n(463),sortWith:n(2385),split:n(342),splitAt:n(2386),splitEvery:n(2387),splitWhen:n(2388),startsWith:n(2389),subtract:n(2390),sum:n(392),symmetricDifference:n(2391),symmetricDifferenceWith:n(2392),tail:n(457),take:n(720),takeLast:n(1132),takeLastWhile:n(2393),takeWhile:n(2394),tap:n(142),test:n(2396),times:n(1138),toLower:n(217),toPairs:n(220),toPairsIn:n(2398),toString:n(438),toUpper:n(739),transduce:n(742),transpose:n(2399),traverse:n(2400),trim:n(224),tryCatch:n(2401),type:n(664),unapply:n(2402),unary:n(579),uncurryN:n(731),unfold:n(2403),union:n(729),unionWith:n(2404),uniq:n(458),uniqBy:n(875),uniqWith:n(721),unless:n(143),unnest:n(2405),until:n(2406),update:n(694),useWith:n(1136),values:n(69),valuesIn:n(2407),view:n(466),when:n(31),where:n(882),whereEq:n(725),without:n(172),xprod:n(2408),zip:n(391),zipObj:n(2409),zipWith:n(2410)}},,function(e,t,n){var r=n(85);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(118).f,o=n(134),i=n(98)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(134),o=n(135),i=n(490)("IE_PROTO"),a=n(625),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(293),o=n(419);e.exports=n(212)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(420);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r=n(1088),o=n(86);var i=function(e){o.extend(this,e),this.initialize.apply(this,arguments)};o.extend(i.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=o.clone(e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,o=t._start,i=t._view;return n&&1!==e?(i||(i=t._view={}),o||(o=t._start={}),function(e,t,n,o){var i,a,s,l,c,u,f,d,p,h=Object.keys(n);for(i=0,a=h.length;i<a;++i)if(u=n[s=h[i]],t.hasOwnProperty(s)||(t[s]=u),(l=t[s])!==u&&"_"!==s[0]){if(e.hasOwnProperty(s)||(e[s]=l),(f=typeof u)==typeof(c=e[s]))if("string"===f){if((d=r(c)).valid&&(p=r(u)).valid){t[s]=p.mix(d,o).rgbString();continue}}else if("number"===f&&isFinite(c)&&isFinite(u)){t[s]=c+(u-c)*o;continue}t[s]=u}}(o,i,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return o.isNumber(this._model.x)&&o.isNumber(this._model.y)}}),i.extend=o.inherits,e.exports=i},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return t>e?t:e})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e*t})},function(e,t,n){var r=n(213),o=n(62);e.exports=o(function(e,t,n){if(t>=n.length||t<-n.length)return n;var o=(t<0?n.length:0)+t,i=r(n);return i[o]=e(n[o]),i})},function(e,t,n){"use strict";n.d(t,"a",function(){return A});var r=n(33),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=(n(1692),n(1)),h=n.n(p),m=n(2),v=n.n(m),g=n(0),y=n.n(g),b=n(41),_=n.n(b),w=n(29),E=n.n(w),x=n(40),k=n(56),S=n(24),T=n(22),C=n(78),O=n(281),j=n(63),A=function(e){function t(){var e,n,r;return Object(s.a)(this,t),(r=Object(c.a)(this,Object(u.a)(t).call(this))).state={},r.handleChange=a()(e=r.handleChange).call(e,Object(f.a)(r)),r.onPlayClick=a()(n=r.onPlayClick).call(n,Object(f.a)(r)),r}return Object(d.a)(t,e),Object(l.a)(t,[{key:"mouseSeek",value:function(e){var n=e.currentTarget,r=e.nativeEvent,o=e.pageX,i=this.audio,a=(r.touches?r.touches[0].pageX:o)-t.getElementOffset(n).left,s=n.offsetWidth,l=i.duration;a>s?a=s:a<1&&(a=1),i.currentTime=a/s*l,this.props.onSeek(t.timeMs(i.currentTime))}},{key:"keySeek",value:function(e){var n=this;this.setState({isSeeking:!0},function(){var r=n.audio,o=r.duration;r.currentTime=e<0?Math.max(r.currentTime+e,0):Math.min(r.currentTime+e,o),n.props.onSeek(t.timeMs(r.currentTime)),n.onSeekEnd()})}},{key:"componentDidMount",value:function(){x.a.addChangeListener(this.handleChange)}},{key:"componentDidUpdate",value:function(e){!e.shouldPause&&this.props.shouldPause&&x.a.isPlaying&&(this.audio.pause(),x.a.pause())}},{key:"componentWillUnmount",value:function(){x.a.pause(),x.a.removeChangeListener(this.handleChange)}},{key:"handleChange",value:function(){x.a.playerId===this.props.id&&(x.a.isPlaying?this.audio.play():this.audio&&this.audio.pause(),this.audio&&(this.audio.muted=x.a.isMuted),this.forceUpdate())}},{key:"render",value:function(){var e,t,n,r,o,i,s,l,c,u,f,d=this,p=this.props,m=p.allowTabNavigation,g=p.id,y=p.labels,b=p.mediaSrc,_=x.a.isPlaying&&x.a.playerId===g,w=x.a.isMuted&&x.a.playerId===g,S=v()("audio-player__play",{"audio-player__play--pause":_}),C=v()("audio-player__volume",{"audio-player__volume--muted":w}),O=E()(null,["audio","currentTime"],this),A=E()(null,["audio","duration"],this),N=Object(T.l)(m),M=y.audioPlayerGroup,I=y.pauseButtonLabel,L=y.playButtonLabel,P=y.seekSliderLabel;return h.a.createElement("div",{key:"player-"+g,className:"audio-player"},h.a.createElement("div",{"aria-hidden":!m,"aria-label":M,className:"audio-player__housing",onKeyDown:a()(e=this.onKeyDown).call(e,this),role:j.a,tabIndex:N},h.a.createElement("div",{"aria-label":_?I:L,className:S,onClick:this.onPlayClick,role:"button",tabIndex:N}),h.a.createElement("div",{className:"audio-player__tracker",onMouseDown:a()(t=this.onMouseSeekStart).call(t,this),onTouchStart:a()(n=this.onMouseSeekStart).call(n,this),onMouseUp:a()(r=this.onSeekEnd).call(r,this),onTouchEnd:a()(o=this.onSeekEnd).call(o,this),onMouseMove:a()(i=this.onSeek).call(i,this),onTouchMove:a()(s=this.onSeek).call(s,this)},h.a.createElement("div",{ref:function(e){return d.trackerbar=e},className:"audio-player__tracker-bar brand--background"}),h.a.createElement("div",{className:"audio-player__tracker-handle brand--background","aria-label":P,"aria-live":"polite","aria-valuemax":A,"aria-valuemin":"0","aria-valuenow":O,ref:function(e){return d.trackerhandle=e},role:"slider",tabIndex:N})),h.a.createElement("div",{className:"audio-player__timer"},this.state.currentTime),h.a.createElement("div",{className:C,onClick:a()(l=this.onVolumeClick).call(l,this)},h.a.createElement("i",{className:"icon-volume"}),h.a.createElement("i",{className:"icon-mute"}))),h.a.createElement("audio",{ref:function(e){return d.audio=e},className:"audio-player__audio-element",onTimeUpdate:a()(c=this.onTimeUpdate).call(c,this),onLoadedMetadata:a()(u=this.onLoadedMetadata).call(u,this),onEnded:a()(f=this.onEnded).call(f,this),src:Object(k.e)("".concat(b)),key:"audio-"+g}))}},{key:"onKeyDown",value:function(e){var t=this,n=Object(C.b)(this.onPlayClick),r=Object(C.b)(function(){return t.keySeek(5)}),o=Object(C.b)(function(){return t.keySeek(-5)});_()([[S.d,n],[S.i,r],[S.g,o]])(e)}},{key:"onPlayClick",value:function(e){e.preventDefault();var n=this.props,r=n.id,o=n.onPlay,i=n.onPause,a=this.audio.currentTime;x.a.isPlaying&&x.a.playerId!==r&&(x.a.isPlaying=!1),x.a.playerId=r,x.a.isPlaying=!x.a.isPlaying,x.a.isPlaying?o(t.timeMs(a)):i(t.timeMs(a))}},{key:"onVolumeClick",value:function(){x.a.isMuted?x.a.isMuted=!1:x.a.isMuted=!0}},{key:"onMouseSeekStart",value:function(e){this.setState({isSeeking:!0}),this.mouseSeek(e)}},{key:"onSeekEnd",value:function(){var e=this.props,n=e.id,r=e.onPlay,o=this.audio.currentTime;this.setState({isSeeking:!1}),x.a.isPlaying&&x.a.playerId!==n&&(x.a.isPlaying=!1),x.a.playerId=n,x.a.isPlaying=!0,r(t.timeMs(o))}},{key:"onSeek",value:function(e){this.state.isSeeking&&this.mouseSeek(e)}},{key:"onLoadedMetadata",value:function(e){this.setState({currentTime:t.calcTime(e.target.duration,e.target.currentTime)})}},{key:"onEnded",value:function(e){this.audio.currentTime=0,this.setState({currentTime:t.calcTime(e.target.duration,e.target.currentTime)}),x.a.isPlaying=!1,this.props.onEnd(t.timeMs(e.target.currentTime)),this.forceUpdate()}},{key:"onTimeUpdate",value:function(e){var n=e.target.currentTime/e.target.duration*100;this.trackerbar.style.width=n+"%",this.trackerhandle.style.left=n+"%",this.setState({currentTime:t.calcTime(e.target.duration,e.target.currentTime)})}},{key:"currentTime",value:function(){return t.timeMs(this.audio.currentTime)}}],[{key:"calcTime",value:function(e,t){var n=Math.round(e-t),r=Math.floor(n/60),i=n-60*r;function a(e,t,n){var r;return o()(r=new Array(n+1).join(t)+e).call(r,-n)}return a(r,"0",2)+":"+a(i,"0",2)}},{key:"getElementOffset",value:function(e){var t=document.documentElement,n=e.getBoundingClientRect();return{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}},{key:"timeMs",value:function(e){return Math.round(1e3*e)}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,labels:{audioPlayerGroup:O.a.audioPlayerGroup,pauseButtonLabel:O.a.pauseButtonLabel,playButtonLabel:O.a.playButtonLabel,seekSliderLabel:O.a.seekSliderLabel},mediaSrc:null,onEnd:function(){},onPause:function(){},onPlay:function(){},onSeek:function(){},shouldPause:!1}}},{key:"propTypes",get:function(){return{allowTabNavigation:y.a.bool,labels:y.a.object,mediaSrc:y.a.string,shouldPause:y.a.bool}}}]),t}(h.a.Component)},function(e,t,n){"use strict";var r=n(1806),o=n(1807);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),f=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(1808);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===b.substr(0,2);!x||w&&v[w]||(b=b.substr(2),this.slashes=!0)}if(!v[w]&&(x||w&&!g[w])){for(var k,S,T=-1,C=0;C<d.length;C++){-1!==(O=b.indexOf(d[C]))&&(-1===T||O<T)&&(T=O)}-1!==(S=-1===T?b.lastIndexOf("@"):b.lastIndexOf("@",T))&&(k=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(k)),T=-1;for(C=0;C<f.length;C++){var O;-1!==(O=b.indexOf(f[C]))&&(-1===T||O<T)&&(T=O)}-1===T&&(T=b.length),this.host=b.slice(0,T),b=b.slice(T),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var A=this.hostname.split(/\./),N=(C=0,A.length);C<N;C++){var M=A[C];if(M&&!M.match(p)){for(var I="",L=0,P=M.length;L<P;L++)M.charCodeAt(L)>127?I+="x":I+=M[L];if(!I.match(p)){var D=A.slice(0,C),R=A.slice(C+1),F=M.match(h);F&&(D.push(F[1]),R.unshift(F[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+B,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(C=0,N=u.length;C<N;C++){var q=u[C];if(-1!==b.indexOf(q)){var z=encodeURIComponent(q);z===q&&(z=escape(q)),b=b.split(q).join(z)}}var H=b.indexOf("#");-1!==H&&(this.hash=b.substr(H),b=b.slice(0,H));var W=b.indexOf("?");if(-1!==W?(this.search=b.substr(W),this.query=b.substr(W+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,W)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var $=this.search||"";this.path=B+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,E=w,x=n.pathname&&n.pathname.split("/")||[],k=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===x[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(k)n.hostname=n.host=x.shift(),(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=x.slice(-1)[0],T=(n.host||e.host||x.length>1)&&("."===S||".."===S)||""===S,C=0,O=x.length;O>=0;O--)"."===(S=x[O])?x.splice(O,1):".."===S?(x.splice(O,1),C++):C&&(x.splice(O,1),C--);if(!w&&!E)for(;C--;C)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),T&&"/"!==x.join("/").substr(-1)&&x.push("");var j,A=""===x[0]||x[0]&&"/"===x[0].charAt(0);k&&(n.hostname=n.host=A?"":x.length?x.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(w=w||n.host&&x.length)&&!A&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(t,r){var o;
/**
 * [js-htmlencode]{@link https://github.com/emn178/js-htmlencode}
 *
 * @version 0.3.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */
/**
 * [js-htmlencode]{@link https://github.com/emn178/js-htmlencode}
 *
 * @version 0.3.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */
!function(){"use strict";var i="object"==typeof window?window:{};!i.JS_HTMLENCODE_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(i=r);var a=!i.JS_HTMLENCODE_NO_COMMON_JS&&"object"==typeof e&&e.exports,s=n(1837),l={"&nbsp;":" ","&iexcl;":"¡","&cent;":"¢","&pound;":"£","&curren;":"¤","&yen;":"¥","&brvbar;":"¦","&sect;":"§","&uml;":"¨","&copy;":"©","&ordf;":"ª","&laquo;":"«","&not;":"¬","&shy;":"­","&reg;":"®","&macr;":"¯","&deg;":"°","&plusmn;":"±","&sup2;":"²","&sup3;":"³","&acute;":"´","&micro;":"µ","&para;":"¶","&middot;":"·","&cedil;":"¸","&sup1;":"¹","&ordm;":"º","&raquo;":"»","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&iquest;":"¿","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&times;":"×","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&divide;":"÷","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&circ;":"ˆ","&tilde;":"˜","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&euro;":"€","&fnof;":"ƒ","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigmaf;":"ς","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&thetasym;":"ϑ","&upsih;":"ϒ","&piv;":"ϖ","&bull;":"•","&hellip;":"…","&prime;":"′","&Prime;":"″","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&trade;":"™","&alefsym;":"ℵ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&part;":"∂","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&prod;":"∏","&sum;":"∑","&minus;":"−","&lowast;":"∗","&radic;":"√","&prop;":"∝","&infin;":"∞","&ang;":"∠","&and;":"∧","&or;":"∨","&cap;":"∩","&cup;":"∪","&int;":"∫","&there4;":"∴","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&ne;":"≠","&equiv;":"≡","&le;":"≤","&ge;":"≥","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&perp;":"⊥","&sdot;":"⋅","&lceil;":"⌈","&rceil;":"⌉","&lfloor;":"⌊","&rfloor;":"⌋","&lang;":"〈","&rang;":"〉","&loz;":"◊","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦"},c=function(e){if("#"!==e.charAt(1))return l[e]||e;var t,n=e.charAt(2);return"x"===n||"X"===n?(n=e.substring(3,e.length-1),t=parseInt(n,16)):(n=e.substring(2,e.length-1),t=parseInt(n)),isNaN(t)?e:String.fromCharCode(t)},u=function(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},f=function(e){return e.replace(/&#?\w+;/g,c)},d=u;u.htmlEncode=u,u.htmlDecode=f,a?e.exports=d:(i.htmlEncode=u,i.htmlDecode=f,s&&(void 0===(o=function(){return d}.call(d,n,d,e))||(e.exports=o)))}()}).call(this,n(258),n(71))},function(e,t,n){e.exports=n(1733)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(94);e.exports=r(function(e,t,n){if(!o(e)||!o(t))throw new TypeError("bimap: Function required for first two arguments");if(!o(n.bimap))throw new TypeError("bimap: Bifunctor required for third argument");return n.bimap(e,t)})},function(e,t,n){"use strict";(function(e){var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(15),u=n(11),f=n(32),d=(n(1929),n(1177)),p=n.n(d),h=n(14),m=n.n(h),v=n(24),g=n(22),y=function(t){var n=t.image;return e.createElement("img",Object(f.a)({},n,{"aria-describedby":n.alt}))},b=function(t){function n(e){var t,r;return Object(i.a)(this,n),(r=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={isZoomed:!1},r.toggleZoom=o()(t=r.toggleZoom).call(t,Object(c.a)(r)),r}return Object(u.a)(n,t),Object(a.a)(n,[{key:"toggleZoom",value:function(){if(!this.imageRef.isClosing){var e=this.props,t=e.onUnzoom,n=e.onZoom,r=!this.state.isZoomed;this.setState({isZoomed:r},function(){r?n():t()})}}},{key:"handleControlledKeyDown",value:function(e){Object(v.d)(e)&&(e.preventDefault(),this.toggleZoom())}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.allowTabNavigation,o=n.alt,i=n.isControlled,a=n.disableZoom,s=n.src,l=n.title,c=this.state.isZoomed;return r!==e.allowTabNavigation||o!==e.alt||i!==e.isControlled||a!==e.disableZoom||s!==e.src||l!==e.title||c!==t.isZoomed}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.alt,i=n.isControlled,a=n.disableZoom,s=n.onLoad,l=n.src,c=n.title,u=this.state.isZoomed,f=a?y:p.a,d='""'===o?"":o||c,h={image:{src:l,alt:d,className:"figure-image__image",onLoad:s,tabIndex:Object(g.l)(r)},zoomImage:{className:"figure-image__image--zoom"},shouldRespectMaxDimension:!0},v={isZoomed:u,onZoom:function(){u||t.toggleZoom()},onUnzoom:function(){u&&t.toggleZoom()},ref:function(e){t.imageRef=e}},b=m()(h,i&&v||{});return e.createElement("figure",{className:"figure-image",title:d},e.createElement(f,b))}}]),n}(e.Component);b.defaultProps={isControlled:!1,allowTabNavigation:!0},t.a=b}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return c});var r=n(130),o=n.n(r),i=n(16),a=n.n(i),s=a()("navigationMode","restricted"),l=o()(a()("sidebarMode","hidden")),c=a()("sidebarMode","open")},function(e,t,n){"use strict";var r=n(395),o=n(743),i=n.n(o),a={INIT:"@@redux/INIT"};function s(e,t,n){var o;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,c=t,u=[],f=u,d=!1;function p(){f===u&&(f=u.slice())}function h(){return c}function m(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),f.push(e),function(){if(t){t=!1,p();var n=f.indexOf(e);f.splice(n,1)}}}function v(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=l(c,e)}finally{d=!1}for(var t=u=f,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:a.INIT}),(o={dispatch:v,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,v({type:a.INIT})}})[i.a]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.a]=function(){return this},e},o}function l(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', 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 c(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n);var s=void 0;try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))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.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.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.')})}(n)}catch(e){s=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,o={},a=0;a<i.length;a++){var c=i[a],u=n[c],f=e[c],d=u(f,t);if(void 0===d){var p=l(c,t);throw new Error(p)}o[c]=d,r=r||d!==f}return r?o:e}}function u(e,t){return function(){return t(e.apply(void 0,arguments))}}function f(e,t){if("function"==typeof e)return u(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 n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=u(a,t))}return r}var d=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};function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i,a=e(n,r,o),s=a.dispatch,l={getState:a.getState,dispatch:function(e){return s(e)}};return i=t.map(function(e){return e(l)}),s=function(){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))}})}.apply(void 0,i)(a.dispatch),d({},a,{dispatch:s})}}}n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return p})},function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return y});var r=n(19),o=n.n(r),i=n(155),a=n.n(i),s=n(271),l=n.n(s),c=n(110),u=n.n(c),f=n(347),d=n.n(f),p=n(25),h=n.n(p),m=n(12),v=n.n(m),g=function(e){return l()(a()(["tmp",e]),[v()(e),u()(e)])},y=function(e){return l()(o()(e),[h()(["tmp",e]),d()(["tmp",e])])}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"}},function(e,t,n){"use strict";var r=n(1077);n.d(t,"a",function(){return r.a});var o=n(1078);n.d(t,"b",function(){return o.a});var i=n(1081);n.d(t,"c",function(){return i.a});var a=n(1083);n.d(t,"d",function(){return a.a})},function(e,t,n){"use strict";(function(e){n.d(t,"h",function(){return T}),n.d(t,"g",function(){return C}),n.d(t,"f",function(){return O}),n.d(t,"b",function(){return j}),n.d(t,"c",function(){return A}),n.d(t,"d",function(){return N}),n.d(t,"e",function(){return M}),n.d(t,"a",function(){return I});var r=n(32),o=n(3),i=n.n(o),a=n(33),s=n.n(a),l=n(17),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(11),m=(n(1716),n(0)),v=n.n(m),g=n(2),y=n.n(g),b=n(64),_=n(60),w=n(46),E=n(313),x=n(88),k=n(55),S=n(63),T=function(t){function n(){return Object(u.a)(this,n),Object(d.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(f.a)(n,[{key:"handleHeadingChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(_.a)(Object(w.k)({lessonId:r,blockId:o,itemId:e,payload:{heading:t}}))}},{key:"handleTextChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(_.a)(Object(w.k)({lessonId:r,blockId:o,itemId:e,payload:{paragraph:t}}))}},{key:"render",value:function(){var t,n,r=this,o=this.props,a=o.items,l=o.type,u=o.heading,f=o.columns,d=o.settings,p=o.editable,h=d.paddingTop,m=d.paddingBottom,v=d.backgroundColor,g=d.entranceAnimation,_=y()("block-text block-text--".concat(l),{"block-text--no-animation":!g}),w={backgroundColor:Object(b.a)("",v),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},k=u?"heading"===u?"h2":"h3":"span";return e.createElement("div",{className:_,style:w},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},""!==u?c()(t=s()(a).call(a,0,1)).call(t,function(t){var n,o=t.id,a=t.heading,s=a||null;return e.createElement("div",{className:"block-text__col brand--head",key:o},e.createElement(k,null,e.createElement(E.a,{locked:!p,allowBold:!1,value:s,placeholder:"Enter a heading",onChange:i()(n=r.handleHeadingChange).call(n,r,o)})))}):null),e.createElement("div",{className:"block-text__row"},"heading"!==l?c()(n=s()(a).call(a,0,f)).call(n,function(t){var n,o=t.id,a=t.paragraph;return e.createElement(x.a,{key:o,className:"block-text__col brand--body",value:a||"",placeholder:"Enter some paragraph text",onChange:i()(n=r.handleTextChange).call(n,r,o),editable:p})}):null)))}}],[{key:"propTypes",get:function(){return{lessonId:v.a.any,blockId:v.a.any,items:v.a.array.isRequired,settings:v.a.object.isRequired,type:v.a.string,heading:v.a.string,columns:v.a.number,editable:v.a.bool}}},{key:"defaultProps",get:function(){return{type:"onecol",heading:"",columns:1,editable:!1,items:[]}}}]),n}(e.Component),C=function(t){return e.createElement(T,Object(r.a)({type:"twocol",columns:2},t))},O=function(t){return e.createElement(T,Object(r.a)({type:"threecol",columns:3},t))},j=function(t){return e.createElement(T,Object(r.a)({type:"heading",heading:"heading"},t))},A=function(t){return e.createElement(T,Object(r.a)({type:"heading",heading:"subheading"},t))},N=function(t){return e.createElement(T,Object(r.a)({heading:"heading"},t))},M=function(t){return e.createElement(T,Object(r.a)({heading:"subheading"},t))},I=function(t){function n(){return Object(u.a)(this,n),Object(d.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(f.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(_.a)(Object(w.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.animateBlockEntrance,a=r.editable,l=r.isLearner,u=r.items,f=r.labels.codeGroup,d=r.settings,p=d.paddingTop,h=d.paddingBottom,m=d.backgroundColor,v=d.entranceAnimation,g=d.snippetBackgroundColor,_=y()("block-text block-text--code",{"block-text--padding-top":2===Number(p),"block-text--padding-bottom":2===Number(h),"block-text--no-animation":!v}),w={backgroundColor:Object(b.a)("",m),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*h,"px")};return e.createElement("div",{className:_,style:w},e.createElement(k.a,{animateBlockEntrance:o,animateIn:"fadeIn",isLearner:l},e.createElement("div",{className:"block-text__container"},c()(t=s()(u).call(u,0,1)).call(t,function(t){var r,o=t.id,s=t.code,l=t.caption;return e.createElement("div",{className:"block-text__row",key:o},e.createElement("div",{"aria-label":f,className:"block-text__col",role:S.a},e.createElement("figure",{className:"block-text__figure"},e.createElement("pre",{className:"block-text__code",style:{backgroundColor:Object(b.a)("",g)},dangerouslySetInnerHTML:{__html:s}}),e.createElement(x.a,{className:"block-text__code-caption brand--body brand--linkColor",value:l||"",placeholder:"Add a caption",onChange:i()(r=n.handleCaptionChange).call(r,n,o),component:"figcaption",editable:a}))))}))))}}],[{key:"propTypes",get:function(){return{lessonId:v.a.any,blockId:v.a.any,items:v.a.array.isRequired,settings:v.a.object.isRequired,editable:v.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";if(n(107)){var r=n(66),o=n(23),i=n(639),a=n(99),s=n(627),l=n(291),c=n(323),u=n(158),f=n(104),d=n(791),p=n(804),h=n(232),m=n(134),v=n(494),g=n(85),y=n(325),b=n(415),_=n(324).f,w=n(805),E=n(167)(0),x=n(359),k=n(118),S=n(166),T=n(193),C=T.get,O=T.set,j=k.f,A=S.f,N=r.RangeError,M=s.ArrayBuffer,I=s.DataView,L=a.NATIVE_ARRAY_BUFFER_VIEWS,P=a.TYPED_ARRAY_TAG,D=a.TypedArray,R=a.TypedArrayPrototype,F=a.aTypedArrayConstructor,B=a.isTypedArray,U=function(e,t){for(var n=0,r=t.length,o=new(F(e))(r);r>n;)o[n]=t[n++];return o},q=function(e,t){j(e,t,{get:function(){return C(this)[t]}})},z=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},H=function(e,t){return B(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},W=function(e,t){return H(e,t=h(t,!0))?c(2,e[t]):A(e,t)},$=function(e,t,n){return!(H(e,t=h(t,!0))&&g(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?j(e,t,n):(e[t]=n.value,e)};L||(S.f=W,k.f=$,q(R,"buffer"),q(R,"byteOffset"),q(R,"byteLength"),q(R,"length")),o({target:"Object",stat:!0,forced:!L},{getOwnPropertyDescriptor:W,defineProperty:$}),e.exports=function(e,t,n,a){var s=e+(a?"Clamped":"")+"Array",c="get"+e,h="set"+e,m=r[s],v=m,k=v&&v.prototype,S={},T=function(e,n){j(e,n,{get:function(){return function(e,n){var r=C(e);return r.view[c](n*t+r.byteOffset,!0)}(this,n)},set:function(e){return function(e,n,r){var o=C(e);a&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.view[h](n*t+o.byteOffset,r,!0)}(this,n,e)},enumerable:!0})};L?i&&(v=n(function(e,n,r,o){return l(e,v,s),g(n)?z(n)?void 0!==o?new m(n,p(r,t),o):void 0!==r?new m(n,p(r,t)):new m(n):B(n)?U(v,n):w.call(v,n):new m(d(n))}),b&&b(v,D),E(_(m),function(e){e in v||u(v,e,m[e])}),v.prototype=k):(v=n(function(e,n,r,o){l(e,v,s);var i,a,c,u=0,h=0;if(g(n)){if(!z(n))return B(n)?U(v,n):w.call(v,n);i=n,h=p(r,t);var m=n.byteLength;if(void 0===o){if(m%t)throw N("Wrong length");if((a=m-h)<0)throw N("Wrong length")}else if((a=f(o)*t)+h>m)throw N("Wrong length");c=a/t}else c=d(n),i=new M(a=c*t);for(O(e,{buffer:i,byteOffset:h,byteLength:a,length:c,view:new I(i)});u<c;)T(e,u++)}),b&&b(v,D),k=v.prototype=y(R)),k.constructor!==v&&u(k,"constructor",v),P&&u(k,P,s),S[s]=v,o({global:!0,forced:v!=m,sham:!L},S),"BYTES_PER_ELEMENT"in v||u(v,"BYTES_PER_ELEMENT",t),"BYTES_PER_ELEMENT"in k||u(k,"BYTES_PER_ELEMENT",t),x(s)}}else e.exports=function(){}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(508),o=n(420);e.exports=function(e){return r(o(e))}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(1781)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(258))},function(e,t,n){var r=n(695),o=n(338),i=n(374),a=Object.prototype.toString,s=r(Array,"isArray")||function(e){return i(e)&&o(e.length)&&"[object Array]"==a.call(e)};e.exports=s},function(e,t,n){var r=n(183);e.exports=function(e){return r(e)?e:Object(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.fixEvent=d,t.on=p,t.off=h,t.trigger=function e(t,n,o){var i=r.hasElData(t)?r.getElData(t):{};var a=t.parentNode||t.ownerDocument;"string"==typeof n&&(n={type:n,target:t});n=d(n);i.dispatcher&&i.dispatcher.call(t,n,o);if(a&&!n.isPropagationStopped()&&!0===n.bubbles)e.call(null,a,n,o);else if(!a&&!n.defaultPrevented){var s=r.getElData(n.target);n.target[n.type]&&(s.disabled=!0,"function"==typeof n.target[n.type]&&n.target[n.type](),s.disabled=!1)}return!n.defaultPrevented},t.one=function e(t,n,r){if(Array.isArray(n))return f(e,t,n,r);var i=function e(){h(t,n,e),r.apply(this,arguments)};i.guid=r.guid=r.guid||o.newGUID();p(t,n,i)};var r=c(n(124)),o=c(n(375)),i=l(n(184)),a=l(n(141)),s=l(n(129));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e,t){var n=r.getElData(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&r.removeElData(e)}function f(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function d(e){function t(){return!0}function n(){return!1}return e&&e.isPropagationStopped||function(){var r=e||a.default.event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||s.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var i=s.default.documentElement,l=s.default.body;e.pageX=e.clientX+(i&&i.scrollLeft||l&&l.scrollLeft||0)-(i&&i.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(i&&i.scrollTop||l&&l.scrollTop||0)-(i&&i.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}(),e}function p(e,t,n){if(Array.isArray(t))return f(p,e,t,n);var a=r.getElData(e);a.handlers||(a.handlers={}),a.handlers[t]||(a.handlers[t]=[]),n.guid||(n.guid=o.newGUID()),a.handlers[t].push(n),a.dispatcher||(a.disabled=!1,a.dispatcher=function(t,n){if(!a.disabled){t=d(t);var r=a.handlers[t.type];if(r)for(var o=r.slice(0),s=0,l=o.length;s<l&&!t.isImmediatePropagationStopped();s++)try{o[s].call(e,t,n)}catch(e){i.default.error(e)}}}),1===a.handlers[t].length&&(e.addEventListener?e.addEventListener(t,a.dispatcher,!1):e.attachEvent&&e.attachEvent("on"+t,a.dispatcher))}function h(e,t,n){if(r.hasElData(e)){var o=r.getElData(e);if(o.handlers){if(Array.isArray(t))return f(h,e,t,n);var i=function(t){o.handlers[t]=[],u(e,t)};if(t){var a=o.handlers[t];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);u(e,t)}else i(t)}else for(var l in o.handlers)i(l)}}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=c;var o,i=n(939),a=(o=i)&&o.__esModule?o:{default:o};function s(e){return!!e&&"object"===(void 0===e?"undefined":r(e))&&"[object Object]"===e.toString()&&e.constructor===Object}function l(e,t){return s(t)?s(e)?void 0:c(t):t}function c(){var e=Array.prototype.slice.call(arguments);return e.unshift({}),e.push(l),a.default.apply(null,e),e[0]}},function(e,t,n){var r=n(1104),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(21),o=n(431);e.exports=r(function(e,t){var n=e<0?t.length+e:e;return o(t)?t.charAt(n):t[n]})},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return r.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return(r?"/":"")+(t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return(e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l<a;l++)if(o[l]!==i[l]){s=l;break}var c=[];for(l=s;l<o.length;l++)c.push("..");return(c=c.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return o(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(258))},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e/t})},function(e,t,n){var r=n(21),o=n(526),i=n(57),a=n(240),s=n(215),l=n(73);e.exports=r(function(e,t){return i(l(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,o(function(e){return e.apply(r,n)},t))})})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e<=t})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return t.match(e)||[]})},function(e,t,n){e.exports=n(1571)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(435),o=n(436),i=n(94),a="compose: Functions required";function s(e,t){if(!i(t))throw new TypeError(a);return function(){return t.call(null,e.apply(null,r(arguments)))}}e.exports=function(){if(!arguments.length)throw new TypeError(a);var e=r(arguments).slice().reverse(),t=e[0];if(!i(t))throw new TypeError(a);return e.slice(1).concat(o).reduce(s,t)}},function(e,t,n){"use strict";n.d(t,"e",function(){return u}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return p});var r=n(6),o=n(26),i=n.n(o),a=n(14),s=n.n(a),l=n(13),c=i()("rise/status/")("SET_LOADED");t.a=Object(l.f)({courseLoaded:!1,fontsLoaded:!1,connection:"connected"},Object(r.a)({},c,function(e,t){return s()(e,t)}));var u=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{fontsLoaded:e})},f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{courseLoaded:e})},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"connected";return Object(l.a)(c,{connection:e})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{coverLoaded:e})}},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(e)})},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1908),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p});var r=n(26),o=n.n(r),i=n(13),a=n(190),s=o()("rise/rise-com/"),l=s("ENROLLED"),c=s("UNENROLLED"),u=function(){return Object(i.h)(a.d)},f=function(){return Object(i.a)(l,void 0)},d=function(){return Object(i.h)(a.g)},p=function(){return Object(i.a)(c,void 0)}},function(e,t,n){"use strict";n.d(t,"a",function(){return Q}),n.d(t,"c",function(){return oe}),n.d(t,"b",function(){return se}),n.d(t,"e",function(){return le}),n.d(t,"d",function(){return ce});var r=n(156),o=n(170),i=n.n(o),a=n(6),s=n(19),l=n.n(s),c=n(5),u=n.n(c),f=n(270),d=n.n(f),p=n(35),h=n.n(p),m=n(30),v=n.n(m),g=n(37),y=n.n(g),b=n(28),_=n.n(b),w=n(67),E=n.n(w),x=n(95),k=n.n(x),S=n(43),T=n.n(S),C=n(74),O=n.n(C),j=n(58),A=n.n(j),N=n(14),M=n.n(N),I=n(54),L=n.n(I),P=n(378),D=n.n(P),R=n(47),F=n.n(R),B=n(18),U=n.n(B),q=n(12),z=n.n(q),H=n(16),W=n.n(H),$=n(69),Y=n.n($),K=n(31),V=n.n(K),G=n(72),X=n(65),Z=n(397),Q=u()(_()(M.a)({isComplete:!0,percentComplete:100}),F()(A()("items"),Object(G.e)(u()(F()(A()("items"),Object(G.e)(l()("isComplete",!0))),l()("isComplete",!0))))),J=function(e){var t=e.id,n=e.items;return U()(F()(O()(["items",t,"items"]),ae(n)),F()(O()(["items",t]),ie),X.e,V()(W()("percentComplete",100),l()("isComplete",!0)))},ee=function(e,t){var n=t.id;return M()(e,Object(a.a)({},n,l()("isComplete",!0)))},te=L()(["correctlyAnswered","percentComplete","percentViewed","isComplete"]),ne=F()(A()("items"),Object(G.e)(L()(["isComplete","isCorrect","isViewed"]))),re=Object(G.e)(u()(ne,te)),oe=U()(L()(["isComplete","percentComplete"]),F()(A()("items"),re)),ie=V()(function(e){return D()(u()(E.a,z()("items"))(e),function(e){return U()(z()("items"),Y.a,y()(W()("isComplete",!0)),T.a,_()(d.a)(u()(T.a,k.a,z()("items"))(e)),h()(1))(e)}(e))},l()("isComplete",!0)),ae=function(e){return function(t){return v()(i()(e).call(e,ee,{}),t)}},se=function(e){var t=e.lessonId,n=Object(r.a)(e,["lessonId"]);return function(e){return e(Object(X.f)({id:t,updateFn:(r=n,o=r.blockId,F()(O()(["items",o]),Z.a))}));var r,o}},le=function(e){var t=e.id,n=e.lessonId,r=e.items;return function(e){return e(Object(X.f)({id:n,updateFn:J({id:t,items:r})}))}},ce=function(e){var t=e.lessonId,n=Object(r.a)(e,["lessonId"]);return function(e){return e(Object(X.f)({id:t,updateFn:(r=n,o=r.itemId,i=r.blockId,a=r.isCorrect,U()(F()(O()(["items",i]),Object(Z.b)({itemId:o,isCorrect:a})),X.e))}));var r,o,i,a}}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(186),o=n.n(r),i=n(27),a=n.n(i),s=n(204),l=n.n(s),c=n(18),u=n.n(c),f=n(12),d=n.n(f),p=u()(a()(d()("labels")),o.a,a()(function(e){var t={};return t[e.name]=e.text,t}),l.a)([{title:"Course Overview",labels:[{name:"courseStart",text:"START COURSE"},{name:"courseResume",text:"RESUME COURSE"},{name:"courseDetails",text:"DETAILS"}]},{title:"Global",labels:[{name:"courseHome",text:"Home"},{name:"lessonComplete",text:"80% COMPLETE"},{name:"lessonName",text:"Lesson 4 of 7"},{name:"lessonRestricted",text:"Lessons must be completed in order"},{name:"courseSkipToLesson",text:"SKIP TO LESSON"},{name:"search",text:"search"},{name:"results",text:"20 results"},{name:"result",text:"1 result"},{name:"noResults",text:'No results for "abc"'}]},{title:"Quiz & Knowledge Check",labels:[{name:"quizStart",text:"START QUIZ"},{name:"quizAcceptableResponses",text:"Acceptable responses"},{name:"quizQuestion",text:"Question"},{name:"quizAnswerPlaceholder",text:"Type your answer here"},{name:"quizSubmit",text:"SUBMIT"},{name:"quizNext",text:"NEXT"},{name:"quizIncorrect",text:"Incorrect"},{name:"quizCorrect",text:"Correct"},{name:"quizResults",text:"Quiz Results"},{name:"quizScore",text:"Your score 90%"},{name:"quizPassing",text:"PASSING 80%"},{name:"quizTakeAgain",text:"TAKE AGAIN"},{name:"quizRequirePassingScore",text:"Must pass quiz before continuing"},{name:"quizContinue",text:"Continue"}]},{title:"Process",labels:[{name:"processStepName",text:"Step 3 of 6"},{name:"processNextStep",text:"NEXT STEP"},{name:"processLessonName",text:"Lesson 5 Complete"},{name:"processStart",text:"START"},{name:"processStartAgain",text:"START AGAIN"},{name:"processSwipe",text:"Swipe to continue"}]},{title:"Sorting",labels:[{name:"sortingCardsCorrect",text:"6/8 Cards Correct"},{name:"sortingReplay",text:"REPLAY"}]},{title:"Embeds",labels:[{name:"embedViewOn",text:"VIEW ON YOUTUBE"},{name:"embedReadMore",text:"Read more"}]},{title:"Flashcards",labels:[{name:"blocksClickToFlip",text:"Click cards to flip"},{name:"blocksPreposition",text:"1 of 3"}]},{title:"Scenario",labels:[{name:"scenarioTryAgain",text:"TRY AGAIN"},{name:"scenarioContinue",text:"CONTINUE"},{name:"scenarioComplete",text:"Scenario Complete"},{name:"scenarioStartOver",text:"START OVER"}]},{title:"Exit Course (LMS)",labels:[{name:"courseExit",text:"EXIT COURSE"},{name:"salutation",text:"👋 Bye!"},{name:"exitMessage",text:"You may now leave this page."}]},{title:"Accessibility",labels:[{name:"overviewPageTitleSuffix",text:"Overview Page Title"},{name:"lessonSidebarLandmark",text:"Lesson Sidebar"},{name:"hamburgerButtonLabel",text:"Course Overview Sidebar"},{name:"lessonHeaderLandmark",text:"Lesson Header"},{name:"timelineLandmark",text:"Timeline"},{name:"timelineCardGroupPrefix",text:"Timeline Card"},{name:"labeledGraphicMarkerLabel",text:"Labeled graphic marker"},{name:"labeledGraphicBubbleLabel",text:"Labeled graphic bubble"},{name:"labeledGraphicPreviousMarkerLabel",text:"Previous marker"},{name:"labeledGraphicNextMarkerLabel",text:"Next marker"},{name:"audioPlayerGroup",text:"Audio player. You can use the space bar to toggle playback and arrow keys to scrub."},{name:"seekSliderLabel",text:"Seek"},{name:"playButtonLabel",text:"Play"},{name:"pauseButtonLabel",text:"Pause"},{name:"videoPlayerGroup",text:"Video player. You can use the space bar to toggle playback and arrow keys to scrub."},{name:"embedPlayerGroup",text:"Embedded media player"},{name:"embedPhotoGroup",text:"Embedded photo"},{name:"embedLinkGroup",text:"Embedded web content"},{name:"embedVideoGroup",text:"Embedded video"},{name:"noteGroup",text:"Note"},{name:"statementGroup",text:"Statement"},{name:"numberedListGroup",text:"Numbered list"},{name:"checkboxListGroup",text:"Checkbox list"},{name:"bulletedListGroup",text:"Bulleted list"},{name:"quoteGroup",text:"Quote"},{name:"lessonContentLandmark",text:"Lesson Content"},{name:"imageGalleryGroup",text:"Image gallery"},{name:"imageAndTextGroup",text:"Image and text"},{name:"textOnImageGroup",text:"Text on image"},{name:"attachmentGroup",text:"File Attachment"},{name:"codeGroup",text:"Code"},{name:"numberedDividerGroup",text:"Numbered divider"},{name:"accordionGroup",text:"Accordion"},{name:"tabGroup",text:"Tab"},{name:"flashcardStackGroup",text:"Flashcard stack"},{name:"flashcardGridGroup",text:"Flashcard grid"},{name:"buttonGroup",text:"Button"},{name:"buttonStackGroup",text:"Button stack"},{name:"knowledgeCheckGroup",text:"Knowledge check"},{name:"storylineGroup",text:"Storyline"},{name:"processLandmark",text:"Process"},{name:"quizLandmark",text:"Quiz"},{name:"labeledGraphicLandmark",text:"Labeled Graphic"},{name:"sortingLandmark",text:"Sorting Activity"},{name:"urlEmbedLandmark",text:"URL/Embed"},{name:"flashcardFrontLabel",text:"Flashcard front"},{name:"flashcardBackLabel",text:"Flashcard back"},{name:"previousFlashCardLabel",text:"Previous flashcard"},{name:"nextFlashCardLabel",text:"Next flashcard"},{name:"feedbackGroup",text:"Feedback"}]}])},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){e=e<n.length&&e>=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})},function(e,t,n){var r=n(2045),o=Number.POSITIVE_INFINITY;e.exports=function(e){return r(e,o)}},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return y}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return _});var r,o=n(6),i=n(19),a=n.n(i),s=n(13),l=n(26),c=n.n(l)()("rise/search/"),u=c("RESET_SEARCH"),f=c("SET_SEARCH_ACTIVE"),d=c("SET_SEARCH_ACTIVE_LESSONS"),p=c("SET_SEARCH_LESSONS"),h=c("SET_SEARCH_TERM"),m={active:!1,activeLessons:[],lessons:[],term:null};t.a=Object(s.f)(m,(r={},Object(o.a)(r,u,function(e,t){return t?a()("active",e.active,m):e}),Object(o.a)(r,f,function(e,t){return a()("active",t,e)}),Object(o.a)(r,d,function(e,t){return a()("activeLessons",t,e)}),Object(o.a)(r,p,function(e,t){return a()("lessons",t,e)}),Object(o.a)(r,h,function(e,t){return a()("term",t,e)}),r));var v=Object(s.a)(u),g=Object(s.a)(f),y=Object(s.a)(d),b=Object(s.a)(p),_=Object(s.a)(h)},function(e,t,n){e.exports=n(1622)},function(e,t,n){e.exports=n(1697).default},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(115),a=n.n(i),s=n(752),l=n.n(s),c=n(610),u=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};function f(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}var d=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},p=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,e.call.apply(e,[this].concat(i))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!d(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,i=n.to;o?t.replace(i):t.push(i)}},f(r,n)}return function(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,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);l()(this.context.router,"You should not use <Link> outside a <Router>"),l()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof t?Object(c.b)(t,null,null,i.location):t,s=i.createHref(a);return o.a.createElement("a",u({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(o.a.Component);p.propTypes={onClick:a.a.func,target:a.a.string,replace:a.a.bool,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired,innerRef:a.a.oneOfType([a.a.string,a.a.func])},p.defaultProps={replace:!1},p.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired,createHref:a.a.func.isRequired}).isRequired}).isRequired},t.a=p},function(e,t,n){var r=n(194),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(98)("unscopables"),o=n(325),i=n(158),a=Array.prototype;null==a[r]&&i(a,r,o(null)),e.exports=function(e){a[r][e]=!0}},function(e,t,n){var r=n(211);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(93),o=n(211),i=n(98)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(212),o=n(811),i=n(196),a=n(506),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(293).f,o=n(235),i=n(197),a=n(119)("toStringTag"),s=n(1479),l=s!=={}.toString;e.exports=function(e,t,n,c){if(e){var u=n?e:e.prototype;i(u,a)||r(u,a,{configurable:!0,value:t}),c&&l&&o(u,"toString",s)}}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return!!e&&e.toString&&"[object Object]"===e.toString()}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(94);e.exports=function(e,t){return r(t[e])||r(t["@@implements"])&&!!t["@@implements"](e)}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(){return"Const"},Either:function(){return"Either"},Endo:function(){return"Endo"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e){return{type:r(e)}},type:r}},function(e,t){e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r=n(948),o=n(950),i=n(951),a=n(1971),s=i();r(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),o=Math.floor(e/3600),i=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(o=r=n="-"),(o=o>0||a>0?o+":":"")+(r=((o||i>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)}},function(e,t,n){"use strict";var r=n(109),o=n(86),i=n(452);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=o.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?o.merge({},[r.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=o.extend(this.defaults[e],t))},addScalesToLayout:function(e){o.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,i.addBox(e,t)})}}},function(e,t,n){"use strict";e.exports={},e.exports.Arc=n(2108),e.exports.Line=n(2109),e.exports.Point=n(2110),e.exports.Rectangle=n(2111)},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return Number(e)+Number(t)})},function(e,t,n){e.exports=n(1608)},function(e,t,n){var r=n(52);e.exports=r(function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})},function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"b",function(){return E});var r=n(5),o=n.n(r),i=n(37),a=n.n(i),s=n(171),l=n.n(s),c=n(76),u=n.n(c),f=n(87),d=n.n(f),p=n(25),h=n.n(p),m=n(460),v=n.n(m),g=n(12),y=n.n(g),b=y()("lessons"),_=v()(function(e){return!!e},["settings","passToContinue"]),w=function(e){var t,n=e.course,r=e.courseProgress;return o()(u.a,a()((t=b(r),o()(d.a,function(e){return h()([e,"passed"],t)},y()("id")))),a()(_),b)(n)||{}},E=function(e){var t=e.courseProgress,n=e.lesson,r=e.restrictingQuiz,i=function(e){return h()([e,"index"],b(t))},a=i(y()("id",n));return o()(l()(a),i,y()("id"))(r)?r:{}}},function(e,t,n){var r=n(21),o=n(530),i=n(462),a=n(532);e.exports=r(function(e,t){return o(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:a(i)(e,t)})},function(e,t,n){!function(t){"use strict";var n=0,r=Math.pow(36,4),o=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},i=function(){return o((Math.random()*r<<0).toString(36),4)},a=function(){return n=n<r?n:0,++n-1},s=function(){var e=(new Date).getTime().toString(36),t=s.fingerprint(),n=i()+i();return"c"+e+o(a().toString(36),4)+t+n};s.slug=function(){var e,t=(new Date).getTime().toString(36),n=s.fingerprint().slice(0,1)+s.fingerprint().slice(-1),r=i().slice(-2);return e=a().toString(36).slice(-4),t.slice(-2)+e+n+r},s.globalCount=function(){var e=function(){var e,t=0;for(e in window)t++;return t}();return s.globalCount=function(){return e},e},s.fingerprint=function(){return o((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+s.globalCount().toString(36),4)},t.register?t.register("cuid",s):e.exports=s}(this.applitude||this)},function(e,t,n){var r=n(52),o=n(1824);e.exports=r(o)},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e>=t})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A});var r=n(6),o=n(4),i=n.n(o),a=n(482),s=n(9),l=n(7),c=n(10),u=n(8),f=n(11),d=(n(1872),n(1873),n(1874),n(1875),n(1876),n(1877),n(1878),n(1879),n(1880),n(1881),n(1882),n(1883),n(1884),n(1885),n(1886),n(1887),n(1888),n(1889),n(1890),n(1891),n(1896),n(42)),p=n(2),h=n.n(p),m=n(5),v=n.n(m),g=n(14),y=n.n(g),b=n(1173),_=n.n(b),w=n(84),E=n(1174),x=n(173),k=function(e,t){return/^https?:\/\//.test(t)?e:'href="http://'.concat(t,'"')},S=function(e){return e.replace(/href="([^"]+)"/gi,k)},T=function(e){return function(e){return!e||""===e||"<p><br></p>"===e||"<p><br /></p>"===e}(e)?"":e},C=function(e){return e.currentTarget.parentElement.parentElement.classList.remove("fr-show-counter")},O=function(e){return e.currentTarget.parentElement.parentElement.classList.add("fr-show-counter")},j=["#5dbe6a","#00bd9c","#50abd4","#2580cc","#9462ba","#465478","#cccccc","#3ca95c","#00a984","#388dbb","#2467b2","#553684","#313537","#000000","#f8db5a","#fda100","#ed6a51","#e44f3b","#a38f83","#efefef","#ffffff","#fbc600","#f57926","#d3473c","#ba302a","#7c706b","#d1d5d8","REMOVE"],A=function(t){function n(){return Object(s.a)(this,n),Object(c.a)(this,Object(u.a)(n).apply(this,arguments))}return Object(f.a)(n,t),Object(l.a)(n,[{key:"shouldComponentUpdate",value:function(e){return e.value!==this.props.value||this.props.locked!=e.locked}},{key:"setFocusAtEnd",value:function(){var e=this.editor.$editor[0],t=e.children.length>0?e.lastChild:e;if(this.setFocus(),void 0!==window.getSelection&&void 0!==document.createRange){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var r=window.getSelection();r.removeAllRanges(),r.addRange(n)}else if(void 0!==document.body.createTextRange){var o=document.body.createTextRange();o.moveToElementText(t),o.collapse(!1),o.select()}}},{key:"setFocus",value:function(){this.editor.$editor[0].focus()}},{key:"render",value:function(){var t,n=this,o=this.props,s=o.allowBold,l=o.className,c=o.hasQuickInsert,u=o.onChange,f=o.onDrop,p=o.onFocus,m=o.onKeyDown,g=o.locked,b=o.maxLength,E=o.multiLine,k=o.options,A=o.placeholder,N=o.value,M=["italic","underline","strikeThrough","subscript","superscript","|","fontSize","color","insertLink","-","alignWithDefault","formatOL","formatUL","outdent","indent","selectAll","clearFormatting","undo","redo"];s&&M.unshift("bold");var I=i()(t=["alignWithDefault","charCounter","codeBeautifier","codeView","colors","draggable","entities","fontSize","fullscreen","inlineStyle","lineBreaker","link","lists"]).call(t,Object(a.a)(Object(x.a)("table")&&c?["quickInsert"]:[]),["paragraphFormat","save"],Object(a.a)(Object(x.a)("table")?["table"]:[]),["url","wordPaste"]),L=y()({charCounterMax:b,colorsBackground:j,colorsText:j,events:{"froalaEditor.initialized":function(e,t){t.events.on("keydown",m,!0),t.events.on("drop",f,!0),t.events.on("focus",O,!0),t.events.on("blur",C,!0),t.events.trigger("charCounter.update")},"froalaEditor.focus":function(e,t){t.events.on("focus",p,!0),t.events.trigger("charCounter.update")}},fontSize:["12","13","14","15","16","17","18","20","22","24","26","28","30","32","34","36","38","40","42","44","46","48","50","52"],immediateReactModelUpdate:!0,keepFormatOnDelete:!0,key:Object(w.d)("FROALA_KEY"),lineBreakerTags:Object(x.a)("table")?["table"]:[],linkAlwaysBlank:!0,linkEditButtons:["linkEdit","linkRemove"],linkInsertButtons:["linkBack","|"],listAdvancedTypes:!1,multiLine:E,pasteDeniedTags:["img","iframe","script"],pastePlain:!0,placeholderText:A,pluginsEnabled:I,quickInsertButtons:["table","ol","ul"],tabSpaces:4,toolbarButtons:M,toolbarButtonsMD:M,toolbarButtonsSM:M,toolbarButtonsXS:M,toolbarInline:!0,wordPasteModal:!1},k),P=h()("brand--linkColor",Object(r.a)({},l,l));return e.createElement("div",{className:P},g?e.createElement(d.a,{value:N}):e.createElement(_.a,{tag:"textarea",config:L,onModelChange:v()(u,S,T),ref:function(e){n.editor=e},model:N}))}}],[{key:"defaultProps",get:function(){return{allowBold:!0,hasQuickInsert:!0,locked:!1,maxLength:-1,multiLine:!0,options:{},value:"",onChange:function(){},onDrop:E.a,onFocus:function(){},onKeyDown:function(){}}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(32),o=n(3),i=n.n(o),a=n(9),s=n(7),l=n(10),c=n(8),u=n(15),f=n(11),d=n(82),p=function(t){function n(e){var t,r,o,s,f,d;return Object(a.a)(this,n),(d=Object(l.a)(this,Object(c.a)(n).call(this,e))).handleTransition=i()(t=d.handleTransition).call(t,Object(u.a)(d)),d.onEnter=i()(r=d.onEnter).call(r,Object(u.a)(d)),d.onEntered=i()(o=d.onEntered).call(o,Object(u.a)(d)),d.onExit=i()(s=d.onExit).call(s,Object(u.a)(d)),d.onExited=i()(f=d.onExited).call(f,Object(u.a)(d)),d}return Object(f.a)(n,t),Object(s.a)(n,[{key:"handleTransition",value:function(e,t){var n=this.transitionState;"entering"===n?this.onEnter(t):"exiting"===n&&this.onExit(t)}},{key:"onEnter",value:function(e){var t=this.child;t&&t.componentWillEnter?t.componentWillEnter(e):e()}},{key:"onEntered",value:function(){var e=this.child;e&&e.componentDidEnter&&e.componentDidEnter()}},{key:"onExit",value:function(e){var t=this.child;t&&t.componentWillExit?t.componentWillExit(e):e()}},{key:"onExited",value:function(){var e=this.child;e&&e.componentDidExit&&e.componentDidExit()}},{key:"render",value:function(){var t=this,n=this.props.children;return e.createElement(d.Transition,Object(r.a)({addEndListener:this.handleTransition,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0},this.props),function(r){return t.transitionState=r,n&&e.cloneElement(e.Children.only(n),{ref:function(e){return t.child=e}})})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(1084)),o=u(n(1085)),i=u(n(1)),a=u(n(96)),s=u(n(1086)),l=u(n(1087)),c=u(n(2067));function u(e){return e&&e.__esModule?e:{default:e}}function f(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}var d=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,e.call.apply(e,[this].concat(i))),r.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;r._portalContainerNode=(0,s.default)(e.container,(0,l.default)(r).body)},r.getMountNode=function(){return r._portalContainerNode},f(r,n)}return function(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,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?a.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:r.default.oneOfType([o.default,r.default.func]),onRendered:r.default.func},t.default=a.default.createPortal?d:c.default,e.exports=t.default},function(e,t,n){var r=n(373),o=n(691),i=n(183),a=n(2247),s=30,l="...",c=/\w*$/;e.exports=function(e,t,n){n&&o(e,t,n)&&(t=void 0);var u=s,f=l;if(null!=t)if(i(t)){var d="separator"in t?t.separator:d;u="length"in t?+t.length||0:u,f="omission"in t?r(t.omission):f}else u=+t||0;if(u>=(e=r(e)).length)return e;var p=u-f.length;if(p<1)return f;var h=e.slice(0,p);if(null==d)return h+f;if(a(d)){if(e.slice(p).search(d)){var m,v,g=e.slice(0,p);for(d.global||(d=RegExp(d.source,(c.exec(d)||"")+"g")),d.lastIndex=0;m=d.exec(g);)v=m.index;h=h.slice(0,null==v?p:v)}}else if(e.indexOf(d,p)!=p){var y=h.lastIndexOf(d);y>-1&&(h=h.slice(0,y))}return h+f}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return P});var r=n(33),o=n.n(r),i=n(174),a=n.n(i),s=n(17),l=n.n(s),c=n(3),u=n.n(c),f=n(34),d=n.n(f),p=n(9),h=n(10),m=n(8),v=n(15),g=n(7),y=n(11),b=(n(2257),n(2)),_=n.n(b),w=n(80),E=n.n(w),x=n(43),k=n.n(x),S=n(25),T=n.n(S),C=n(315),O=n.n(C),j=n(51),A=n.n(j),N=n(0),M=n.n(N),I=n(185),L=n.n(I),P=function(t){function n(e){var t;return Object(p.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={isSticky:!1},d()(function(){var e;document.getElementsByClassName("page-wrap")[0].addEventListener("scroll",t.onScrollRef=u()(e=t.onScroll).call(e,Object(v.a)(t)))},10),t}return Object(y.a)(n,t),Object(g.a)(n,null,[{key:"propTypes",get:function(){return{id:M.a.any.isRequired,lessonProgress:M.a.object.isRequired,type:M.a.string.isRequired,items:M.a.array}}}]),Object(g.a)(n,[{key:"componentWillUnmount",value:function(){document.getElementsByClassName("page-wrap")[0].removeEventListener("scroll",this.onScrollRef)}},{key:"onScroll",value:function(){var e=document.getElementsByClassName("page-wrap")[0],t=e.scrollTop,n=e.scrollTop,r=t>this.progresswrap.getBoundingClientRect().top+n;this.state.isSticky!==r&&this.setState({isSticky:r})}},{key:"isLessonPreview",value:function(){return!!document.querySelector(".lesson--preview")}},{key:"timelineProgressValue",value:function(){var e=this.props,t=e.items,n=e.lessonProgress,r=A()(-1,"activeIndex",n),o=k()(t);return-1===r?0:E()(r)===o?100:L()("%","",T()([r,"linePosition"],t))}},{key:"processProgressValue",value:function(){var e=this.props,t=e.items,n=e.lessonProgress,r=A()(0,"activeIndex",n),o=k()(t);return r>o?100:Math.round(r/o*100)}},{key:"progressValue",value:function(){var e=this.props,t=e.lessonProgress;switch(e.type){case"process":return this.processProgressValue();case"sorting":return A()(0,"percentViewed",t);case"timeline":return this.timelineProgressValue();default:return A()(0,"percentComplete",t)}}},{key:"render",value:function(){var t=this,n=this.props,r=n.type,i=n.items,s=n.menuOpen,c=n.mobileMenuOpen,u=this.state.isSticky,f=_()("progress-wrap",{}),d=_()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":u&&!c,"lesson--open":s&&!this.isLessonPreview(),"lesson--open-mobile":c&&!this.isLessonPreview()}),p=_()("progress",{"progress--timeline":"timeline"===r,"progress--video":"video"===r}),h=this.progressValue(),m="timeline"===r&&i&&l()(i).call(i,function(t){var n,r=_()("progress__marker",{"progress__marker--active brand--background":a()(h)>=a()(o()(n=t.linePosition).call(n,0,-1))});return e.createElement("div",{className:r,style:{left:t.linePosition},key:t.id})}),v=e.createElement("div",{className:f},e.createElement("div",{className:p},e.createElement("div",{className:"progress__container"},e.createElement("div",{className:"progress__indicator brand--background",style:{transform:"translate3d(".concat(h,"%,0px,0px)")}}),m)));return e.createElement("div",{ref:function(e){return t.progresswrap=e}},v,e.createElement(O.a,null,e.createElement("div",{className:d},v)))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){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 c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){e.exports=n(1846)},function(e,t,n){"use strict";n.d(t,"b",function(){return Y}),n.d(t,"a",function(){return K}),n.d(t,"c",function(){return X});var r=n(19),o=n.n(r),i=n(5),a=n.n(i),s=n(169),l=n.n(s),c=n(270),u=n.n(c),f=n(567),d=n.n(f),p=n(37),h=n.n(p),m=n(28),v=n.n(m),g=n(80),y=n.n(g),b=n(95),_=n.n(b),w=n(43),E=n.n(w),x=n(74),k=n.n(x),S=n(58),T=n.n(S),C=n(14),O=n.n(C),j=n(241),A=n.n(j),N=n(54),M=n.n(N),I=n(47),L=n.n(I),P=n(12),D=n.n(P),R=n(16),F=n.n(R),B=n(69),U=n.n(B),q=n(31),z=n.n(q),H=n(81),W=n(72),$=n(65),Y=function(e){var t=e.activeIndex,n=e.id;return function(e){return e(Object($.f)({id:n,updateFn:V({activeIndex:t})}))}},K=function(e){var t=e.id;return function(e){return e(Object($.f)({id:t,updateFn:G}))}},V=function(e){var t=e.activeIndex;return o()("activeIndex",t)},G=a()(L()(T()("retryAttempts"),a()(y.a,l()(0))),z()(F()("passed",!1),M()(["passed"])),z()(F()("isComplete",!1),M()(["isComplete"])),M()(["activeIndex","percentComplete","score","reportResults"]),L()(T()("items"),Object(W.e)(d.a))),X=function(e){var t=e.id,n=e.isCorrect,r=e.itemId,o=e.passingScore,i=e.passToContinue;return function(e){return e(Object($.f)({id:t,updateFn:Z({id:t,isCorrect:n,itemId:r,passingScore:o,passToContinue:i})}))}},Z=function(e){var t=e.id,n=e.itemId,r=e.isCorrect,o=e.passingScore,i=e.passToContinue;return a()(z()(F()("percentComplete",100),Q({id:t,passingScore:o,passToContinue:i})),$.e,J,L()(k()(["items",n]),v()(O.a)({isComplete:!0,isCorrect:r})))},Q=function(e){var t=e.id,n=e.passingScore,r=e.passToContinue;return function(e){var o=D()("score",e),i=o>=n,a=!r||i;return Object(H.d)(i,o,t),O()({passed:i,isComplete:a,reportResults:!0},e)}},J=function(e){return o()("score",a()(Math.round,A()(100),v()(u.a)(a()(E.a,_.a,D()("items"))(e)),E.a,h()(F()("isCorrect",!0)),U.a,D()("items"))(e),e)}},function(e,t,n){"use strict";n.d(t,"c",function(){return b}),n.d(t,"a",function(){return _}),n.d(t,"b",function(){return w});var r=n(5),o=n.n(r),i=n(26),a=n.n(i),s=n(37),l=n.n(s),c=n(36),u=n.n(c),f=n(97),d=n.n(f),p=n(12),h=n.n(p),m=n(16),v=n.n(m),g=n(73),y=n.n(g),b=function(e){var t="";return y()(function(e,n){if("section"===n.type)return t=n.id,n.children=[],a()(e,[n]);if(t){n.sectionId=t;var r=d()(v()("id",t))(e);return e[r].children=a()(e[r].children,[n]),e}return a()(e,[n])},[],e)},_=function(e,t){var n=o()(u()(v()("id",t)),h()("children")),r=o()(u()(n),l()(v()("type","section")),b)(e);return r?[r.id]:[]},w=function(e){return d()(v()("id",e))}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(778),o=n(620).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(93),o=n(781),i=n(620),a=n(782),s=n(617),l=n(490)("IE_PROTO"),c=function(){},u=function(){var e,t=s("iframe"),n=i.length;for(t.style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[i[n]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[l]=e):n=u(),void 0===t?n:o(n,t)},n(409)[l]=!0},function(e,t,n){"use strict";var r=n(232),o=n(118),i=n(323);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(408)("meta"),o=n(416),i=n(85),a=n(134),s=n(118).f,l=0,c=Object.isExtensible||function(){return!0},u=function(e){s(e,r,{value:{objectID:"O"+ ++l,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].objectID},getWeakData:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].weakData},onFreeze:function(e){return o&&f.REQUIRED&&c(e)&&!a(e,r)&&u(e),e}};n(409)[r]=!0},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,i,a,s,l],f=0;(c=new Error(t.replace(/%s/g,function(){return u[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t,n){n(513);var r=n(1481),o=n(128),i=n(235),a=n(331),s=n(119)("toStringTag");for(var l in r){var c=o[l],u=c&&c.prototype;u&&!u[s]&&i(u,s,l),a[l]=a.Array}},function(e,t,n){"use strict";var r=n(519),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(429);i.inherits=n(238);var a=n(836),s=n(654);i.inherits(f,a);for(var l=o(s.prototype),c=0;c<l.length;c++){var u=l[c];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r(t,e)}},function(e,t,n){var r=n(862);e.exports=function(e,t){return r(t,e,0)>=0}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(337),o=n(541);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){var r=n(541);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return!!e&&"object"==typeof e}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return jt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=p(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=o.momentProperties=[];function y(e,t){var n,r,o;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)r=g[n],s(o=t[r])||(e[r]=o);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,o.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=E(t)),n}function k(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&x(e[r])!==x(t[r]))&&a++;return a+i}function S(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return d(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var r,i=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var C,O={};function j(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),O[e]||(S(t),O[e]=!0)}function A(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e,t){var n,r=d({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function M(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var I={};function L(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function P(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function D(e){var t,n,r={};for(n in e)f(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var R={};function F(e,t){R[e]=t}function B(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};function W(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(H[e]=o),t&&(H[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=Y(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,o=e.match(U);for(t=0,n=o.length;t<n;t++)H[o[t]]?o[t]=H[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=A(o[r])?o[r].call(t,e):o[r];return i}}(t),z[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var K=/\d/,V=/\d\d/,G=/\d{3}/,X=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=A(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return f(ce,e)?ce[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){he(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function ve(e,t,n){null!=t&&f(pe,e)&&pe[e](t,n._a,n,e)}var ge=0,ye=1,be=2,_e=3,we=4,Ee=5,xe=6,ke=7,Se=8;function Te(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),L("year","y"),F("year",1),ue("Y",ie),ue("YY",Q,V),ue("YYYY",ne,X),ue("YYYYY",re,Z),ue("YYYYYY",re,Z),he(["YYYYY","YYYYYY"],ge),he("YYYY",function(e,t){t[ge]=2===e.length?o.parseTwoDigitYear(e):x(e)}),he("YY",function(e,t){t[ge]=o.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ge]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var Oe,je=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Me(this,e,n),o.updateOffset(this,t),this):Ne(this,e)}}function Ne(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ce(e)?29:28:31-r%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),F("month",8),ue("M",Q),ue("MM",Q,V),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=x(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ye]=o:h(n).invalidMonth=e});var Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Re(this,e),o.updateOffset(this,!0),this):Ne(this,"Month")}var Be=le,Ue=le;function qe(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=de(r[t]),o[t]=de(o[t]);for(t=0;t<24;t++)i[t]=de(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,o=(7+ze(e,0,r).getUTCDay()-t)%7;return-o+r-1}function We(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=He(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Te(i=e-1)+c:c>Te(e)?(i=e+1,a=c-Te(e)):(i=e,a=c),{year:i,dayOfYear:a}}function $e(e,t,n){var r,o,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Ye(o,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ye(e,t,n){var r=He(e,t,n),o=He(e+1,t,n);return(Te(e)-r+o)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",Q),ue("ww",Q,V),ue("W",Q),ue("WW",Q,V),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=le,Ze=le,Qe=le;function Je(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,et),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),tt("a",!0),tt("A",!1),L("hour","h"),F("hour",13),ue("a",nt),ue("A",nt),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,V),ue("hh",Q,V),ue("kk",Q,V),ue("hmm",J),ue("hmmss",ee),ue("Hmm",J),ue("Hmmss",ee),he(["H","HH"],_e),he(["k","kk"],function(e,t,n){var r=x(e);t[_e]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[_e]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[Ee]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[Ee]=x(e.substr(o))});var rt,ot=Ae("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:De,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Ge,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(2122)("./"+t),ut(r)}catch(e){}return at[t]}function ut(e,t){var n;return e&&((n=s(t)?dt(e):ft(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function ft(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=at[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])r=at[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return at[e]=new M(N(r,t)),st[e]&&st[e].forEach(function(e){ft(e.name,e.config)}),ut(e),at[e]}return delete at[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(o=lt(e[i]).split("-"),t=o.length,n=(n=lt(e[i+1]))?n.split("-"):null;t>0;){if(r=ct(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&k(o,n,!0)>=t-1)break;t--}i++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ie(n[ge],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[Ee]||0!==n[xe])?_e:n[we]<0||n[we]>59?we:n[Ee]<0||n[Ee]>59?Ee:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(t<ge||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=ke),h(e)._overflowWeekday&&-1===t&&(t=Se),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ht(t.GG,e._a[ge],$e(At(),1,4).year),r=ht(t.W,1),((o=ht(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=$e(At(),i,a);n=ht(t.gg,e._a[ge],c.year),r=ht(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Ye(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=We(n,r,o,i,a),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[ge],r[ge]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[we]&&0===e._a[Ee]&&0===e._a[xe]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var vt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Et(e){var t,n,r,o,i,a,s=e._i,l=vt.exec(s)||gt.exec(s);if(l){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){o=bt[t][0],r=!1!==bt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){i=(l[2]||" ")+_t[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!yt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Ct(e)}else e._isValid=!1}var xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function kt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,o,i,a,s,l=xt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],r=l[2],o=l[5],i=l[6],a=l[7],s=[kt(t),De.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(i,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ve.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return 60*i+o}(l[8],l[9],l[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Ct(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,i,a,s=""+e._i,l=s.length,c=0;for(r=Y(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)i=r[t],(n=(s.match(fe(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),H[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ve(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[_e]<=12&&!0===h(e).bigHour&&e._a[_e]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[_e]=(u=e._locale,f=e._a[_e],null==(d=e._meridiem)?f:null!=u.meridiemHour?u.meridiemHour(f,d):null!=u.isPM?((p=u.isPM(d))&&f<12&&(f+=12),p||12!==f||(f=0),f):f),mt(e),pt(e)}else Tt(e);else Et(e);var u,f,d,p}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(pt(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Ct(t),m(t)&&(i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;s(t)?e._d=new Date(o.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=D(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function jt(e,t,n,r,o){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(pt(Ot(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function At(e,t,n,r){return jt(e,t,n,r,!1)}o.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var Nt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Mt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function It(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=D(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Oe.call(Lt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Lt.length;++r)if(e[Lt[r]]){if(n)return!1;parseFloat(e[Lt[r]])!==x(e[Lt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Dt(e){return e instanceof Pt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ue("Z",se),ue("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var Bt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],o=(r+"").match(Bt)||["-",0,0],i=60*o[1]+x(o[2]);return 0===i?0:"+"===o[0]?i:-i}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):At(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,r,o,i,a,s,c=e,u=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Wt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:x(u[be])*n,h:x(u[_e])*n,m:x(u[we])*n,s:x(u[Ee])*n,ms:x(Rt(1e3*u[xe]))*n}):(u=$t.exec(e))?(n="-"===u[1]?-1:1,c={y:Kt(u[2],n),M:Kt(u[3],n),w:Kt(u[4],n),d:Kt(u[5],n),h:Kt(u[6],n),m:Kt(u[7],n),s:Kt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=At(c.from),a=At(c.to),o=i.isValid()&&a.isValid()?(a=qt(a,i),i.isBefore(a)?s=Vt(i,a):((s=Vt(a,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),r=new Pt(c),Dt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Xt(this,Yt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var i=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Ne(e,"Month")+s*n),a&&Me(e,"Date",Ne(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Yt.fn=Pt.prototype,Yt.invalid=function(){return Yt(NaN)};var Zt=Gt(1,"add"),Qt=Gt(-1,"subtract");function Jt(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}function rn(e,t){W(0,[e,e.length],0,t)}function on(e,t,n,r,o){var i;return null==e?$e(this,r,o).year:(i=Ye(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=We(e,t,n,r,o),a=ze(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ue("G",ie),ue("g",ie),ue("GG",Q,V),ue("gg",Q,V),ue("GGGG",ne,X),ue("gggg",ne,X),ue("GGGGG",re,Z),ue("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),L("quarter","Q"),F("quarter",7),ue("Q",K),he("Q",function(e,t){t[ye]=3*(x(e)-1)}),W("D",["DD",2],"Do","date"),L("date","D"),F("date",9),ue("D",Q),ue("DD",Q,V),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=x(e.match(Q)[0])});var an=Ae("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",te),ue("DDDD",G),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),W("m",["mm",2],0,"minute"),L("minute","m"),F("minute",14),ue("m",Q),ue("mm",Q,V),he(["m","mm"],we);var sn=Ae("Minutes",!1);W("s",["ss",2],0,"second"),L("second","s"),F("second",15),ue("s",Q),ue("ss",Q,V),he(["s","ss"],Ee);var ln,cn=Ae("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),F("millisecond",16),ue("S",te,K),ue("SS",te,V),ue("SSS",te,G),ln="SSSS";ln.length<=9;ln+="S")ue(ln,oe);function un(e,t){t[xe]=x(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,un);var fn=Ae("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var dn=_.prototype;function pn(e){return e}dn.add=Zt,dn.calendar=function(e,t){var n=e||At(),r=qt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(A(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,At(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":i=Jt(this,r)/12;break;case"month":i=Jt(this,r);break;case"quarter":i=Jt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:E(i)},dn.endOf=function(e){return void 0===(e=P(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(At(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(At(),e)},dn.get=function(e){return A(this[e=P(e)])?this[e]():this},dn.invalidAt=function(){return h(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var o=w(e)?e:At(e),i=w(t)?t:At(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n)))},dn.isSame=function(e,t){var n,r=w(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=tn,dn.locale=en,dn.localeData=nn,dn.max=Mt,dn.min=Nt,dn.parsingFlags=function(){return d({},h(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(A(this[e=P(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Qt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=je,dn.isLeapYear=function(){return Ce(this.year())},dn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Fe,dn.daysInMonth=function(){return Ie(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=ot,dn.minute=dn.minutes=sn,dn.second=dn.seconds=cn,dn.millisecond=dn.milliseconds=fn,dn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Xt(this,Yt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:zt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ht,dn.isUTC=Ht,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",an),dn.months=T("months accessor is deprecated. Use month instead",Fe),dn.years=T("years accessor is deprecated. Use year instead",je),dn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ot(e))._a){var t=e._isUTC?p(e._a):At(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function mn(e,t,n,r){var o=dt(),i=p().set(r,t);return o[n](i,e)}function vn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=mn(e,r,n,"month");return o}function gn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=dt(),a=e?i._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=mn(t,(o+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return A(o)?o(e,t,n,r):o.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)A(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",ut),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var yn=Math.abs;function bn(e,t,n,r){var o=Yt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var kn=xn("ms"),Sn=xn("s"),Tn=xn("m"),Cn=xn("h"),On=xn("d"),jn=xn("w"),An=xn("M"),Nn=xn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var In=Mn("milliseconds"),Ln=Mn("seconds"),Pn=Mn("minutes"),Dn=Mn("hours"),Rn=Mn("days"),Fn=Mn("months"),Bn=Mn("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),o=zn(this._months);e=E(n/60),t=E(e/60),n%=60,e%=60;var i=E(o/12),a=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",p=Hn(this._months)!==Hn(f)?"-":"",h=Hn(this._days)!==Hn(f)?"-":"",m=Hn(this._milliseconds)!==Hn(f)?"-":"";return d+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var $n=Pt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},$n.add=function(e,t){return bn(this,e,t,1)},$n.subtract=function(e,t){return bn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=kn,$n.asSeconds=Sn,$n.asMinutes=Tn,$n.asHours=Cn,$n.asDays=On,$n.asWeeks=jn,$n.asMonths=An,$n.asYears=Nn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},$n._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*_n(En(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=E(i/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,a+=E(n/24),o=E(wn(a)),s+=o,a-=_n(En(o)),r=E(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},$n.clone=function(){return Yt(this)},$n.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=In,$n.seconds=Ln,$n.minutes=Pn,$n.hours=Dn,$n.days=Rn,$n.weeks=function(){return E(this.days()/7)},$n.months=Fn,$n.years=Bn,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Yt(e).abs(),o=Un(r.as("s")),i=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),l=Un(r.as("M")),c=Un(r.as("y")),u=o<=qn.ss&&["s",o]||o<qn.s&&["ss",o]||i<=1&&["m"]||i<qn.m&&["mm",i]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||l<=1&&["M"]||l<qn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Wn,$n.toString=Wn,$n.toJSON=Wn,$n.locale=en,$n.localeData=nn,$n.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),$n.lang=tn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ue("x",ie),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.23.0",t=At,o.fn=dn,o.min=function(){return It("isBefore",[].slice.call(arguments,0))},o.max=function(){return It("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return At(1e3*e)},o.months=function(e,t){return vn(e,t,"months")},o.isDate=c,o.locale=ut,o.invalid=v,o.duration=Yt,o.isMoment=w,o.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},o.parseZone=function(){return At.apply(null,arguments).parseZone()},o.localeData=dt,o.isDuration=Dt,o.monthsShort=function(e,t){return vn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},o.defineLocale=ft,o.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=(r=ct(e))&&(o=r._config),t=N(o,t),(n=new M(t)).parentLocale=at[e],at[e]=n,ut(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return C(at)},o.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},o.normalizeUnits=P,o.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=dn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(256)(e))},function(e,t,n){var r=n(2152),o=n(2157);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(437);e.exports=r(1,"split")},function(e,t,n){var r=n(21),o=n(137),i=n(1611);e.exports=r(o(["all"],i,function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))},function(e,t,n){var r=n(21),o=n(137),i=n(874);e.exports=r(o(["any"],i,function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1}))},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e(n[t])})},function(e,t,n){var r=n(21),o=n(862),i=n(295);e.exports=r(function(e,t){return"function"!=typeof t.indexOf||i(t)?o(t,e,0):t.indexOf(e)})},function(e,t,n){var r=n(21),o=n(674),i=n(19),a=n(110),s=n(570),l=n(694);e.exports=r(function e(t,n){switch(t.length){case 0:return n;case 1:return o(t[0])?s(t[0],1,n):a(t[0],n);default:var r=t[0],c=Array.prototype.slice.call(t,1);return null==n[r]?n:o(t[0])?l(r,e(c,n[r]),n):i(r,e(c,n[r]),n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"b",function(){return O}),n.d(t,"c",function(){return I});var r,o=n(6),i=n(19),a=n.n(i),s=n(5),l=n.n(s),c=n(26),u=n.n(c),f=n(57),d=n.n(f),p=n(110),h=n.n(p),m=n(49),v=n.n(m),g=n(16),y=n.n(g),b=n(73),_=n.n(b),w=n(31),E=n.n(w),x=n(223),k=n(13),S=n(45),T=u()("rise/collaborators/"),C=T("CREATE_COLLABORATOR"),O=T("DELETE_COLLABORATOR"),j=function(e,t){return a()(t.author,t,e)};t.d=Object(k.f)({},(r={},Object(o.a)(r,C,Object(k.g)(j)),Object(o.a)(r,O,Object(k.g)(function(e,t){var n=t.author;return h()(n,e)})),Object(o.a)(r,x.a,Object(k.g)(function(e,t){var n=t.collaborators;return _()(j,{},n)})),r));var A=v()(["author","courseId"]),N=(S.a.send(C),l()(S.a.send(O),A),y()("type",O)),M=d()(2,function(e,t,n){return t(e.payload.author===n().user.author?Object(k.e)():e)}),I=E()(N,M)},function(e,t,n){var r=n(2099)();r.helpers=n(86),n(2103)(r),r.Animation=n(1089),r.animationService=n(1090),r.defaults=n(109),r.Element=n(239),r.elements=n(304),r.Interaction=n(1091),r.layouts=n(452),r.platform=n(1092),r.plugins=n(1093),r.Scale=n(453),r.scaleService=n(303),r.Ticks=n(454),r.Tooltip=n(1094),n(2114)(r),n(2115)(r),n(2116)(r),n(2117)(r),n(2118)(r),n(2119)(r),n(2120)(r),n(2121)(r),n(2123)(r),n(2124)(r),n(2125)(r),n(2126)(r),n(2127)(r),n(2128)(r),n(2129)(r),n(2130)(r),n(2131)(r),n(2132)(r),n(2133)(r),n(2134)(r),n(2135)(r),n(2136)(r);var o=n(2137);for(var i in o)o.hasOwnProperty(i)&&r.plugins.register(o[i]);r.platform.initialize(),e.exports=r,"undefined"!=typeof window&&(window.Chart=r),r.Legend=o.legend._element,r.Title=o.title._element,r.pluginService=r.plugins,r.PluginBase=r.Element.extend({}),r.canvasHelpers=r.helpers.canvas,r.layoutService=r.layouts},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(15),u=n(11),f=(n(2301),n(315)),d=n.n(f),p=n(139),h=n.n(p),m=n(771),v=function(t){function n(e){var t,r;return Object(i.a)(this,n),(r=Object(s.a)(this,Object(l.a)(n).call(this,e))).onScroll=h()(o()(t=r.onScroll).call(t,Object(c.a)(r)),100),r.state={isShowingSidebarHeaderClone:!1},r}return Object(u.a)(n,t),Object(a.a)(n,[{key:"componentDidMount",value:function(){this.sidebar.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){this.sidebar.removeEventListener("scroll",this.onScroll)}},{key:"focus",value:function(){this.sidebarHeader.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowSearch,o=n.allowTabNavigation,i=n.children,a=n.container,s=n.courseTitle,l=n.coverImage,c=n.focusLessonContent,u=n.labels,f=n.lessons,p=n.sessionPreferences,h=n.skipLinkText;return e.createElement("div",{ref:function(e){return t.sidebar=e},className:"overview-sidebar","data-overview-sidebar":!0},e.createElement("div",{ref:function(e){return t.sidebarHeaderWrap=e},className:"overview-sidebar__header-wrap brand--head","data-overview-sidebar-header-wrap":!0},e.createElement(m.a,{allowSearch:r,allowTabNavigation:o,courseTitle:s,coverImage:l,focusLessonContent:c,labels:u,lessons:f,ref:function(e){t.sidebarHeader=e},sessionPreferences:p,skipLinkText:h},i),e.createElement(d.a,{container:a},e.createElement(m.a,{allowTabNavigation:o,courseTitle:s,coverImage:l,isClone:!0,isShowingSidebarHeaderClone:this.state.isShowingSidebarHeaderClone},i))),e.createElement("div",{className:"overview-sidebar__container"},e.createElement("div",{className:"overview-sidebar__content","data-overview-sidebar-content":!0},i)))}},{key:"onScroll",value:function(){var e=this.sidebarHeaderWrap.clientHeight,t=this.sidebar.scrollTop;this.setState({isShowingSidebarHeaderClone:t>e})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2302);var r=n(2),o=n.n(r);t.a=function(t){var n=o()("progress-bar__line",{"progress-bar__line-rounded":t.rounded}),r=o()("progress-bar",{"progress-bar-rounded":t.rounded,"progress-bar-lg":t.lg});return e.createElement("div",{className:r},e.createElement("div",{className:n},e.createElement("div",{className:"progress-bar__fill",style:{width:t.value+"%"}})),t.value,"% ",t.lessonComplete)}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"b",function(){return j}),n.d(t,"e",function(){return A}),n.d(t,"d",function(){return N}),n.d(t,"a",function(){return P}),n.d(t,"c",function(){return D});var r=n(19),o=n.n(r),i=n(5),a=n.n(i),s=n(28),l=n.n(s),c=n(38),u=n.n(c),f=n(74),d=n.n(f),p=n(58),h=n.n(p),m=n(14),v=n.n(m),g=n(87),y=n.n(g),b=n(54),_=n.n(b),w=n(47),E=n.n(w),x=n(16),k=n.n(x),S=n(31),T=n.n(S),C=n(72),O=n(65),j=function(e){var t=e.id;return function(e){return e(Object(O.f)({id:t,updateFn:M}))}},A=function(e){var t=e.activeIndex,n=e.id;return function(e){return e(Object(O.f)({id:n,updateFn:I(t)}))}},N=function(e){var t=e.activeIndex,n=e.id,r=e.itemId;return function(e){return e(Object(O.f)({id:n,updateFn:L({activeIndex:t,itemId:r})}))}},M=_()(["activeIndex","direction"]),I=function(e){return l()(v.a)({activeIndex:e,direction:"backwards"})},L=function(e){var t=e.activeIndex,n=e.itemId;return a()(T()(k()("percentComplete",100),o()("isComplete",!0)),O.e,T()(function(){return y()(u()(n))},E()(d()(["items",n]),o()("isComplete",!0))),o()("activeIndex",t),_()(["direction"]))},P=a()(l()(v.a)({isComplete:!0,percentComplete:100}),M,E()(h()("items"),Object(C.e)(o()("isComplete",!0)))),D=a()(_()(["activeIndex","direction","isComplete","percentComplete"]),E()(h()("items"),Object(C.e)(_()(["isComplete"]))))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(538),o=n(335),i=n(120),a=n(259),s=n(296),l=n(94),c=n(670);e.exports=i(function(e,t){if(!l(e))throw new TypeError("map: Function required for first argument");if(l(t))return o(e,t);if(a(t))return r.map(e,t);if(t&&l(t.map))return t.map(e);if(s(t))return c.map(e,t);throw new TypeError("map: Object, Function or Functor of the same type required for second argument")})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(94);e.exports=r(function(e,t){if(!o(e))throw new TypeError("merge: Binary function required for first argument");if(!t||!o(t.merge))throw new TypeError("merge: Pair required for second argument");return t.merge(e)})},function(e,t,n){"use strict";var r=n(19),o=n.n(r),i=n(5),a=n.n(i),s=(n(26),n(79)),l=n.n(s),c=n(28),u=n.n(c),f=(n(14),n(70)),d=n.n(f),p=n(29),h=n.n(p),m=n(18),v=n.n(m),g=n(217),y=n.n(g),b=n(400),_=(n(144),n(1163)),w=n.n(_),E=n(33),x=n.n(E),k=n(75),S=(k.a.isSafari,function(e){return x()(e).call(e,2+(w()(e).call(e,".")-1>>>0))});n.d(t,"a",function(){return T}),n.d(t,"b",function(){return C}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return j});h()("",["store","getState","user","author"]);var T=function(e){return a()(d()("data"),o()("message",e))},C=function(e){return v()(b.a,d()("progress"),d()("data"),o()("id",e))},O=function(e){return v()(b.b,S,y.a,u()(l.a)(e))},j=function(e){return"Please verify the file type is ".concat(e," and try again.")}},function(e,t,n){"use strict";(function(e){n.d(t,"f",function(){return q}),n.d(t,"a",function(){return z}),n.d(t,"c",function(){return H}),n.d(t,"e",function(){return W}),n.d(t,"b",function(){return $}),n.d(t,"d",function(){return Y});var r=n(17),o=n.n(r),i=n(174),a=n.n(i),s=n(222),l=n.n(s),c=n(32),u=n(3),f=n.n(u),d=n(9),p=n(7),h=n(10),m=n(8),v=n(11),g=(n(1907),n(2)),y=n.n(g),b=n(83),_=n.n(b),w=n(278),E=n.n(w),x=n(0),k=n.n(x),S=n(41),T=n.n(S),C=n(77),O=n(64),j=n(88),A=n(60),N=n(46),M=n(22),I=n(24),L=n(205),P=n(63),D=n(55),R=function(t){var n=t.avatar,r=t.alt,o='""'===r?"":r;return e.createElement("div",{title:o,"aria-describedby":o,className:"block-quote__avatar",style:{backgroundImage:"url('".concat(n||"","')")}})},F=function(t){var n=t.type,r=t.animateBlockEntrance,o=t.avatar,i=t.children,a=t.backgroundColor,s=t.alt,l=t.isLearner,c=y()("block-quote__col",{"block-quote__col--no-avatar":!o}),u=y()("block-quote__figure",{"brand--beforeColor":"b"===n}),f=o?e.createElement("div",{className:"block-quote__image"},e.createElement("div",{className:"block-quote__avatar-wrap"},"c"===n?e.createElement(D.a,{animateBlockEntrance:r,animateIn:"fadeInLeftSmall",isLearner:l},e.createElement(R,{avatar:o,alt:s,title:s})):e.createElement(R,{avatar:o,alt:s,title:s}))):null;return e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:c},e.createElement("figure",{className:u,style:{backgroundColor:Object(O.a)("",a)}},f,i))))},B=function(t){var n=t.avatar,r=t.children,o=t.alt;return e.createElement("figure",{className:"block-quote__figure"},e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:"block-quote__col"},n?e.createElement(R,{avatar:n,alt:o}):null),e.createElement("div",{className:"block-quote__col"},r))))},U=function(t){var n=t.background,r=t.avatar,o=t.children,i=t.alt;return e.createElement("div",{className:"block-quote__background",style:{backgroundImage:n?"url(".concat(n,")"):""}},e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:"block-quote__col"},e.createElement("figure",{className:"block-quote__figure"},r?e.createElement(R,{avatar:r,alt:i}):null,o)))))},q=function(t){function n(){return Object(d.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(v.a)(n,t),Object(p.a)(n,[{key:"getQuoteEntranceAnimationType",value:function(){switch(this.props.type){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}},{key:"handleQuoteChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(A.a)(Object(N.k)({lessonId:r,blockId:o,itemId:e,payload:{paragraph:t}}))}},{key:"handleNameChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(A.a)(Object(N.k)({lessonId:r,blockId:o,itemId:e,payload:{name:t}}))}},{key:"render",value:function(){var t,n,r,o=this.props,i=o.animateBlockEntrance,a=o.isLearner,s=o.items,l=o.labels,c=o.type,u=o.settings,d=o.editable,p=u.paddingTop,h=u.paddingBottom,m=u.backgroundColor,v=u.entranceAnimation,g=s[0],b=g.id,w=g.paragraph,E=g.name,x=g.avatar,k=g.background,S=_()(k,"media.image.key"),T=_()(k,"media.image.src"),A=Object(C.c)({key:S,src:T}),N=_()(x,"media.image.key"),M=_()(x,"media.image.src"),I=Object(C.b)({key:N,src:M}),L=_()(x,"media.image.alt"),R=y()("block-quote block-quote--".concat(c),{"block-quote--no-animation":!v}),q=y()("block-quote__caption brand--linkColor",{"brand--head":"b"!==c,"brand--body":"b"===c,"brand--color-all":"b"===c,"block-quote__caption--blank":""===E}),z=y()("block-quote__text brand--linkColor",{"brand--head":"b"===c,"brand--body":"b"!==c,"block-quote__text--blank":""===w}),H={backgroundColor:Object(O.a)("",m),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*h,"px")},W=e.createElement("div",{className:"block-quote__wrap"},e.createElement(D.a,{animateBlockEntrance:i,animateIn:this.getQuoteEntranceAnimationType(),isLearner:a,siblingDelay:.15},e.createElement(j.a,{className:z,value:w||"",placeholder:"Enter some quote text",onChange:f()(t=this.handleQuoteChange).call(t,this,b),editable:d}),e.createElement(j.a,{className:q,value:E,placeholder:"Author Name",onChange:f()(n=this.handleNameChange).call(n,this,b),component:"figcaption",editable:d})));switch(c){case"d":r=e.createElement(B,{type:c,avatar:I,alt:L},W);break;case"background":r=e.createElement(U,{type:c,avatar:I,alt:L,background:A},W);break;default:r=e.createElement(F,{type:c,animateBlockEntrance:i,avatar:I,alt:L,backgroundColor:m,isLearner:a},W)}var $=l.quoteGroup;return e.createElement("div",{"aria-label":$,className:R,role:P.a,style:H},r)}}],[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array.isRequired,settings:k.a.object.isRequired,type:k.a.string,editable:k.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],type:"a"}}}]),n}(e.Component),z=function(t){return e.createElement(q,Object(c.a)({type:"b"},t))},H=function(t){return e.createElement(q,Object(c.a)({type:"c"},t))},W=function(t){return e.createElement(q,Object(c.a)({type:"d"},t))},$=function(t){return e.createElement(q,Object(c.a)({type:"background"},t))},Y=function(t){function n(e){var t;return Object(d.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={currentIndex:0,isDotKeyboardFocusDisabled:!1},t}return Object(v.a)(n,t),Object(p.a)(n,[{key:"handleQuoteChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(A.a)(Object(N.k)({lessonId:r,blockId:o,itemId:e,payload:{paragraph:t}}))}},{key:"handleNameChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(A.a)(Object(N.k)({lessonId:r,blockId:o,itemId:e,payload:{name:t}}))}},{key:"disableFocusForClonedSlides",value:function(){var e=this.state.currentIndex,t=Object(L.b)(this.carousel.querySelectorAll(".slick-active.block-quote__slide"));l()(t).call(t,function(t){a()(t.getAttribute("data-index"))!==e&&Object(M.b)(t)})}},{key:"disableCarouselDotsIfNecessary",value:function(){var e=this.sliderContainer.querySelector(".block-quote__dots-list"),t=this.state.isDotKeyboardFocusDisabled;e&&!t&&(Object(M.b)(e),this.setState({isDotKeyboardFocusDisabled:!0}))}},{key:"componentDidUpdate",value:function(){this.disableCarouselDotsIfNecessary(),this.disableFocusForClonedSlides()}},{key:"onKeyDown",value:function(e){var t,n,r=this.slider;T()([[I.h,f()(t=r.slickNext).call(t,r)],[I.f,f()(n=r.slickPrev).call(n,r)]])(e)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.animateBlockEntrance,a=r.isLearner,s=r.items,l=r.labels,u=r.type,d=r.settings,p=r.editable,h=d.paddingTop,m=d.paddingBottom,v=d.backgroundColor,g=d.entranceAnimation,b=d.showBorder,w=void 0===b||b,x=y()("block-quote block-quote--".concat(u),{"block-quote--no-animation":!g,"block-quote--editable":p,"block-quote--show-border":w}),k={backgroundColor:Object(O.a)("",v),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},S=this.state.currentIndex,T=o()(s).call(s,function(t,r){var o,s,l=t.id,c=t.paragraph,u=t.name,d=t.avatar,h=r===S,m=_()(d,"media.image.key"),v=_()(d,"media.image.alt"),g=_()(d,"media.image.src"),b=Object(C.b)({key:m,src:g}),w=y()("block-quote__text brand--body brand--linkColor",{"block-quote__text--blank":""===c}),E=y()("block-quote__caption brand--head brand--linkColor",{"block-quote__caption--blank":""===u});return e.createElement("div",{className:"block-quote__slide",key:l},e.createElement("figure",{className:"block-quote__figure"},b?e.createElement(R,{avatar:b,alt:v}):null,e.createElement(D.a,{animateBlockEntrance:i,animateIn:"fadeInUp",siblingDelay:.25,isLearner:a},e.createElement(j.a,{className:w,value:c||"",placeholder:"Enter some quote text",onChange:f()(o=n.handleQuoteChange).call(o,n,l),editable:p,allowTabNavigation:h}),e.createElement(j.a,{className:E,value:u,placeholder:"- Author Name",onChange:f()(s=n.handleNameChange).call(s,n,l),component:"figcaption",editable:p,allowTabNavigation:h}))))}),A={slidesToShow:1,slidesToScroll:1,arrows:T.length>1,nextArrow:e.createElement("div",null,e.createElement("div",{className:"block-quote__arrow block-quote__arrow--next"},e.createElement("div",{className:"block-quote__arrow-icon"}))),prevArrow:e.createElement("div",null,e.createElement("div",{className:"block-quote__arrow block-quote__arrow--prev"},e.createElement("div",{className:"block-quote__arrow-icon"}))),dots:T.length>1,dotsClass:"block-quote__dots-list brand--background-all brand--shadow-all",accessibility:!1,draggable:!p,beforeChange:function(e,t){var r=n.props,o=r.items;(0,r.onStep)(o[t]),n.setState({currentIndex:t})}},N=l.quoteGroup;return e.createElement("div",{"aria-label":N,className:"block-quote__slider-container",onKeyDown:f()(t=this.onKeyDown).call(t,this),ref:function(e){n.carousel=e},role:P.a,tabIndex:M.a},e.createElement("div",{className:x,style:k},e.createElement("div",{className:"block-quote__wrap"},e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:"block-quote__col"},e.createElement("div",{className:"block-quote__box",ref:function(e){n.sliderContainer=e}},e.createElement(E.a,Object(c.a)({className:"block-quote__wrapper",ref:function(e){n.slider=e}},A),T))))))))}}],[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array.isRequired,settings:k.a.object.isRequired,type:k.a.string,editable:k.a.bool,onStep:k.a.func}}},{key:"defaultProps",get:function(){return{type:"carousel",editable:!1,items:[],onStep:Function.prototype}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){var r=n(778),o=n(620);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(210);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(626),o=n(118),i=n(107),a=n(98)("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(178);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(192),o="["+n(499)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$");e.exports=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(a,"")),e}},function(e,t){e.exports=!0},function(e,t,n){var r=n(364);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=n(815),o=n(366),i=n(816),a=o.set,s=o.getterFor("String Iterator");i(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o,!0),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r,o,i,a=n(1477),s=n(159),l=n(235),c=n(197),u=n(509),f=n(510),d=n(128).WeakMap;if(a){var p=new d,h=p.get,m=p.has,v=p.set;r=function(e,t){return v.call(p,e,t),t},o=function(e){return h.call(p,e)||{}},i=function(e){return m.call(p,e)}}else{var g=u("state");f[g]=!0,r=function(e,t){return l(e,g,t),t},o=function(e){return c(e,g)?e[g]:{}},i=function(e){return c(e,g)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(330),o=n(119)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var r=n(1497),o=n(1498),i=n(837);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return z(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return _(e,t,n,r)}function E(e,t,n,r){return z(q(t),e,n,r)}function x(e,t,n,r){return z(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),f=0;f<s;++f)if(c[f]!==u[f]){i=c[f],a=u[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=B(e[i]);return o}function A(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function P(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||P(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,i){return i||P(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:U(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(71))},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t,n){var r=n(536),o=n(214),i=n(182),a=n(1717),s=i(function(e,t){return 1===e?o(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){(function(e){var r,o=n(1790),i=n(915),a=n(1791),s=n(1792),l=n(1793);e&&e.ArrayBuffer&&(r=n(1794));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=c||u;t.protocol=3;var d=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=o(d),h={type:"error",data:"parser error"},m=n(1795);function v(e,t,n){for(var r=new Array(e.length),o=s(e.length,n),i=function(e,n,o){t(n,function(t,n){r[e]=n,o(t,r)})},a=0;a<e.length;a++)i(a,e[a],o)}t.encodePacket=function(n,r,o,i){"function"==typeof r&&(i=r,r=!1),"function"==typeof o&&(i=o,o=null);var a=void 0===n.data?void 0:n.data.buffer||n.data;if(e.ArrayBuffer&&a instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=d[e.type];for(var s=0;s<i.length;s++)a[s+1]=i[s];return r(a.buffer)}(n,r,i);if(m&&a instanceof e.Blob)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(f)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){e.data=o.result,t.encodePacket(e,n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);o[0]=d[e.type];var i=new m([o.buffer,e.data]);return r(i)}(n,r,i);if(a&&a.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(n,i);var s=d[n.type];return void 0!==n.data&&(s+=o?l.encode(String(n.data),{strict:!1}):String(n.data)),i(""+s)},t.encodeBase64Packet=function(n,r){var o,i="b"+t.packets[n.type];if(m&&n.data instanceof e.Blob){var a=new FileReader;return a.onload=function(){var e=a.result.split(",")[1];r(i+e)},a.readAsDataURL(n.data)}try{o=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(e){for(var s=new Uint8Array(n.data),l=new Array(s.length),c=0;c<s.length;c++)l[c]=s[c];o=String.fromCharCode.apply(null,l)}return i+=e.btoa(o),r(i)},t.decodePacket=function(e,n,r){if(void 0===e)return h;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=l.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return h;var o=e.charAt(0);return Number(o)==o&&p[o]?e.length>1?{type:p[o],data:e.substring(1)}:{type:p[o]}:h}o=new Uint8Array(e)[0];var i=a(e,1);return m&&"blob"===n&&(i=new m([i])),{type:p[o],data:i}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=i(e);if(n&&o)return m&&!f?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");v(e,function(e,r){t.encodePacket(e,!!o&&n,!1,function(e){r(null,function(e){return e.length+":"+e}(e))})},function(e,t){return r(t.join(""))})},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(h,0,1);for(var i,a,s="",l=0,c=e.length;l<c;l++){var u=e.charAt(l);if(":"===u){if(""===s||s!=(i=Number(s)))return r(h,0,1);if(s!=(a=e.substr(l+1,i)).length)return r(h,0,1);if(a.length){if(o=t.decodePacket(a,n,!1),h.type===o.type&&h.data===o.data)return r(h,0,1);if(!1===r(o,l+i,c))return}l+=i,s=""}else s+=u}return""!==s?r(h,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));v(e,function(e,n){t.encodePacket(e,!0,!0,function(e){return n(null,e)})},function(e,t){var r=t.reduce(function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2},0),o=new Uint8Array(r),i=0;return t.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}o[i++]=t?0:1;var s=n.byteLength.toString();for(a=0;a<s.length;a++)o[i++]=parseInt(s[a]);o[i++]=255;for(r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]}),n(o.buffer)})},t.encodePayloadAsBlob=function(e,n){v(e,function(e,n){t.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(i.length+1);for(o=0;o<i.length;o++)a[o]=parseInt(i[o]);if(a[i.length]=255,m){var s=new m([t.buffer,a.buffer,e]);n(null,s)}})},function(e,t){return n(new m(t))})},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,i=[];o.byteLength>0;){for(var s=new Uint8Array(o),l=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(h,0,1);c+=s[u]}o=a(o,2+c.length),c=parseInt(c);var f=a(o,0,c);if(l)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(e){var d=new Uint8Array(f);f="";for(u=0;u<d.length;u++)f+=String.fromCharCode(d[u])}i.push(f),o=a(o,c)}var p=i.length;i.forEach(function(e,o){r(t.decodePacket(e,n,!0),o,p)})}}).call(this,n(71))},function(e,t){e.exports=function(e){return null==e?"":e+""}},function(e,t){e.exports=function(e){return!!e&&"object"==typeof e}},function(e,t,n){"use strict";t.__esModule=!0,t.newGUID=function(){return r++};var r=1},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(i(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,l=0;l<a;l++)c[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e||t})},function(e,t,n){var r=n(213),o=n(21);e.exports=o(function(e,t){return r([e],t)})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(125),o=n(741),i=n.n(o),a=function(e){return!!e&&1-function(e){if(!e)return 0;var t=i()(e),n=Object(r.a)(t,3);return.2126*n[0]+.7152*n[1]+.0722*n[2]}(e)/255>.4}},function(e,t,n){"use strict";var r=n(1),o=n(1658),i=n(1661);function a(){}a.prototype=Object.create(r.Component.prototype),a.displayName="DocumentTitle",a.propTypes={title:o.string.isRequired},a.prototype.render=function(){return this.props.children?r.Children.only(this.props.children):null},e.exports=i(function(e){var t=e[e.length-1];if(t)return t.title},function(e){var t=e||"";t!==document.title&&(document.title=t)})(a)},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){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 c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(435),o=n(440),i=n(441),a=n(298).type("Async"),s=n(538),l=n(335),c=n(1752),u=n(1753),f=n(259),d=n(671),p=n(94),h=n(1754),m=n(199),v=function(e){return e.reduce(function(e,t){return e&&m(y,t)},!0)},g=function(e){return y(function(t,n){return n(e)})};function y(e,t){if(!p(e))throw new TypeError("Async: Function required");var n,r=l(function(){n=!0},p(t)?t:u);function o(t,o,i){if(!p(t)||!p(o))throw new TypeError("Async.fork: Reject and resolve functions required");var a=p(i)?i:u;return e(function(e){return n?u():t(e)},function(e){return n?u():o(e)}),c(l(a,r))}return{fork:o,toPromise:function(){return new Promise(function(e,t){o(t,e)})},inspect:function(){return"Async"+i(e)},type:a,swap:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.swap: Functions required for both arguments");return y(function(n,r){o(l(r,e),l(n,t))},r)},coalesce:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return y(function(n,r){o(l(r,e),l(r,t))},r)},map:function(e){if(!p(e))throw new TypeError("Async.map: Function required");return y(function(t,n){o(t,l(n,e))},r)},bimap:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.bimap: Functions required for both arguments");return y(function(n,r){o(l(n,e),l(r,t))},r)},alt:function(e){var t=u;if(!m(y,e))throw new TypeError("Async.alt: Async required");return y(function(n,r){o(function(){t=e.fork(n,r)},r)},c(function(){return t(r())}))},ap:function(e){var t,n,i=!1,a=!1,s=u;if(!m(y,e))throw new TypeError("Async.ap: Async required");return y(function(r,u){var f=c(r);function d(){i&&a&&l(u,t)(n)}o(f,function(e){if(!p(e))throw new TypeError("Async.ap: Wrapped value must be a function");i=!0,t=e,d()}),s=e.fork(f,function(e){a=!0,n=e,d()})},c(function(){s(r())}))},chain:function(e){var t=u;if(!p(e))throw new TypeError("Async.chain: Async returning function required");return y(function(n,r){o(n,function(o){var i=e(o);if(!m(y,i))throw new TypeError("Async.chain: Function must return another Async");t=i.fork(n,r)})},c(function(){t(r())}))},of:g}}y.type=a,y.of=g,y.Rejected=function(e){return y(function(t){return t(e)})},y.Resolved=g,y.fromPromise=function(e){if(!p(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return y(function(n,r){var o=e.apply(null,t);if(!h(o))throw new TypeError("Async.fromPromise: Promise returning function required");o.then(r).catch(n)})}},y.fromNode=function(e,t){if(!p(e))throw new TypeError("Async.fromNode: CPS function required");return function(){var n=r(arguments);return y(function(r,o){e.apply(t,n.concat(function(e,t){return e?r(e):o(t)}))})}},y.all=function(e){if(!d(e)||!v(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return f(e)?s.sequence(y.of,e):e.sequence(y.of)},y["@@implements"]=o(["alt","ap","bimap","chain","map","of"]),e.exports=y},function(e,t,n){var r=n(537),o=n(1838),i=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return r(function(e){var n=typeof e;return"function"===n?e.apply(void 0,t):e&&"object"===n?i.apply(void 0,[e].concat(t)):e},e)};e.exports=o(i)},function(e,t,n){var r=n(21),o=n(544);e.exports=r(function(e,t){return o(function(e,t,n){return n},e,t)})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return U});var r=n(144),o=n.n(r),i=n(174),a=n.n(i),s=n(3),l=n.n(s),c=n(9),u=n(7),f=n(10),d=n(8),p=n(11),h=n(4),m=n.n(h),v=(n(1939),n(1178)),g=n.n(v),y=n(2),b=n.n(y),_=n(0),w=n.n(_),E=n(41),x=n.n(E),k=n(343),S=n.n(k),T=n(244),C=n.n(T),O=n(42),j=n(56),A=n(248),N=n(40),M=n(22),I=n(281),L=n(226),P=n(78),D=n(63),R=n(75),F=n(24),B=function(e){var t,n=Object(j.b)("CDN_USER_CONTENT_URI"),r=new RegExp(Object(j.b)("CDN_URI"),"g");return Object(j.c)()?e:r.test(e)?m()(t="".concat(n)).call(t,C.a.parse(e).path):e},U=function(t){function n(e){var t;return Object(c.a)(this,n),(t=Object(f.a)(this,Object(d.a)(n).call(this,e))).state={isReady:!1,duration:0},t}return Object(p.a)(n,t),Object(u.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.allowTabNavigation;this.iFrameContainer&&!e&&this.updateIframeFocusability({allowFocus:!1})}},{key:"componentDidUpdate",value:function(e){!e.shouldPause&&this.props.shouldPause&&N.a.isPlaying&&(this.player.pause(),N.a.isPlaying=!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,n=e.data,r=t.originalUrl!==n.originalUrl,o=this.props.allowTabNavigation,i=e.allowTabNavigation,a=o!==i;r&&"video"===Object(L.b)(t)&&this.teardownPlayer(),this.iFrameContainer&&a&&this.updateIframeFocusability({allowFocus:i})}},{key:"componentWillUnmount",value:function(){"video"===Object(L.b)(this.props.data)&&this.teardownPlayer()}},{key:"setupPlayer",value:function(){var e=this;this.player=new g.a.Player(this.media),this.props.progressChanged&&this.player.on("ready",this.videoReady=function(){e.player.on("timeupdate",e.videoUpdate=function(t){e.props.progressChanged({done:t.seconds/t.duration*100})}),e.setState({isReady:!0})}),this.player.on("play",this.videoPlay=function(){var t=e.props.id;N.a.isPlaying&&N.a.playerId!==t&&(N.a.isPlaying=!1),N.a.playerId=t,N.a.isPlaying=!0}),N.a.addChangeListener(this.onChange=function(){var t=e.props.id;N.a.playerId===t&&(N.a.isPlaying?e.player.play():e.player.pause())})}},{key:"teardownPlayer",value:function(){N.a.isPlaying=!1,this.onChange&&N.a.removeChangeListener(this.onChange),this.player&&(this.player.off("play",this.videoPlay),this.player.off("ready",this.videoReady),this.player.off("timeupdate",this.videoUpdate))}},{key:"updateIframeFocusability",value:function(e){var t=e.allowFocus;Object(M.j)({element:this.iFrameContainer,selector:"iframe",tabIndex:Object(M.l)(t)})}},{key:"playerSupportsMethods",value:function(e){var t=this;return S()(function(e){return t.player.supports("method",e)})(e)}},{key:"togglePlay",value:function(){var e=this;this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",function(){e.player.getPaused(function(t){t?e.player.play():e.player.pause()})})}},{key:"keySeek",value:function(e){var t=this;this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",function(){t.player.getCurrentTime(function(n){t.player.setCurrentTime(n+e)})})}},{key:"changeVolume",value:function(e){var t=this;this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(function(n){t.player.setVolume(n+e)})}},{key:"onKeyDown",value:function(e){var t,n=this,r=Object(P.b)(l()(t=this.togglePlay).call(t,this)),o=Object(P.b)(function(){return n.keySeek(5)}),i=Object(P.b)(function(){return n.keySeek(-5)}),a=Object(P.b)(function(){return n.changeVolume(10)}),s=Object(P.b)(function(){return n.changeVolume(-10)});x()([[F.j,r],[F.h,o],[F.f,i],[F.l,a],[F.b,s]])(e)}},{key:"renderProvider",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.showMetaData,o=t.data,i=o.providerUrl,a=o.provider,s=o.favicon;return r?e.createElement("h2",{className:"embed__provider"},e.createElement("a",{href:i,target:"_blank",className:"brand--hoverColor",tabIndex:Object(M.l)(n)},e.createElement("img",{className:"embed__providerIcon",src:s,alt:s?a:null}),e.createElement("span",{className:"embed__providerName"},a))):null}},{key:"renderMetaData",value:function(){var t,n,r=this.props,o=r.allowTabNavigation,i=r.data,a=r.labels,s=r.showMetaData,l=i.src,c=i.title,u=i.description,f=i.provider,d=a.embedReadMore,p=a.embedViewOn,h=Object(L.b)(i);return s||"link"===h?e.createElement("div",{className:"embed__meta__content"},e.createElement("h2",{className:"embed__title brand--head"},e.createElement("a",{href:l,target:"_blank",className:"brand--hoverColor",tabIndex:Object(M.l)(o)},e.createElement(O.a,{value:c}))),e.createElement(O.a,{className:"embed__description brand--body brand--linkColor",value:u}),e.createElement("a",{className:"embed__readMore brand--hoverColor",href:l,target:"_blank",tabIndex:Object(M.l)(o)},"link"===h?m()(t="".concat(d," ")).call(t,f):m()(n="".concat(p," ")).call(n,f),e.createElement("i",{className:"icon icon-chevron-right"}))):null}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.allowTabNavigation,s=r.isLesson,l=r.labels,c=r.showMetaData,u=this.props.data,f=u.description,d=u.src,p=u.thumbnail,h=u.title,m=l.embedLinkGroup,v=l.embedPlayerGroup,g=l.embedReadMore,y=Object(L.b)(this.props.data);if("iframe"===y){var b=document.createElement("div");b.innerHTML=d;var _=b.firstChild,w=100,E=32;if(_){var x=b.firstChild.width.match(/%/),k=a()(b.firstChild.width);w=x?k/100*700:k||16,E=a()(b.firstChild.height)}var S=_?"".concat(100*(E/w),"%"):"3rem",T=_?d:"<div>Error: Invalid iframe tag.  Please check the iframe source.</div>";return e.createElement("div",{"aria-hidden":!i,"aria-label":v,className:"embed",role:D.a},e.createElement("div",{className:"embed--iframe",dangerouslySetInnerHTML:{__html:T},style:{paddingBottom:S},ref:function(e){n.iFrameContainer=e}}))}return s?e.createElement("div",{"aria-hidden":!i,"aria-label":q(l,y),className:"embed embed--link embed--rich",role:D.a},this.renderProvider(),o()(t=["link","photo"]).call(t,y)?e.createElement("a",{href:d,target:"_blank",tabIndex:Object(M.l)(i)},e.createElement("img",{alt:p?h:null,className:"embed__img",src:B(p)})):this.renderEmbedIframe({allowTabNavigation:i,labels:l,src:d,thumbnail:p,title:h,type:y}),this.renderMetaData()):"link"===y?e.createElement("div",{"aria-hidden":!i,"aria-label":m,className:"embed embed--link brand--head brand--linkColor",role:D.a},e.createElement(O.a,{className:"embed__title brand--head",value:h}),e.createElement(O.a,{className:"embed__description",value:f}),e.createElement("a",{className:"embed__readMore brand--hoverColor",href:d,target:"_blank"},g)):e.createElement("div",{className:"embed embed--media brand--head"},c?e.createElement(O.a,{"aria-hidden":!i,className:"embed__title brand--head",value:h}):null,this.renderEmbedIframe({allowTabNavigation:i,labels:l,src:d,thumbnail:p,title:h,type:y}))}},{key:"renderEmbedIframe",value:function(t){var n=this,r=t.allowTabNavigation,o=t.labels.embedPlayerGroup,i=t.src,a=t.thumbnail,s=t.title;if("photo"===t.type)return e.createElement("figure",{className:"embed__media-wrap"},e.createElement(A.a,{src:B(a),title:s,allowTabNavigation:r}));var c,u,f=R.a.isIe11||R.a.isEdge,d=b()("embed__media-wrap",{"embed__media-wrap--ms_browser":f});return e.createElement("figure",{"aria-hidden":!r,"aria-label":o,className:d,onKeyDown:l()(c=this.onKeyDown).call(c,this),ref:function(e){n.iFrameContainer=e},tabIndex:Object(M.l)(r)},e.createElement("iframe",{ref:function(e){n.media=e},className:"embed__media",src:Object(j.e)(i),alt:s,frameBorder:"0",scrolling:"no",onLoad:l()(u=this.setupPlayer).call(u,this),allowFullScreen:!0,title:s}))}}],[{key:"defaultProps",get:function(){return{allowTabNavigation:!0,labels:{embedReadMore:I.a.embedReadMore,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}},{key:"propTypes",get:function(){return{allowTabNavigation:w.a.bool,data:w.a.object.isRequired,progressChanged:w.a.func,isLesson:w.a.bool,shouldPause:w.a.bool,showMetaData:w.a.bool}}}]),n}(e.Component),q=function(e,t){var n=e.embedLinkGroup,r=e.embedPhotoGroup,o=e.embedVideoGroup;switch(t){case"photo":return r;case"video":return o;default:return n}}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return U});var r=n(144),o=n.n(r),i=n(4),a=n.n(i),s=n(34),l=n.n(s),c=n(222),u=n.n(c),f=n(3),d=n.n(f),p=n(9),h=n(7),m=n(10),v=n(8),g=n(15),y=n(11),b=(n(1940),n(2)),_=n.n(b),w=n(0),E=n.n(w),x=n(1179),k=n.n(x),S=n(41),T=n.n(S),C=n(1259),O=n(56),j=n(40),A=n(22),N=n(78),M=n(281),I=n(63),L=n(75),P=n(44),D=n(96),R=n.n(D),F=n(205),B=n(24),U=function(t){function n(e){var t,r,o,i;return Object(p.a)(this,n),(i=Object(m.a)(this,Object(v.a)(n).call(this,e))).state={isReady:!1,showRestrictSeekTooltip:!1},i.showRestrictSeekTooltip=d()(t=i.showRestrictSeekTooltip).call(t,Object(g.a)(i)),i.updateSeekTooltip=d()(r=i.updateSeekTooltip).call(r,Object(g.a)(i)),i.getMaxTime=d()(o=i.getMaxTime).call(o,Object(g.a)(i)),i}return Object(y.a)(n,t),Object(h.a)(n,[{key:"updateContentFocusability",value:function(){var e=this.props.allowTabNavigation,t=Object(F.b)(this.container.getElementsByTagName("button"));u()(t).call(t,function(t){Object(A.i)(t,Object(A.l)(e))}),Object(A.j)({element:this.container,selector:".vjs-progress-holder",tabIndex:Object(A.l)(e)}),Object(A.j)({element:this.container,selector:".vjs-volume-bar",tabIndex:Object(A.l)(e)}),Object(A.j)({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Object(A.l)(e)})}},{key:"componentDidUpdate",value:function(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&j.a.isPlaying&&(this.video.player.pause(),j.a.isPlaying=!1)}},{key:"componentDidMount",value:function(){var e=this,t=this.video.player,n=this.props,r=n.currentTime,o=n.id,i=n.onFullScreenChange,a=n.percentComplete,s=n.progressChanged,c=n.canRestrictSeek;this.wasPaused=!1,this.seeking=!1,this.maxTime=r,this.updateContentFocusability(),c&&(this.configureVideoSeekBar(),this.configureSeekDiv()),t.ready(function(){a<100&&(t.play(),t.currentTime(r),t.pause()),t.on("timeupdate",e.videoUpdate=function(){var n=t.currentTime(),r=t.paused();r&&!e.wasPaused&&n>e.maxTime&&(e.maxTime=n),c&&e.updateSeekTooltip();var o=t.ended()&&!e.seeking,i=!r&&!e.seeking;!c||o||i?(n>e.maxTime&&(e.maxTime=n),s&&s({currentTime:t.currentTime(),percentComplete:t.currentTime()/t.duration()*100})):c&&!e.restrictingSeek&&n>e.maxTime&&(e.restrictingSeek=!0,r||t.pause(),t.currentTime(e.maxTime)),e.wasPaused=r}),e.setState({isReady:!0})}),t.on("play",this.videoPlay=function(){e.seeking=!1,e.showRestrictSeekTooltip(!1)}),t.on("playing",this.videoPlaying=function(){j.a.isPlaying&&j.a.playerId!==o&&(j.a.isPlaying=!1),j.a.playerId=o,j.a.isPlaying=!0}),t.on("pause",this.videoPaused=function(){j.a.playerId===o&&(j.a.isPlaying=!1)}),t.on("seeking",this.videoSeeking=function(){e.seeking=!0}),t.on("seeked",this.videoSeeked=function(){e.restrictingSeek=!1,e.seekTimeout&&clearTimeout(e.seekTimeout),e.seekTimeout=l()(function(){e.seeking=!1},1e3)}),t.on("fullscreenchange",i),j.a.addChangeListener(this.onChange=function(){j.a.playerId===o&&(j.a.isPlaying?t.play():t.pause())})}},{key:"componentWillUnmount",value:function(){var e=this.props.onFullScreenChange,t=this.video.player;j.a.isPlaying=!1,j.a.removeChangeListener(this.onChange),t.off("timeupdate",this.videoUpdate),t.off("play",this.videoPlay),t.off("playing",this.videoPlaying),t.off("pause",this.videoPaused),t.off("seeking",this.videoSeeking),t.off("seeked",this.videoSeeked),t.off("fullscreenchange",e),t.dispose()}},{key:"render",value:function(){var t,n,r=this,o=this.props,i=o.allowTabNavigation,s=o.id,l=o.labels.videoPlayerGroup,c=o.poster,u=o.prefersKeyboardNavigation,f=o.src,p=this.state,h=p.isReady,m=p.showRestrictSeekTooltip,v=_()("figure-video",{"figure-video--visible":h,"figure-video--restrict-seek":m,"figure-video--keyboard-user":u});return e.createElement("div",{"aria-hidden":!i,"aria-label":l,className:"figure-container",onKeyDown:d()(t=this.onKeyDown).call(t,this),ref:function(e){r.container=e},role:I.a,tabIndex:Object(A.l)(i)},e.createElement("figure",{className:v},e.createElement(k.a,{className:"figure-video__video",key:a()(n="".concat(s,"-")).call(n,f),options:{controlBar:{remainingTimeDisplay:!0,volumeMenuButton:{inline:!1}},controls:!0,preload:"none"},poster:Object(O.e)(c),ref:function(e){return r.video=e}},e.createElement("source",{src:Object(O.e)(f)}))))}},{key:"onKeyDown",value:function(e){var t,n,r=this;if(!q(e)){var o=Object(N.b)(d()(t=this.togglePlay).call(t,this)),i=d()(n=this.toggleFullScreen).call(n,this),a=Object(N.b)(function(){return r.keySeek(5)}),s=Object(N.b)(function(){return r.keySeek(-5)});T()([[B.j,o],[B.c,i],[B.i,a],[B.g,s]])(e)}}},{key:"togglePlay",value:function(){var e=this.video.player;e.userActive(!0),e.paused()?e.play():e.pause()}},{key:"toggleFullScreen",value:function(){if(!L.a.isIe11){var e=this.video.player;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}}},{key:"changeVolume",value:function(e){var t=this.video.player,n=t.volume();t.userActive(!0),t.volume(n+e)}},{key:"keySeek",value:function(e){var t=this.video.player,n=this.props.canRestrictSeek;t.userActive(!0);var r=t.currentTime(),o=t.duration();t.paused()&&!r&&!o&&t.play();var i=r+e;n&&(i>this.maxTime?(i=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));var a=e<0?Math.max(i,0):Math.min(i,o);a!==r&&t.currentTime(a)}},{key:"configureVideoSeekBar",value:function(){var e=this.video.player,t=e.controlBar.progressControl,n=t.seekBar;t.removeChild(n);var r={showRestrictSeekTooltip:this.showRestrictSeekTooltip,getMaxTime:this.getMaxTime};this.videoSeekBar=new C.a(e,r),t.addChild(this.videoSeekBar)}},{key:"configureSeekDiv",value:function(){var t,n=this.video.player.controlBar.el();this.progressBarElement=this.videoSeekBar.playProgressBar.el(),this.seekDiv=((t=document.createElement("div")).classList.add("seek-tooltip"),t.classList.add("seek-tooltip--hidden"),t),n.appendChild(this.seekDiv),R.a.render(e.createElement(P.y,null),this.seekDiv)}},{key:"showRestrictSeekTooltip",value:function(e){this.props.canRestrictSeek&&this.seekDiv&&e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove("seek-tooltip--hidden"):this.seekDiv.classList.add("seek-tooltip--hidden"),this.setState({showRestrictSeekTooltip:e}))}},{key:"updateSeekTooltip",value:function(){var e=this.video.player,t=this.progressBarElement.getBoundingClientRect(),n=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width/2,o=t.left-n.left+t.width-r;this.seekDiv.style.left="".concat(o,"px"),this.seekDiv.style.top="".concat(-5,"px")}},{key:"getMaxTime",value:function(){return this.maxTime}}],[{key:"propTypes",get:function(){return{allowTabNavigation:E.a.bool,id:E.a.string.isRequired,percentComplete:E.a.number,poster:E.a.string,prefersKeyboardNavigation:E.a.bool,progressChanged:E.a.func,shouldPause:E.a.bool,src:E.a.string.isRequired}}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,currentTime:0,labels:{videoPlayerGroup:M.a.videoPlayerGroup},onFullScreenChange:function(){},percentComplete:0,progressChanged:Function.prototype,shouldPause:!1}}}]),n}(e.Component),q=function(e){var t=e.target.className,n=Object(B.m)(e)&&o()(t).call(t,"vjs-volume-bar");return Object(B.d)(e)&&(o()(t).call(t,"vjs-control")||o()(t).call(t,"vjs-big-play-button"))||n}}).call(this,n(1))},function(e,t,n){"use strict";var r=n(20),o=n.n(r),i=n(41),a=n.n(i),s=n(28),l=n.n(s),c=n(171),u=n.n(c),f=n(202),d=n.n(f),p=n(91),h=n.n(p),m=function(e){return function(t){e.setState({xTouchDown:t.touches[0].clientX,yTouchDown:t.touches[0].clientY})}},v=function(e){return function(t){e.setState({xTouchMove:t.touches[0].clientX,yTouchMove:t.touches[0].clientY})}},g=function(e,t,n,r){return function(){if(e.state.xTouchDown&&e.state.xTouchMove){var i=e.state.xTouchDown-e.state.xTouchMove,s=e.state.yTouchDown-e.state.yTouchMove,c=l()(u.a),f=l()(d.a),p=b(e);if(Math.abs(i)>Math.abs(s))a()([[c(r),t],[f(-r),n],[h.a,o()()]])(i),p()}}},y=function(e){return function(){b(e)}},b=function(e){return function(){e.setState({xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null})}};t.a=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i={touchstart:m(t),touchmove:v(t),touchend:g(t,n,r,o),touchcancel:y(t)};return{addListeners:function(){e.addEventListener("touchstart",i.touchstart),e.addEventListener("touchmove",i.touchmove),e.addEventListener("touchend",i.touchend),e.addEventListener("touchcancel",i.touchcancel)},removeListeners:function(){e.removeEventListener("touchstart",i.touchstart),e.removeEventListener("touchmove",i.touchmove),e.removeEventListener("touchend",i.touchend),e.removeEventListener("touchcancel",i.touchcancel)}}}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(64);t.a=function(e){var t=e.children,n=e.settings,r=e.type,a=n.backgroundColor,s=n.paddingTop,l=n.paddingBottom,c={backgroundColor:Object(i.a)("",a),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*l,"px")};return o.a.createElement("div",{className:"block-".concat(r),style:c},t)}},function(e,t,n){"use strict";(function(e){n(2082);var r=n(22);t.a=function(t){var n=t.onClick,o=t.text,i=t.allowTabNavigation,a=void 0===i||i;return e.createElement("button",{"aria-hidden":!a,className:"restart-button button brand--hoverColor",onClick:n,tabIndex:Object(r.l)(a)},e.createElement("div",{className:"restart-button__content"},e.createElement("span",{className:"restart-button__text brand--ui"},o),e.createElement("i",{className:"restart-button__icon icon icon-reload"})))}}).call(this,n(1))},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=[],r=0,o=Math.min(e.length,t.length);r<o;)n[r]=[e[r],t[r]],r+=1;return n})},function(e,t,n){var r=n(305),o=n(73);e.exports=o(r,0)},function(e,t,n){"use strict";var r=n(56);t.a=function(e){return Object(r.c)()?e:((t=e)?"".concat(t," | "):"")+"Rise 360";var t}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T});var r=n(4),o=n.n(r),i=n(481),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(11),d=n(20),p=n.n(d),h=n(2),m=n.n(h),v=n(41),g=n.n(v),y=n(35),b=n.n(y),_=n(0),w=n.n(_),E=n(91),x=n.n(E),k=n(44),S=n(252);e.Component;function T(t){switch(t.icon){case S.a.ARTICLE:return e.createElement(k.a,null);case S.a.INTERACTION:return e.createElement(k.D,null);case S.a.QUIZ:return e.createElement(k.B,null);case S.a.VIDEO:return e.createElement(k.E,null);default:return e.createElement("i",{className:"icon icon-Master-02"})}}}).call(this,n(1))},function(e,t,n){"use strict";var r=n(1141),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,s=a.hasOwnProperty,l=a.toString,c=i?i.toStringTag:void 0;var u=function(e){var t=s.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[c]=n:delete e[c]),o},f=Object.prototype.toString;var d=function(e){return f.call(e)},p="[object Null]",h="[object Undefined]",m=i?i.toStringTag:void 0;var v=function(e){return null==e?void 0===e?h:p:m&&m in Object(e)?u(e):d(e)};var g=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var y=function(e){return null!=e&&"object"==typeof e},b="[object Object]",_=Function.prototype,w=Object.prototype,E=_.toString,x=w.hasOwnProperty,k=E.call(Object);t.a=function(e){if(!y(e)||v(e)!=b)return!1;var t=g(e);if(null===t)return!0;var n=x.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&E.call(n)==k}},function(e,t,n){e.exports=n(1600)},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return $});var r=n(19),o=n.n(r),i=n(5),a=n.n(i),s=n(169),l=n.n(s),c=n(37),u=n.n(c),f=n(28),d=n.n(f),p=n(80),h=n.n(p),m=n(43),v=n.n(m),g=n(74),y=n.n(g),b=n(58),_=n.n(b),w=n(14),E=n.n(w),x=n(54),k=n.n(x),S=n(47),T=n.n(S),C=n(723),O=n.n(C),j=n(18),A=n.n(j),N=n(12),M=n.n(N),I=n(16),L=n.n(I),P=n(143),D=n.n(P),R=n(69),F=n.n(R),B=n(31),U=n.n(B),q=n(72),z=n(469),H=function(e){return o()("correctlyAnswered",A()(M()("items"),F.a,u()(L()("isCorrect",!0)),v.a)(e),e)},W=A()(T()(_()("items"),Object(q.e)(k()(["isViewed","isCorrect"]))),k()(["percentViewed","correctlyAnswered"]),T()(_()("retryAttempts"),a()(h.a,l()(0)))),$=function(e){var t=e.itemId,n=e.isCorrect;return A()(T()(y()(["items",t]),A()(d()(E.a)({isComplete:n,isViewed:n}),E()({isCorrect:n}))),U()(O()(["items",t,"isCorrect"],!1),o()("lastIncorrectCardId",t)),H,D()(L()("percentComplete",100),z.a),z.b,U()(L()("percentComplete",100),o()("isComplete",!0)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return _}),n.d(t,"d",function(){return w});var r=n(28),o=n.n(r),i=n(58),a=n.n(i),s=n(14),l=n.n(s),c=n(54),u=n.n(c),f=n(47),d=n.n(f),p=n(18),h=n.n(p),m=n(72),v=n(397),g=n(65),y=o()(l.a)({isComplete:!0,percentComplete:100,percentViewed:100}),b=function(e){return function(t){return t(Object(g.f)({id:e,updateFn:v.a}))}},_=h()(d()(a()("items"),Object(m.e)(u()(["isComplete","isCorrect","isViewed"]))),u()(["correctlyAnswered","percentComplete","isComplete","percentViewed"])),w=function(e){var t=e.id,n=e.itemId,r=e.isCorrect;return function(e){return e(Object(g.f)({id:t,updateFn:Object(v.b)({itemId:n,isCorrect:r})}))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var r=function(){try{var e="__pay_no_attention_to_that_man_behind_the_curtain__",t=window.localStorage;return t.setItem(e,e),t.removeItem(e),!0}catch(e){return!1}}(),o=function(e){return r?window.localStorage.getItem(e):null},i=function(e,t){if(!r)return null;window.localStorage.setItem(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return k}),n.d(t,"b",function(){return S});var r=n(461),o=n.n(r),i=n(309),a=n.n(i),s=(n(2),n(5)),l=n.n(s),c=n(37),u=n.n(c),f=n(378),d=n.n(f),p=n(29),h=n.n(p),m=n(16),v=n.n(m),g=n(475),y=v()("status"),b=d()(y("uploading"),y("processing")),_=(y("complete"),y("uploading")),w=y("processing"),E=y("errored"),x=(o()([E,w,_]),l()(g.a,u()(b))),k=function(e){return Math.round(100*e.loaded/e.total)},S=h()("",["file","name"]);a()(g.a,x)},function(e,t,n){"use strict";var r=n(19),o=n.n(r),i=n(28),a=n.n(i),s=n(58),l=n.n(s),c=n(14),u=n.n(c),f=n(54),d=n.n(f),p=n(47),h=n.n(p),m=n(18),v=n.n(m),g=n(72),y=n(110),b=n.n(y),_=n(74),w=n.n(_),E=n(16),x=n.n(E),k=n(31),S=n.n(k),T=n(469),C=(b()("activeIndex"),n(65));n.d(t,"a",function(){return O}),n.d(t,"b",function(){return j}),n.d(t,"c",function(){return A});var O=function(e){var t=e.id,n=e.payload;return function(e){return e(Object(C.f)({id:t,updateFn:(r=n,i=r.itemId,a=r.activeIndex,v()(o()("activeIndex",a),h()(w()(["items",i]),o()("isComplete",!0)),T.a,S()(x()("percentComplete",100),o()("isComplete",!0))))}));var r,i,a}},j=v()(h()(l()("items"),Object(g.e)(o()("isComplete",!0))),a()(u.a)({isComplete:!0,percentComplete:100})),A=v()(h()(l()("items"),Object(g.e)(d()(["isComplete"]))),d()(["isComplete","percentComplete","activeIndex"]))},function(e,t,n){"use strict";var r=n(1676);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return S}),n.d(t,"a",function(){return T}),n.d(t,"b",function(){return C}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return j});var r=n(32),o=n(3),i=n.n(o),a=n(33),s=n.n(a),l=n(17),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(11),m=(n(1902),n(2)),v=n.n(m),g=n(0),y=n.n(g),b=n(60),_=n(63),w=n(46),E=n(64),x=n(88),k=n(55),S=function(t){function n(){return Object(u.a)(this,n),Object(d.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(f.a)(n,[{key:"getEntranceAnimationType",value:function(){switch(this.props.type){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}},{key:"getEntranceAnimationDuration",value:function(){switch(this.props.type){case"a":return 1;case"b":case"c":case"d":return.75;case"note":return.5}}},{key:"handleTextChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(b.a)(Object(w.k)({lessonId:r,blockId:o,itemId:e,payload:{paragraph:t}}))}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.animateBlockEntrance,a=r.isLearner,l=r.items,u=r.labels,f=r.type,d=r.settings,p=r.editable,h=d.paddingTop,m=d.paddingBottom,g=d.backgroundColor,y=d.entranceAnimation,b=v()("block-impact block-impact--".concat(f),{"block-impact--no-animation":!y}),w="note"===f,S=v()("block-impact__quote brand--linkColor",{"brand--body":"a"===f,"brand--head brand--beforeBackground":"b"===f,"brand--head":"c"===f,"brand--body brand--beforeBackground":"d"===f,"brand--head brand--border brand--background-transparent":w}),T={backgroundColor:Object(E.a)("",g),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},C=u.noteGroup,O=u.statementGroup,j=w?C:O;return e.createElement("div",{className:b,style:T},e.createElement("div",{className:"block-impact__wrap"},e.createElement("div",{className:"block-impact__container"},e.createElement("div",{"aria-label":j,className:"block-impact__row",role:_.a},c()(t=s()(l).call(l,0,1)).call(t,function(t){var r,s=t.id,l=t.paragraph;return e.createElement(k.a,{animateBlockEntrance:o,animateIn:n.getEntranceAnimationType(),duration:n.getEntranceAnimationDuration(),isLearner:a,key:s},e.createElement("div",{className:"block-impact__col"},e.createElement("div",{className:"block-impact__note-icon brand--color"},e.createElement("i",{className:"icon icon-info"})),e.createElement(x.a,{allowBold:"a"!==f&&"d"!==f,className:S,value:l,placeholder:"Enter some text",onChange:i()(r=n.handleTextChange).call(r,n,s),editable:p,editorOptions:{disableExtraSpaces:!0}})))})))))}}],[{key:"propTypes",get:function(){return{lessonId:y.a.any,blockId:y.a.any,items:y.a.array.isRequired,settings:y.a.object.isRequired,type:y.a.string,editable:y.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],type:"a"}}}]),n}(e.Component),T=function(t){return e.createElement(S,Object(r.a)({type:"b"},t))},C=function(t){return e.createElement(S,Object(r.a)({type:"c"},t))},O=function(t){return e.createElement(S,Object(r.a)({type:"d"},t))},j=function(t){return e.createElement(S,Object(r.a)({type:"note"},t))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _e});var r=n(33),o=n.n(r),i=n(34),a=n.n(i),s=n(17),l=n.n(s),c=n(221),u=n.n(c),f=n(144),d=n.n(f),p=n(3),h=n.n(p),m=n(4),v=n.n(m),g=n(9),y=n(10),b=n(8),_=n(15),w=n(7),E=n(11),x=(n(2044),n(100)),k=n.n(x),S=n(5),T=n.n(S),C=n(19),O=n.n(C),j=n(35),A=n.n(j),N=n(67),M=n.n(N),I=n(38),L=n.n(I),P=n(43),D=n.n(P),R=n(14),F=n.n(R),B=n(87),U=n.n(B),q=n(29),z=n.n(q),H=n(105),W=n.n(H),$=n(283),Y=n.n($),K=n(172),V=n.n(K),G=n(60),X=n(46),Z=n(2),Q=n.n(Z),J=n(0),ee=n.n(J),te=n(64),ne=n(22),re=n(150),oe=n(72),ie=n(88),ae=n(55),se=n(42),le=n(176),ce=n(163),ue=n(114),fe=n(253),de=n(229),pe=ue.a.FILL_IN_THE_BLANK,he=ue.a.MATCHING,me=ue.a.MULTIPLE_CHOICE,ve=ue.a.MULTIPLE_RESPONSE,ge=ce.a.ANY,ye=ce.a.CHOICE,be=ce.a.CORRECT_INCORRECT,_e=function(t){function n(){var e,t,r,o,i,a,s;Object(g.a)(this,n);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return(s=Object(y.a)(this,(e=Object(b.a)(n)).call.apply(e,v()(t=[this]).call(t,c)))).state={selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillinValue:"",matches:{}},s.handleFillIn=h()(r=s.handleFillIn).call(r,Object(_.a)(s)),s.handleMatch=h()(o=s.handleMatch).call(o,Object(_.a)(s)),s.handleMultipleResponseChange=h()(i=s.handleMultipleResponseChange).call(i,Object(_.a)(s)),s.handleRetake=h()(a=s.handleRetake).call(a,Object(_.a)(s)),s}return Object(E.a)(n,t),Object(w.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:ee.a.any,blockId:ee.a.any,items:ee.a.array,settings:ee.a.object.isRequired,editable:ee.a.bool,onStep:ee.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),Object(w.a)(n,[{key:"componentDidUpdate",value:function(e,t){t.answered&&!this.state.answered&&Object(ne.c)(this.wrapper)}},{key:"handleMatch",value:function(e){var t=e.dragIndex,n=e.dropZoneIndex,r=this.state.matches,o=T()(O()(t,n),W()(A()(n)),re.d)(r);this.setState({matches:o})}},{key:"handleMultipleResponseChange",value:function(e){var t=e.optionIndex,n=this.state.selectedIndices,r=d()(n).call(n,t)?V()([t]):k()(t);this.setState({selectedIndices:r(n)})}},{key:"onAnswer",value:function(e){this.state.answered||this.setState({selectedAnswer:e,chosen:!0})}},{key:"onSubmit",value:function(e,t){var n=this;t&&this.setState({answered:!0,retake:!1},function(){return n.props.onStep({id:e})})}},{key:"handleTitleChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(G.a)(Object(X.k)({lessonId:r,blockId:o,itemId:e,payload:{title:t}}))}},{key:"handleAnswerChange",value:function(e,t,n){var r,o=this.props,i=o.lessonId,a=o.blockId,s=o.items,c=u()(s).call(s,function(t){return t.id===e});if(1===c.length&&c[0].answers){var f=c[0],d=l()(r=f.answers).call(r,function(e){return e.id===t?F()(e,{title:n}):e});Object(G.a)(Object(X.k)({lessonId:i,blockId:a,itemId:e,payload:{answers:d}}))}}},{key:"handleFeedbackChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(G.a)(Object(X.k)({lessonId:r,blockId:o,itemId:e,payload:{feedback:t}}))}},{key:"handleFillIn",value:function(e){this.setState({fillinValue:e})}},{key:"handleRetake",value:function(){var e=this;this.setState({retake:!0}),a()(function(){e.setState({answered:!1,chosen:!1,matches:{}})},400),a()(function(){e.setState({fillinValue:"",selectedAnswer:null,selectedIndices:[]})},950)}},{key:"renderQuestion",value:function(t){var n,r=this,o=this.state,i=o.answered,a=o.retake,s=o.selectedAnswer,l=this.props,c=l.blockId,u=l.editable,f=l.labels,d=f.quizCorrect,p=f.quizIncorrect,m=f.quizSubmit,v=f.quizTakeAgain,g=t.id,y=t.media,b=t.settings,_=t.title,w=t.type,E=this.state.answered,x=this.getIsCorrect({item:t}),k=this.getCanSubmit({item:t}),S=h()(n=this.onSubmit).call(n,this,g,k),T=this.getFeedback({item:t,isCorrect:x,selectedAnswer:s}),C=Q()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":i}),O=Q()("block-knowledge__retake","brand--hoverColor",{"block-knowledge__retake--active":i&&!a});return e.createElement(le.b,{key:g,allowTabNavigation:!0},e.createElement(ie.a,{className:"quiz-card__title brand--body brand--linkColor",value:_,placeholder:"Enter a question title here ...",onChange:function(e){return r.handleTitleChange(g,e)},component:"div",editable:u}),e.createElement(le.e,{blockId:c,labels:f,media:y,opts:b}),e.createElement(le.d,{isComplete:!!i,type:w},this.renderType({isCorrect:x,item:t,onSubmit:S,canSubmit:k})),e.createElement(le.a,{allowTabNavigation:!i,canProceed:E,canSubmit:k,onSubmit:S,quizSubmit:m}),e.createElement(le.c,{allowTabNavigation:E,canProceed:E,feedback:T,hasFeedback:!!T,isCorrect:x,labels:f,quizCorrect:d,quizIncorrect:p,renderText:function(){return e.createElement(se.a,{className:"quiz-card__feedback-text brand--body brand--linkColor",allowTabNavigation:i,value:T})}}),e.createElement("div",{className:C},e.createElement("button",{"aria-hidden":!i,className:O,onClick:this.handleRetake,tabIndex:Object(ne.l)(i)},e.createElement("div",{className:"block-knowledge__retake-content"},e.createElement("div",{className:"block-knowledge__retake-text brand--ui"},v),e.createElement("i",{className:"block-knowledge__retake-icon icon icon-reload"})))))}},{key:"getIsCorrect",value:function(e){var t=e.item,n=this.state,r=n.fillinValue,o=n.matches,i=n.selectedAnswer,a=n.selectedIndices,s=t.answers,l=t.type,c=t.isCaseSensitive;switch(l){case pe:return Object(de.g)({answers:Object(de.e)(s),fillinValue:r,isCaseSensitive:c});case he:return Object(oe.b)(o);case ve:return Object(de.h)({answers:s,selectedIndices:a});case me:default:return i===Object(de.b)(s)}}},{key:"getCanSubmit",value:function(e){var t=e.item,n=t.answers,r=this.state,o=r.answered,i=r.fillinValue,a=r.matches,s=r.selectedAnswer,l=r.selectedIndices;switch(t.type){case pe:return U()(M()(i))&&U()(o);case he:return Object(de.i)(a)===D()(n);case ve:return U()(M()(l))&&U()(o);case me:default:return U()(L()(s))&&U()(o)}}},{key:"getFeedback",value:function(e){var t=e.item,n=e.isCorrect,r=e.selectedAnswer,o=t.answers,i=t.feedback,a=t.feedbackCorrect,s=t.feedbackIncorrect;switch(t.feedbackType){case ye:return z()("",[r,"feedback"],o);case be:return n?a:s;case ge:default:return i}}},{key:"renderType",value:function(t){var n,r,o=this,i=t.isCorrect,a=t.item,s=t.onSubmit,l=t.canSubmit,c=this.props,u=c.blockId,f=c.editable,d=c.isLearner,p=c.labels,h=this.state,m=h.answered,g=h.fillinValue,y=h.matches,b=h.retake,_=h.selectedAnswer,w=h.selectedIndices,E=a.answers,x=void 0===E?[]:E,k=a.type,S=p.quizAcceptableResponses,T=p.quizAnswerPlaceholder,C=Object(oe.i)(x),O=C,j=Y()(C);switch(k){case pe:return e.createElement(fe.a,{allowTabNavigation:!0,isComplete:m,isCorrect:i,onChange:this.handleFillIn,onEnterToSubmit:s,options:Object(de.e)(x),revealAnswers:!0,quizAcceptableResponses:S,quizAnswerPlaceholder:T,value:g});case he:return e.createElement(fe.b,{allowTabNavigation:!0,answers:Object(de.a)(k)(x),canSubmit:l,isActive:!0,isComplete:m,isLearner:d,matchIndices:O,matches:y,onEnterToSubmit:s,onMatch:this.handleMatch,prefersKeyboardNavigation:!0,revealAnswers:!0,titleIndices:j,isKnowledgeCheck:!0,isRetake:b});case ve:return e.createElement(fe.d,{allowTabNavigation:!0,correctIds:Object(de.d)(x),isComplete:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:s,options:x,renderOptionText:function(t){var n=t.optionId,r=t.title;return e.createElement(ie.a,{className:"quiz-multiple-choice-option__label brand--body",value:r,onChange:function(e){return o.handleAnswerChange(a.id,n,e)},component:"div",editable:f})},revealAnswers:!0,selectedIndices:w,uniqueId:v()(n="".concat(u,"-")).call(n,a.id)});case me:default:return e.createElement(fe.c,{allowTabNavigation:!0,correctId:Object(de.c)(x)||Object(de.f)(x),isComplete:m,onChange:function(e){var t=e.optionIndex;o.onAnswer(t)},onEnterToSubmit:s,options:x,renderOptionText:function(t){var n=t.optionId,r=t.title;return e.createElement(ie.a,{className:"quiz-multiple-choice-option__label brand--body",value:r,placeholder:"Add an answer",onChange:function(e){return o.handleAnswerChange(a.id,n,e)},component:"div",editable:f})},selectedIndex:_,title:a.title,uniqueId:v()(r="".concat(u,"-")).call(r,a.id)})}}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,a=n.items,s=n.settings,c=n.labels,u=void 0===c?{}:c,f=this.state,d=f.answered,p=f.retake,h=s.paddingTop,m=s.paddingBottom,v=s.backgroundColor,g=s.entranceAnimation,y=u.knowledgeCheckGroup,b=Q()("block-knowledge",{"block-knowledge--no-animation":!g,"block-knowledge--answered":d,"block-knowledge--retake":p}),_={backgroundColor:Object(te.a)("",v),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},w=a.length>0?o()(a).call(a,0,1):[];return e.createElement("div",{className:b,style:_,ref:function(e){t.block=e}},e.createElement(ae.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i},e.createElement("div",{className:"block-knowledge__container"},e.createElement("div",{className:"block-knowledge__row"},e.createElement("div",{className:"block-knowledge__col"},e.createElement("div",{"aria-label":y,className:"block-knowledge__wrapper",ref:function(e){t.wrapper=e}},l()(w).call(w,function(e){return t.renderQuestion(e)})))))))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){var r=n(712);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(66),o=n(618),i=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:n(322)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports={}},function(e,t,n){var r=n(61),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(85),o=n(358),i=n(98)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(61),o=n(98)("species");e.exports=function(e){return!r(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports={}},function(e,t,n){var r=n(494),o=n(98)("iterator"),i=n(413);e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(790);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n,o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){e.exports=!n(61)(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(93),o=n(623),i=n(104),a=n(290),s=n(414),l=n(787),c={};(e.exports=function(e,t,n,u,f){var d,p,h,m,v,g=a(t,n,u?2:1);if(f)d=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,m=i(e.length);m>h;h++)if((u?g(r(v=e[h])[0],v[1]):g(e[h]))===c)return c;return}d=p.call(e)}for(;!(v=d.next()).done;)if(l(d,g,v.value,u)===c)return c}).BREAK=c},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(212),o=n(507),i=n(419),a=n(257),s=n(506),l=n(197),c=n(811),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(197),o=n(236),i=n(509)("IE_PROTO"),a=n(819),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(821),o=n(645);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(235);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:r(e,t,n)}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(364),o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(830),o=n(1492);function i(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:r,Tokenizer:n(831),ElementType:n(428),DomHandler:o,get FeedHandler(){return i("FeedHandler",n(1494))},get Stream(){return i("Stream",n(1495))},get WritableStream(){return i("WritableStream",n(835))},get ProxyHandler(){return i("ProxyHandler",n(1510))},get DomUtils(){return i("DomUtils",n(1511))},get CollectingHandler(){return i("CollectingHandler",n(1523))},DefaultHandler:o,get RssHandler(){return i("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new o(t);return new r(n,t).end(e),n.dom},parseFeed:function(t,n){var o=new e.exports.FeedHandler(n);return new r(o,n).end(t),o.dom},createDomStream:function(e,t,n){var i=new o(e,t,n);return new r(i,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(368).Buffer)},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var a,s=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(a=l[u])?l.splice(u,1):".."===a?c++:c>0&&(""===a?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=s?"/":"."),r?(r.path=n,i(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),s=o(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var l="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,i(s)):l}t.urlParse=o,t.urlGenerate=i,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=f(e.source,t.source);return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:f(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=f(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:f(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:f(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=o(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=s(i(r),t)}return a(t)}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(295);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return r(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t,n){var r=n(330);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(152),o=n(119)("species");e.exports=function(e){return!r(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.prototype.slice.call(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(21),o=n(530),i=n(57),a=n(438);e.exports=r(function(e,t){return i(e+1,function(){var n=arguments[e];if(null!=n&&o(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(a(n)+' does not have a method named "'+t+'"')})})},function(e,t,n){var r=n(52),o=n(1580);e.exports=r(function(e){return o(e,[])})},function(e,t,n){var r=n(363),o=n(508),i=n(236),a=n(195),s=n(668);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var m,v,g=i(t),y=o(g),b=r(s,h,3),_=a(y.length),w=0,E=n?p(t,_):l?p(t,0):void 0;_>w;w++)if((d||w in y)&&(v=b(m=y[w],w,g),e))if(n)E[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:E.push(m)}else if(u)return!1;return f?-1:c||u?u:E}}},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(259),o=n(94),i=n(296),a=n(369);function s(e){return e&&o(e.inspect)?" "+e.inspect():o(e)?" Function":r(e)?" ["+((t=e).length?t.map(s).reduce(function(e,t){return e+","+t}):t)+" ]":i(e)?" {}":a(e)?' "'+e+'"':" "+e;var t}e.exports=s},function(e,t,n){e.exports=n(1651)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={pushHash:function(e){if(e=e?0===e.indexOf("#")?e:"#"+e:"",history.pushState){var t=window.location;history.pushState(null,null,e?t.pathname+t.search+e:t.pathname+t.search)}else location.hash=e},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t){return e===document?t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset):"static"!==getComputedStyle(e).position?t.offsetTop:t.getBoundingClientRect().top+e.scrollTop}}},function(e,t,n){var r=n(692),o=n(338);e.exports=function(e){return null!=e&&o(r(e))}},function(e,t,n){var r=n(695),o=n(444),i=n(183),a=n(1831),s=r(Object,"keys"),l=s?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&o(e)?a(e):i(e)?s(e):[]}:a;e.exports=l},function(e,t,n){var r=n(1949),o=n(447);e.exports=function(e){return null!=e&&o(r(e))}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){"use strict";t.__esModule=!0,t.createTimeRange=void 0,t.createTimeRanges=l;var r,o=n(184),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t,n,r){return void 0===r&&(i.default.warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),r=0),function(e,t,n){if(t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+n+").")}(e,r,n.length-1),n[r][t]}function s(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:a.bind(null,"start",0,e),end:a.bind(null,"end",1,e)}}function l(e,t){return Array.isArray(e)?s(e):void 0===e||void 0===t?s():s([[e,t]])}t.createTimeRange=l},function(e,t,n){"use strict";t.__esModule=!0;var r=y(n(48)),o=y(n(1973)),i=y(n(1979)),a=y(n(265)),s=y(n(707)),l=y(n(1980)),c=y(n(956)),u=y(n(957)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),d=y(n(184)),p=n(448),h=n(946),m=y(n(947)),v=y(n(141)),g=y(n(129));function y(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n.reportTouchActivity=!1;var o=function(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}(this,e.call(this,null,n,r));return o.hasStarted_=!1,o.on("playing",function(){this.hasStarted_=!0}),o.on("loadstart",function(){this.hasStarted_=!1}),o.textTracks_=n.textTracks,o.videoTracks_=n.videoTracks,o.audioTracks_=n.audioTracks,o.featuresProgressEvents||o.manualProgressOn(),o.featuresTimeupdateEvents||o.manualTimeUpdatesOn(),!1!==n.nativeCaptions&&!1!==n.nativeTextTracks||(o.featuresNativeTextTracks=!1),o.featuresNativeTextTracks||o.on("ready",o.emulateTextTracks),o.initTextTrackListeners(),o.initTrackListeners(),o.emitTapEvents(),o}return function(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,e),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(f.bind(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(){this.duration_=this.duration()},t.prototype.buffered=function(){return(0,p.createTimeRange)(0,0)},t.prototype.bufferedPercent=function(){return(0,h.bufferedPercent)(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var o=n[r];"text"===e&&t.removeRemoteTextTrack(o),n.removeTrack_(o)}})},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new m.default(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?(0,p.createTimeRange)(0,0):(0,p.createTimeRange)()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var e=f.bind(this,function(){this.trigger("texttrackchange")}),t=this.textTracks();t&&(t.addEventListener("removetrack",e),t.addEventListener("addtrack",e),this.on("dispose",f.bind(this,function(){t.removeEventListener("removetrack",e),t.removeEventListener("addtrack",e)})))},t.prototype.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(t){var n=function(){e.trigger(t+"trackchange")},r=e[t+"Tracks"]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks();if(t){var n;v.default.WebVTT||null===this.el().parentNode||void 0===this.el().parentNode||((n=g.default.createElement("script")).src=e.options_["vtt.js"]||"../node_modules/videojs-vtt.js/dist/vtt.js",n.onload=function(){e.trigger("vttjsloaded")},n.onerror=function(){e.trigger("vttjserror")},e.on("dispose",function(){n.onload=null,n.onerror=null}),v.default.WebVTT=!0,e.el().parentNode.appendChild(n));var r=function(){return e.trigger("texttrackchange")},o=function(){r();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",r),"showing"===n.mode&&n.addEventListener("cuechange",r)}};o(),t.addEventListener("change",o),this.on("dispose",function(){t.removeEventListener("change",o)})}},t.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new c.default,this.videoTracks_},t.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new u.default,this.audioTracks_},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new l.default,this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new l.default,this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new i.default,this.remoteTextTrackEls_},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.textTracks();o.kind=t,n&&(o.label=n),r&&(o.language=r),o.tech=e;var a=new s.default(o);return i.addTrack_(a),a}(this,e,t,n)},t.prototype.addRemoteTextTrack=function(e){var t=(0,a.default)(e,{tech:this}),n=new o.default(t);return this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),this.textTracks().addTrack_(n.track),n},t.prototype.removeRemoteTextTrack=function(e){this.textTracks().removeTrack_(e);var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack_(e)},t.prototype.setPoster=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");return t.techs_[e]=n,n},t.getTech=function(e){return t.techs_&&t.techs_[e]?t.techs_[e]:v.default&&v.default.videojs&&v.default.videojs[e]?(d.default.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),v.default.videojs[e]):void 0},t}(r.default);b.prototype.textTracks_,b.prototype.audioTracks_,b.prototype.videoTracks_,b.prototype.featuresVolumeControl=!0,b.prototype.featuresFullscreenResize=!1,b.prototype.featuresPlaybackRate=!1,b.prototype.featuresProgressEvents=!1,b.prototype.featuresTimeupdateEvents=!1,b.prototype.featuresNativeTextTracks=!1,b.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],r=void 0,o=0;o<n.length;o++)if(r=n[o].canPlayType(t))return r;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],o=0;o<r.length;o++)if(r[o].canHandleSource(t,n))return r[o];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);return n||(e.nativeSourceHandler?n=e.nativeSourceHandler:d.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),n!==e.nativeSourceHandler&&(this.currentSource_=t,this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",e.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},e.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)},e.prototype.successiveLoadStartListener_=function(){this.currentSource_=null,this.disposeSourceHandler(),this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)},e.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose(),this.sourceHandler_=null)}},r.default.registerComponent("Tech",b),r.default.registerComponent("MediaTechController",b),b.registerTech("Tech",b),t.default=b},function(e,t,n){"use strict";t.__esModule=!0;var r=f(n(48)),o=u(n(124)),i=u(n(264)),a=u(n(108)),s=f(n(184)),l=f(n(129)),c=f(n(301));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.emitTapEvents(),o.on("tap",o.handleClick),o.on("click",o.handleClick),o.on("focus",o.handleFocus),o.on("blur",o.handleBlur),o}return function(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,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,c.default)({className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&s.default.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=(0,c.default)({role:"button","aria-live":"polite"},r);var o=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(o),o},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=o.createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(!e)return this.controlText_||"Need Text";var n=this.localize(e);return this.controlText_=e,this.controlTextEl_.innerHTML=n,t.setAttribute("title",n),this},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.prototype.addChild.call(this,t,n)},t.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},t.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},t.prototype.handleClick=function(){},t.prototype.handleFocus=function(){i.on(l.default,"keydown",a.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(){i.off(l.default,"keydown",a.bind(this,this.handleKeyPress))},t}(r.default);r.default.registerComponent("ClickableComponent",d),t.default=d},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(450)),o=s(n(48)),i=s(n(184)),a=s(n(301));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.call(this,n,r))}return function(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,e),t.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=(0,a.default)({className:this.buildCSSClass()},t),"button"!==e&&(i.default.warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),t=(0,a.default)({tabIndex:0},t),n=(0,a.default)({role:"button"},n)),n=(0,a.default)({type:"button","aria-live":"polite"},n);var r=o.default.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return i.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),o.default.prototype.addChild.call(this,e,t)},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(r.default);o.default.registerComponent("Button",l),t.default=l},function(e,t,n){"use strict";var r=n(86);function o(e,t){return r.where(e,function(e){return e.position===t})}function i(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,n){var r=t?n:e,o=t?e:n;return r.weight===o.weight?r._tmpIndex_-o._tmpIndex_:r.weight-o.weight}),e.forEach(function(e){delete e._tmpIndex_})}e.exports={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,o=["fullWidth","position","weight"],i=o.length,a=0;a<i;++a)r=o[a],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var a=e.options.layout||{},s=r.options.toPadding(a.padding),l=s.left,c=s.right,u=s.top,f=s.bottom,d=o(e.boxes,"left"),p=o(e.boxes,"right"),h=o(e.boxes,"top"),m=o(e.boxes,"bottom"),v=o(e.boxes,"chartArea");i(d,!0),i(p,!1),i(h,!0),i(m,!1);var g=t-l-c,y=n-u-f,b=y/2,_=(t-g/2)/(d.length+p.length),w=(n-b)/(h.length+m.length),E=g,x=y,k=[];r.each(d.concat(p,h,m),function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?g:E,w),x-=t.height):(t=e.update(_,x),E-=t.width),k.push({horizontal:n,minSize:t,box:e})});var S=0,T=0,C=0,O=0;r.each(h.concat(m),function(e){if(e.getPadding){var t=e.getPadding();S=Math.max(S,t.left),T=Math.max(T,t.right)}}),r.each(d.concat(p),function(e){if(e.getPadding){var t=e.getPadding();C=Math.max(C,t.top),O=Math.max(O,t.bottom)}});var j=l,A=c,N=u,M=f;r.each(d.concat(p),B),r.each(d,function(e){j+=e.width}),r.each(p,function(e){A+=e.width}),r.each(h.concat(m),B),r.each(h,function(e){N+=e.height}),r.each(m,function(e){M+=e.height}),r.each(d.concat(p),function(e){var t=r.findNextWhere(k,function(t){return t.box===e}),n={left:0,right:0,top:N,bottom:M};t&&e.update(t.minSize.width,x,n)}),j=l,A=c,N=u,M=f,r.each(d,function(e){j+=e.width}),r.each(p,function(e){A+=e.width}),r.each(h,function(e){N+=e.height}),r.each(m,function(e){M+=e.height});var I=Math.max(S-j,0);j+=I,A+=Math.max(T-A,0);var L=Math.max(C-N,0);N+=L,M+=Math.max(O-M,0);var P=n-N-M,D=t-j-A;D===E&&P===x||(r.each(d,function(e){e.height=P}),r.each(p,function(e){e.height=P}),r.each(h,function(e){e.fullWidth||(e.width=D)}),r.each(m,function(e){e.fullWidth||(e.width=D)}),x=P,E=D);var R=l+I,F=u+L;r.each(d.concat(h),U),R+=E,F+=x,r.each(p,U),r.each(m,U),e.chartArea={left:j,top:N,right:j+E,bottom:N+x},r.each(v,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(E,x)})}function B(e){var t=r.findNextWhere(k,function(t){return t.box===e});if(t)if(e.isHorizontal()){var n={left:Math.max(j,S),right:Math.max(A,T),top:0,bottom:0};e.update(e.fullWidth?g:E,y/2,n)}else e.update(t.minSize.width,x)}function U(e){e.isHorizontal()?(e.left=e.fullWidth?l:j,e.right=e.fullWidth?t-c:j+E,e.top=F,e.bottom=F+e.height,F=e.bottom):(e.left=R,e.right=R+e.width,e.top=N,e.bottom=N+x,R=e.right)}}}},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86),a=n(454);function s(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(e[t].label);return r}function l(e,t,n){var r=e.getPixelForTick(t);return n&&(r-=0===t?(e.getPixelForTick(1)-r)/2:(r-e.getPixelForTick(t-1))/2),r}function c(e,t,n){return i.isArray(t)?i.longestText(e,n,t):e.measureText(t).width}function u(e){var t=i.valueOrDefault,n=r.global,o=t(e.fontSize,n.defaultFontSize),a=t(e.fontStyle,n.defaultFontStyle),s=t(e.fontFamily,n.defaultFontFamily);return{size:o,style:a,family:s,font:i.fontString(o,a,s)}}function f(e){return i.options.toLineHeight(i.valueOrDefault(e.lineHeight,1.2),i.valueOrDefault(e.fontSize,r.global.defaultFontSize))}r._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:a.formatters.values,minor:{},major:{}}}),e.exports=o.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){i.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,o,a,s,l,c,u=this;for(u.beforeUpdate(),u.maxWidth=e,u.maxHeight=t,u.margins=i.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),l=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),a=u.convertTicksToLabels(l)||u.ticks,u.afterTickToLabelConversion(),u.ticks=a,r=0,o=a.length;r<o;++r)s=a[r],(c=l[r])?c.label=s:l.push(c={label:s,major:!1});return u._ticks=l,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){i.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){i.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){i.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){i.callback(this.options.beforeDataLimits,[this])},determineDataLimits:i.noop,afterDataLimits:function(){i.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){i.callback(this.options.beforeBuildTicks,[this])},buildTicks:i.noop,afterBuildTicks:function(){i.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){i.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){i.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){i.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,r=s(e._ticks),o=u(n);t.font=o.font;var a=n.minRotation||0;if(r.length&&e.options.display&&e.isHorizontal())for(var l,c=i.longestText(t,o.font,r,e.longestTextCache),f=c,d=e.getPixelForTick(1)-e.getPixelForTick(0)-6;f>d&&a<n.maxRotation;){var p=i.toRadians(a);if(l=Math.cos(p),Math.sin(p)*c>e.maxHeight){a--;break}a++,f=l*c}e.labelRotation=a},afterCalculateTickRotation:function(){i.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){i.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=s(e._ticks),r=e.options,o=r.ticks,a=r.scaleLabel,l=r.gridLines,d=r.display,p=e.isHorizontal(),h=u(o),m=r.gridLines.tickMarkLength;if(t.width=p?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:d&&l.drawTicks?m:0,t.height=p?d&&l.drawTicks?m:0:e.maxHeight,a.display&&d){var v=f(a)+i.options.toPadding(a.padding).height;p?t.height+=v:t.width+=v}if(o.display&&d){var g=i.longestText(e.ctx,h.font,n,e.longestTextCache),y=i.numberOfLabelLines(n),b=.5*h.size,_=e.options.ticks.padding;if(p){e.longestLabelWidth=g;var w=i.toRadians(e.labelRotation),E=Math.cos(w),x=Math.sin(w)*g+h.size*y+b*(y-1)+b;t.height=Math.min(e.maxHeight,t.height+x+_),e.ctx.font=h.font;var k=c(e.ctx,n[0],h.font),S=c(e.ctx,n[n.length-1],h.font);0!==e.labelRotation?(e.paddingLeft="bottom"===r.position?E*k+3:E*b+3,e.paddingRight="bottom"===r.position?E*b+3:E*S+3):(e.paddingLeft=k/2+3,e.paddingRight=S/2+3)}else o.mirror?g=0:g+=_+b,t.width=Math.min(e.maxWidth,t.width+g),e.paddingTop=h.size/2,e.paddingBottom=h.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){i.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(i.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:i.noop,getPixelForValue:i.noop,getValueForPixel:i.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var r=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),o=r*e+t.paddingLeft;n&&(o+=r/2);var i=t.left+Math.round(o);return i+=t.isFullWidth()?t.margins.left:0}var a=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(a/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,r=t.left+Math.round(n);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,o,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,c=e.length,u=i.toRadians(a.labelRotation),f=Math.cos(u),d=a.longestLabelWidth*f,p=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(t=!1,(d+l.autoSkipPadding)*c>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((d+l.autoSkipPadding)*c/(a.width-(a.paddingLeft+a.paddingRight)))),o&&c>o&&(t=Math.max(t,Math.floor(c/o)))),n=0;n<c;n++)r=e[n],(t>1&&n%t>0||n%t==0&&n+t>=c)&&n!==c-1&&delete r.label,p.push(r);return p},draw:function(e){var t=this,n=t.options;if(n.display){var o=t.ctx,a=r.global,s=n.ticks.minor,c=n.ticks.major||s,d=n.gridLines,p=n.scaleLabel,h=0!==t.labelRotation,m=t.isHorizontal(),v=s.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),g=i.valueOrDefault(s.fontColor,a.defaultFontColor),y=u(s),b=i.valueOrDefault(c.fontColor,a.defaultFontColor),_=u(c),w=d.drawTicks?d.tickMarkLength:0,E=i.valueOrDefault(p.fontColor,a.defaultFontColor),x=u(p),k=i.options.toPadding(p.padding),S=i.toRadians(t.labelRotation),T=[],C=t.options.gridLines.lineWidth,O="right"===n.position?t.left:t.right-C-w,j="right"===n.position?t.left+w:t.right,A="bottom"===n.position?t.top+C:t.bottom-w-C,N="bottom"===n.position?t.top+C+w:t.bottom+C;if(i.each(v,function(r,o){if(!i.isNullOrUndef(r.label)){var c,u,f,p,g,y,b,_,E,x,k,M,I,L,P=r.label;o===t.zeroLineIndex&&n.offset===d.offsetGridLines?(c=d.zeroLineWidth,u=d.zeroLineColor,f=d.zeroLineBorderDash,p=d.zeroLineBorderDashOffset):(c=i.valueAtIndexOrDefault(d.lineWidth,o),u=i.valueAtIndexOrDefault(d.color,o),f=i.valueOrDefault(d.borderDash,a.borderDash),p=i.valueOrDefault(d.borderDashOffset,a.borderDashOffset));var D="middle",R="middle",F=s.padding;if(m){var B=w+F;"bottom"===n.position?(R=h?"middle":"top",D=h?"right":"center",L=t.top+B):(R=h?"middle":"bottom",D=h?"left":"center",L=t.bottom-B);var U=l(t,o,d.offsetGridLines&&v.length>1);U<t.left&&(u="rgba(0,0,0,0)"),U+=i.aliasPixel(c),I=t.getPixelForTick(o)+s.labelOffset,g=b=E=k=U,y=A,_=N,x=e.top,M=e.bottom+C}else{var q,z="left"===n.position;s.mirror?(D=z?"left":"right",q=F):(D=z?"right":"left",q=w+F),I=z?t.right-q:t.left+q;var H=l(t,o,d.offsetGridLines&&v.length>1);H<t.top&&(u="rgba(0,0,0,0)"),H+=i.aliasPixel(c),L=t.getPixelForTick(o)+s.labelOffset,g=O,b=j,E=e.left,k=e.right+C,y=_=x=M=H}T.push({tx1:g,ty1:y,tx2:b,ty2:_,x1:E,y1:x,x2:k,y2:M,labelX:I,labelY:L,glWidth:c,glColor:u,glBorderDash:f,glBorderDashOffset:p,rotation:-1*S,label:P,major:r.major,textBaseline:R,textAlign:D})}}),i.each(T,function(e){if(d.display&&(o.save(),o.lineWidth=e.glWidth,o.strokeStyle=e.glColor,o.setLineDash&&(o.setLineDash(e.glBorderDash),o.lineDashOffset=e.glBorderDashOffset),o.beginPath(),d.drawTicks&&(o.moveTo(e.tx1,e.ty1),o.lineTo(e.tx2,e.ty2)),d.drawOnChartArea&&(o.moveTo(e.x1,e.y1),o.lineTo(e.x2,e.y2)),o.stroke(),o.restore()),s.display){o.save(),o.translate(e.labelX,e.labelY),o.rotate(e.rotation),o.font=e.major?_.font:y.font,o.fillStyle=e.major?b:g,o.textBaseline=e.textBaseline,o.textAlign=e.textAlign;var n=e.label;if(i.isArray(n))for(var r=n.length,a=1.5*y.size,l=t.isHorizontal()?0:-a*(r-1)/2,c=0;c<r;++c)o.fillText(""+n[c],0,l),l+=a;else o.fillText(n,0,0);o.restore()}}),p.display){var M,I,L=0,P=f(p)/2;if(m)M=t.left+(t.right-t.left)/2,I="bottom"===n.position?t.bottom-P-k.bottom:t.top+P+k.top;else{var D="left"===n.position;M=D?t.left+P+k.top:t.right-P-k.top,I=t.top+(t.bottom-t.top)/2,L=D?-.5*Math.PI:.5*Math.PI}o.save(),o.translate(M,I),o.rotate(L),o.textAlign="center",o.textBaseline="middle",o.fillStyle=E,o.font=x.font,o.fillText(p.labelString,0,0),o.restore()}if(d.drawBorder){o.lineWidth=i.valueAtIndexOrDefault(d.lineWidth,0),o.strokeStyle=i.valueAtIndexOrDefault(d.color,0);var R=t.left,F=t.right+C,B=t.top,U=t.bottom+C,q=i.aliasPixel(o.lineWidth);m?(B=U="top"===n.position?t.bottom:t.top,B+=q,U+=q):(R=F="left"===n.position?t.right:t.left,R+=q,F+=q),o.beginPath(),o.moveTo(R,B),o.lineTo(F,U),o.stroke()}}}})},function(e,t,n){"use strict";var r=n(86);e.exports={formatters:{values:function(e){return r.isArray(e)?e:""+e},linear:function(e,t,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&e!==Math.floor(e)&&(o=e-Math.floor(e));var i=r.log10(Math.abs(o)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=r.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(i))}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var o=e/Math.pow(10,Math.floor(r.log10(e)));return 0===e?"0":1===o||2===o||5===o||0===t||t===n.length-1?e.toExponential():""}}}},function(e,t,n){var r=n(558),o=n(2153),i=n(2154),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(432),o=n(52),i=n(201);e.exports=o(r("tail",i(1,1/0)))},function(e,t,n){var r=n(50),o=n(875);e.exports=o(r)},function(e,t,n){var r=n(21),o=n(868);e.exports=r(function(e,t){if(!o(e)||!o(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n})},function(e,t,n){var r=n(62),o=n(25);e.exports=r(function(e,t,n){return t.length>0&&e(o(t,n))})},function(e,t,n){var r=n(52),o=n(57),i=n(240),a=n(215),s=n(73);e.exports=r(function(e){return o(s(i,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e&&t})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){var r=e(t),o=e(n);return r<o?-1:r>o?1:0})})},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Search":n,i=t.desc,a=void 0===i?"Magnifying glass":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15.6 14.7",width:l,height:u,className:o()("i i-search",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"}))}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(e){return e<10?"0".concat(e):String(e)},o=function(e){return Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(e)}},function(e,t,n){var r,o=n(21);e.exports=(r=function(e){return{value:e,"fantasy-land/map":function(){return this}}},o(function(e,t){return e(r)(t).value}))},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){var r=e(t),o=e(n);return r<o?-1:r>o?1:0})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
e.exports=n(436)},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return $});var r=n(148),o=n.n(r),i=n(19),a=n.n(i),s=n(130),l=n.n(s),c=n(5),u=n.n(c),f=n(270),d=n.n(f),p=n(37),h=n.n(p),m=n(28),v=n.n(m),g=n(38),y=n.n(g),b=n(95),_=n.n(b),w=n(43),E=n.n(w),x=n(74),k=n.n(x),S=n(241),T=n.n(S),C=n(18),O=n.n(C),j=n(12),A=n.n(j),N=n(16),M=n.n(N),I=n(73),L=n.n(I),P=n(121),D=n.n(P),R=n(69),F=n.n(R),B=n(31),U=n.n(B),q=l()(y.a),z=o()(L.a),H=function(e){var t=e.key,n=e.percent;return function(e){return a()(n,O()(A()("items"),F.a,h()(M()(t,!0)),E.a,v()(d.a)(u()(E.a,_.a,A()("items"))(e)),T()(100),Math.round)(e),e)}},W=(z(function e(t,n,r){var o=n.id,i=n.items;return O()(a()(o,{index:r}),U()(function(){return q(i)},function(t){return D()(k()([o,"items"]),z(e,{},i))(t)}))(t)},{}),H({key:"isComplete",percent:"percentComplete"})),$=H({key:"isViewed",percent:"percentViewed"})},function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d});var r=n(28),o=n.n(r),i=n(14),a=n.n(i),s=n(54),l=n.n(s),c=n(65),u=function(e){return function(t){return t(Object(c.f)({id:e,updateFn:f}))}},f=o()(a.a)({isComplete:!0,percentComplete:100}),d=l()(["isComplete","percentComplete"])},function(e,t,n){"use strict";n.d(t,"a",function(){return S}),n.d(t,"b",function(){return T}),n.d(t,"c",function(){return C});var r=n(19),o=n.n(r),i=n(5),a=n.n(i),s=n(28),l=n.n(s),c=n(74),u=n.n(c),f=n(58),d=n.n(f),p=n(14),h=n.n(p),m=n(54),v=n.n(m),g=n(47),y=n.n(g),b=n(16),_=n.n(b),w=n(31),E=n.n(w),x=n(72),k=n(65),S=function(e){var t=e.id,n=e.itemId;return function(e){return e(Object(k.f)({id:t,updateFn:O(n)}))}},T=a()(l()(h.a)({isComplete:!0,percentComplete:100}),y()(d()("items"),Object(x.e)(o()("isComplete",!0)))),C=a()(v()(["isComplete","percentComplete"]),y()(d()("items"),Object(x.e)(v()(["isComplete"])))),O=function(e){return a()(E()(_()("percentComplete",100),o()("isComplete",!0)),k.e,y()(u()(["items",e]),o()("isComplete",!0)))}},function(e,t,n){"use strict";n.d(t,"c",function(){return O}),n.d(t,"a",function(){return j}),n.d(t,"b",function(){return A});var r=n(20),o=n.n(r),i=n(19),a=n.n(i),s=n(5),l=n.n(s),c=n(28),u=n.n(c),f=n(202),d=n.n(f),p=n(240),h=n.n(p),m=n(14),v=n.n(m),g=n(70),y=n.n(g),b=n(54),_=n.n(b),w=n(16),E=n.n(w),x=n(51),k=n.n(x),S=n(31),T=n.n(S),C=n(65),O=function(e){var t=e.currentTime,n=e.id,r=e.percentComplete;return function(e){return e(Object(C.f)({id:n,updateFn:M({currentTime:t,percentComplete:r})}))}},j=u()(v.a)({currentTime:0,isComplete:!0,percentComplete:100}),A=_()(["currentTime","isComplete","percentComplete"]),N=T()(E()("percentComplete",100),a()("isComplete",!0)),M=function(e){var t=e.currentTime,n=e.percentComplete;return l()(a()("currentTime",t),N,function(e){return function(t){return l()(v()(t),y()("percentComplete"),Math.round,T()(d()(90),o()(100)),h()(e),k()(0,"percentComplete"))(t)}}(n))}},function(e,t,n){"use strict";(function(e){var r=n(17),o=n.n(r),i=n(156),a=(n(1682),n(2)),s=n.n(a),l=function(e){return s()("button",{"button--default":void 0===e.mode,"button--menu":e.menu,"button--menu button--menuMobile":e.mobileMenu,"button--sidebar brand--ui":e.sidebar,"button--header":e.header,"button--header-done":e.headerDone,"button--outline":e.outline,"button--outline button--outline-transparent":e.outlineTransparent,"button--condensed":e.condensed,"button--inverted":e.inverted,"button--inline":"inline"===e.mode,"button--next":e.next,"button--disabled":e.disabled,"button--controls":e.controls})},c=function(t){return t?e.createElement("i",{className:"button__icon icon-".concat(t)}):null},u=function(t){var n,r=t.onlyIcon,i=t.children;return o()(n=e.Children).call(n,i,function(e){return r&&void 0===e.type?null:e})};t.a=function(t){var n=t.ariaHidden,r=t.ariaLabel,o=t.ariaPressed,a=t.onClick,s=t.tabIndex,f=Object(i.a)(t,["ariaHidden","ariaLabel","ariaPressed","onClick","tabIndex"]);return e.createElement("button",{"aria-hidden":n,"aria-label":r,"aria-pressed":o,className:l(f),disabled:f.disabled,onClick:a,tabIndex:s},c(f.icon),u(f))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return o});n(1683);var r=n(56);function o(t){return t.enableExitCourse?e.createElement("button",{className:t.className,onClick:r.a},t.text):null}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(5),o=n.n(r),i=n(89),a=n.n(i),s=n(307),l=n.n(s),c=n(95),u=n.n(c),f=n(43),d=n.n(f),p=n(27),h=n.n(p),m=n(18),v=n.n(m),g=(n(12),n(220)),y=n.n(g),b=(n(69),a()(function(e,t){return v()(y.a,h()(e),l.a)(t)}),o()(d.a,u.a))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1853),o=n(120),i=n(1854),a=n(94),s=n(199),l=n(1855),c=function(e,t){return s(e,t)&&l(e)&&i(e)&&a(e.first)&&a(e.second)};e.exports=o(function(e,t){if(a(e)&&a(t))return function(n){return r(e(n),t(n))};if(c(e,t))return e.first().compose(t.second()).contramap(function(e){return r(e,e)});throw new TypeError("fanout: Arrows, Functions or Stars of the same type required for both arguments")})},function(e,t,n){"use strict";n.d(t,"c",function(){return k}),n.d(t,"a",function(){return S});n(103);var r,o=n(6),i=n(20),a=n.n(i),s=n(19),l=n.n(s),c=n(155),u=n.n(c),f=n(5),d=n.n(f),p=n(26),h=n.n(p),m=(n(138),n(14)),v=n.n(m),g=(n(185),n(13)),y=n(84),b=n(46),_=h()("rise/storyline/"),w=_("CLOSE_STORIES"),E=_("OPEN_STORIES"),x=function(e){return u()(["media","storyline","processing"],e,{})};t.b=Object(g.f)({isVisible:!1},(r={},Object(o.a)(r,w,l()("isVisible",!1)),Object(o.a)(r,E,v.a),r));a()(Object(g.a)(w,null));var k=d()(Object(g.a)(E),l()("isVisible",!0)),S=function(e){var t=e.lessonId,n=e.blockId,r=e.itemId;return function(e){e(Object(b.k)({lessonId:t,blockId:n,itemId:r,payload:x(!1)})),Object(y.a)({jobId:n})}}},function(e,t,n){var r=n(373),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return _}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return E});var r=n(1),o=n.n(r),i=n(157),a=n.n(i),s=n(349),l=n.n(s),c=n(405),u=n.n(c),f=(n(2202),n(1212)),d=n.n(f),p=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};function h(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 g(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)}var y=void 0!==e&&e.env&&"production",b=function(e){function t(){var n,r;m(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=v(this,e.call.apply(e,[this].concat(i))),r.handleOnClick=function(e){var t=r.chartInstance,n=r.props,o=n.getDatasetAtEvent,i=n.getElementAtEvent,a=n.getElementsAtEvent,s=n.onElementsClick;o&&o(t.getDatasetAtEvent(e),e),i&&i(t.getElementAtEvent(e),e),a&&a(t.getElementsAtEvent(e),e),s&&s(t.getElementsAtEvent(e),e)},r.ref=function(e){r.element=e},v(r,n)}return g(t,e),t.prototype.componentWillMount=function(){this.chartInstance=void 0},t.prototype.componentDidMount=function(){this.renderChart()},t.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,o=t.plugins,i=t.legend,a=t.height,s=t.width;if(!0===e.redraw)return!0;if(a!==e.height||s!==e.width)return!0;if(n!==e.type)return!0;if(!u()(i,e.legend))return!0;if(!u()(r,e.options))return!0;var l=this.transformDataProp(e);return!u()(this.shadowDataProp,l)||!u()(o,e.plugins)},t.prototype.componentWillUnmount=function(){this.chartInstance.destroy()},t.prototype.transformDataProp=function(e){var t=e.data;return"function"==typeof t?t(this.element):t},t.prototype.memoizeDataProps=function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=p({},e,{datasets:e.datasets&&e.datasets.map(function(e){return p({},e)})}),e}},t.prototype.checkDatasets=function(e){var n="production"!==y&&"prod"!==y,r=this.props.datasetKeyProvider!==t.getLabelAsKey,o=e.length>1;if(n&&o&&!r){var i=!1;e.forEach(function(e){e.label||(i=!0)}),i&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},t.prototype.updateChart=function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=l.a.helpers.configMerge(this.chartInstance.options,t));var r=this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[],o=n.datasets||[];this.checkDatasets(r);var i=d()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=o.map(function(t){var n=i[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type){n.data.splice(t.data.length),t.data.forEach(function(e,r){n.data[r]=t.data[r]});t.data;var r=h(t,["data"]);return p({},n,r)}return t});n.datasets;var a=h(n,["datasets"]);this.chartInstance.config.data=p({},this.chartInstance.config.data,a),this.chartInstance.update()}},t.prototype.renderChart=function(){var e=this.props,n=e.options,r=e.legend,o=e.type,i=(e.redraw,e.plugins),a=this.element,s=this.memoizeDataProps();void 0===r||u()(t.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new l.a(a,{type:o,data:s,options:n,plugins:i})},t.prototype.render=function(){var e=this.props,t=e.height,n=e.width,r=(e.onElementsClick,e.id);return o.a.createElement("canvas",{ref:this.ref,height:t,width:n,id:r,onClick:this.handleOnClick})},t}(o.a.Component);b.getLabelAsKey=function(e){return e.label},b.propTypes={data:a.a.oneOfType([a.a.object,a.a.func]).isRequired,getDatasetAtEvent:a.a.func,getElementAtEvent:a.a.func,getElementsAtEvent:a.a.func,height:a.a.number,legend:a.a.object,onElementsClick:a.a.func,options:a.a.object,plugins:a.a.arrayOf(a.a.object),redraw:a.a.bool,type:function(e,t,n){if(!l.a.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:a.a.number,datasetKeyProvider:a.a.func},b.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:b.getLabelAsKey};!function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}(o.a.Component);var _=function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))},t}(o.a.Component),w=function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))},t}(o.a.Component),E=function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))},t}(o.a.Component);(function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}})(o.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}(o.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}(o.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}(o.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}(o.a.Component),l.a.defaults}).call(this,n(258))},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a});var r=960;function o(){return document.querySelector(".page-wrap")}function i(e){return e.getBoundingClientRect().bottom-e.offsetHeight/4<=window.innerHeight}function a(){return window.innerWidth<r}},function(e,t,n){e.exports=n(2268)},function(e,t,n){"use strict";var r=n(306),o=n.n(r);var i=n(592);function a(e){return function(e){if(o()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return a})},function(e,t,n){e.exports=n(1575)},function(e,t,n){"use strict";(function(e){var r=n(32),o=n(9),i=n(7),a=n(10),s=n(8),l=n(11),c=n(110),u=n.n(c),f=n(14),d=n.n(f),p=n(746),h=function(t){function n(){return Object(o.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(i.a)(n,[{key:"componentWillEnter",value:function(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}},{key:"componentDidEnter",value:function(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}},{key:"componentWillExit",value:function(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}},{key:"componentDidExit",value:function(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}},{key:"render",value:function(){var t=this,n=this.props,o=n.childProps,i=n.component,a=u()("component",this.props);return e.createElement(p.a,Object(r.a)({},a,{render:function(n){var r=n.match,a=d()(o,{match:r,ref:function(e){return t.child=e}});return e.createElement(i,a)}}))}}]),n}(e.Component);t.a=h}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"d",function(){return T}),n.d(t,"c",function(){return C}),n.d(t,"a",function(){return O}),n.d(t,"b",function(){return j});var r=n(32),o=n(3),i=n.n(o),a=n(9),s=n(7),l=n(10),c=n(8),u=n(11),f=(n(1928),n(2)),d=n.n(f),p=n(83),h=n.n(p),m=n(0),v=n.n(m),g=n(64),y=n(248),b=n(88),_=n(55),w=n(60),E=n(46),x=n(63),k=n(111),S=n(77),T=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(w.a)(Object(E.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"renderCaption",value:function(t,n){var r,o=this.props.editable;return e.createElement(b.a,{className:"block-image__caption brand--body brand--linkColor",value:n,placeholder:"Add a caption",onChange:i()(r=this.handleCaptionChange).call(r,this,t),component:"figcaption",editable:o})}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,o=t.items,i=t.type,a=t.settings,s=a.paddingTop,l=a.paddingBottom,c=a.backgroundColor,u=a.entranceAnimation,f=a.zoomOnClick,p=d()("block-image block-image--".concat(i),{"block-image--no-animation":!u}),m={backgroundColor:Object(g.a)("",c),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*l,"px")},v=o[0],b=v.id,w=v.caption,E=h()(v,"media.image.key"),x=h()(v,"media.image.src"),T=h()(v,"media.image.alt")||Object(k.c)(w)||"",C=Object(S.c)({key:E,src:x});return e.createElement("div",{className:p,style:m},e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},e.createElement("figure",{className:"block-image__figure"},e.createElement(_.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r,offset:300},e.createElement("div",{className:"block-image__image"},e.createElement(y.a,{src:C,disableZoom:!f,alt:T})),this.renderCaption(b,w)))))))}}],[{key:"propTypes",get:function(){return{lessonId:v.a.any,blockId:v.a.any,items:v.a.array.isRequired,settings:v.a.object.isRequired,type:v.a.string,editable:v.a.bool}}},{key:"defaultProps",get:function(){return{type:"hero",editable:!1,lessonId:"",blockId:"",items:[]}}}]),n}(e.Component),C=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"handleParagraphChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(w.a)(Object(E.k)({lessonId:r,blockId:o,itemId:e,payload:{paragraph:t}}))}},{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(w.a)(Object(E.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"renderParagraph",value:function(t,n){var r,o=this.props.editable;return e.createElement(b.a,{className:"block-image__text brand--body brand--linkColor",value:n,placeholder:"Enter some text",onChange:i()(r=this.handleParagraphChange).call(r,this,t),editable:o})}},{key:"renderCaption",value:function(t,n){var r,o=this.props.editable;return e.createElement(b.a,{className:"block-image__caption brand--body brand--linkColor",value:n,placeholder:"Add a caption",onChange:i()(r=this.handleCaptionChange).call(r,this,t),component:"figcaption",editable:o})}},{key:"renderImage",value:function(t,n,r,o){var i=h()(r,"media.image.key"),a=h()(r,"media.image.src"),s=h()(r,"media.image.alt")||Object(k.c)(n)||"",l=Object(S.c)({key:i,src:a}),c=this.props,u=c.animateBlockEntrance,f=c.isLearner,d=c.settings.zoomOnClick;return e.createElement(_.a,{animateBlockEntrance:u,animateIn:"right"===o?"fadeInRight":"fadeInLeft",isLearner:f},e.createElement("figure",{className:"block-image__figure"},e.createElement("div",{className:"block-image__image"},e.createElement(y.a,{src:l,disableZoom:!d,alt:s})),this.renderCaption(t,n)))}},{key:"render",value:function(){var t=this.props,n=t.items,r=t.labels.imageAndTextGroup,o=t.settings,i=t.type,a=o.paddingTop,s=o.paddingBottom,l=o.backgroundColor,c=o.entranceAnimation,u=o.imagePosition,f=o.imageSize,p="right"===u,h=d()("block-image block-image--".concat(i),{"block-image--small":"small"===f,"block-image--large":"large"===f,"block-image--reverse":p,"block-image--no-animation":!c}),m={backgroundColor:Object(g.a)("",l),paddingTop:"".concat(10*a,"px"),paddingBottom:"".concat(10*s,"px")},v=n[0],y=v.id,b=v.caption,_=v.paragraph;return e.createElement("div",{className:h,style:m},e.createElement("div",{className:"block-image__container"},e.createElement("div",{"aria-label":r,className:"block-image__row",role:x.a},e.createElement("div",{className:"block-image__col"},p?this.renderParagraph(y,_):this.renderImage(y,b,v,"left")),e.createElement("div",{className:"block-image__col"},p?this.renderImage(y,b,v,"right"):this.renderParagraph(y,_)))))}}],[{key:"propTypes",get:function(){return{lessonId:v.a.any,blockId:v.a.any,items:v.a.array.isRequired,settings:v.a.object.isRequired,type:v.a.string,editable:v.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",type:"text-aside"}}}]),n}(e.Component),O=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(w.a)(Object(E.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"renderOverlayCaption",value:function(t,n){var r,o=this.props,a=o.animateBlockEntrance,s=o.editable,l=o.isLearner;return e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},e.createElement(_.a,{animateBlockEntrance:a,animateIn:"fadeInUp",isLearner:l,duration:1},e.createElement(b.a,{className:"block-image__paragraph brand--head brand--linkColor",value:n,placeholder:"Enter some text",onChange:i()(r=this.handleCaptionChange).call(r,this,t),editable:s})))))}},{key:"renderCaption",value:function(t,n){var r,o=this.props.editable;return e.createElement("div",{className:"block-image__container brand--body"},e.createElement(b.a,{className:"block-image__caption brand--body brand--linkColor",value:n,placeholder:"Add a caption",onChange:i()(r=this.handleCaptionChange).call(r,this,t),component:"figcaption",editable:o}))}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,o=t.items,i=t.labels.textOnImageGroup,a=t.settings,s=t.type,l=a.paddingTop,c=a.paddingBottom,u=a.backgroundColor,f=a.entranceAnimation,p=a.opacity,m=a.opacityColor,v=d()("block-image block-image--".concat(s),{"block-image--no-animation":!f}),y={backgroundColor:Object(g.a)("",u),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*c,"px")},b={opacity:p||.6,backgroundColor:m||"transparent"},w=o[0],E=w.id,T=w.caption,C=h()(w,"media.image.key"),O=h()(w,"media.image.src"),j=Object(S.c)({key:C,src:O}),A=h()(w,"media.image.alt")||Object(k.c)(T)||"",N="overlay"===s,M=N?x.a:"",I=N?i:"";return e.createElement("div",{"aria-label":I,className:v,style:y,role:M},function(t,n,r,o){return n?o:e.createElement(_.a,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:r,duration:1},o)}(n,N,r,e.createElement("figure",{className:"block-image__figure"},C&&e.createElement("div",{className:"block-image__image",style:{backgroundImage:"url('".concat(j,"')")}},e.createElement("img",{src:j,alt:A,title:A}),e.createElement("div",{className:"block-image__overlay",style:b})),N?this.renderOverlayCaption(E,T,s):null)),N?null:this.renderCaption(E,T))}}],[{key:"propTypes",get:function(){return{lessonId:v.a.any,blockId:v.a.any,items:v.a.array.isRequired,settings:v.a.object.isRequired,type:v.a.string,editable:v.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",type:"full"}}}]),n}(e.Component),j=function(t){return e.createElement(O,Object(r.a)({type:"overlay"},t))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return H}),n.d(t,"a",function(){return W});var r=n(17),o=n.n(r),i=n(174),a=n.n(i),s=n(222),l=n.n(s),c=n(32),u=n(3),f=n.n(u),d=n(9),p=n(7),h=n(10),m=n(8),v=n(11),g=(n(1934),n(278)),y=n.n(g),b=n(2),_=n.n(b),w=n(83),E=n.n(w),x=n(0),k=n.n(x),S=n(41),T=n.n(S),C=n(60),O=n(46),j=n(248),A=n(64),N=n(22),M=n(24),I=n(63),L=n(205),P=n(111),D=n(88),R=n(55),F=n(77),B=function(t){function n(e){var t;return Object(d.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={isDotKeyboardFocusDisabled:!1},t}return Object(v.a)(n,t),Object(p.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.sliderContainer.querySelector(".block-gallery__dots-list"),t=this.state.isDotKeyboardFocusDisabled;e&&!t&&(Object(N.b)(e),this.setState({isDotKeyboardFocusDisabled:!0}))}},{key:"onKeyDown",value:function(e){var t,n,r=this.slider;T()([[M.h,f()(t=r.slickNext).call(t,r)],[M.f,f()(n=r.slickPrev).call(n,r)]])(e)}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.children,i=r.className,a=r.beforeChange,s={adaptiveHeight:!0,slidesToShow:1,slidesToScroll:1,arrows:o.length>1,nextArrow:e.createElement(U,null),prevArrow:e.createElement(U,{previous:!0}),dots:o.length>1,dotsClass:"block-gallery__dots-list brand--background-all brand--shadow-all",beforeChange:a};return e.createElement("div",{className:"block-gallery__slider-container",tabIndex:N.a,onKeyDown:f()(t=this.onKeyDown).call(t,this),ref:function(e){n.sliderContainer=e}},e.createElement(y.a,Object(c.a)({className:i,ref:function(e){n.slider=e}},s),o))}}],[{key:"propTypes",get:function(){return{children:k.a.node.isRequired,className:k.a.string.isRequired,beforeChange:k.a.func.isRequired}}}]),n}(e.Component),U=function(t){function n(){return Object(d.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(v.a)(n,t),Object(p.a)(n,[{key:"render",value:function(){var t=this.props,n=t.onClick,r=t.previous,o=_()("block-gallery__arrow",{"block-gallery__arrow--next":!r,"block-gallery__arrow--prev":r});return e.createElement("div",{className:"block-gallery__controls"},e.createElement("div",{className:o,onClick:n},e.createElement("div",{className:"block-gallery__arrow-icon"})))}}],[{key:"propTypes",get:function(){return{onClick:k.a.func,previous:k.a.bool}}},{key:"defaultProps",get:function(){return{previous:!1}}}]),n}(e.Component),q=function(t){function n(){return Object(d.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(v.a)(n,t),Object(p.a)(n,[{key:"slickGoTo",value:function(e){this.slider.slickGoTo(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.children,o=n.className;return e.createElement(y.a,Object(c.a)({ref:function(e){t.slider=e},className:o},{adaptiveHeight:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,draggable:!1,swipe:!1,accessibility:!1}),r)}}],[{key:"propTypes",get:function(){return{children:k.a.node.isRequired,className:k.a.string}}}]),n}(e.Component),z=function(t){var n=t.children;return e.createElement("div",{className:"block-gallery__container"},e.createElement("div",{className:"block-gallery__row--slide-row"},e.createElement("div",{className:"block-gallery__col"},n)))},H=function(t){function n(e){var t;return Object(d.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={currentIndex:0},t}return Object(v.a)(n,t),Object(p.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.state.currentIndex,t=Object(L.b)(this.carousel.querySelectorAll(".slick-active.block-gallery__slide"));l()(t).call(t,function(t){a()(t.getAttribute("data-index"))!==e&&Object(N.b)(t)})}},{key:"handleSlideChangeBefore",value:function(e,t){this.captions.slickGoTo(t),this.props.onStep(this.props.items[t]),this.setState({currentIndex:t})}},{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(C.a)(Object(O.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"renderImages",value:function(t,n){var r=this.state.currentIndex;return o()(t).call(t,function(t,o){var i=t.id,a=t.caption,s=E()(t,"media.image.key"),l=E()(t,"media.image.src"),c=E()(t,"media.image.alt")||Object(P.c)(a)||"",u=o===r,f=Object(F.c)({key:s,src:l});return e.createElement("div",{key:i,className:"block-gallery__slide"},e.createElement(z,null,e.createElement("div",{className:"block-gallery__figure"},e.createElement("div",{className:"block-gallery__image"},e.createElement(j.a,{src:f,alt:c,disableZoom:!n,allowTabNavigation:u})))))})}},{key:"renderCaptions",value:function(t){var n=this,r=this.state.currentIndex,i=this.props.editable;return o()(t).call(t,function(t,o){var a,s=t.id,l=t.caption,c=o===r;return e.createElement("div",{key:s,className:"block-gallery__slide"},l||i?e.createElement(z,null,e.createElement(D.a,{className:"block-gallery__caption brand--body brand--linkColor",value:l,placeholder:"Add a caption",onChange:f()(a=n.handleCaptionChange).call(a,n,s),component:"figcaption",editable:i,allowTabNavigation:c})):null)})}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.animateBlockEntrance,i=r.isLearner,a=r.items,s=r.type,l=r.settings,c=l.paddingTop,u=l.paddingBottom,d=l.backgroundColor,p=l.entranceAnimation,h=l.zoomOnClick,m=_()("block-gallery block-gallery--".concat(s),{"block-gallery--no-animation":!p}),v={backgroundColor:Object(A.a)("",d),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")};return e.createElement("div",{style:v},e.createElement(R.a,{animateBlockEntrance:o,animateIn:"fadeIn",offset:200,isLearner:i},e.createElement("figure",{className:m,ref:function(e){n.carousel=e}},e.createElement(B,{className:"block-gallery__images",beforeChange:f()(t=this.handleSlideChangeBefore).call(t,this)},this.renderImages(a,h)),e.createElement(q,{className:"block-gallery__captions",ref:function(e){n.captions=e}},this.renderCaptions(a)))))}}],[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array.isRequired,settings:k.a.object.isRequired,type:k.a.string,editable:k.a.bool,onStep:k.a.func}}},{key:"defaultProps",get:function(){return{type:"carousel",editable:!1,lessonId:"",blockId:"",items:[],onStep:Function.prototype}}}]),n}(e.Component),W=function(t){function n(){return Object(d.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(v.a)(n,t),Object(p.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(C.a)(Object(O.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.editable,a=n.isLearner,s=n.items,l=n.labels.imageGalleryGroup,c=n.settings,u=n.width,d=c.paddingTop,p=c.paddingBottom,h=c.backgroundColor,m=c.entranceAnimation,v=c.zoomOnClick,g=_()("block-gallery block-gallery--".concat(function(e){switch(e){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}}(u)),{"block-gallery--no-animation":!m}),y={backgroundColor:Object(A.a)("",h),paddingTop:"".concat(10*d,"px"),paddingBottom:"".concat(10*p,"px")};return e.createElement("div",{className:g,style:y},e.createElement("div",{className:"block-gallery__container"},e.createElement("div",{"aria-label":l,className:"block-gallery__row",role:I.a},e.createElement(R.a,{animateBlockEntrance:r,animateIn:"fadeIn",className:"block-gallery__col",isLearner:a,siblingDelay:.25},o()(s).call(s,function(n){var o,a=n.id,s=n.caption,l=E()(n,"media.image.alt")||Object(P.c)(s)||"",c="image-".concat(a),u="imageCrop-".concat(a),d=E()(n,"media.image.key"),p=E()(n,"media.image.src"),h=Object(F.c)({key:d,src:p});return e.createElement("div",{key:a,className:r?"":"block-gallery__col"},e.createElement("figure",{className:"block-gallery__figure"},d&&e.createElement("div",{className:"block-gallery__image",style:{backgroundImage:"url('".concat(h,"')")},tabIndex:N.a,onKeyDown:function(e){t[c].handleControlledKeyDown(e)},ref:function(e){t[u]=e}},e.createElement(j.a,{src:h,alt:l,disableZoom:!v,allowTabNavigation:!1,ref:function(e){t[c]=e},isControlled:!i,onUnzoom:function(){t[u].focus()},onZoom:function(){t[u].focus()}})),e.createElement(D.a,{className:"block-gallery__caption brand--body brand--linkColor",value:s,placeholder:"Add a caption",onChange:f()(o=t.handleCaptionChange).call(o,t,a),component:"figcaption",editable:i})))})))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:k.a.bool.isRequired,lessonId:k.a.any,blockId:k.a.any,isLearner:k.a.bool.isRequired,items:k.a.array.isRequired,settings:k.a.object.isRequired,width:k.a.number,editable:k.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",width:2}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return P}),n.d(t,"d",function(){return D}),n.d(t,"c",function(){return R}),n.d(t,"a",function(){return F});var r=n(17),o=n.n(r),i=n(33),a=n.n(i),s=n(3),l=n.n(s),c=n(4),u=n.n(c),f=n(9),d=n(7),p=n(10),h=n(8),m=n(11),v=(n(2041),n(2)),g=n.n(v),y=n(1182),b=n.n(y),_=n(0),w=n.n(_),E=n(226),x=n(56),k=n(64),S=n(243),T=n(387),C=n(60),O=n(46),j=n(88),A=n(63),N=n(386),M=n(44),I=n(42),L=n(55),P=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(C.a)(Object(O.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"renderItem",value:function(t){var n,r,o,i,a=this.props,s=a.blockId,c=a.editable,f=a.labels,d=a.lessonId,p=a.loadMedia,h=t.id,m=t.media,v=void 0===m?{}:m,g=t.caption,y=v.audio,b=v.tmp,_=((void 0===b?{}:b).audio||y).key,w=u()(n=u()(r="".concat(d,"-")).call(r,s,"-")).call(n,h);return e.createElement("div",{key:h,className:"block-audio__item"},p?e.createElement(S.a,{key:w,id:w,labels:f,mediaSrc:_,onEnd:l()(o=this.handleOnEnd).call(o,this,h)}):null,e.createElement(j.a,{className:"block-audio__caption brand--body brand--linkColor",value:g,placeholder:"Add a caption",onChange:l()(i=this.handleCaptionChange).call(i,this,h),editable:c}))}},{key:"handleOnEnd",value:function(e){this.props.onStep({id:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,s=n.items,l=n.settings,c=l.paddingTop,u=l.paddingBottom,f=l.backgroundColor,d=l.entranceAnimation,p=g()("block-audio",{"block-audio--no-animation":!d}),h={backgroundColor:Object(k.a)("",f),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},m=s.length>0?a()(s).call(s,0,1):[];return e.createElement("div",{className:p,style:h},e.createElement(L.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i,offset:150},e.createElement("div",{className:"block-audio__wrapper"},o()(m).call(m,function(e,n){return t.renderItem(e,n)}))))}}],[{key:"propTypes",get:function(){return{lessonId:w.a.any,blockId:w.a.any,items:w.a.array,settings:w.a.object.isRequired,editable:w.a.bool,loadMedia:w.a.bool.isRequired,onStep:w.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),n}(e.Component),D=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(C.a)(Object(O.k)({lessonId:r,blockId:o,itemId:e,payload:{caption:t}}))}},{key:"renderVideo",value:function(t){var n,r=t.id,o=t.key,i=t.poster,a=t.keyId,s=this.props,c=s.editable,u=s.labels,f=s.settings;return s.takingSnapshot?e.createElement("img",{className:"block-video__poster",src:i,alt:"Video Poster"}):e.createElement(T.a,{canRestrictSeek:f.forwardSeekRestricted&&!c,id:a,key:a,labels:u,poster:i,progressChanged:l()(n=this.handleProgressChanged).call(n,this,r),src:o})}},{key:"renderItem",value:function(t){var n,r,o,i=this.props,a=i.editable,s=i.lessonId,c=i.blockId,f=i.loadMedia,d=i.settings.mediaWidth,p=void 0===d?"1":d,h=t.id,m=t.media,v=t.caption,y=m.video,b=m.tmp,_=(void 0===b?{}:b).video||y,w=_.key,E=_.poster,x=u()(n=u()(r="".concat(s,"-")).call(r,c,"-")).call(n,h),k=g()("block-video__item",{"block-video__item--small":"0"===p,"block-video__item--medium":"1"===p,"block-video__item--full":"2"===p});return e.createElement("div",{key:h,className:k},f&&this.renderVideo({id:h,key:w,poster:E,keyId:x}),e.createElement("div",{className:"block-video__wrapper"},e.createElement(j.a,{className:"block-video__caption brand--body brand--linkColor",value:v,placeholder:"Add a caption",onChange:l()(o=this.handleCaptionChange).call(o,this,h),editable:a})))}},{key:"handleProgressChanged",value:function(e,t){t.percentComplete>=100&&this.props.onStep({id:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,s=n.items,l=n.settings,c=l.paddingTop,u=l.paddingBottom,f=l.backgroundColor,d=l.entranceAnimation,p=g()("block-video",{"block-video--no-animation":!d}),h={backgroundColor:Object(k.a)("",f),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},m=s.length>0?a()(s).call(s,0,1):[];return e.createElement("div",{className:p,style:h},e.createElement(L.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i,offset:250},o()(m).call(m,function(e,n){return t.renderItem(e,n)})))}}],[{key:"propTypes",get:function(){return{blockId:w.a.any,editable:w.a.bool,items:w.a.array,labels:w.a.object,lessonId:w.a.any,loadMedia:w.a.bool.isRequired,onStep:w.a.func,settings:w.a.object.isRequired}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),n}(e.Component),R=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"renderItem",value:function(t,n){var r,o=t.id,i=t.media.embed,a=t.settings,s=void 0===a?{}:a,l=this.props,c=l.loadMedia,f=l.labels,d=l.settings,p=s.showMetaData,h=d.showBorder,m=void 0===h||h,v=g()("block-embed__item",{"block-embed__item--border":m});return e.createElement("section",{key:o,className:v},c&&e.createElement(N.a,{id:u()(r="".concat(n,"-")).call(r,o),labels:f,isLesson:!0,data:i,showMetaData:p}))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.blockId,s=n.isLearner,l=n.items,c=n.settings,u=c.paddingTop,f=c.paddingBottom,d=c.backgroundColor,p=c.entranceAnimation,h=c.mediaWidth,m=void 0===h?0:h,v="link"!==Object(E.a)(l),y=g()("block-embed",{"block-video--no-animation":!p}),b=g()("block-embed__wrapper",{"block-embed__wrapper--medium":v&&"1"===m,"block-embed__wrapper--full":v&&"2"===m}),_={backgroundColor:Object(k.a)("",d),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*f,"px")},w=l.length>0?a()(l).call(l,0,1):[];return e.createElement("div",{className:y,style:_},e.createElement(L.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:s,offset:300},e.createElement("div",{className:b},o()(w).call(w,function(e){return t.renderItem(e,i)}))))}}],[{key:"propTypes",get:function(){return{lessonId:w.a.any,blockId:w.a.any,items:w.a.array,settings:w.a.object.isRequired,editable:w.a.bool,loadMedia:w.a.bool.isRequired}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:""}}}]),n}(e.Component),F=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,o=t.items,i=t.labels,a=o[0].media.attachment,s=i.attachmentGroup;return e.createElement("div",{style:this.styles(this.props.settings)},e.createElement(L.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r},e.createElement("div",{className:"block-text--onecol"},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},e.createElement("div",{"aria-label":s,className:"block-text__col",role:A.a},this.renderAttachment(a)))))))}},{key:"renderAttachment",value:function(e){return e.key?this.renderDownload(e):this.renderNoFile()}},{key:"renderDownload",value:function(t){var n=t.key,r=t.mimeType,o=t.originalUrl,i=t.size;return e.createElement("a",{className:"block-attachment",href:Object(x.e)(n),download:o,target:"_blank"},e.createElement("div",{className:"block-attachment__main"},e.createElement("div",{className:"block-attachment__icon"},this.fileIcon(r)),e.createElement("div",{className:"block-attachment__info brand--head"},e.createElement(I.a,{className:"block-attachment__title",value:o}),e.createElement("div",{className:"block-attachment__size"},b()(i,{round:1})))),e.createElement("div",{className:"block-attachment__rest"},e.createElement(M.i,null)))}},{key:"renderNoFile",value:function(){return e.createElement("div",{className:"block-attachment block-attachment--none"},e.createElement("div",{className:"block-attachment__main"},e.createElement("div",{className:"block-attachment__icon"},e.createElement(M.l,null)),e.createElement("div",{className:"block-attachment__info brand--head"},e.createElement("div",{className:"block-attachment__title"},"File Attachment Block"),e.createElement("div",{className:"block-attachment__size"},"No file added"))))}},{key:"fileIcon",value:function(t){return/excel|spreadsheet/.test(t)?e.createElement(M.q,null):/pdf/.test(t)?e.createElement(M.n,null):/word/.test(t)?e.createElement(M.m,null):/powerpoint|presentation/.test(t)?e.createElement(M.o,null):/rtf|richtext/.test(t)?e.createElement(M.p,null):/zip/.test(t)?e.createElement(M.r,null):e.createElement(M.l,null)}},{key:"styles",value:function(e){return{backgroundColor:Object(k.a)("",e.backgroundColor),paddingTop:"".concat(10*e.paddingTop,"px"),paddingBottom:"".concat(10*e.paddingBottom,"px")}}}],[{key:"propTypes",get:function(){return{lessonId:w.a.string,blockId:w.a.string.isRequired,items:w.a.array.isRequired,settings:w.a.object.isRequired,loadMedia:w.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(1),o=n.n(r),i=n(763),a=n(165),s=n.n(a);function l(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var o=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof o?o*t:void 0}var c={above:"above",inside:"inside",below:"below",invisible:"invisible"};var u="<Waypoint> expected to receive a single React element child.\n\nSee https://goo.gl/LrBNgw for more info.";function f(e){if(e)try{o.a.Children.only(e)}catch(e){throw new Error(u)}}function d(e){return"string"==typeof e.type}var p="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.";var h=void 0,m=[];function v(e){m.push(e),h||(h=setTimeout(function(){h=null;for(var e=void 0;e=m.shift();)e()},0));var t=!0;return function(){return function(){if(t){t=!1;var n=m.indexOf(e);-1!==n&&(m.splice(n,1),!m.length&&h&&(clearTimeout(h),h=null))}}}()}var g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var y={topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){return function(){}}(),onLeave:function(){return function(){}}(),onPositionChange:function(){return function(){}}(),fireOnRapidScroll:!0},b=void 0!==o.a.PureComponent?o.a.PureComponent:o.a.Component,_=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(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}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.refElement=function(e){return t._ref=e},t}return function(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)}(n,b),g(n,[{key:"componentWillMount",value:function(){return function(){f(this.props.children)}}()},{key:"componentDidMount",value:function(){return function(){var e=this;n.getWindow()&&(this.cancelOnNextTick=v(function(){e.cancelOnNextTick=null,function(e,t){if(e&&!d(e)&&!t)throw new Error(p)}(e.props.children,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=Object(i.a)(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=Object(i.a)(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)}))}}()},{key:"componentWillReceiveProps",value:function(){return function(e){f(e.children)}}()},{key:"componentDidUpdate",value:function(){return function(){var e=this;n.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=v(function(){e.cancelOnNextTick=null,e._handleScroll(null)})))}}()},{key:"componentWillUnmount",value:function(){return function(){n.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}}()},{key:"_findScrollableAncestor",value:function(){return function(){var t=this.props,n=t.horizontal,r=t.scrollableAncestor;if(r)return function(t){return"window"===t?e.window:t}(r);for(var o=this._ref;o.parentNode;){if((o=o.parentNode)===document.body)return window;var i=window.getComputedStyle(o),a=(n?i.getPropertyValue("overflow-x"):i.getPropertyValue("overflow-y"))||i.getPropertyValue("overflow");if("auto"===a||"scroll"===a)return o}return window}}()},{key:"_handleScroll",value:function(){return function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?c.invisible:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom?c.inside:e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom?c.inside:e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?c.inside:e.viewportBottom<e.waypointTop?c.below:e.waypointTop<e.viewportTop?c.above:c.invisible}(t),r=this._previousPosition;if(this._previousPosition=n,r!==n){var o={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};this.props.onPositionChange.call(this,o),n===c.inside?this.props.onEnter.call(this,o):r===c.inside&&this.props.onLeave.call(this,o);var i=r===c.below&&n===c.above,a=r===c.above&&n===c.below;this.props.fireOnRapidScroll&&(i||a)&&(this.props.onEnter.call(this,{currentPosition:c.inside,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),this.props.onLeave.call(this,{currentPosition:n,previousPosition:c.inside,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}}}()},{key:"_getBounds",value:function(){return function(){var e=this.props.horizontal,t=this._ref.getBoundingClientRect(),n=t.left,r=t.top,o=t.right,i=t.bottom,a=e?n:r,s=e?o:i,c=void 0,u=void 0;this.scrollableAncestor===window?(c=e?window.innerWidth:window.innerHeight,u=0):(c=e?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,u=e?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var f=this.props,d=f.bottomOffset;return{waypointTop:a,waypointBottom:s,viewportTop:u+l(f.topOffset,c),viewportBottom:u+c-l(d,c)}}}()},{key:"render",value:function(){return function(){var e=this,t=this.props.children;if(!t)return o.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(d(t)){var n=function(n){e.refElement(n),t.ref&&t.ref(n)};return o.a.cloneElement(t,{ref:n})}return o.a.cloneElement(t,{innerRef:this.refElement})}}()}]),n}();_.propTypes={children:s.a.node,debug:s.a.bool,onEnter:s.a.func,onLeave:s.a.func,onPositionChange:s.a.func,fireOnRapidScroll:s.a.bool,scrollableAncestor:s.a.any,horizontal:s.a.bool,topOffset:s.a.oneOfType([s.a.string,s.a.number]),bottomOffset:s.a.oneOfType([s.a.string,s.a.number])},_.above=c.above,_.below=c.below,_.inside=c.inside,_.invisible=c.invisible,_.getWindow=function(){if("undefined"!=typeof window)return window},_.defaultProps=y,_.displayName="Waypoint",t.a=_}).call(this,n(71))},function(e,t,n){var r=n(61),o=n(210),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(407)("keys"),o=n(408);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(177),o=n(104),i=n(288);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(98)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r=n(210),o=n(98)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var r=n(177),o=n(289),i=n(413),a=n(193),s=n(624),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r=n(61);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){"use strict";var r=n(66),o=n(410),i=n(23),a=n(178),s=n(327),l=n(417),c=n(291),u=n(85),f=n(61),d=n(493),p=n(233),h=n(628);e.exports=function(e,t,n,m,v){var g=r[e],y=g&&g.prototype,b=g,_=m?"set":"add",w={},E=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof g||!(v||y.forEach&&!f(function(){(new g).entries().next()}))))b=n.getConstructor(t,e,m,_),s.REQUIRED=!0;else if(o(e,!0)){var x=new b,k=x[_](v?{}:-0,1)!=x,S=f(function(){x.has(1)}),T=d(function(e){new g(e)}),C=!v&&f(function(){for(var e=new g,t=5;t--;)e[_](t,t);return!e.has(-0)});T||((b=t(function(t,n){c(t,b,e);var r=h(new g,t,b);return null!=n&&l(n,r[_],r,m),r})).prototype=y,y.constructor=b),(S||C)&&(E("delete"),E("has"),m&&E("get")),(C||k)&&E(_),v&&y.clear&&delete y.clear}return w[e]=b,i({global:!0,forced:b!=g},w),p(b,e),v||n.setStrong(b,e,m),b}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){"use strict";e.exports=n(322)||!n(61)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(66)[e]})},function(e,t,n){"use strict";var r=n(93);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(194),o=n(192);e.exports=function(e,t,n){var i,a,s=String(o(e)),l=r(t),c=s.length;return l<0||l>=c?n?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?n?s.charAt(l):i:n?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}},function(e,t,n){var r=n(210),o=n(637);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";var r=n(158),o=n(178),i=n(61),a=n(98),s=n(637),l=a("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),u=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,f){var d=a(e),p=!i(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),h=p&&!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t});if(!p||!h||"replace"===e&&!c||"split"===e&&!u){var m=/./[d],v=n(d,""[e],function(e,t,n,r,o){return t.exec===s?p&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),g=v[0],y=v[1];o(String.prototype,e,g),o(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),f&&r(RegExp.prototype[d],"sham",!0)}}},function(e,t,n){var r=n(128),o=n(1474),i=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:n(362)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(159);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(152),o=n(330),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(505)("keys"),o=n(642);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(196),o=n(820),i=n(645),a=n(822),s=n(641),l=n(509)("IE_PROTO"),c=function(){},u=function(){var e,t=s("iframe"),n=i.length;for(t.style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[i[n]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[l]=e):n=u(),void 0===t?n:o(n,t)},n(510)[l]=!0},function(e,t,n){var r=n(418),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){"use strict";var r=n(257),o=n(425),i=n(331),a=n(366),s=n(816),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(196),o=n(823),i=n(195),a=n(363),s=n(515),l=n(824),c={};(e.exports=function(e,t,n,u,f){var d,p,h,m,v,g=a(t,n,u?2:1);if(f)d=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,m=i(e.length);m>h;h++)if((u?g(r(v=e[h])[0],v[1]):g(e[h]))===c)return c;return}d=p.call(e)}for(;!(v=d.next()).done;)if(l(d,g,v.value,u)===c)return c}).BREAK=c},function(e,t,n){var r=n(367),o=n(119)("iterator"),i=n(331);e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t,n){var r=n(237),o=n(517);e.exports=function e(t,n,i){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!o(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,o(u)||(l-=1),c+=1}return l<=0?i.apply(this,a):r(l,e(t,a,i))}}},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick(function(){e.apply(null,i)})}}:e.exports=t.nextTick}).call(this,n(258))},function(e,t,n){var r=n(368),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(661);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,e.call(this,n));return r.type="atrule",r}return function(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,e),t.prototype.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},t.prototype.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(661)),i=a(n(854));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,e.call(this,n));return r.type="rule",r.nodes||(r.nodes=[]),r}return function(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,e),r(t,[{key:"selectors",get:function(){return i.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){var r=n(52),o=n(295),i=n(431);e.exports=r(function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})},function(e,t,n){var r=n(52),o=n(431);e.exports=r(function(e){return o(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})},function(e,t,n){var r=n(21),o=n(27);e.exports=r(function(e,t){return function(n){return function(r){return o(function(e){return t(e,r)},n(e(r)))}}})},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}},function(e,t,n){"use strict";var r=n(506),o=n(293),i=n(419);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var r=n(152);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(21);e.exports=r(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,o){return t.call(this,e,n,r,o)};case 5:return function(e,n,r,o,i){return t.call(this,e,n,r,o,i)};case 6:return function(e,n,r,o,i,a){return t.call(this,e,n,r,o,i,a)};case 7:return function(e,n,r,o,i,a,s){return t.call(this,e,n,r,o,i,a,s)};case 8:return function(e,n,r,o,i,a,s,l){return t.call(this,e,n,r,o,i,a,s,l)};case 9:return function(e,n,r,o,i,a,s,l,c){return t.call(this,e,n,r,o,i,a,s,l,c)};case 10:return function(e,n,r,o,i,a,s,l,c,u){return t.call(this,e,n,r,o,i,a,s,l,c,u)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})},function(e,t,n){var r=n(52),o=n(867);e.exports=r(function(e){return o(e.length,e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=s(n(443)),i=s(n(884)),a=s(n(680));function s(e){return e&&e.__esModule?e:{default:e}}var l={},c=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return c=e},getActiveLink:function(){return c},scrollTo:function(e,t){var n=this.get(e);if(n){var s=(t=r({},t,{absolute:!1})).containerId,l=t.container,c=void 0;c=s?document.getElementById(s):l&&l.nodeType?l:document,a.default.registered.begin&&a.default.registered.begin(e,n),t.absolute=!0;var u=o.default.scrollOffset(c,n)+(t.offset||0);if(!t.smooth)return c===document?window.scrollTo(0,u):c.scrollTop=u,void(a.default.registered.end&&a.default.registered.end(e,n));i.default.animateTopScroll(u,t,e,n)}else console.warn("target Element not found")}}},function(e,t,n){e.exports=n(1711)()},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t,n){var r=n(182),o=n(1719),i=n(889),a=n(682),s=n(1724),l=n(370),c=n(893),u=r(o(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},c(t));default:return i(e,t)}}));e.exports=u},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(903),o=n(436),i=n(259),a=n(94),s=function(e){return function(t){return t.concat(e)}};function l(e,t){return function(n,o){var i=t(o);if(!r(n)||!r(i))throw new TypeError("Array."+e+": Must wrap Applicatives");return i.map(function(e){return s([e])}).ap(n)}}var c=function(e){return e.reduce(function(e,t){return e&&a(t)},!0)},u=function(e,t){return t.map(function(t){return e(t)})};e.exports={ap:function(e,t){if(!t.length||!c(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(u(n,e))},[])},chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!i(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},map:u,sequence:function(e,t){return t.reduce(l("sequence",o),e([]))},traverse:function(e,t,n){return n.reduce(l("traverse",t),e([]))}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(260);e.exports=function(e,t){return r(t[e])||r(t["@@implements"])&&!!t["@@implements"](e)}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(62),o=n(663),i=n(698);e.exports=r(function e(t,n,r){return i(function(n,r,i){return o(r)&&o(i)?e(t,r,i):t(n,r,i)},n,r)})},function(e,t,n){"use strict";t.__esModule=!0,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0;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},o=a(n(1)),i=a(n(96));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.getOnDemandLazySlides=function(e){for(var t=[],n=l(e),r=c(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},l=(t.getRequiredLazySlides=function(e){for(var t=[],n=l(e),r=c(e),o=n;o<r;o++)t.push(o);return t},t.lazyStartIndex=function(e){return e.currentSlide-u(e)}),c=t.lazyEndIndex=function(e){return e.currentSlide+f(e)},u=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},f=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},d=t.getWidth=function(e){return e&&e.offsetWidth||0},p=t.getHeight=function(e){return e&&e.offsetHeight||0},h=t.getSwipeDirection=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},m=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1?t=!1:(e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1)),t},v=(t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t=o.default.Children.count(e.children),n=Math.ceil(d(i.default.findDOMNode(e.listRef))),r=Math.ceil(d(i.default.findDOMNode(e.trackRef))),a=void 0;if(e.vertical)a=n;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=n/100),a=Math.ceil((n-l)/e.slidesToShow)}var c=i.default.findDOMNode(e.listRef)&&p(i.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),u=c*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=t-1-e.initialSlide);var h=e.lazyLoadedList||[],m=s({currentSlide:f,lazyLoadedList:h},e);h.concat(m);var v={slideCount:t,slideWidth:a,listWidth:n,trackWidth:r,currentSlide:f,slideHeight:c,listHeight:u,lazyLoadedList:h};return null===e.autoplaying&&e.autoplay&&(v.autoplaying="playing"),v},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,i=e.infinite,a=e.index,l=e.slideCount,c=e.lazyLoadedList,u=e.lazyLoad,f=e.currentSlide,d=e.centerMode,p=e.slidesToScroll,h=e.slidesToShow,v=e.useCSS;if(t&&n)return{};var g=a,y=void 0,b=void 0,x=void 0,k={},S={};if(o){if(!i&&(a<0||a>=l))return{};a<0?g=a+l:a>=l&&(g=a-l),u&&c.indexOf(g)<0&&c.push(g),k={animating:!0,currentSlide:g,lazyLoadedList:c},S={animating:!1}}else y=g,g<0?(y=g+l,i?l%p!=0&&(y=l-l%p):y=0):!m(e)&&g>f?g=y=f:d&&g>=l?(g=i?l:l-1,y=i?0:l-1):g>=l&&(y=g-l,i?l%p!=0&&(y=0):y=l-h),b=E(r({},e,{slideIndex:g})),x=E(r({},e,{slideIndex:y})),i||(b===x&&(g=y),b=x),u&&c.concat(s(r({},e,{currentSlide:g}))),v?(k={animating:!0,currentSlide:y,trackStyle:w(r({},e,{left:b})),lazyLoadedList:c},S={animating:!1,currentSlide:y,trackStyle:_(r({},e,{left:x})),swipeLeft:null}):k={currentSlide:y,trackStyle:_(r({},e,{left:x})),lazyLoadedList:c};return{state:k,nextState:S}},t.changeSlide=function(e,t){var n,o,i,a,s=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,f=e.lazyLoad,d=e.infinite;if(n=c%s!=0?0:(c-u)%s,"previous"===t.message)a=u-(i=0===n?s:l-n),f&&!d&&(a=-1===(o=u-i)?c-1:o);else if("next"===t.message)a=u+(i=0===n?s:n),f&&!d&&(a=(u+s)%c+n);else if("dots"===t.message){if((a=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((a=t.index)===t.currentSlide)return null;if(d){var p=T(r({},e,{targetSlide:a}));a>t.currentSlide&&"left"===p?a-=c:a<t.currentSlide&&"right"===p&&(a+=c)}}else if("index"===t.message&&(a=Number(t.index))===t.currentSlide)return null;return a},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,o=t.animating,i=t.vertical,a=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,c=t.currentSlide,u=t.edgeFriction,f=t.edgeDragged,d=t.onEdge,p=t.swiped,v=t.swiping,g=t.slideCount,y=t.slidesToScroll,b=t.infinite,w=t.touchObject,x=t.swipeEvent,k=t.listHeight,S=t.listWidth;if(!n){if(o)return e.preventDefault();i&&a&&s&&e.preventDefault();var T=void 0,C={},O=E(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var j=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!v&&j>10)return{scrolling:!0};s&&(w.swipeLength=j);var A=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(A=w.curY>w.startY?1:-1);var N=Math.ceil(g/y),M=h(t.touchObject,s),I=w.swipeLength;return b||(0===c&&"right"===M||c+1>=N&&"left"===M||!m(t)&&"left"===M)&&(I=w.swipeLength*u,!1===f&&d&&(d(M),C.edgeDragged=!0)),!p&&x&&(x(M),C.swiped=!0),T=i?O+I*(k/S)*A:l?O-I*A:O+I*A,s&&(T=O+I*A),C=r({},C,{touchObject:w,swipeLeft:T,trackStyle:_(r({},t,{left:T}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?C:(w.swipeLength>10&&(C.swiping=!0,e.preventDefault()),C)}},t.swipeEnd=function(e,t){var n=t.dragging,o=t.swipe,i=t.touchObject,a=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,u=t.currentSlide,f=t.swipeToSlide,d=t.scrolling,p=t.onSwipe;if(!n)return o&&e.preventDefault(),{};var m=l?c/s:a/s,v=h(i,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!i.swipeLength)return b;if(i.swipeLength>m){e.preventDefault(),p&&p(v);var _=void 0,x=void 0;switch(v){case"left":case"up":x=u+y(t),_=f?g(t,x):x,b.currentDirection=0;break;case"right":case"down":x=u-y(t),_=f?g(t,x):x,b.currentDirection=1;break;default:_=u}b.triggerSlideHandler=_}else{var k=E(t);b.trackStyle=w(r({},t,{left:k}))}return b},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}),g=t.checkNavigable=function(e,t){var n=v(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},y=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n=void 0,r=i.default.findDOMNode(e.listRef).querySelectorAll(".slick-slide");if(Array.from(r).every(function(r){if(e.vertical){if(r.offsetTop+p(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+d(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},b=t.checkSpecKeys=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},_=t.getTrackCSS=function(e){b(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t=void 0,n=void 0,o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=S(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=r({},i,{WebkitTransform:a,transform:s,msTransform:l})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},w=t.getTrackAnimateCSS=function(e){b(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=_(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},E=t.getTrackLeft=function(e){if(e.unslick)return 0;b(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,a=e.infinite,s=e.centerMode,l=e.slideCount,c=e.slidesToShow,u=e.slidesToScroll,f=e.slideWidth,d=e.listWidth,p=e.variableWidth,h=e.slideHeight,m=e.fade,v=e.vertical;if(m||1===e.slideCount)return 0;var g=0;if(a?(g=-x(e),l%u!=0&&r+u>l&&(g=-(r>l?c-(r-l):l%u)),s&&(g+=parseInt(c/2))):(l%u!=0&&r+u>l&&(g=c-l%u),s&&(g=parseInt(c/2))),t=v?r*h*-1+g*h:r*f*-1+g*f,!0===p){var y,_=i.default.findDOMNode(o);if(y=r+x(e),t=(n=_&&_.childNodes[y])?-1*n.offsetLeft:0,!0===s){y=a?r+x(e):r,n=_&&_.children[y],t=0;for(var w=0;w<y;w++)t-=_&&_.children[w]&&_.children[w].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},x=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},k=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},S=t.getTotalSlides=function(e){return 1===e.slideCount?1:x(e)+e.slideCount+k(e)},T=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+C(e)?"left":"right":e.targetSlide<e.currentSlide-O(e)?"right":"left"},C=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},O=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0};t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={errors:{controlled:"A component is changing a react-medium-image-zoom component from a controlled component to an uncontrolled one. ImageZoom elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled image zoom element for the lifetime of the component.",uncontrolled:"A component is changing a react-medium-image-zoom component from an uncontrolled component to a controlled one. ImageZoom elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled image zoom element for the lifetime of the component."},styles:{image:{cursor:"zoom-in"},zoomImage:{cursor:"zoom-out",position:"absolute",transition:"transform 300ms",transform:"translate3d(0, 0, 0) scale(1)",transformOrigin:"center center",willChange:"transform, top, left"},zoomContainer:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999},overlay:{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:"#fff",opacity:0,transition:"opacity 300ms"}},transitionDuration:300};t.default=r},function(e,t,n){var r=n(446),o=n(339),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=function(e){return o(e)&&r(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},function(e,t){var n=Array.prototype,r=Error.prototype,o=Object.prototype.propertyIsEnumerable,i=n.splice,a={};!function(e){var t=function(){this.x=1},n={0:1,length:1},s=[];for(var l in t.prototype={valueOf:1,y:1},new t)s.push(l);a.enumErrorProps=o.call(r,"message")||o.call(r,"name"),a.enumPrototypes=o.call(t,"prototype"),a.nonEnumShadows=!/valueOf/.test(s),a.ownLast="x"!=s[0],a.spliceObjects=(i.call(n,0,1),!n[0]),a.unindexedChars="x"[0]+Object("x")[0]!="xx"}(),e.exports=a},function(e,t,n){var r=n(704),o=n(447),i=n(339),a=Object.prototype.toString,s=r(Array,"isArray")||function(e){return i(e)&&o(e.length)&&"[object Array]"==a.call(e)};e.exports=s},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(264));var o=function(){};o.prototype.allowedEvents_={},o.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},r.on(this,e,t),this.addEventListener=n},o.prototype.addEventListener=o.prototype.on,o.prototype.off=function(e,t){r.off(this,e,t)},o.prototype.removeEventListener=o.prototype.off,o.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},r.one(this,e,t),this.addEventListener=n},o.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=r.fixEvent(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),r.trigger(this,e)},o.prototype.dispatchEvent=o.prototype.trigger,t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.isCrossOrigin=t.getFileExtension=t.getAbsoluteURL=t.parseUrl=void 0;var r=i(n(129)),o=i(n(141));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.parseUrl=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=r.default.createElement("a");n.href=e;var o=""===n.host&&"file:"!==n.protocol,i=void 0;o&&((i=r.default.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r.default.body.appendChild(i));for(var a={},s=0;s<t.length;s++)a[t[s]]=n[t[s]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),o&&r.default.body.removeChild(i),a};t.getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=r.default.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},t.getFileExtension=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},t.isCrossOrigin=function(e){var t=o.default.location,n=a(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host}},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(961)),o=s(n(48)),i=s(n(553)),a=s(n(2012));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r.tracks=n.textTracks(),function(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}(this,e.call(this,n,r))}return function(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,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.push(new a.default(this.player_,{kind:this.kind_}));var t=this.player_.textTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];r.kind===this.kind_&&e.push(new i.default(this.player_,{track:r,selectable:!0}))}return e},t}(r.default);o.default.registerComponent("TextTrackButton",l),t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=c(n(554)),i=c(n(48)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),s=c(n(141)),l=c(n(129));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=o.track,c=n.textTracks();o.label=i.label||i.language||"Unknown",o.selected=i.default||"showing"===i.mode;var u,f,d=function(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}(this,e.call(this,n,o));return d.track=i,c&&(u=a.bind(d,d.handleTracksChange),c.addEventListener("change",u),d.on("dispose",function(){c.removeEventListener("change",u)})),c&&void 0===c.onchange&&(f=void 0,d.on(["tap","click"],function(){if("object"!==r(s.default.Event))try{f=new s.default.Event("change")}catch(e){}f||(f=l.default.createEvent("Event")).initEvent("change",!0,!0),c.dispatchEvent(f)})),d}return function(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,e),t.prototype.handleClick=function(t){var n=this.track.kind,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var o=0;o<r.length;o++){var i=r[o];i.kind===n&&(i===this.track?i.mode="showing":i.mode="disabled")}},t.prototype.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},t}(o.default);i.default.registerComponent("TextTrackMenuItem",u),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(450)),o=a(n(48)),i=a(n(301));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.selectable=r.selectable,o.selected(r.selected),o.selectable?o.el_.setAttribute("role","menuitemcheckbox"):o.el_.setAttribute("role","menuitem"),o}return function(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,e),t.prototype.createEl=function(t,n,r){return e.prototype.createEl.call(this,"li",(0,i.default)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),r)},t.prototype.handleClick=function(){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},t}(r.default);o.default.registerComponent("MenuItem",s),t.default=s},function(e,t,n){"use strict";var r,o={noop:function(){},uid:(r=0,function(){return r++}),isNullOrUndef:function(e){return null==e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return o.valueOrDefault(o.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var i,a,s;if(o.isArray(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(o.isObject(e))for(a=(s=Object.keys(e)).length,i=0;i<a;i++)t.call(n,e[s[i]],s[i])},arrayEquals:function(e,t){var n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i instanceof Array&&a instanceof Array){if(!o.arrayEquals(i,a))return!1}else if(i!==a)return!1;return!0},clone:function(e){if(o.isArray(e))return e.map(o.clone);if(o.isObject(e)){for(var t={},n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=o.clone(e[n[i]]);return t}return e},_merger:function(e,t,n,r){var i=t[e],a=n[e];o.isObject(i)&&o.isObject(a)?o.merge(i,a,r):t[e]=o.clone(a)},_mergerIf:function(e,t,n){var r=t[e],i=n[e];o.isObject(r)&&o.isObject(i)?o.mergeIf(r,i):t.hasOwnProperty(e)||(t[e]=o.clone(i))},merge:function(e,t,n){var r,i,a,s,l,c=o.isArray(t)?t:[t],u=c.length;if(!o.isObject(e))return e;for(r=(n=n||{}).merger||o._merger,i=0;i<u;++i)if(t=c[i],o.isObject(t))for(l=0,s=(a=Object.keys(t)).length;l<s;++l)r(a[l],e,t,n);return e},mergeIf:function(e,t){return o.merge(e,t,{merger:o._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,r=arguments.length;n<r;++n)o.each(arguments[n],t);return e},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=o.inherits,e&&o.extend(n.prototype,e),n.__super__=t.prototype,n}};e.exports=o,o.callCallback=o.callback,o.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},o.getValueOrDefault=o.valueOrDefault,o.getValueAtIndexOrDefault=o.valueAtIndexOrDefault},function(e,t,n){var r=n(2142),o=n(2143),i=n(2144),a=n(2145),s=n(2146);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(1102);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(266).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(341)(Object,"create");e.exports=r},function(e,t,n){var r=n(2166);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(2186),o=n(2193),i=n(716);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(455),o=n(456),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(563),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(518),o=n(137),i=n(168),a=n(198),s=n(2324);e.exports=r(4,[],o([],s,function(e,t,n,r){return a(function(r,o){var a=n(o);return r[a]=e(i(a,r)?r[a]:t,o),r},{},r)}))},function(e,t){e.exports=function(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}},function(e,t,n){var r=n(52),o=n(857),i=n(295),a=n(663),s=n(431);e.exports=r(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():i(e)?[]:s(e)?"":a(e)?{}:o(e)?function(){return arguments}():void 0})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return null!=t&&t.constructor===e||t instanceof e})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e.apply(this,t)})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r})},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Close":n,i=t.desc,a=void 0===i?"Image of an X":i,s=t.width,l=void 0===s?"14":s,c=t.height,u=void 0===c?"14":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 14 14",width:l,height:u,className:o()("i i-close",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(-18 -659)"},e.createElement("path",{d:"M31.7,659.3 C31.3,658.9 30.7,658.9 30.3,659.3 L25,664.6 L19.7,659.3 C19.3,658.9 18.7,658.9 18.3,659.3 C17.9,659.7 17.9,660.3 18.3,660.7 L23.6,666 L18.3,671.3 C17.9,671.7 17.9,672.3 18.3,672.7 C18.5,672.9 18.7,673 19,673 C19.3,673 19.5,672.9 19.7,672.7 L25,667.4 L30.3,672.7 C30.5,672.9 30.8,673 31,673 C31.2,673 31.5,672.9 31.7,672.7 C32.1,672.3 32.1,671.7 31.7,671.3 L26.4,666 L31.7,660.7 C32.1,660.3 32.1,659.7 31.7,659.3"})))}}).call(this,n(1))},function(e,t,n){var r=n(334),o=n(21);e.exports=o(function(e,t){for(var n=[],o=0,i=e.length;o<i;)r(e[o],t)||r(e[o],n)||(n[n.length]=e[o]),o+=1;return n})},function(e,t,n){e.exports=n(1546)},function(e,t){e.exports=function(e){return function(t){return function(n){n&&"function"==typeof n.fork?n.fork(e.dispatch,e.dispatch):t(n)}}}},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};Object.defineProperty(t,"__esModule",{value:!0});var o=n(864);var i,a=(i="function",function(e){return(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)===i;var t});t.default=function(e){return function(t){var n=t.dispatch,i=function(t){return t&&a(t[e])};return function(t){return function(a){return(0,o.isFSA)(a)?i(a.payload)?n(r({},a,{payload:a.payload[e]()})):t(a):i(a)?n(a[e]()):t(a)}}}}},function(e,t,n){"use strict";t.__esModule=!0;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};t.default=function(e){var t=e.dispatch;return function(e){return function(n){return o.isFSA(n)?i(n.payload)?n.payload.then(function(e){return t(r({},n,{payload:e}))},function(e){return t(r({},n,{payload:e,error:!0}))}):e(n):i(n)?n.then(t):e(n)}}};var o=n(864);function i(e){return e&&"function"==typeof e.then}e.exports=t.default},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){var r=n(52),o=n(531);e.exports=r(function(e){return o(1,e)})},function(e,t,n){e.exports=n(1604)},function(e,t,n){e.exports=n(1607)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(306),o=n.n(r);function i(e){if(o()(e))return e}},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(744),o=n.n(r),i=n(285),a=n.n(i);function s(e){return(s="function"==typeof a.a&&"symbol"==typeof o.a?function(e){return typeof e}:function(e){return e&&"function"==typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":typeof e})(e)}function l(e){return(l="function"==typeof a.a&&"symbol"===s(o.a)?function(e){return s(e)}:function(e){return e&&"function"==typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":s(e)})(e)}},function(e,t,n){e.exports=n(1644)},function(e,t,n){"use strict";var r=n(228),o=n.n(r),i=n(382),a=n.n(i),s=n(1),l=n.n(s),c=n(101),u=n.n(c),f=n(587),d=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};function p(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}var h=function(e){return 0===l.a.Children.count(e)},m=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props,r.context.router)},p(r,n)}return function(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,e),t.prototype.getChildContext=function(){return{router:d({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,i=e.strict,s=e.exact,l=e.sensitive;if(n)return n;a()(t,"You should not use <Route> or withRouter() outside a <Router>");var c=t.route,u=(r||c.location).pathname;return Object(f.a)(u,{path:o,strict:i,exact:s,sensitive:l},c.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,s=i.route,c=i.staticContext,u={match:e,location:this.props.location||s.location,history:a,staticContext:c};return r?e?l.a.createElement(r,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!h(n)?l.a.Children.only(n):null},t}(l.a.Component);m.propTypes={computedMatch:u.a.object,path:u.a.string,exact:u.a.bool,strict:u.a.bool,sensitive:u.a.bool,component:u.a.func,render:u.a.func,children:u.a.oneOfType([u.a.func,u.a.node]),location:u.a.object},m.contextTypes={router:u.a.shape({history:u.a.object.isRequired,route:u.a.object.isRequired,staticContext:u.a.object})},m.childContextTypes={router:u.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(1149),o=n.n(r),i={},a=0;t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,s=r.path,l=r.exact,c=void 0!==l&&l,u=r.strict,f=void 0!==u&&u,d=r.sensitive;if(null==s)return n;var p=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var s=[],l={re:o()(e,s,t),keys:s};return a<1e4&&(r[e]=l,a++),l}(s,{end:c,strict:f,sensitive:void 0!==d&&d}),h=p.re,m=p.keys,v=h.exec(e);if(!v)return null;var g=v[0],y=v.slice(1),b=e===g;return c&&!b?null:{path:s,url:"/"===s&&""===g?"/":g,isExact:b,params:m.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}}},function(e,t,n){e.exports=n(1704)},function(e,t,n){"use strict";var r=n(246),o=n.n(r),i=n(383),a=n.n(i);t.a=a.a.fromPromise(o.a)},function(e,t,n){"use strict";n.d(t,"b",function(){return E});var r=n(117),o=n.n(r),i=n(20),a=n.n(i),s=n(26),l=n.n(s),c=n(385),u=n.n(c),f=n(18),d=n.n(f),p=n(70),h=n.n(p),m=n(31),v=n.n(m),g=n(162),y=n(45),b=n(56),_=l()("rise/track/")("TRACK");t.a=a()({});var w=u()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:Object(g.g)(),userRole:Object(g.c)(),subId:Object(g.f)(),subPlan:Object(g.d)(),subStatus:Object(g.e)()}}),E=d()(o()(h()("author",Object(g.a)())),v()(a()(b.d),w),y.a.send(_))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(538),o=n(120),i=n(684),a=n(259),s=n(94),l=n(199),c=r.map,u=r.ap;e.exports=o(function(e,t,n){if(!s(e))throw new TypeError("liftA2: Function required for first argument");if(!i(t)&&!a(t)||!l(t,n))throw new TypeError("liftA2: Applys of same type required for last two arguments");return a(t)?u(n,c(e,t)):t.map(e).ap(n)})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(580),o=n.n(r),i=n(1171),a=n.n(i);function s(e){if(a()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return o()(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(242),o=n.n(r),i=n(5),a=n.n(i),s=n(218),l=n.n(s),c=(n(43),n(201),n(342)),u=n.n(c),f=n(739),d=n.n(f);n(31);function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",r=e?e.toString():"";return r.length>t?r.substr(0,t-1)+n:r}new RegExp(/^[0-9]+$/),a()(l()(""),o()(d.a,0),u()(""))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(199),i=n(699),a=n(369);e.exports=r(function(e,t){if(!i(t)||!o(e,t))throw new TypeError("concat: Semigroups of the same type required both arguments");return a(t)?t+e:t.concat(e)})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A});var r=n(34),o=n.n(r),i=n(32),a=n(3),s=n.n(a),l=n(9),c=n(10),u=n(8),f=n(15),d=n(7),p=n(11),h=(n(2060),n(2)),m=n.n(h),v=n(5),g=n.n(v),y=n(149),b=n.n(y),_=n(36),w=n.n(_),E=n(80),x=n.n(E),k=n(43),S=n.n(k),T=n(12),C=n.n(T),O=n(77),j=n(1196),A=function(t){function n(e){var t,r,o,i,a,d,p,h;return Object(l.a)(this,n),(h=Object(c.a)(this,Object(u.a)(n).call(this,e))).state={imageLoaded:!1},h.closeOpenedBubble=s()(t=h.closeOpenedBubble).call(t,Object(f.a)(h)),h.handleDocumentClick=s()(r=h.handleDocumentClick).call(r,Object(f.a)(h)),h.handleMarkerClick=s()(o=h.handleMarkerClick).call(o,Object(f.a)(h)),h.onItemSelected=s()(i=h.onItemSelected).call(i,Object(f.a)(h)),h.onNextClick=s()(a=h.onNextClick).call(a,Object(f.a)(h)),h.onPreviousClick=s()(d=h.onPreviousClick).call(d,Object(f.a)(h)),h.setImageLoaded=s()(p=h.setImageLoaded).call(p,Object(f.a)(h)),h}return Object(p.a)(n,t),Object(d.a)(n,null,[{key:"defaultProps",get:function(){return{onItemSelected:Function.prototype,onStep:Function.prototype}}}]),Object(d.a)(n,[{key:"componentDidMount",value:function(){this.loadImage(),this.props.readOnly||(document.addEventListener("click",this.handleDocumentClick),document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick))}},{key:"componentWillUnmount",value:function(){this.props.readOnly||(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick))}},{key:"render",value:function(){var t=this.state.imageLoaded,n=this.props,r=n.isPreview,o=n.items,a=n.parentId,s=n.settings,l=(void 0===s?{}:s).mediaWidth,c=void 0===l?"2":l,u=r?o[0].id:this.state.selectedItemId,f=m()("view-labeled-graphic",{"view-labeled-graphic--small":"0"===c,"view-labeled-graphic--medium":"1"===c,"view-labeled-graphic--full":"2"===c});return e.createElement("div",{className:f},e.createElement(j.a,Object(i.a)({},this.props,{canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:t,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:a,selected:u})))}},{key:"setImageLoaded",value:function(){this.setState({imageLoaded:!0})}},{key:"loadImage",value:function(){var e=this,t=this.props.media.image,n=t.key,r=t.src,i=o()(this.setImageLoaded,1e3),a=new Image,s=n?Object(O.c)({key:n,src:r}):r;a.src=s,a.onload=function(){clearTimeout(i),e.setImageLoaded()}}},{key:"getCanvasClassNames",value:function(){return m()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}},{key:"onNextClick",value:function(e){var t=this.props.items,n=C()("id",t[x()(e)]||t[0]);this.onItemSelected(n)}},{key:"onPreviousClick",value:function(e){var t=this.props.items,n=C()("id",t[b()(e)]||t[b()(S()(t))]);this.onItemSelected(n)}},{key:"onItemSelected",value:function(e){var t=this.props,n=t.editBlock,r=t.items,o=t.onItemSelected,i=t.onStep,a=this.state.selectedItemId;n&&window.matchMedia("(max-width: 768px)").matches||(a===e?this.closeOpenedBubble():(this.openBubble(e),g()(i,w()(function(t){return t.id===e}))(r)),o(e))}},{key:"handleDocumentClick",value:function(){document.querySelector(".figure-image__image--zoom")||this.closeOpenedBubble()}},{key:"handleMarkerClick",value:function(e){var t=e.detail,n=t.itemId,r=t.parentId,o=this.state.selectedItemId;r===this.props.parentId&&o===n||this.closeOpenedBubble()}},{key:"openBubble",value:function(e){if(window.matchMedia("(max-width: 767px)").matches){var t=document.querySelector(".page-wrap");t&&t.classList.add("page-wrap--noscroll")}this.setState({selectedItemId:e})}},{key:"closeOpenedBubble",value:function(){if(window.matchMedia("(max-width: 767px)").matches){var e=document.querySelector(".page-wrap");e&&e.classList.remove("page-wrap--noscroll")}this.setState({selectedItemId:void 0})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){var r=n(21),o=n(168);e.exports=r(o)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return R});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2079),n(148)),c=n.n(l),u=n(2),f=n.n(u),d=n(37),p=n.n(d),h=n(36),m=n.n(h),v=n(27),g=n.n(v),y=n(14),b=n.n(y),_=n(87),w=n.n(_),E=n(29),x=n.n(E),k=n(18),S=n.n(k),T=n(12),C=n.n(T),O=n(16),j=n.n(O),A=n(283),N=n.n(A),M=n(1208),I=n(1209),L=n(22),P=c()(g.a),D=function(e){var t=e.items,n=e.progress;return p()(function(e){return function(t){return w()(x()(!1,["items",t.id,"isViewed"],e))}}(n),t)},R=function(t){function n(e){var t;return Object(r.a)(this,n),(t=Object(i.a)(this,Object(a.a)(n).call(this,e))).state={items:N()(e.items)},t.pileRefs=[],t}return Object(s.a)(n,t),Object(o.a)(n,[{key:"componentWillReceiveProps",value:function(e){if(C()("retryAttempts",this.props.progress)!==C()("retryAttempts",e.progress))this.setState({items:N()(e.items)});else{var t=g()(function(e){return function(t){return S()(m()(j()("id",t.id)),b()(t))(e)}}(e.items),this.state.items);this.setState({items:t})}}},{key:"render",value:function(){var t,n=this,r=this.state.items,o=this.props,i=o.hasDarkBackground,a=o.id,s=o.labels,l=o.progress,c=o.onCardDrop,u=o.onReplay,d=o.piles,p=s.sortingLandmark,h=D({items:r,progress:l});return e.createElement("section",{"aria-label":p,className:(t=i,f()("sorting",{"sorting-dark-theme":t}))},e.createElement("div",{className:"sorting__row"},e.createElement(M.a,{count:r.length,id:a,items:h,labels:s,onReplay:u,progress:l,ref:function(e){n.deck=e}})),e.createElement("div",{className:"sorting__row"},P(function(t,r){return e.createElement(I.a,{deckTopCard:h&&h[0],id:t.id,key:t.id,lessonId:a,onCardDrop:c,onNavigateToNext:function(){return Object(L.f)({list:n.pileRefs,currentIndex:r})},onNavigateToPrevious:function(){return Object(L.g)({list:n.pileRefs,currentIndex:r})},ref:function(e){n.pileRefs[r]=e},title:t.title,onKeyDropStart:function(){n.deck.startKeyDrop()},onKeyDropEnd:function(){n.deck.endKeyDrop()}})},d)))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(4),o=n.n(r),i=n(3),a=n.n(i),s=n(34),l=n.n(s),c=n(9),u=n(10),f=n(8),d=n(7),p=n(11),h=(n(2081),n(2)),m=n.n(h),v=n(0),g=n.n(v),y=n(42),b=n(227),_=function(t){function n(e){var t;return Object(c.a)(this,n),(t=Object(u.a)(this,Object(f.a)(n).call(this,e))).state={isMoving:!1,failed:!1,position:{x:0,y:0},reset:!0},t}return Object(p.a)(n,t),Object(d.a)(n,null,[{key:"propTypes",get:function(){return{id:g.a.any.isRequired,isIncorrect:g.a.bool,title:g.a.string}}}]),Object(d.a)(n,[{key:"componentDidMount",value:function(){var e,t,n,r=this;l()(function(){r.setState({reset:!1})},300),Object(b.a)(this.card).draggable({inertia:!0,autoScroll:!1,snap:{targets:[function(e,t){return{x:e,y:t}}],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]}}).on("dragstart",this.onDragStartRef=a()(e=this.onStartSortAttempt).call(e,this)).on("dragmove",this.onDragMoveRef=a()(t=this.onDragMove).call(t,this)).on("dragend",this.onDragEndRef=a()(n=this.onEndSortAttempt).call(n,this))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.resetTimeout),Object(b.a)(this.card).off("dragstart",this.onDragStartRef).off("dragmove",this.onDragMoveRef).off("dragend",this.onDragEndRef)}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.isMoving&&!this.state.isMoving&&(this.setState({failed:!0}),this.resetTimeout=l()(function(){n.setState({position:{x:0,y:0},failed:!1}),delete n.resetTimeout},300))}},{key:"cardStyle",value:function(){var e,t=this.state.position,n=t.x,r=t.y,i=o()(e="translate3d(".concat(n,"px, ")).call(e,r,"px, 0)");return{WebkitTransform:i,transform:i}}},{key:"render",value:function(){var t=this,n=this.state,r=n.isMoving,o=n.failed,i=n.reset,a=this.props,s=a.id,l=a.isDeckTopCard,c=a.title,u=m()("playing-card playing-card--draggable",{"playing-card--moving":r,"playing-card--fail":o,reset:i});return e.createElement("div",{"aria-hidden":!l,className:u,id:s,key:"card-".concat(s),ref:function(e){return t.card=e},style:this.cardStyle(),onMouseDown:function(e){e.preventDefault()}},e.createElement("div",{className:"playing-card__content brand--border"},e.createElement(y.a,{className:"playing-card__title brand--head",value:c}),e.createElement("div",{className:"playing-card__handle"}),e.createElement("div",{className:"playing-card__status brand--background"},e.createElement("i",{className:"icon icon-check"}))))}},{key:"onStartSortAttempt",value:function(){this.setState({isMoving:!0,failed:!1})}},{key:"onDragMove",value:function(e){var t=e.dx,n=e.dy,r=this.state.position,o=r.x+t,i=r.y+n;this.setState({position:{x:o,y:i}})}},{key:"onEndSortAttempt",value:function(){this.setState({isMoving:!1})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T});var r=n(17),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=(n(2085),n(2)),h=n.n(p),m=n(35),v=n.n(m),g=n(268),y=n.n(g),b=n(12),_=n.n(b),w=n(0),E=n.n(w),x=n(488),k=n(1211),S=n(55),T=function(t){function n(e){var t,r;return Object(s.a)(this,n),(r=Object(c.a)(this,Object(u.a)(n).call(this,e))).renderCard=a()(t=r.renderCard).call(t,Object(f.a)(r)),r}return Object(d.a)(n,t),Object(l.a)(n,[{key:"onEnterMarker",value:function(e,t,n){var r=n.previousPosition,o=this.props,i=o.id,a=o.onEnter;r===x.a.below&&a({id:i,payload:{activeIndex:e,itemId:t}})}},{key:"onMarkerLeave",value:function(e,t){var n=t.currentPosition,r=t.previousPosition,o=this.props,i=o.id,a=o.items,s=o.onLeave,l=e-1;if(n===x.a.below&&r===x.a.inside&&l>-1){var c=y()(l,a);c&&s({id:i,payload:{activeIndex:l,itemId:c.id}})}}},{key:"onFocus",value:function(e,t){var n=this.props,r=n.id;(0,n.onEnter)({id:r,payload:{activeIndex:e,itemId:t}})}},{key:"isActive",value:function(e){var t=this.props,n=t.progress;return!!t.isBlock||v()(_()("activeIndex",n),e)}},{key:"renderCard",value:function(t,n){var r,o,i,s=this.props,l=s.labels,c=s.isBlock,u=s.isLearner,f=a()(r=this.onFocus).call(r,this,n,t.id),d=e.createElement(k.a,{isActive:this.isActive(n),item:t,key:n,labels:l,loadMedia:!0,onFocus:f});return c&&u?e.createElement(S.a,{animateBlockEntrance:!0,animateIn:"fadeIn",className:"timeline__animate",key:n,isLearner:!0},d):c&&!u?d:e.createElement(x.a,{bottomOffset:"60%",key:n,onEnter:a()(o=this.onEnterMarker).call(o,this,n,t.id),onLeave:a()(i=this.onMarkerLeave).call(i,this,n),topOffset:"30%"},d)}},{key:"render",value:function(){var t=this.props,n=t.hasDarkBackground,r=t.isBlock,i=t.items,a=t.labels.timelineLandmark,s=h()("page__content-container",{timeline__block:r,"timeline-dark-theme":n});return e.createElement("section",{"aria-label":a,className:s},e.createElement("div",{className:"timeline__wrapper"},e.createElement("div",{className:"timeline"},e.createElement("div",{className:"timeline__container"},o()(i).call(i,this.renderCard)))))}}],[{key:"defaultProps",get:function(){return{onEnter:Function.prototype,onLeave:Function.prototype,progress:{}}}},{key:"propTypes",get:function(){return{id:E.a.any.isRequired,isBlock:E.a.bool,isLearner:E.a.bool,items:E.a.array.isRequired,labels:E.a.object.isRequired,onEnter:E.a.func.isRequired,onLeave:E.a.func.isRequired,progress:E.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2;var s=20,l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&c()}function l(){i(s)}function c(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=e}return c}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},p=b(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=h(r.width),l=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=m(r,"left","right")+i),Math.round(l+a)!==n&&(l-=m(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return b(o.left,o.top,s,l)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?g(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):p}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(){return function(e,t){var n,r,o,i,a,s,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),f(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);f(this,{target:e,contentRect:c})}}(),E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new E(t,n,this);x.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var S=void 0!==o.ResizeObserver?o.ResizeObserver:k;t.a=S}).call(this,n(71))},function(e,t,n){"use strict";e.exports=n(2095)},function(e,t,n){"use strict";e.exports=n(2096)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2239)),o=s(n(2240)),i=s(n(741)),a=s(n(2241));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=function(e,t,n){var s=l((0,i.default)(e),4),c=s[0],u=s[1],f=s[2],d=s[3],p=l((0,i.default)(t),4),h=p[0],m=p[1],v=p[2],g=p[3],y=(0,a.default)([(0,r.default)(c,h,n),(0,r.default)(u,m,n),(0,r.default)(f,v,n),(0,o.default)(d,g,n)]);return 1===d&&1===g?y.slice(0,7):y};t.default=c},function(e,t,n){e.exports=n(2243)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(34),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=n(0),h=n.n(p),m=n(139),v=n.n(m),g=n(480),y=function(t){function n(){var e,t;return Object(s.a)(this,n),(t=Object(c.a)(this,Object(u.a)(n).call(this))).onScroll=v()(a()(e=t.handleScroll).call(e,Object(f.a)(t)),100),t}return Object(d.a)(n,t),Object(l.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.scrollableContainer=Object(g.a)(),this.scrollableContainer.addEventListener("scroll",this.onScroll),this.props.isFirstLesson&&o()(function(){e.check()},1e3)}},{key:"componentWillUnmount",value:function(){this.scrollableContainer.removeEventListener("scroll",this.onScroll)}},{key:"render",value:function(){var t=this;return e.createElement("div",{ref:function(e){return t.node=e}},this.props.children)}},{key:"handleScroll",value:function(){this.check()}},{key:"check",value:function(){Object(g.b)(this.node)&&(this.scrollableContainer.removeEventListener("scroll",this.onScroll),this.props.onViewed())}}]),n}(e.Component);h.a.arrayOf,h.a.func,h.a.node,h.a.oneOfType}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(32),o=n(34),i=n.n(o),a=n(3),s=n.n(a),l=n(9),c=n(7),u=n(10),f=n(8),d=n(15),p=n(11),h=n(75),m=n(139),v=n.n(m),g=function(){for(var e=window;e.parent!=e;)e=e.parent;try{e.innerHeight}catch(e){return window}return e};t.a=function(t){return function(n){function o(e){var t,n;return Object(l.a)(this,o),(n=Object(u.a)(this,Object(f.a)(o).call(this,e))).state={orientation:{},navigationHidden:{}},n.applySafariLandscapeHack=s()(t=n.applySafariLandscapeHack).call(t,Object(d.a)(n)),n.root=g(),n}return Object(p.a)(o,n),Object(c.a)(o,[{key:"componentDidMount",value:function(){h.a.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=v()(this.applySafariLandscapeHack,500)))}},{key:"componentWillUnmount",value:function(){this.root.removeEventListener("resize",this.resizeRef)}},{key:"applySafariLandscapeHack",value:function(){var e=this.root,t=window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape",n=("landscape"===t?screen.width:screen.height)-e.innerHeight;t==this.state.orientation&&n==this.state.difference||("landscape"===t&&0!==n&&i()(function(){e.document.body.scrollTop=0},0),this.setState({orientation:t,difference:n}))}},{key:"render",value:function(){return e.createElement(t,Object(r.a)({},this.props,{applySafariLandscapeHack:"landscape"===this.state.orientation&&0!==this.state.difference,safariLandscapeHackOffset:this.state.difference}))}}]),o}(e.Component)}}).call(this,n(1))},function(e,t,n){"use strict";var r=n(1240),o=n.n(r);t.a=function(e){var t=e.authors,n=e.author,r=e.selectedAuthorId;return o()(t,{id:r||n})||{}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=n(0),c=n.n(l),u=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"getColor",value:function(){var e=this.props,t=e.alpha,n=e.isSidebar;return"rgba(0,0,0,".concat((n?t+10:t)/100,")")}},{key:"render",value:function(){var t=this.props,n=t.classes,r=t.isPreview?"preview-overview-sidebar__overlay":"overview__side-panel-overlay";return e.createElement("div",{className:n||r,style:{backgroundColor:this.getColor()}})}}],[{key:"propTypes",get:function(){return{alpha:c.a.number,classes:c.a.string,isPreview:c.a.bool,isSidebar:c.a.bool}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";var r=n(1),o=n(208),i=n.n(o),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),s=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired});var l=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(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}(this,e.call(this,n,r));return i[t]=n.store,i}return function(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)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:s.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=s.isRequired,e[n]=a,e),o}(),c=n(1140),u=n.n(c),f=n(318),d=n.n(f);var p=null,h={notify:function(){}};var m=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=h}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=p,e=p},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==p&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=h)},e}(),v=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};var g=0,y={};function b(){}function _(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=o.methodName,f=void 0===c?"connectAdvanced":c,p=o.renderCountProp,h=void 0===p?void 0:p,_=o.shouldHandleStateChanges,w=void 0===_||_,E=o.storeKey,x=void 0===E?"store":E,k=o.withRef,S=void 0!==k&&k,T=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),C=x+"Subscription",O=g++,j=((t={})[x]=s,t[C]=a,t),A=((n={})[C]=a,n);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=v({},T,{getDisplayName:l,methodName:f,renderCountProp:h,shouldHandleStateChanges:w,storeKey:x,withRef:S,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(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}(this,n.call(this,e,t));return r.version=O,r.state={},r.renderCount=0,r.store=e[x]||t[x],r.propsMode=Boolean(e[x]),r.setWrappedInstance=r.setWrappedInstance.bind(r),d()(r.store,'Could not find "'+x+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+x+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(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)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[C]=t||this.context[C],e},a.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return d()(S,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+f+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[C];this.subscription=new m(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(y)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(S||h||this.propsMode&&this.subscription))return e;var t=v({},e);return S&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[C]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=A,a.contextTypes=j,a.propTypes=j,u()(a,t)}}var w=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!w.call(t,n[o])||!E(e[n[o]],t[n[o]]))return!1;return!0}var k=n(250);n(395);function S(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function T(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function C(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(t,n)),o},r}}var O=[function(e){return"function"==typeof e?C(e):void 0},function(e){return e?void 0:S(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?S(function(t){return Object(k.b)(e,t)}):void 0}];var j=[function(e){return"function"==typeof e?C(e):void 0},function(e){return e?void 0:S(function(){return{}})}],A=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};function N(e,t,n){return A({},n,e,t)}var M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r=n.pure,o=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,s){var l=e(t,n,s);return i?r&&o(l,a)||(a=l):(i=!0,a=l),a}}}(e):void 0},function(e){return e?void 0:function(){return N}}];function I(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function L(e,t,n,r,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,s=o.areStatePropsEqual,l=!1,c=void 0,u=void 0,f=void 0,d=void 0,p=void 0;function h(o,l){var h,m,v=!a(l,u),g=!i(o,c);return c=o,u=l,v&&g?(f=e(c,u),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u)):v?(e.dependsOnOwnProps&&(f=e(c,u)),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u)):g?(h=e(c,u),m=!s(h,f),f=h,m&&(p=n(f,d,u)),p):p}return function(o,i){return l?h(o,i):(f=e(c=o,u=i),d=t(r,u),p=n(f,d,u),l=!0,p)}}function P(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?L:I)(a,s,l,e,i)}var D=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};function R(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(e,t){return e===t}var B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?_:t,r=e.mapStateToPropsFactories,o=void 0===r?j:r,i=e.mapDispatchToPropsFactories,a=void 0===i?O:i,s=e.mergePropsFactories,l=void 0===s?M:s,c=e.selectorFactory,u=void 0===c?P:c;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,c=void 0===s||s,f=i.areStatesEqual,d=void 0===f?F:f,p=i.areOwnPropsEqual,h=void 0===p?x:p,m=i.areStatePropsEqual,v=void 0===m?x:m,g=i.areMergedPropsEqual,y=void 0===g?x:g,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=R(e,o,"mapStateToProps"),w=R(t,a,"mapDispatchToProps"),E=R(r,l,"mergeProps");return n(u,D({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:w,initMergeProps:E,pure:c,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:v,areMergedPropsEqual:y},b))}}();n.d(t,"a",function(){return l}),n.d(t,"b",function(){return B})},function(e,t,n){"use strict";var r=n(147),o=n.n(r),i=n(318),a=n.n(i);function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),i=t&&s(t),a=o||i;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var f=0,d=r.length;d>=0;d--){var p=r[d];"."===p?l(r,d):".."===p?(l(r,d),f++):f&&(l(r,d),f--)}if(!a)for(;f--;f)r.unshift("..");!a||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h},u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var f=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":u(t);if(r!==(void 0===n?"undefined":u(n)))return!1;if("object"===r){var o=t.valueOf(),i=n.valueOf();if(o!==t||i!==n)return e(o,i);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},d=function(e){return"/"===e.charAt(0)?e:"/"+e},p=function(e){return"/"===e.charAt(0)?e.substr(1):e},h=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},m=function(e,t){return h(e,t)?e.substr(t.length):e},v=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},g=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},y=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},b=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=y({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=c(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},_=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}},w=!("undefined"==typeof window||!window.document||!window.document.createElement),E=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},x=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},k=function(e,t){return t(window.confirm(e))},S=("function"==typeof Symbol&&Symbol.iterator,Object.assign,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={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+p(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:p,decodePath:d},slash:{encodePath:d,decodePath:d}},C=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},O=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(w,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?k:r,s=e.hashType,l=void 0===s?"slash":s,c=e.basename?v(d(e.basename)):"",u=T[l],p=u.encodePath,y=u.decodePath,j=function(){var e=y(C());return o()(!c||h(e,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+c+'".'),c&&(e=m(e,c)),b(e)},A=_(),N=function(e){S($,e),$.length=t.length,A.notifyListeners($.location,$.action)},M=!1,I=null,L=function(){var e,t,n=C(),r=p(n);if(n!==r)O(r);else{var o=j(),i=$.location;if(!M&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&f(e.state,t.state)))return;if(I===g(o))return;I=null,P(o)}},P=function(e){M?(M=!1,N()):A.confirmTransitionTo(e,"POP",i,function(t){t?N({action:"POP",location:e}):D(e)})},D=function(e){var t=$.location,n=U.lastIndexOf(g(t));-1===n&&(n=0);var r=U.lastIndexOf(g(e));-1===r&&(r=0);var o=n-r;o&&(M=!0,q(o))},R=C(),F=p(R);R!==F&&O(F);var B=j(),U=[g(B)],q=function(e){o()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},z=0,H=function(e){1===(z+=e)?E(window,"hashchange",L):0===z&&x(window,"hashchange",L)},W=!1,$={length:t.length,action:"POP",location:B,createHref:function(e){return"#"+p(c+g(e))},push:function(e,t){o()(void 0===t,"Hash history cannot push state; it is ignored");var n=b(e,void 0,void 0,$.location);A.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=g(n),r=p(c+t);if(C()!==r){I=t,function(e){window.location.hash=e}(r);var i=U.lastIndexOf(g($.location)),a=U.slice(0,-1===i?0:i+1);a.push(t),U=a,N({action:"PUSH",location:n})}else o()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),N()}})},replace:function(e,t){o()(void 0===t,"Hash history cannot replace state; it is ignored");var n=b(e,void 0,void 0,$.location);A.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=g(n),r=p(c+t);C()!==r&&(I=t,O(r));var o=U.indexOf(g($.location));-1!==o&&(U[o]=t),N({action:"REPLACE",location:n})}})},go:q,goBack:function(){return q(-1)},goForward:function(){return q(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return W||(H(1),W=!0),function(){return W&&(W=!1,H(-1)),t()}},listen:function(e){var t=A.appendListener(e);return H(1),function(){H(-1),t()}}};return $};"function"==typeof Symbol&&Symbol.iterator,Object.assign;n.d(t,"a",function(){return j}),n.d(t,"b",function(){return b})},function(e,t,n){"use strict";var r=n(32),o=n(156),i=n(1),a=n.n(i),s=n(2),l=n.n(s),c=n(161),u=n(4),f=n.n(u),d=n(125),p=n(478),h=n.n(p),m=function(e){var t,n,r,o,s,l,u,p,m,g,y=e.borderWidth,b=e.checkClassName,_=e.className,w=e.desc,E=e.diameter,x=e.percentComplete,k=e.progressClassName,S=e.progressColor,T=e.title,C=e.trackClassName,O=e.trackColor,j=e.transitionTiming,A=Number(y),N=Number(E),M=Number(x),I=Number(j),L=N/2,P=L-A,D=(Math.PI*P*2).toFixed(3),R=D*(100-M)/100,F=v/N,B=function(e){return e/F},U=Object(i.useState)(h()()),q=Object(d.a)(U,1)[0],z="pc-t-".concat(q),H="pc-d-".concat(q),W={opacity:"0",visibility:"hidden"},$=f()(t="opacity ".concat(I,"s ")).call(t,I,"s"),Y={transition:"none"},K=Object(c.a)({},{stroke:O,transition:$},100===M?W:{}),V=Object(c.a)({},{stroke:S,transition:f()(n=f()(r="stroke-dashoffset ".concat(I+.1,"s ease-out, fill ")).call(r,I,"s ")).call(n,I,"s")},0===M?Y:{}),G=Object(c.a)({},{transition:$},100!==M?W:{},0===M?Y:{}),X=T||"".concat(M,"% complete");return a.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-labelledby":z,"aria-describedby":H,className:_,focusable:"false",height:N,role:"img",style:{display:"inline-block",verticalAlign:"middle"},width:N},a.a.createElement("title",{id:z},X),a.a.createElement("desc",{id:H},w),a.a.createElement("circle",{className:C,cx:L,cy:L,fill:"transparent",r:P,strokeWidth:A,style:K,transform:f()(o="rotate(-89.9 ".concat(L," ")).call(o,L,")")}),a.a.createElement("circle",{className:k,cx:L,cy:L,fill:"transparent",r:P,strokeDasharray:D,strokeDashoffset:R,strokeWidth:A,style:V,transform:f()(s="rotate(-89.9 ".concat(L," ")).call(s,L,")")}),a.a.createElement("path",{className:b,d:["M".concat(B(8.64)),"0L".concat(B(9.9)),f()(l="".concat(B(1.17),"L")).call(l,B(3.51)),"".concat(B(7.2),"L0"),f()(u="".concat(B(3.87),"L")).call(u,B(1.26)),f()(p="".concat(B(2.7),"l")).call(p,B(2.34)),f()(m="".concat(B(2.16),"L")).call(m,B(8.64)),"0z"].join(","),fill:"#fff",style:G,transform:f()(g="translate(".concat(B(5.5)," ")).call(g,B(7),")")}))},v=21;m.defaultProps={borderWidth:2,desc:"A circle with a colored border representing one's progress.",diameter:v,percentComplete:0,progressColor:"#50abf1",trackColor:"rgba(49, 53, 55, 0.1)",transitionTiming:.3};var g=Object(i.memo)(m);t.a=Object(i.memo)(function(e){var t=e.percentComplete,n=Object(o.a)(e,["percentComplete"]),i=l()("brand--stroke brand--fill-opacity",{"brand--fill":100===t});return a.a.createElement(g,Object(r.a)({},n,{desc:"A circle with a colored border representing one's progress through a lesson.",progressClassName:i,percentComplete:t}))})},function(e,t,n){"use strict";var r=n(427),o=n(841),i=n(1524),a=n(1525),s=n(1526),l=n(1527),c=n(1530);function u(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function d(e,t){var n=[];return u(e,function(e){t(e)&&n.push(e)}),n}e.exports=h;var p=/^[^\0\t\n\f\r \/<=>]+$/;function h(e,t,n){var v="";function g(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.updateParentNodeText=function(){S.length&&(S[S.length-1].text+=n.text)}}t?(t=o(h.defaults,t)).parser?t.parser=o(m,t.parser):t.parser=m:(t=h.defaults).parser=m;var y,b,_=t.nonTextTags||["script","style","textarea"];t.allowedAttributes&&(y={},b={},u(t.allowedAttributes,function(e,t){y[t]=[];var n=[];e.forEach(function(e){e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):y[t].push(e)}),b[t]=new RegExp("^("+n.join("|")+")$")}));var w={};u(t.allowedClasses,function(e,t){y&&(f(y,t)||(y[t]=[]),y[t].push("class")),w[t]=e});var E,x={};u(t.transformTags,function(e,t){var n;"function"==typeof e?n=e:"string"==typeof e&&(n=h.simpleTransform(e)),"*"===t?E=n:x[t]=n});var k=0,S=[],T={},C={},O=!1,j=0,A=new r.Parser({onopentag:function(e,n){if(O)j++;else{var r=new g(e,n);S.push(r);var o,i=!1,h=!!r.text;f(x,e)&&(o=x[e](e,n),r.attribs=n=o.attribs,void 0!==o.text&&(r.innerText=o.text),e!==o.tagName&&(r.name=e=o.tagName,C[k]=o.tagName)),E&&(o=E(e,n),r.attribs=n=o.attribs,e!==o.tagName&&(r.name=e=o.tagName,C[k]=o.tagName)),t.allowedTags&&-1===t.allowedTags.indexOf(e)&&(i=!0,-1!==_.indexOf(e)&&(O=!0,j=1),T[k]=!0),k++,i||(v+="<"+e,(!y||f(y,e)||y["*"])&&u(n,function(n,o){if(p.test(o))if(!y||f(y,e)&&-1!==y[e].indexOf(o)||y["*"]&&-1!==y["*"].indexOf(o)||f(b,e)&&b[e].test(o)||b["*"]&&b["*"].test(o)){if(("href"===o||"src"===o)&&M(e,n))return void delete r.attribs[o];if("srcset"===o)try{var i;if(u(i=l.parse(n),function(e){M("srcset",e.url)&&(e.evil=!0)}),!(i=d(i,function(e){return!e.evil})).length)return void delete r.attribs[o];n=l.stringify(d(i,function(e){return!e.evil})),r.attribs[o]=n}catch(e){return void delete r.attribs[o]}if("class"===o&&!(n=function(e,t){if(!t)return e;return(e=e.split(/\s+/)).filter(function(e){return-1!==t.indexOf(e)}).join(" ")}(n,w[e])).length)return void delete r.attribs[o];if("style"===o)try{if(0===(n=function(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(t.prop+":"+t.value+";"),e},[]).join("")}(function(e,t){if(!t)return e;var n,r=a(e),o=e.nodes[0];n=t[o.selector]&&t["*"]?s(a(t[o.selector]),t["*"],function(e,t){if(Array.isArray(e))return e.concat(t)}):t[o.selector]||t["*"];n&&(r.nodes[0].nodes=o.nodes.reduce(function(e){return function(t,n){if(e.hasOwnProperty(n.prop)){var r=e[n.prop].some(function(e){return e.test(n.value)});r&&t.push(n)}return t}}(n),[]));return r}(c.parse(e+" {"+n+"}"),t.allowedStyles))).length)return void delete r.attribs[o]}catch(e){return void delete r.attribs[o]}v+=" "+o,n.length&&(v+='="'+N(n)+'"')}else delete r.attribs[o];else delete r.attribs[o]}),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||h||t.textFilter||(v+=r.innerText)))}},ontext:function(e){if(!O){var n,r=S[S.length-1];if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"script"===n||"style"===n)v+=e;else{var o=N(e);t.textFilter?v+=t.textFilter(o):v+=o}if(S.length)S[S.length-1].text+=e}},onclosetag:function(e){if(O){if(--j)return;O=!1}var n=S.pop();if(n){if(O=!1,T[--k])return delete T[k],void n.updateParentNodeText();C[k]&&(e=C[k],delete C[k]),t.exclusiveFilter&&t.exclusiveFilter(n)?v=v.substr(0,n.tagPosition):(n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)&&(v+="</"+e+">"))}}},t.parser);return A.write(e),A.end(),v;function N(e){return"string"!=typeof e&&(e+=""),e.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;")}function M(e,n){var r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<\!\-\-.*?\-\-\>/g,"")).match(/^([a-zA-Z]+)\:/);if(!r)return!!n.match(/^[\/\\]{2}/)&&!t.allowProtocolRelative;var o=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(o):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(o)}}var m={decodeEntities:!0};h.defaults={allowedTags:["h3","h4","h5","h6","blockquote","p","a","ul","ol","nl","li","b","i","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre"],allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},h.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,o){var i;if(n)for(i in t)o[i]=t[i];else o=t;return{tagName:e,attribs:o}}}},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return B}),n.d(t,"b",function(){return z}),n.d(t,"a",function(){return H});var r=n(32),o=n(3),i=n.n(o),a=n(17),s=n.n(a),l=n(174),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(11),m=(n(1927),n(20)),v=n.n(m),g=n(2),y=n.n(g),b=n(26),_=n.n(b),w=n(41),E=n.n(w),x=n(35),k=n.n(x),S=n(30),T=n.n(S),C=n(0),O=n.n(C),j=n(91),A=n.n(j),N=n(46),M=n(22),I=n(60),L=n(63),P=n(24),D=n(64),R=n(88),F=n(55),B=function(t){function n(){return Object(u.a)(this,n),Object(d.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(f.a)(n,[{key:"nextNumber",value:function(e){var t,n=this.props.items,r=n.length>0?n[e].number:null;return isNaN(r)||""===r||(t=c()(r,10)+1),(t<1||t>99)&&(t=null),t}},{key:"render",value:function(){var t=this,n=this.props,o=n.animateBlockEntrance,a=n.lessonId,l=n.blockId,c=n.isLearner,u=n.items,f=n.labels,d=n.type,p=n.settings,h=n.editable,m=n.onStep,v=p.paddingTop,g=p.paddingBottom,b=p.backgroundColor,_=p.entranceAnimation,w=y()("block-list block-list--".concat(d),{"block-list--no-animation":!_}),E={backgroundColor:Object(D.a)("",b),paddingTop:"".concat(10*v,"px"),paddingBottom:"".concat(10*g,"px")};return e.createElement("div",{className:w,style:E},e.createElement("div",{className:"block-list__container"},e.createElement("div",{className:"block-list__row"},e.createElement("div",{"aria-label":q(f,d),className:"block-list__col",role:L.a},e.createElement("ul",{className:"block-list__list"},e.createElement(F.a,{animateBlockEntrance:o,animateIn:"fadeInRight",className:"block-list__animated-item",isLearner:c,siblingDelay:.25},s()(u).call(u,function(n,o){var s;return e.createElement(U,Object(r.a)({key:n.id,index:o,lessonId:a,blockId:l,isDone:n.isDone,type:d,editable:h,nextNumber:i()(s=t.nextNumber).call(s,t),onStep:m},n))})))))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:O.a.bool.isRequired,lessonId:O.a.any,blockId:O.a.any,isLearner:O.a.bool.isRequired,items:O.a.array.isRequired,settings:O.a.object.isRequired,type:O.a.string,editable:O.a.bool,onStep:O.a.func}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered"}}}]),n}(e.Component),U=function(t){function n(e){var t;return Object(u.a)(this,n),(t=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={isChecked:!1},t}return Object(h.a)(n,t),Object(f.a)(n,null,[{key:"propTypes",get:function(){return{id:O.a.any.isRequired,lessonId:O.a.any,blockId:O.a.any.isRequired,isDone:O.a.bool,index:O.a.number.isRequired,type:O.a.string.isRequired,number:O.a.oneOfType([O.a.string,O.a.number]),paragraph:O.a.string,isNewlyInserted:O.a.bool,editable:O.a.bool,nextNumber:O.a.func.isRequired,onStep:O.a.func}}}]),Object(f.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.lessonId,n=e.blockId,r=e.id;e.isNewlyInserted&&(this.editor.setFocus(),Object(I.a)(Object(N.k)({lessonId:t,blockId:n,itemId:r,payload:{isNewlyInserted:!1}})))}},{key:"checkBox",value:function(e){e.preventDefault(),this.setState({isChecked:!this.state.isChecked}),this.props.onStep(this.props)}},{key:"handleParagraphChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(I.a)(Object(N.k)({lessonId:r,blockId:o,itemId:e,payload:{paragraph:t}}))}},{key:"handleParagraphKeydown",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId,i=n.nextNumber,a=n.index;if(t.shiftKey||"Enter"!==t.key)t.shiftKey||"Backspace"!==t.key||""===t.target.textContent&&Object(I.a)(Object(N.h)({lessonId:r,blockId:o,itemId:e}));else{t.preventDefault(),t.stopPropagation();var s={paragraph:"",number:i(a)};Object(I.a)(Object(N.e)({lessonId:r,blockId:o,itemId:e,payload:s}))}return!1}},{key:"render",value:function(){var t,n,r,o,a=this,s=this.props,l=s.type,c=s.index,u=s.id,f=s.number,d=s.paragraph,p=s.editable,h=this.state.isChecked,m={className:"block-list__content brand--body brand--linkColor",component:"span",editable:p,onChange:i()(t=this.handleParagraphChange).call(t,this,u),onKeyDown:i()(n=this.handleParagraphKeydown).call(n,this,u),ref:function(e){a.editor=e},value:d},g=_()("hidden "),b=T()({className:g},m),w=e.createElement("div",{className:"block-list__number brand--background"},f||c+1),x=e.createElement("div",{className:"block-list__bullet brand--background"}),S=y()("block-list__checkbox","brand--border",{"block-list__checkbox--checked":h,"brand--background":h}),C=e.createElement("div",{className:S},e.createElement("i",{className:"block-list__checkbox__icon icon icon-checkmark-valid"}),e.createElement("div",{"aria-checked":h,className:"block-list__checkbox__hitarea",onClick:i()(r=this.checkBox).call(r,this),onKeyDown:Object(P.a)(i()(o=this.checkBox).call(o,this)),role:"checkbox",tabIndex:M.a})),O=E()([[k()("numbered"),v()(w)],[k()("bulleted"),v()(x)],[k()("checkboxes"),v()(C)],[A.a,v()(w)]]);return e.createElement("li",{className:"block-list__item"},e.createElement("div",{className:"block-list__content__left"},O(l),e.createElement(R.a,b)),e.createElement(R.a,m))}}]),n}(e.Component),q=function(e,t){var n=e.numberedListGroup,r=e.checkboxListGroup,o=e.bulletedListGroup;switch(t){case"numbered":return n;case"checkboxes":return r;case"bulleted":return o}},z=function(t){return e.createElement(B,Object(r.a)({type:"checkboxes"},t))},H=function(t){return e.createElement(B,Object(r.a)({type:"bulleted"},t))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return h}),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return v});var r=n(32),o=n(9),i=n(7),a=n(10),s=n(8),l=n(11),c=(n(1935),n(2)),u=n.n(c),f=n(0),d=n.n(f),p=n(64),h=function(t){function n(){return Object(o.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(i.a)(n,[{key:"render",value:function(){var t=this.props,n=t.labels.numberedDividerGroup,r=t.number,o=t.settings,i=t.type,a=o.paddingTop,s=o.paddingBottom,l=o.backgroundColor,c=o.entranceAnimation,f=u()("block-divider block-divider--".concat(i," brand--afterHead"),{"block-divider--no-animation":!c}),d="numbered"===i,h=u()("block-divider__wrap",{"brand--beforeBorder brand--afterBackground":d}),m={backgroundColor:Object(p.a)("",l),paddingTop:"".concat(10*a,"px"),paddingBottom:"".concat(10*s,"px")},v=d?n:"";return e.createElement("div",{className:f,style:m},e.createElement("div",{"aria-label":v,className:h,"data-number":r}))}}],[{key:"propTypes",get:function(){return{settings:d.a.object.isRequired,number:d.a.number,type:d.a.string}}},{key:"defaultProps",get:function(){return{type:"divider"}}}]),n}(e.Component),m=function(t){return e.createElement(h,Object(r.a)({type:"numbered"},t))},v=function(t){return e.createElement(h,Object(r.a)({type:"spacing"},t))}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return D}),n.d(t,"b",function(){return R});var r=n(117),o=n.n(r),i=n(130),a=n.n(i),s=n(5),l=n.n(s),c=n(41),u=n.n(c),f=n(89),d=n.n(f),p=n(97),h=n.n(p),m=n(38),v=n.n(m),g=n(311),y=n.n(g),b=n(49),_=n.n(b),w=n(18),E=n.n(w),x=n(379),k=n.n(x),S=n(51),T=n.n(S),C=n(16),O=n.n(C),j=n(345),A=n.n(j),N=n(91),M=n.n(N),I=a()(v.a),L=function(e){var t=P(e)[0],n=(t||{}).feedback,r=E()(_()(["action","emotion","goTo","nextSlide"]),o()({description:n,type:"dialogue"}));return t?[t,r(t)]:[r(e)]},P=function(e){return[e.responses[e.response]]},D=function(e){var t=A()(I,"response"),n=O()("hasFeedback",!0),r=function(t){return l()(k()(e),t)};return u()([[n,r(L)],[t,r(P)],[M.a,y.a]])(e)},R=d()(function(e,t){if(t){var n=t.scene,r=t.slide,o=h()(O()("id",n),e),i=T()([],"slides",e[o]);return{scene:o,slide:h()(O()("id",r),i)}}})},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2304),function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props,n=t.className,r=t.children;return e.createElement("div",{className:n,"data-lesson":!0,ref:this.props.contentRef},r)}}]),n}(e.Component)),c=function(t){var n=t.children;return e.createElement("div",{className:"lesson__sidebar","data-lesson-side":!0},n)},u=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props.onMobileMenuActiveClick;return e.createElement("div",{className:"lesson__content",onClick:t},this.props.children)}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){var r=n(85),o=n(66).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(66),o=n(158);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(324),o=n(492),i=n(93),a=n(66).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){e.exports=n(66)},function(e,t,n){"use strict";var r=n(135),o=n(288),i=n(104);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){var r=n(413),o=n(98)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(23),o=n(788),i=n(234),a=n(415),s=n(233),l=n(158),c=n(178),u=n(322),f=n(98)("iterator"),d=n(413),p=n(789),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,v=function(){return this};e.exports=function(e,t,n,p,g,y,b){o(n,t,p);var _,w,E,x=function(e){if(e===g&&O)return O;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",S=!1,T=e.prototype,C=T[f]||T["@@iterator"]||g&&T[g],O=!m&&C||x(g),j="Array"==t&&T.entries||C;if(j&&(_=i(j.call(new e)),h!==Object.prototype&&_.next&&(u||i(_)===h||(a?a(_,h):"function"!=typeof _[f]&&l(_,f,v)),s(_,k,!0,!0),u&&(d[k]=v))),"values"==g&&C&&"values"!==C.name&&(S=!0,O=function(){return C.call(this)}),u&&!b||T[f]===O||l(T,f,O),d[t]=O,g)if(w={values:x("values"),keys:y?O:x("keys"),entries:x("entries")},b)for(E in w)!m&&!S&&E in T||c(T,E,w[E]);else r({target:t,proto:!0,forced:m||S},w);return w}},function(e,t,n){e.exports=!n(61)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(621),o=n(66),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){"use strict";var r=n(66),o=n(107),i=n(99).NATIVE_ARRAY_BUFFER,a=n(158),s=n(360),l=n(61),c=n(291),u=n(194),f=n(104),d=n(791),p=n(324).f,h=n(118).f,m=n(622),v=n(233),g=n(193),y=g.get,b=g.set,_=r.ArrayBuffer,w=_,E=r.DataView,x=r.Math,k=r.RangeError,S=x.abs,T=x.pow,C=x.floor,O=x.log,j=x.LN2,A=function(e,t,n){var r,o,i,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?T(2,-24)-T(2,-77):0,f=e<0||0===e&&1/e<0?1:0,d=0;for((e=S(e))!=e||e===1/0?(o=e!=e?1:0,r=l):(r=C(O(e)/j),e*(i=T(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?u/i:u*T(2,1-c))*i>=2&&(r++,i/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(e*i-1)*T(2,t),r+=c):(o=e*T(2,c-1)*T(2,t),r=0));t>=8;a[d++]=255&o,o/=256,t-=8);for(r=r<<t|o,s+=t;s>0;a[d++]=255&r,r/=256,s-=8);return a[--d]|=128*f,a},N=function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,s=o-7,l=r-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===i)return n?NaN:c?-1/0:1/0;n+=T(2,t),u-=a}return(c?-1:1)*n*T(2,u-t)},M=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},I=function(e){return[255&e]},L=function(e){return[255&e,e>>8&255]},P=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},D=function(e){return A(e,23,4)},R=function(e){return A(e,52,8)},F=function(e,t){h(e.prototype,t,{get:function(){return y(this)[t]}})},B=function(e,t,n,r){var o=d(+n),i=y(e);if(o+t>i.byteLength)throw k("Wrong index");var a=y(i.buffer).bytes,s=o+i.byteOffset,l=a.slice(s,s+t);return r?l:l.reverse()},U=function(e,t,n,r,o,i){var a=d(+n),s=y(e);if(a+t>s.byteLength)throw k("Wrong index");for(var l=y(s.buffer).bytes,c=a+s.byteOffset,u=r(+o),f=0;f<t;f++)l[c+f]=u[i?f:t-f-1]};if(i){if(!l(function(){_(1)})||!l(function(){new _(-1)})||l(function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name})){for(var q,z=(w=function(e){return c(this,w),new _(d(e))}).prototype=_.prototype,H=p(_),W=0;H.length>W;)(q=H[W++])in w||a(w,q,_[q]);z.constructor=w}var $=new E(new w(2)),Y=E.prototype.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||s(E.prototype,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else w=function(e){c(this,w,"ArrayBuffer");var t=d(e);b(this,{bytes:m.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},E=function(e,t,n){c(this,E,"DataView"),c(e,w,"DataView");var r=y(e).byteLength,i=u(t);if(i<0||i>r)throw k("Wrong offset");if(i+(n=void 0===n?r-i:f(n))>r)throw k("Wrong length");b(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(F(w,"byteLength"),F(E,"buffer"),F(E,"byteLength"),F(E,"byteOffset")),s(E.prototype,{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return M(B(this,4,e,arguments[1]))},getUint32:function(e){return M(B(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return N(B(this,4,e,arguments[1]),23)},getFloat64:function(e){return N(B(this,8,e,arguments[1]),52)},setInt8:function(e,t){U(this,1,e,I,t)},setUint8:function(e,t){U(this,1,e,I,t)},setInt16:function(e,t){U(this,2,e,L,t,arguments[2])},setUint16:function(e,t){U(this,2,e,L,t,arguments[2])},setInt32:function(e,t){U(this,4,e,P,t,arguments[2])},setUint32:function(e,t){U(this,4,e,P,t,arguments[2])},setFloat32:function(e,t){U(this,4,e,D,t,arguments[2])},setFloat64:function(e,t){U(this,8,e,R,t,arguments[2])}});v(w,"ArrayBuffer"),v(E,"DataView"),t.ArrayBuffer=w,t.DataView=E},function(e,t,n){var r=n(85),o=n(415);e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r=n(194),o=n(192);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){var r,o,i,a=n(66),s=n(210),l=n(290),c=n(782),u=n(617),f=a.setImmediate,d=a.clearImmediate,p=a.process,h=a.MessageChannel,m=a.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(v),v},d=function(e){delete g[e]},"process"==s(p)?r=function(e){p.nextTick(l(y,e,1))}:m&&m.now?r=function(e){m.now(l(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=l(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(e){a.postMessage(e+"","*")},a.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(l(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,n){var r=n(66).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(85),o=n(210),i=n(98)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(633),o=n(192);e.exports=function(e,t,n){if(r(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(o(e))}},function(e,t,n){var r=n(98)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(502);e.exports=function(e,t,n){return t+(n?r(e,t,!0).length:1)}},function(e,t,n){"use strict";var r,o,i=n(501),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l.lastIndex),r=a.call(l,e),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),e.exports=l},function(e,t,n){var r=n(61),o=n(499);e.exports=function(e){return r(function(){return!!o[e]()||"​᠎"!="​᠎"[e]()||o[e].name!==e})}},function(e,t,n){var r=n(66),o=n(61),i=n(493),a=n(99).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!o(function(){l(1)})||!o(function(){new l(-1)})||!i(function(e){new l,new l(null),new l(1.5),new l(e)},!0)||o(function(){return 1!==new l(new s(2),1,void 0).length})},function(e,t,n){var r=n(1473),o=n(420);e.exports=function(e,t,n){if(r(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(o(e))}},function(e,t,n){var r=n(159),o=n(128).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(119)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(257),o=n(195),i=n(512);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(1480);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n,o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(128).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(116),o=n(128),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t){e.exports=function(e){return e}},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,n){(t=e.exports=n(836)).Stream=t,t.Readable=t,t.Writable=n(654),t.Duplex=n(333),t.Transform=n(840),t.PassThrough=n(1504)},function(e,t,n){"use strict";(function(t,r,o){var i=n(519);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i;y.WritableState=g;var c=n(429);c.inherits=n(238);var u={deprecate:n(1503)},f=n(838),d=n(520).Buffer,p=o.Uint8Array||function(){};var h,m=n(839);function v(){}function g(e,t){s=s||n(333),e=e||{},this.objectMode=!!e.objectMode,t instanceof s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i(o,r),i(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,o);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,a,o):_(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(333),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,l=!0;n;)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t)}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,f),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||e&&e._writableState instanceof g}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=(r=e,(d.isBuffer(r)||r instanceof p)&&!o.objectMode);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,o,i);return l}(this,o,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(258),n(1501).setImmediate,n(71))},function(e,t,n){"use strict";var r=n(520).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n)return 0;if((o=a(t[r]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n)return 0;if((o=a(t[r]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(657);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,e.call(this,n));return r.type="decl",r}return function(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,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=l(n(842)),i=l(n(850)),a=l(n(658)),s=l(n(851));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.raws={},"object"!==(void 0===t?"undefined":r(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var n in t)this[n]=t[n]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o.default(e)},e.prototype.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(t,n){var o=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],s=void 0===a?"undefined":r(a);"parent"===i&&"object"===s?n&&(o[i]=n):"source"===i?o[i]=a:a instanceof Array?o[i]=a.map(function(t){return e(t,o)}):("object"===s&&null!==a&&(a=e(a)),o[i]=a)}return o}(this);for(var n in e)t[n]=e[n];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a;this.parent.insertBefore(this,s)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,s.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,s.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,s.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){var e=this.parent.index(this);return this.parent.nodes[e+1]},e.prototype.prev=function(){var e=this.parent.index(this);return this.parent.nodes[e-1]},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map(function(e){return"object"===(void 0===e?"undefined":r(e))&&e.toJSON?e.toJSON():e}):"object"===(void 0===n?"undefined":r(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},e.prototype.raw=function(e,t){return(new i.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)"\n"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},e.prototype.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){new i.default(t).stringify(e)};var r,o=n(850),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return i.root};var r=i(n(1544)),o=i(n(845));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(657);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,e.call(this,n));return r.type="comment",r}return function(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,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(656)),i=a(n(660));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.push=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n=void 0,r=void 0;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},t.prototype.walk=function(e){return this.each(function(t,n){var r=e(t,n);return!1!==r&&t.walk&&(r=t.walk(e)),r})},t.prototype.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},t.prototype.walkRules=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},t.prototype.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},t.prototype.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},t.prototype.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a,l=this.normalize(s,this.last),c=Array.isArray(l),u=0;for(l=c?l:l[Symbol.iterator]();;){var f;if(c){if(u>=l.length)break;f=l[u++]}else{if((u=l.next()).done)break;f=u.value}var d=f;this.nodes.push(d)}}return this},t.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a,l=this.normalize(s,this.first,"prepend").reverse(),c=l,u=Array.isArray(c),f=0;for(c=u?c:c[Symbol.iterator]();;){var d;if(u){if(f>=c.length)break;d=c[f++]}else{if((f=c.next()).done)break;d=f.value}var p=d;this.nodes.unshift(p)}for(var h in this.indexes)this.indexes[h]=this.indexes[h]+l.length}return this},t.prototype.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},t.prototype.insertBefore=function(e,t){var n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),o=r,i=Array.isArray(o),a=0;for(o=i?o:o[Symbol.iterator]();;){var s;if(i){if(a>=o.length)break;s=o[a++]}else{if((a=o.next()).done)break;s=a.value}var l=s;this.nodes.splice(e,0,l)}var c=void 0;for(var u in this.indexes)e<=(c=this.indexes[u])&&(this.indexes[u]=c+r.length);return this},t.prototype.insertAfter=function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=n,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var s=a;this.nodes.splice(e+1,0,s)}var l=void 0;for(var c in this.indexes)e<(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},t.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},t.prototype.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))}),this},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.normalize=function(e,t){var r=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(n(659)(e).nodes);else if(Array.isArray(e)){var a=e=e.slice(0),s=Array.isArray(a),l=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var u=c;u.parent&&u.parent.removeChild(u,"ignore")}}else if("root"===e.type){var f=e=e.nodes.slice(0),d=Array.isArray(f),p=0;for(f=d?f:f[Symbol.iterator]();;){var h;if(d){if(p>=f.length)break;h=f[p++]}else{if((p=f.next()).done)break;h=p.value}var m=h;m.parent&&m.parent.removeChild(m,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new o.default(e)]}else if(e.selector){e=[new(n(522))(e)]}else if(e.name){e=[new(n(521))(e)]}else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new i.default(e)]}return e.map(function(e){return"function"!=typeof e.before&&(e=r.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e})},t.prototype.rebuild=function(e,t){var r=this,a=void 0;if("root"===e.type){var s=n(662);a=new s}else if("atrule"===e.type){var l=n(521);a=new l}else if("rule"===e.type){var c=n(522);a=new c}else"decl"===e.type?a=new o.default:"comment"===e.type&&(a=new i.default);for(var u in e)"nodes"===u?a.nodes=e.nodes.map(function(e){return r.rebuild(e,a)}):"parent"===u&&t?a.parent=t:e.hasOwnProperty(u)&&(a[u]=e[u]);return a},r(t,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),t}(a(n(657)).default);t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(661);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,e.call(this,n));return r.type="root",r.nodes||(r.nodes=[]),r}return function(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,e),t.prototype.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},t.prototype.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,a=Array.isArray(i),s=0;for(i=a?i:i[Symbol.iterator]();;){var l;if(a){if(s>=i.length)break;l=i[s++]}else{if((s=i.next()).done)break;l=s.value}l.raws.before=n.raws.before}}return o},t.prototype.toResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(n(853))(new(n(852)),this,e).stringify()},t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i,e.exports=t.default},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(52);e.exports=r(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},function(e,t,n){var r=n(1554);e.exports="function"==typeof Object.assign?Object.assign:r},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,o=[];n<r;)e(t[n])&&(o[o.length]=t[n]),n+=1;return o}},function(e,t,n){var r=n(159),o=n(433),i=n(119)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(420),o="["+n(529)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$");e.exports=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(a,"")),e}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
function n(e){return function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}}e.exports={assign:function(e,t){var r=Object.keys(t).reduce(n(t),{});return Object.keys(e).reduce(n(e),r)},filter:function(e,t){return Object.keys(t).reduce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{})},map:function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=e(t[r]),n},{})}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(297);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(213),o=n(21),i=n(198),a=n(27);e.exports=o(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:i(function(e,n){return r(e,a(n,t))},[],e)})},function(e,t){e.exports=Number.isInteger||function(e){return e<<0===e}},function(e,t,n){t.f=n(119)},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(1)),a=(u(n(96)),u(n(443)),u(n(678))),s=u(n(533)),l=u(n(534)),c=u(n(885));function u(e){return e&&e.__esModule?e:{default:e}}var f={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,spy:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool};t.default=function(e,t){var n=t||s.default,l=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(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}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return u.call(t),t.state={active:!1},t}return function(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)}(s,i.default.PureComponent),o(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e),this.props.hashSpy&&(c.default.isMounted()||c.default.mount(n),c.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var o in f)n.hasOwnProperty(o)&&delete n[o];return n.className=t,n.onClick=this.handleClick,i.default.createElement(e,n)}}]),s}(),u=function(){var e=this;this.scrollTo=function(t,o){n.scrollTo(t,r({},e.state,o))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!c.default.isMounted()||c.default.isInitialized()){var o=e.props.to,i=null,a=0,s=0,l=0;if(r.getBoundingClientRect)l=r.getBoundingClientRect().top;if(!i||e.props.isDynamic){if(!(i=n.get(o)))return;var u=i.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var f=t-e.props.offset,d=f>=Math.floor(a)&&f<Math.floor(s),p=f<Math.floor(a)||f>=Math.floor(s),h=n.getActiveLink();p&&(o===h&&n.setActiveLink(void 0),e.props.hashSpy&&c.default.getHash()===o&&c.default.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(o,i))),!d||h===o&&!1!==e.state.active||(n.setActiveLink(o),e.props.hashSpy&&c.default.changeHash(o),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(o,i)))}}};return l.propTypes=f,l.defaultProps={offset:0},l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(883),i=(r=o)&&r.__esModule?r:{default:r},a=n(679);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e){if(e){var t=function(e){return(0,i.default)(e,66)}(function(t){s.scrollHandler(e)});s.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",t)}},isMounted:function(e){return-1!==s.scrollSpyContainers.indexOf(e)},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(s.currentPositionY(e))})},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var n=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach(function(e){return e()})},unmount:function(e,t){s.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach(function(e){return s.scrollHandler(e)})}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},function(e,t,n){var r=n(214),o=n(182),i=n(535);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(a)?t:i(n)?o(function(t,n){return e(t,a,n)}):i(a)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return i(n)&&i(a)&&i(s)?t:i(n)&&i(a)?o(function(t,n){return e(t,n,s)}):i(n)&&i(s)?o(function(t,n){return e(t,a,n)}):i(a)&&i(s)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,a,s)}):i(a)?r(function(t){return e(n,t,s)}):i(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){var r=n(1721),o=n(892),i=n(1723);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}var l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=o(e)),r(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return s(e,t,n,"fantasy-land/reduce");if(null!=n[l])return a(e,t,n[l]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return s(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t,n){"use strict";(function(t){var r=n(200),o=n(1736),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n(899):void 0!==t&&(s=n(899)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){l.headers[e]={}}),r.forEach(["post","put","patch"],function(e){l.headers[e]=r.merge(i)}),e.exports=l}).call(this,n(258))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(297),o=n(1751);e.exports=function(e){return o(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(904),o=n(905),i=n(906).type("Async"),a=n(1757),s=n(907),l=n(1761),c=n(1762),u=n(686),f=n(1763),d=n(260),p=n(1764),h=n(908),m=function(e){return e.reduce(function(e,t){return e&&h(g,t)},!0)},v=function(e){return g(function(t,n){return n(e)})};function g(e,t){if(!d(e))throw new TypeError("Async: Function required");var n,r=s(function(){n=!0},d(t)?t:c);function a(t,o,i){if(!d(t)||!d(o))throw new TypeError("Async.fork: Reject and resolve functions required");var a=d(i)?i:c;return e(function(e){return n?c():t(e)},function(e){return n?c():o(e)}),l(s(a,r))}return{fork:a,toPromise:function(){return new Promise(function(e,t){a(t,e)})},inspect:function(){return"Async"+o(e)},type:i,swap:function(e,t){if(!d(e)||!d(t))throw new TypeError("Async.swap: Functions required for both arguments");return g(function(n,r){a(s(r,e),s(n,t))},r)},coalesce:function(e,t){if(!d(e)||!d(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return g(function(n,r){a(s(r,e),s(r,t))},r)},map:function(e){if(!d(e))throw new TypeError("Async.map: Function required");return g(function(t,n){a(t,s(n,e))},r)},bimap:function(e,t){if(!d(e)||!d(t))throw new TypeError("Async.bimap: Functions required for both arguments");return g(function(n,r){a(s(n,e),s(r,t))},r)},alt:function(e){var t=c;if(!h(g,e))throw new TypeError("Async.alt: Async required");return g(function(n,r){a(function(){t=e.fork(n,r)},r)},l(function(){return t(r())}))},ap:function(e){var t,n,o=!1,i=!1,u=c;if(!h(g,e))throw new TypeError("Async.ap: Async required");return g(function(r,c){var f=l(r);function p(){o&&i&&s(c,t)(n)}a(f,function(e){if(!d(e))throw new TypeError("Async.ap: Wrapped value must be a function");o=!0,t=e,p()}),u=e.fork(f,function(e){i=!0,n=e,p()})},l(function(){u(r())}))},chain:function(e){var t=c;if(!d(e))throw new TypeError("Async.chain: Async returning function required");return g(function(n,r){a(n,function(o){var i=e(o);if(!h(g,i))throw new TypeError("Async.chain: Function must return another Async");t=i.fork(n,r)})},l(function(){t(r())}))},of:v,constructor:g}}g.type=i,g.of=v,g.Rejected=function(e){return g(function(t){return t(e)})},g.Resolved=v,g.fromPromise=function(e){if(!d(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return g(function(n,r){var o=e.apply(null,t);if(!p(o))throw new TypeError("Async.fromPromise: Promise returning function required");o.then(r).catch(n)})}},g.fromNode=function(e,t){if(!d(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return g(function(r,o){e.apply(t,n.concat(function(e,t){return e?r(e):o(t)}))})}},g.all=function(e){if(!f(e)||!m(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return u(e)?a.sequence(g.of,e):e.sequence(g.of)},g["@@implements"]=r(["alt","ap","bimap","chain","map","of"]),e.exports=g},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t,n){var r=n(337),o=n(1777),i=r(function(e){return o(e.length,e)});e.exports=i},function(e,t,n){var r=n(261)("socket.io-parser"),o=n(371),i=n(915),a=n(1784),s=n(916);function l(){}function c(e){var n=""+e.type;return t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data&&(n+=JSON.stringify(e.data)),r("encoded %j as %s",e,n),n}function u(){this.reconstructor=null}function f(e){this.reconPack=e,this.buffers=[]}function d(){return{type:t.ERROR,data:"parser error"}}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=l,t.Decoder=u,l.prototype.encode=function(e,n){(e.type!==t.EVENT&&e.type!==t.ACK||!i(e.data)||(e.type=e.type===t.EVENT?t.BINARY_EVENT:t.BINARY_ACK),r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){a.removeBlobs(e,function(e){var n=a.deconstructPacket(e),r=c(n.packet),o=n.buffers;o.unshift(r),t(o)})}(e,n):n([c(e)])},o(u.prototype),u.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return d();if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var i="";"-"!==e.charAt(++n)&&(i+=e.charAt(n),n!=e.length););if(i!=Number(i)||"-"!==e.charAt(n))throw new Error("Illegal attachments");o.attachments=Number(i)}if("/"===e.charAt(n+1))for(o.nsp="";++n;){var a=e.charAt(n);if(","===a)break;if(o.nsp+=a,n===e.length)break}else o.nsp="/";var s=e.charAt(n+1);if(""!==s&&Number(s)==s){for(o.id="";++n;){var a=e.charAt(n);if(null==a||Number(a)!=a){--n;break}if(o.id+=e.charAt(n),n===e.length)break}o.id=Number(o.id)}e.charAt(++n)&&(o=function(e,t){try{e.data=JSON.parse(t)}catch(e){return d()}return e}(o,e.substr(n)));return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new f(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},u.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},f.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},f.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){(function(t){var r=n(1788);e.exports=function(e){var n=e.xdomain,o=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!o&&i)return new XDomainRequest}catch(e){}if(!n)try{return new(t[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}).call(this,n(71))},function(e,t,n){var r=n(372),o=n(371);function i(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=i,o(i.prototype),i.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},i.prototype.onPacket=function(e){this.emit("packet",e)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){var r=n(444),o=n(693),i=n(183);e.exports=function(e,t,n){if(!i(n))return!1;var a=typeof t;if("number"==a?r(n)&&o(t,n.length):"string"==a&&t in n){var s=n[t];return e==e?e===s:s!=s}return!1}},function(e,t,n){var r=n(926)("length");e.exports=r},function(e,t){var n=/^\d+$/,r=9007199254740991;e.exports=function(e,t){return e="number"==typeof e||n.test(e)?+e:-1,t=null==t?r:t,e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(62),o=n(242),i=n(20);e.exports=r(function(e,t,n){return o(i(t),e,n)})},function(e,t,n){var r=n(1829);e.exports=function(e,t){var n=null==e?void 0:e[t];return r(n)?n:void 0}},function(e,t,n){var r=n(444),o=n(374),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=function(e){return o(e)&&r(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},function(e,t,n){var r=n(571);e.exports=function(e,t,n){if("function"!=typeof e)return r;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(62),o=n(168);e.exports=r(function(e,t,n){var r,i={};for(r in t)o(r,t)&&(i[r]=o(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)o(r,n)&&!o(r,i)&&(i[r]=n[r]);return i})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(369),o=n(297);e.exports=function(e){return r(e)||!!e&&o("concat",e)}},function(e,t,n){var r=n(263);e.exports=function(e,t,n){if(null!=e){void 0!==n&&n in r(e)&&(t=[n]);for(var o=0,i=t.length;null!=e&&o<i;)e=e[t[o++]];return o&&o==i?e:void 0}}},function(e,t,n){var r=n(373),o=n(262),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g;e.exports=function(e){if(o(e))return e;var t=[];return r(e).replace(i,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.createPortalContainer=function(e){var t=document.createElement(e);return document.body.appendChild(t),t},t.removePortalContainer=function(e){document.body.removeChild(e)},t.fetchImage=function(e,t){var n=e.src,r=e.srcSet,o=e.sizes,i=new Image;i.addEventListener("load",function e(){t(i),i.removeEventListener("load",e)}),i.src=n,r&&(i.srcset=r),o&&(i.sizes=o)};var r=t.getScale=function(e){var t=e.width,n=e.height,r=e.zoomMargin,o=window.innerWidth/(t+r),i=window.innerHeight/(n+r);return Math.min(o,i)};t.getMaxDimensionScale=function(e){var t=e.width,n=e.height,o=e.naturalWidth,i=e.naturalHeight,a=e.zoomMargin,s=r({width:o,height:i,zoomMargin:a}),l=o>i?o/t:i/n;return s>1?l:s*l},t.isMaxDimension=function(e){return e.clientWidth>=e.naturalWidth||e.clientHeight>=e.naturalHeight}},function(e,t,n){var r=n(339),o="[object String]",i=Object.prototype.toString;e.exports=function(e){return"string"==typeof e||r(e)&&i.call(e)==o}},function(e,t,n){var r=n(1951);e.exports=function(e,t){var n=null==e?void 0:e[t];return r(n)?n:void 0}},function(e,t,n){var r=n(940),o=n(547),i=n(549),a=n(942),s=n(706),l=n(447),c=n(300),u=n(703),f=n(548),d="[object Error]",p="[object Object]",h="[object String]",m=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],v=Error.prototype,g=Object.prototype,y=String.prototype,b=g.hasOwnProperty,_=g.toString,w={};w["[object Array]"]=w["[object Date]"]=w["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},w["[object Boolean]"]=w[h]={constructor:!0,toString:!0,valueOf:!0},w[d]=w["[object Function]"]=w["[object RegExp]"]={constructor:!0,toString:!0},w[p]={constructor:!0},r(m,function(e){for(var t in w)if(b.call(w,t)){var n=w[t];n[e]=b.call(n,e)}}),e.exports=function(e){if(null==e)return[];c(e)||(e=Object(e));var t=e.length;t=t&&l(t)&&(i(e)||o(e)||u(e))&&t||0;for(var n=e.constructor,r=-1,E=a(n)&&n.prototype||g,x=E===e,k=Array(t),S=t>0,T=f.enumErrorProps&&(e===v||e instanceof Error),C=f.enumPrototypes&&a(e);++r<t;)k[r]=r+"";for(var O in e)C&&"prototype"==O||T&&("message"==O||"name"==O)||S&&s(O,t)||"constructor"==O&&(x||!b.call(e,O))||k.push(O);if(f.nonEnumShadows&&e!==g){var j=e===y?h:e===v?d:_.call(e),A=w[j]||w[p];for(j==p&&(E=g),t=m.length;t--;){var N=A[O=m[t]];x&&N||(N?!b.call(e,O):e[O]===E[O])||k.push(O)}}return k}},function(e,t){var n=/^\d+$/,r=9007199254740991;e.exports=function(e,t){return e="number"==typeof e||n.test(e)?+e:-1,t=null==t?r:t,e>-1&&e%1==0&&e<t}},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(1974)),o=p(n(108)),i=n(708),a=h(n(184)),s=h(n(141)),l=h(n(709)),c=n(551),u=h(n(954)),f=h(n(265)),d=p(n(154));function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}function m(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}var v=function(e,t){var n=new s.default.WebVTT.Parser(s.default,s.default.vttjs,s.default.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(s.default.console&&s.default.console.groupCollapsed&&s.default.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return a.default.error(e)}),s.default.console&&s.default.console.groupEnd&&s.default.console.groupEnd()),n.flush()},g=function(e,t){var n={uri:e},r=(0,c.isCrossOrigin)(e);r&&(n.cors=r),(0,u.default)(n,o.bind(this,function(e,n,r){if(e)return a.default.error(e,n);var o;t.loaded_=!0,"function"!=typeof s.default.WebVTT?t.tech_&&(o=function(){return v(r,t)},t.tech_.on("vttjsloaded",o),t.tech_.on("vttjserror",function(){a.default.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",o)})):v(r,t)}))},y=function(e){function t(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!a.tech)throw new Error("A tech was not provided.");var s=(0,f.default)(a,{kind:i.TextTrackKind[a.kind]||"subtitles",language:a.language||a.srclang||""}),l=i.TextTrackMode[s.mode]||"disabled",c=s.default;"metadata"!==s.kind&&"chapters"!==s.kind||(l="hidden");var u=n=m(this,e.call(this,s));if(u.tech_=s.tech,d.IS_IE8)for(var p in t.prototype)"constructor"!==p&&(u[p]=t.prototype[p]);u.cues_=[],u.activeCues_=[];var h=new r.default(u.cues_),v=new r.default(u.activeCues_),y=!1,b=o.bind(u,function(){this.activeCues,y&&(this.trigger("cuechange"),y=!1)});return"disabled"!==l&&u.tech_.on("timeupdate",b),Object.defineProperty(u,"default",{get:function(){return c},set:function(){}}),Object.defineProperty(u,"mode",{get:function(){return l},set:function(e){i.TextTrackMode[e]&&("showing"===(l=e)&&this.tech_.on("timeupdate",b),this.trigger("modechange"))}}),Object.defineProperty(u,"cues",{get:function(){return this.loaded_?h:null},set:function(){}}),Object.defineProperty(u,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return v;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var o=this.cues[n];o.startTime<=e&&o.endTime>=e?t.push(o):o.startTime===o.endTime&&o.startTime<=e&&o.startTime+.5>=e&&t.push(o)}if(y=!1,t.length!==this.activeCues_.length)y=!0;else for(var i=0;i<t.length;i++)-1===this.activeCues_.indexOf(t[i])&&(y=!0);return this.activeCues_=t,v.setCues_(this.activeCues_),v},set:function(){}}),s.src?(u.src=s.src,g(s.src,u)):u.loaded_=!0,m(n,u)}return function(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,e),t.prototype.addCue=function(e){var t=this.tech_.textTracks();if(t)for(var n=0;n<t.length;n++)t[n]!==this&&t[n].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var t=!1,n=0,r=this.cues_.length;n<r;n++){this.cues_[n]===e&&(this.cues_.splice(n,1),t=!0)}t&&this.cues.setCues_(this.cues_)},t}(l.default);y.prototype.allowedEvents_={cuechange:"cuechange"},t.default=y},function(e,t,n){"use strict";t.__esModule=!0;t.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},t.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},t.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},t.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(154)),o=a(n(129)),i=s(n(375));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(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}var c=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=l(this,e.call(this)),s=a;if(r.IS_IE8)for(var c in s=o.default.createElement("custom"),t.prototype)"constructor"!==c&&(s[c]=t.prototype[c]);var u={id:n.id||"vjs_track_"+i.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""},f=function(e){Object.defineProperty(s,e,{get:function(){return u[e]},set:function(){}})};for(var d in u)f(d);return l(a,s)}return function(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,e),t}(a(n(550)).default);t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(550)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154)),i=a(n(129));function a(e){return e&&e.__esModule?e:{default:e}}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}var l=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=s(this,e.call(this));if(!r&&(r=a,o.IS_IE8))for(var l in r=i.default.createElement("custom"),t.prototype)"constructor"!==l&&(r[l]=t.prototype[l]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var c=0;c<n.length;c++)r.addTrack_(n[c]);return s(a,r)}return function(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,e),t.prototype.addTrack_=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack_=function(e){for(var t=void 0,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===e){t=o;break}}return t},t}(r.default);for(var c in l.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},l.prototype.allowedEvents_)l.prototype["on"+c]=null;t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r},a=c(n(124)),s=c(n(108)),l=c(n(264));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var u=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.focusedChild_=-1,o.on("keydown",o.handleKeyPress),o}return function(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,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",s.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=a.createEl(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.setAttribute("role","presentation"),n.appendChild(this.contentEl_),l.on(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(i.default);i.default.registerComponent("Menu",u),t.default=u},function(e,t,n){var r=n(2141),o=n(456);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(341)(n(266),"Map");e.exports=r},function(e,t,n){var r=n(2158),o=n(2165),i=n(2167),a=n(2168),s=n(2169);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(1103),o=n(715);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(2204),o=n(2207),i=n(2218),a=n(267),s=n(2219);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(267),o=n(563),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(21),o=n(137),i=n(860),a=n(2314),s=n(27);e.exports=r(o(["fantasy-land/chain","chain"],a,function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:i(!1)(s(e,t))}))},function(e,t,n){var r=n(21),o=n(137),i=n(2328),a=n(201);e.exports=r(o(["take"],i,function(e,t){return a(0,e<0?1/0:e,t)}))},function(e,t,n){var r=n(566),o=n(21);e.exports=o(function(e,t){for(var n,o=0,i=t.length,a=[];o<i;)n=t[o],r(e,n,a)||(a[a.length]=n),o+=1;return a})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(440),o=n(441),i=n(298).type("IO"),a=n(335),s=n(94),l=n(199),c=function(e){return u(function(){return e})};function u(e){if(!s(e))throw new TypeError("IO: Must wrap a function");function t(t){if(!s(t))throw new TypeError("IO.chain: Function required");return u(function(){var n=t(e());if(!l(u,n))throw new TypeError("IO.chain: Function must return an IO");return n.run()})}return{inspect:function(){return"IO"+o(e)},run:e,type:i,map:function(t){if(!s(t))throw new TypeError("IO.map: Function required");return u(a(t,e))},ap:function(e){if(!l(u,e))throw new TypeError("IO.ap: IO required");return t(function(t){return e.map(t)})},of:c,chain:t}}u.of=c,u.type=i,u["@@implements"]=r(["ap","chain","map","of"]),e.exports=u},function(e,t,n){var r=n(62),o=n(35),i=n(25);e.exports=r(function(e,t,n){return o(i(e,n),t)})},function(e,t,n){var r=n(62),o=n(35);e.exports=r(function(e,t,n){return o(t[e],n[e])})},function(e,t,n){var r=n(21),o=n(35),i=n(27),a=n(882);e.exports=r(function(e,t){return a(i(o,e),t)})},function(e,t,n){var r=n(89);e.exports=r(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})},function(e,t,n){var r=n(1780),o=n(688),i=n(917),a=n(261)("socket.io-client");e.exports=t=l;var s=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),l=o.source,c=o.id,u=o.path,f=s[c]&&u in s[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(a("ignoring socket cache for %s",l),n=i(l,t)):(s[c]||(a("new io instance for %s",l),s[c]=i(l,t)),n=s[c]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=l,t.Manager=n(917),t.Socket=n(922)},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){var r=e(t),o=e(n);return r>o?-1:r<o?1:0})},function(e,t,n){var r=n(213),o=n(21),i=n(5),a=n(458);e.exports=o(i(a,r))},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=e.length,r=[],o=0;o<n;)r[o]=t[e[o]],o+=1;return r})},function(e,t,n){var r=n(21),o=n(57);e.exports=r(function(e,t){return o(e,function(){for(var n,r=1,o=t,i=0;r<=e&&"function"==typeof o;)n=r===e?arguments.length:i+o.length,o=o.apply(this,Array.prototype.slice.call(arguments,i,n)),r+=1,i=n;return o})})},function(e,t,n){var r=n(20);e.exports=r(!1)},function(e,t,n){var r=n(52),o=n(57),i=n(240),a=n(215),s=n(73);e.exports=r(function(e){return o(s(i,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n})},function(e,t){e.exports=function(e){var t=e?e.length:0;return t?e[t-1]:void 0}},function(e,t,n){var r=n(432),o=n(21);e.exports=o(r("forEach",function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t}))},function(e,t,n){var r=n(21),o=n(137),i=n(1937);e.exports=r(o([],i,function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}))},function(e,t,n){"use strict";var r;t.__esModule=!0;"function"==typeof Symbol&&Symbol.iterator;var o=j(n(141)),i=j(n(129)),a=O(n(1945)),s=O(n(938)),l=j(n(48)),c=j(n(550)),u=O(n(264)),f=j(n(945)),d=j(n(2027)),p=j(n(265)),h=O(n(108)),m=j(n(707)),v=j(n(2028)),g=j(n(2029)),y=n(448),b=j(n(302)),_=j(n(184)),w=O(n(124)),E=O(n(154)),x=O(n(551)),k=j(n(2030)),S=j(n(939)),T=j(n(954)),C=j(n(449));function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),A.getPlayers()[e])return t&&_.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&A.getPlayers()[e].ready(n),A.getPlayers()[e];r=w.getEl(e)}else r=e;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||f.default.players[r.playerId]||new f.default(r,t,n)}if("undefined"==typeof HTMLVideoElement&&o.default.document&&o.default.document.createElement&&(i.default.createElement("video"),i.default.createElement("audio"),i.default.createElement("track")),!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){var N=w.$(".vjs-styles-defaults");if(!N){N=s.createStyleElement("vjs-styles-defaults");var M=w.$("head");M&&M.insertBefore(N,M.firstChild),s.setTextContent(N,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}a.autoSetupTimeout(1,A),A.VERSION="5.12.6",A.options=f.default.prototype.options_,A.getPlayers=function(){return f.default.players},A.players=f.default.players,A.getComponent=l.default.getComponent,A.registerComponent=function(e,t){C.default.isTech(t)&&_.default.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),l.default.registerComponent.call(l.default,e,t)},A.getTech=C.default.getTech,A.registerTech=C.default.registerTech,A.browser=E,A.TOUCH_ENABLED=E.TOUCH_ENABLED,A.extend=k.default,A.mergeOptions=p.default,A.bind=h.bind,A.plugin=d.default,A.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),(0,S.default)(A.options.languages,(n={},n[e]=t,n))[e]},A.log=_.default,A.createTimeRange=A.createTimeRanges=y.createTimeRanges,A.formatTime=b.default,A.parseUrl=x.parseUrl,A.isCrossOrigin=x.isCrossOrigin,A.EventTarget=c.default,A.on=u.on,A.one=u.one,A.off=u.off,A.trigger=u.trigger,A.xhr=T.default,A.TextTrack=m.default,A.AudioTrack=v.default,A.VideoTrack=g.default,A.isEl=w.isEl,A.isTextNode=w.isTextNode,A.createEl=w.createEl,A.hasClass=w.hasElClass,A.addClass=w.addElClass,A.removeClass=w.removeElClass,A.toggleClass=w.toggleElClass,A.setAttributes=w.setElAttributes,A.getAttributes=w.getElAttributes,A.emptyEl=w.emptyEl,A.appendContent=w.appendContent,A.insertContent=w.insertContent,void 0===(r=function(){return A}.apply(t,[]))||(e.exports=r),t.default=A},function(e,t,n){var r=n(437);e.exports=r(0,"toUpperCase")},function(e,t,n){var r=n(52);e.exports=r(function(e){return-e})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2078))&&r.__esModule?r:{default:r};var i=function(e){return e?parseFloat((parseInt(e,16)/255).toFixed(2)):1},a=function(e){var t=(0,o.default)(e),n=t.slice(0,6),r=t.slice(6),a=parseInt(n,16);return[a>>16&255,a>>8&255,a>>0&255,i(r)]};t.default=a},function(e,t,n){var r=n(198),o=n(855),i=n(57);e.exports=i(4,function(e,t,n,i){return r(e("function"==typeof t?o(t):t),n,i)})},function(e,t,n){e.exports=n(1466)},function(e,t,n){e.exports=n(1620)},function(e,t,n){e.exports=n(1641)},function(e,t,n){"use strict";var r=n(586);t.a=r.a},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(34),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=n(53),f=n.n(u),d=n(1155),p=n(314),h=n(606),m=n(82),v=Object(h.a)(d.a),g=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"displayFlex",value:function(e){e.css({display:"flex"})}},{key:"componentDidMount",value:function(){var e=this;f()(".page__content").addClass("page__content--appear");var t=f()("[data-page]:first-child [data-previous-lesson]"),n=document.getElementsByClassName("page-wrap");t.length>0?o()(function(){var r=t.height();e.displayFlex(t),f()(n).scrollTop(r),f()("[data-lesson-header]").css({top:r})},50):f()(n).scrollTop(0)}},{key:"componentWillEnter",value:function(e){var t=document.querySelector("[data-overview-sidebar-content]"),n="overview-sidebar__content--will-enter",r="overview-sidebar__content--will-enter-active";t.classList.add(n),o()(function(){t.classList.add(r)},10),o()(function(){t.classList.remove(n,r),e()},2e3)}},{key:"render",value:function(){return e.createElement(m.TransitionGroup,{className:"transition-group"},e.createElement(p.a,null,e.createElement(v,this.props)))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){e.exports=n(1849)},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return pe}),n.d(t,"a",function(){return be});var r=n(32),o=n(33),i=n.n(o),a=n(15),s=n(3),l=n.n(s),c=n(17),u=n.n(c),f=n(4),d=n.n(f),p=n(170),h=n.n(p),m=n(6),v=n(160),g=n.n(v),y=n(9),b=n(7),_=n(10),w=n(8),E=n(11),x=(n(1936),n(0)),k=n.n(x),S=n(305),T=n.n(S),C=n(43),O=n.n(C),j=n(273),A=n.n(j),N=n(102),M=n.n(N),I=n(241),L=n.n(I),P=n(737),D=n.n(P),R=n(41),F=n.n(R),B=n(89),U=n.n(B),q=n(28),z=n.n(q),H=n(18),W=n.n(H),$=n(175),Y=n(40),K=n(2),V=n.n(K),G=n(111),X=n(593),Z=n(64),Q=n(278),J=n.n(Q),ee=n(1180),te=n.n(ee),ne=n(139),re=n.n(ne),oe=n(60),ie=n(46),ae=n(88),se=n(55),le=n(42),ce=n(24),ue=n(22),fe=n(63),de=n(78),pe=function(t){function n(){return Object(y.a)(this,n),Object(_.a)(this,Object(w.a)(n).apply(this,arguments))}return Object(E.a)(n,t),Object(b.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.blockId,o=t.editable,i=t.isLearner,a=t.items,s=t.labels.accordionGroup,l=t.lessonId,c=t.onStep,u=t.settings,f=u.paddingTop,d=u.paddingBottom,p=u.backgroundColor,h=u.entranceAnimation,m=u.accordionBehavior,v=void 0===m?"keepOpen":m,g=V()("blocks-accordion",{"blocks-accordion--no-animation":!h}),y={backgroundColor:Object(Z.a)("",p),paddingTop:"".concat(10*f,"px"),paddingBottom:"".concat(10*d,"px")};return e.createElement("div",{className:g,style:y},e.createElement(se.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:i,duration:.75},e.createElement("div",{className:"blocks-accordion__container"},e.createElement("div",{className:"blocks-accordion__row"},e.createElement("div",{"aria-label":s,className:"blocks-accordion__col"},e.createElement(ve,{keepOpen:"keepOpen"===v,lessonId:l,blockId:r,items:a,editable:o,settings:u,onStep:c}))))))}}],[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array,settings:k.a.object.isRequired,editable:k.a.bool,onStep:k.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),n}(e.Component),he={isOpen:!1,isActive:!1},me=function(e,t){return h()(t).call(t,function(e){return function(t,n){var r=n.id;return g()({},t,Object(m.a)({},r,e[r]||he))}}(e),{})},ve=function(t){function n(){var e,t,r;Object(y.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=(r=Object(_.a)(this,(e=Object(w.a)(n)).call.apply(e,d()(t=[this]).call(t,i)))).props.items;return r.state={itemStatusMap:me({},s)},r}return Object(E.a)(n,t),Object(b.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array,settings:k.a.object.isRequired,editable:k.a.bool,keepOpen:k.a.bool,onStep:k.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",keepOpen:!1,onStep:Function.prototype}}}]),Object(b.a)(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.items,n=O()(t)!==O()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference(t):n&&this.rebuildItemStatusMap(t)}},{key:"updateMapForOneAtATimePreference",value:function(){var e=this.state.itemStatusMap,t=this.props.items,n=D()(function(t){return e[t.id].isOpen},t);if(n){var r,o=(r=n.id,function(e,t){return{isOpen:t==r,isActive:e.isActive}});this.setState({itemStatusMap:M()(o,e)})}}},{key:"rebuildItemStatusMap",value:function(e){var t=this.state.itemStatusMap;this.setState({itemStatusMap:me(t,e)})}},{key:"handleItemClick",value:function(e){var t=this.props,n=t.items,r=t.keepOpen,o=t.onStep,i=this.state.itemStatusMap,a=function(e,t){return function(n,r){var o=e==r,i=o?!n.isOpen:n.isOpen,a=o&&!n.isOpen;return{isOpen:t?i:a,isActive:o}}}(n[e].id,r);this.setState({itemStatusMap:M()(a,i)}),open&&o(n[e])}},{key:"render",value:function(){var t=this,n=this.props,r=n.items,o=n.settings,i=n.editable,a=n.labels,s=n.lessonId,c=n.blockId,f=this.state.itemStatusMap,d=o.zoomOnClick;return e.createElement("div",{className:"blocks-accordion__wrapper"},u()(r).call(r,function(n,r){var o;return e.createElement(ge,{blockId:c,disableZoom:!d,editable:i,focused:f[n.id].isActive,index:r,item:n,key:n.id,labels:a,lessonId:s,onClick:l()(o=t.handleItemClick).call(o,t,r),open:f[n.id].isOpen})}))}}]),n}(e.Component),ge=function(t){function n(){var e,t,r,o;Object(y.a)(this,n);for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return(o=Object(_.a)(this,(e=Object(w.a)(n)).call.apply(e,d()(t=[this]).call(t,s)))).toggle=l()(r=o.toggle).call(r,Object(a.a)(o)),o}return Object(E.a)(n,t),Object(b.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,index:k.a.number.isRequired,item:k.a.object.isRequired,editable:k.a.bool,open:k.a.bool,focused:k.a.bool,disableZoom:k.a.bool,onClick:k.a.func,labels:k.a.object}}},{key:"defaultProps",get:function(){return{editable:!1,onClick:function(){},lessonId:"",blockId:"",open:null}}}]),Object(b.a)(n,[{key:"componentDidUpdate",value:function(){if(this.props.open){var e=this.content;e&&(e.offsetHeight,e.classList.add("blocks-accordion__content--visible"))}}},{key:"handleTitleChange",value:function(e,t){var n=t.target.value,r=this.props,o=r.lessonId,i=r.blockId;Object(oe.a)(Object(ie.k)({lessonId:o,blockId:i,itemId:e,payload:{title:n}}))}},{key:"handleDescriptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(oe.a)(Object(ie.k)({lessonId:r,blockId:o,itemId:e,payload:{description:t}}))}},{key:"handleTitleClick",value:function(e){e.stopPropagation()}},{key:"toggle",value:function(e){Y.a.pause(),this.props.onClick(),e.preventDefault()}},{key:"render",value:function(){var t,n,r,o,i=this,a=this.props,s=a.blockId,c=a.editable,u=a.disableZoom,f=a.index,p=a.item,h=a.focused,m=a.labels,v=a.open,y=p.title,b=p.settings,_=void 0===b?{}:b,w=p.media,E=void 0===w?{}:w,x=p.description,k=void 0===x?"":x,S=p.id,T=g()({},_,{disableZoom:u,fullEmbed:!0}),C=V()("blocks-accordion__item",{"blocks-accordion__item--closed":!v}),O=V()("blocks-accordion__header",{"brand--border":v&&h}),j=V()("blocks-accordion__content",{"blocks-accordion__content--will-enter":v,"brand--border":v&&h}),A=V()("blocks-accordion__media","blocks-accordion__".concat(ye(E))),N="title-".concat(S),M="panel-".concat(S);return e.createElement("section",{className:C},e.createElement("div",{role:fe.b},e.createElement("div",{"aria-controls":M,"aria-expanded":v,"aria-labelledby":N,className:O,onClick:this.toggle,onKeyDown:!c&&Object(ce.a)(this.toggle)||null,role:"button",tabIndex:ue.a},c?e.createElement("input",{id:S,className:"blocks-accordion__title brand--head brand--linkColor",type:"text",value:y,placeholder:"Add a title",ref:function(e){i.editor=e},onClick:l()(t=this.handleTitleClick).call(t,this),onChange:l()(n=this.handleTitleChange).call(n,this,S)}):e.createElement(le.a,{className:"blocks-accordion__title brand--head brand--linkColor",value:y}),e.createElement("span",{className:"blocks-accordion__toggler"},v?"–":"+"))),e.createElement("section",{"aria-labelledby":N,className:j,id:M,ref:function(e){i.content=e}},e.createElement(ae.a,{className:"blocks-accordion__description brand--body brand--linkColor",value:k||"",placeholder:"Add a description",onChange:l()(r=this.handleDescriptionChange).call(r,this,S),component:"div",editable:c}),e.createElement("div",{className:A},e.createElement($.a,{className:"blocks-accordion__img",index:d()(o="".concat(s,"-")).call(o,f),labels:m,media:E,opts:T}))))}}]),n}(e.Component),ye=function(e){var t=e.image,n=e.embed,r=e.video,o=e.audio;return t?"image":n?"embed":r?"video":o?"audio":"image"},be=function(t){function n(){var e,t,r;Object(y.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=(r=Object(_.a)(this,(e=Object(w.a)(n)).call.apply(e,d()(t=[this]).call(t,i)))).props.activeIndex;return r.state={activeIndex:s,activeTouch:!1,activeMouse:!1},r.tabs=[],r.tabPanels=[],r}return Object(E.a)(n,t),Object(b.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array,settings:k.a.object.isRequired,activeIndex:k.a.number,editable:k.a.bool,onStep:k.a.func}}},{key:"defaultProps",get:function(){return{items:[],activeIndex:0,lessonId:"",blockId:"",onStep:Function.prototype}}}]),Object(b.a)(n,[{key:"componentDidMount",value:function(){var e,t;this.setContentActive(),this.handleControls(),this.tabsHeaderEl.addEventListener("scroll",this.tabScroll=re()(l()(e=this.handleControls).call(e,this),50)),window.addEventListener("resize",this.tabResize=re()(l()(t=this.handleControls).call(t,this),100))}},{key:"componentDidUpdate",value:function(){this.setContentActive(),this.handleControls()}},{key:"componentWillUnmount",value:function(){this.sweetScroll&&this.sweetScroll.destroy(),this.tabsHeaderEl.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize)}},{key:"setContentActive",value:function(){var e=this.container.querySelector(".blocks-tabs__content-item--will-enter");e&&(e.offsetHeight,e.classList.add("blocks-tabs__content-item--active"))}},{key:"setActive",value:function(e,t){t.preventDefault(),this.setState({activeIndex:e}),Y.a.pause(),this.props.onStep(this.props.items[e])}},{key:"handleDescriptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(oe.a)(Object(ie.k)({lessonId:r,blockId:o,itemId:e,payload:{description:t}}))}},{key:"handleControls",value:function(){this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(0===this.tabsHeaderEl.scrollLeft?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}},{key:"handleMouseEnter",value:function(){this.state.activeTouch||this.setState({activeMouse:!0})}},{key:"handleMouseLeave",value:function(){this.setState({activeMouse:!1})}},{key:"handleTouchStart",value:function(){this.setState({activeTouch:!0})}},{key:"scrollTabs",value:function(e){var t=this.tabsHeaderEl.offsetWidth,n=this.tabsHeaderEl.scrollLeft,r={};this.sweetScroll||(this.sweetScroll=new te.a({duration:600,verticalScroll:!1,horizontalScroll:!0},this.tabsHeaderEl)),r="next"===e?{left:n+.8*t}:{left:n-.8*t},this.sweetScroll.to(r)}},{key:"arrowPrevInset",value:function(e){var t=this.arrowPrevEl.getBoundingClientRect();return t.right-e+(t.left-e)}},{key:"focusTab",value:function(e){var t=e.target,n=document.querySelector(".blocks-tabs__header"),r=n.getBoundingClientRect(),o=r.left,i=r.right,a=t.getBoundingClientRect(),s=a.left;if(a.right>i||s<o){var l=this.arrowPrevInset(o);n.scrollLeft=s+n.scrollLeft-o-l}}},{key:"handleTabKeyDown",value:function(e,t){var n=this,r=Object(de.a)(function(){var r=Object(ue.g)({list:n.tabs,currentIndex:e});n.setActive(r,t)}),o=Object(de.a)(function(){var r=Object(ue.f)({list:n.tabs,currentIndex:e});n.setActive(r,t)});F()([[ce.f,r],[ce.h,o]])(t)}},{key:"renderHeader",value:function(t){var n,r,o,i,a,s=this,c=this.state,f=c.activeIndex,d=c.activeTouch,p=c.activeMouse,h=V()("blocks-tabs__header-wrap",{touch:d,mouse:p});return e.createElement("div",{className:h,onMouseEnter:l()(n=this.handleMouseEnter).call(n,this),onMouseLeave:l()(r=this.handleMouseLeave).call(r,this),onTouchStart:l()(o=this.handleTouchStart).call(o,this)},e.createElement("div",{className:"blocks-tabs__header",id:"tabsheader",ref:function(e){s.tabsHeaderEl=e},role:fe.h},u()(t).call(t,function(n,r){var o,i,a,c=n.title,u=1===t.length||r===f,d=V()("blocks-tabs__header-item brand--head",{"brand--color":u,"blocks-tabs__header-item--active":u}),p=W()(A()(/<mark>/),O.a,L()(13),T()(30))(c),h=W()(G.b,z()(U()(X.a))(p),function(e){return"<span>".concat(e,"</span>")})(c),m="item-header-".concat(r),v=s.tabPanels[r];return e.createElement("a",{"aria-controls":v?v.id:null,"aria-selected":u,className:d,dangerouslySetInnerHTML:{__html:h},href:"#",id:m,key:m,onClick:l()(o=s.setActive).call(o,s,r),onKeyDown:l()(i=s.handleTabKeyDown).call(i,s,r),onFocus:l()(a=s.focusTab).call(a,s),ref:function(e){s.tabs[r]=e},role:fe.j,tabIndex:Object(ue.l)(u)})})),e.createElement("div",{className:"blocks-tabs__controls",ref:function(e){s.tabControls=e}},e.createElement("div",{className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",ref:function(e){s.arrowPrevEl=e},onClick:l()(i=this.scrollTabs).call(i,this,"previous")},e.createElement("i",{className:"icon icon-chevron-left"})),e.createElement("div",{className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",ref:function(e){s.arrowNextEl=e},onClick:l()(a=this.scrollTabs).call(a,this,"next")},e.createElement("i",{className:"icon icon-chevron-right"}))))}},{key:"renderItem",value:function(t,n,r){var o,i,a=this,s=this.props,c=s.editable,u=s.blockId,f=this.state.activeIndex===n,p=t.id,h=t.description,m=t.media,v=void 0===m?{}:m,y=t.settings,b=void 0===y?{}:y,_=V()("blocks-tabs__content-item",{"blocks-tabs__content-item--will-enter":f}),w=g()({},b,{disableZoom:r,fullEmbed:!0}),E=this.tabs[n],x="item-".concat(p);return e.createElement("div",{"aria-labelledby":E?E.id:null,className:_,id:x,key:x,ref:function(e){a.tabPanels[n]=e},role:fe.i},e.createElement(ae.a,{className:"blocks-tabs__description brand--body brand--linkColor",value:h,placeholder:"Add a description",onChange:l()(o=this.handleDescriptionChange).call(o,this,p),component:"div",editable:c}),e.createElement("div",{className:"blocks-tabs__".concat(ye(v))},e.createElement($.a,{className:"blocks-tabs__img",index:d()(i="".concat(u,"-")).call(i,n),media:v,opts:w})))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.isLearner,a=n.items,s=n.labels.tabGroup,l=n.settings,c=l.paddingTop,f=l.paddingBottom,d=l.backgroundColor,p=l.entranceAnimation,h=l.zoomOnClick,m=V()("blocks-tabs",{"blocks-tabs--no-animation":!p}),v={backgroundColor:Object(Z.a)("",d),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*f,"px")},g=a.length>0?i()(a).call(a,0,30):[],y=V()("blocks-tabs__container",{"blocks-tabs--single":1===g.length});return e.createElement("div",{className:m,style:v},e.createElement(se.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:o,offset:350},e.createElement("div",{className:y},e.createElement("div",{className:"blocks-tabs__row"},e.createElement("div",{className:"blocks-tabs__col"},e.createElement("div",{"aria-label":s,className:"blocks-tabs__wrapper",ref:function(e){t.container=e}},this.renderHeader(g),e.createElement("div",{className:"blocks-tabs__content"},u()(g).call(g,function(e,n){return t.renderItem(e,n,!h)}))))))))}}]),n}(e.Component);e.Component}).call(this,n(1))},function(e,t,n){e.exports=n(2031)},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return H}),n.d(t,"a",function(){return W});var r=n(17),o=n.n(r),i=n(33),a=n.n(i),s=n(4),l=n.n(s),c=n(3),u=n.n(c),f=n(9),d=n(7),p=n(10),h=n(8),m=n(11),v=(n(2038),n(2)),g=n.n(v),y=n(60),b=n(56),_=n(245),w=n(287),E=n(111),x=n(593),k=n(46),S=n(64),T=n(24),C=n(313),O=n(42),j=n(22),A=n(0),N=n.n(A),M=n(55),I=n(75),L=n(20),P=n.n(L),D=n(35),R=n.n(D),F=n(90),B=n.n(F),U=P()(I.a.isIphoneSafari?"_top":"_self"),q=P()("_blank"),z=B()(R()("email"),U,q),H=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"getButtonStyles",value:function(e,t){return{backgroundColor:"inverted"!==e?t:null,color:"inverted"===e?t:null,borderColor:"inverted"===e?t:null}}},{key:"handleDescriptionChange",value:function(e,t){var n=this.props,r=n.lessonId,o=n.blockId;Object(y.a)(Object(k.k)({lessonId:r,blockId:o,itemId:e,payload:{description:t}}))}},{key:"renderDescription",value:function(t,n){var r,o=n||"";return this.props.editable?e.createElement(C.a,{className:"blocks-button__description brand--head  brand--linkColor",value:o,placeholder:"Add a caption",onChange:u()(r=this.handleDescriptionChange).call(r,this,t)}):e.createElement(O.a,{className:"blocks-button__description brand--head  brand--linkColor",value:o})}},{key:"getButton",value:function(t,n,r,o){return e.createElement("span",{className:n,dangerouslySetInnerHTML:{__html:o},onClick:t,onKeyDown:Object(T.a)(t),role:"button",style:r,tabIndex:j.a})}},{key:"renderButton",value:function(t){var n=t.editable,r=t.buttonStyle,o=t.color,i=t.courseTitle,a=t.text,s=t.type,c=t.destination,u=t.editBlock,f=this.getButtonStyles(r,o),d=g()("blocks-button__button brand--ui",{"brand--background":void 0===o});if(n)return this.getButton(u,d,f,a);if("lesson"===s){var p=this.props,h=p.handleNavigate,m=p.match,v="/lessons/".concat(c);m&&m.params.mode&&(v+="/".concat(m.params.mode));var y=""===c?"#":v;return e.createElement(w.a,{className:d,dangerouslySetInnerHTML:{__html:a},onClick:function(){return h(c)},role:"button",style:f,to:y})}if("exit-course"===s)return this.getButton(b.a,d,f,a);var x,k=Object(_.htmlDecode)(Object(E.c)(c)),S=l()(x="mailto:".concat(k,"?subject=")).call(x,i),T="email"===s?S:k,C=""===T?"#":T,O=""===c?null:z(s);return e.createElement("a",{className:d,dangerouslySetInnerHTML:{__html:a},href:C,role:"button",style:f,tabIndex:j.a,target:O})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.courseTitle,s=n.editable,l=n.editBlock,c=n.isLearner,u=n.items,f=n.labels.buttonGroup,d=n.settings,p=u.length>0?a()(u).call(u,0,1):[],h=d.paddingTop,m=d.paddingBottom,v=d.backgroundColor,y=d.entranceAnimation,b=d.buttonColor||this.props.color,_=g()("blocks-button",{"blocks-button--no-animation":!y,"blocks-button--left":!1,"blocks-button--center":!1,"blocks-button--right":!0,"blocks-button--rounded":!0}),w={backgroundColor:Object(S.a)("",v),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")};return e.createElement("div",{"aria-label":f,className:_,style:w},e.createElement(M.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:c,offset:100},o()(p).call(p,function(n){var r=n.id,o=n.label,a=n.type,c=n.destination,u=n.description,f=Object(x.a)(Object(E.c)(o),18);return e.createElement("section",{key:r,className:"blocks-button__container"},t.renderDescription(r,u),t.renderButton({editable:s,buttonStyle:"rounded",color:b,courseTitle:i,text:f,type:a,destination:c,editBlock:l}))})))}}],[{key:"propTypes",get:function(){return{lessonId:N.a.any,blockId:N.a.any,items:N.a.array,settings:N.a.object.isRequired,editable:N.a.bool,editBlock:N.a.func,courseTitle:N.a.string}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",editBlock:function(){}}}}]),n}(e.Component),W=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.blockId,i=t.courseTitle,a=t.editable,s=t.editBlock,l=t.isLearner,c=t.items,u=t.labels,f=t.lessonId,d=t.settings,p=d.paddingTop,h=d.paddingBottom,m=d.backgroundColor,v=d.entranceAnimation,y=g()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!v}),b={backgroundColor:Object(S.a)("",m),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*h,"px")},_={buttonColor:d.buttonColor||this.props.color,buttonStyle:d.buttonStyle},w=u.buttonStackGroup;return e.createElement("div",{"aria-label":w,className:y,style:b},e.createElement(M.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:l},o()(c).call(c,function(t){return e.createElement(H,{animateBlockEntrance:!1,blockId:r,courseTitle:i,editable:a,editBlock:s,isLearner:l,items:[t],key:t.id,labels:u,lessonId:f,settings:_,type:"right"})})))}}],[{key:"propTypes",get:function(){return{lessonId:N.a.any,blockId:N.a.any,items:N.a.array,settings:N.a.object.isRequired,editable:N.a.bool,editBlock:N.a.func,courseTitle:N.a.string}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",editBlock:function(){}}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){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 c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Q});var r=n(32),o=n(34),i=n.n(o),a=n(17),s=n.n(a),l=n(4),c=n.n(l),u=n(3),f=n.n(u),d=n(9),p=n(10),h=n(8),m=n(15),v=n(7),g=n(11),y=(n(2043),n(0)),b=n.n(y),_=n(2),w=n.n(_),E=n(75),x=n(5),k=n.n(x),S=n(41),T=n.n(S),C=n(80),O=n.n(C),j=n(43),A=n.n(j),N=n(272),M=n.n(N),I=n(185),L=n.n(I),P=n(83),D=n.n(P),R=n(139),F=n.n(R),B=n(64),U=n(278),q=n.n(U),z=n(42),H=n(111),W=n(22),$=n(24),Y=n(55),K=n(1184),V=n(77),G={small:{longMin:51,totalMax:150},medium:{longMin:208,totalMax:390},large:{longMin:258,totalMax:707}},X=function(t){function n(e){var t,r,o,i,a;return Object(d.a)(this,n),(a=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={flipped:e.flipped,hasFlippedOnce:e.hasFlippedOnce},a.flip=f()(t=a.flip).call(t,Object(m.a)(a)),a.scrollDownIfNecessary=f()(r=a.scrollDownIfNecessary).call(r,Object(m.a)(a)),a.scrollUpIfNecessary=f()(o=a.scrollUpIfNecessary).call(o,Object(m.a)(a)),a.onKeyDown=f()(i=a.onKeyDown).call(i,Object(m.a)(a)),a}return Object(g.a)(n,t),Object(v.a)(n,null,[{key:"propTypes",get:function(){return{allowTabNavigation:b.a.bool,card:b.a.object.isRequired,index:b.a.number,onStep:b.a.func,showHint:b.a.bool,size:b.a.oneOf(["large","medium","small"])}}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,flipped:!1,hasFlippedOnce:!1,index:0,onStep:Function.prototype,showHint:!0,size:"large"}}}]),Object(v.a)(n,[{key:"flip",value:function(e){if("a"!==e.target.tagName.toLowerCase()){var t=this.state.flipped;this.setState({flipped:!t,hasFlippedOnce:!0}),t?(this.frontSide.scrollToTop(),this.cardFront.focus()):(this.props.onStep(this.props.card),this.backSide.scrollToTop(),this.cardBack.focus()),e&&e.preventDefault()}}},{key:"showFront",value:function(){this.setState({flipped:!1}),this.frontSide.scrollToTop()}},{key:"focus",value:function(){this.cardFront.focus()}},{key:"scrollUpIfNecessary",value:function(e){e.target===this.cardFront?this.frontSide.scrollUp(e):this.backSide.scrollUp(e)}},{key:"scrollDownIfNecessary",value:function(e){e.target===this.cardFront?this.frontSide.scrollDown(e):this.backSide.scrollDown(e)}},{key:"onKeyDown",value:function(e){T()([[$.d,this.flip],[$.l,this.scrollUpIfNecessary],[$.b,this.scrollDownIfNecessary]])(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.card,i=n.index,a=n.labels,s=void 0===a?{}:a,l=n.showHint,c=n.size,u=s.blocksClickToFlip,f=this.state,d=f.flipped,p=f.hasFlippedOnce,h=o.front,m=void 0===h?{}:h,v=o.back,g=void 0===v?{}:v,y=D()(m,"type")||"description",b=D()(g,"type")||"description",_=D()(m,"media.image.key"),x=D()(m,"media.image.src"),k=D()(g,"media.image.key"),S=D()(g,"media.image.src"),T=Object(V.c)({key:_,src:x}),C=Object(V.c)({key:k,src:S}),O=D()(m,"media.image.alt"),j=D()(g,"media.image.alt"),A=m.description||"",N=g.description||"",M=w()("block-flashcard",{"block-flashcard--large":"large"===c,"block-flashcard--medium":"medium"===c,"block-flashcard--small":"small"===c,"block-flashcard--first":0===i,"block-flashcard--flipped":d,"block-flashcard--in-edge":E.a.isEdge,"block-flashcard--in-ie":E.a.isIe11}),I=w()("block-flashcard__front",{"block-flashcard__front--description":"description"===y,"block-flashcard__front--image":"image"===y,"block-flashcard__front--fullimage":"fullimage"===y}),L=w()("block-flashcard__back",{"block-flashcard__back--description":"description"===b,"block-flashcard__back--image":"image"===b,"block-flashcard__back--fullimage":"fullimage"===b}),P=w()("block-flashcard__content",{"brand--border":"fullimage"!==y}),R=w()("block-flashcard__flip brand--ui",{"block-flashcard__flip--detailed":!p}),F="fullimage"===y?{backgroundImage:"url('".concat(T,"')")}:{},B="fullimage"===b?{backgroundImage:"url('".concat(C,"')")}:{},U=r&&!d,q=r&&d,z=0===i&&!p&&u,H=e.createElement("button",{className:R,onClick:this.flip,ref:function(e){t.flipLink=e},tabIndex:W.h},e.createElement("span",{className:"flip-text"},z),e.createElement("span",{className:"flip-icon"},e.createElement(K.a,null)));return e.createElement("section",{className:M,onTouchEnd:function(e){e.stopPropagation()},ref:function(e){t.container=e}},e.createElement("div",{className:"block-flashcard__wrapper"},e.createElement("div",{"aria-hidden":!U,className:I,onClick:this.flip,onKeyDown:this.onKeyDown,ref:function(e){t.cardFront=e},role:"button",tabIndex:Object(W.l)(U)},e.createElement("div",{className:P,style:F},e.createElement(Z,{allowTabNavigation:U,alt:O,description:A,image:T,labels:s,ref:function(e){t.frontSide=e},side:"front",size:c,type:y})),l&&H),e.createElement("div",{"aria-hidden":!q,className:L,onBlur:function(){t.container.style.zIndex--},onFocus:function(){t.container.style.zIndex++},onClick:this.flip,onKeyDown:this.onKeyDown,ref:function(e){t.cardBack=e},role:"button",tabIndex:Object(W.l)(q)},e.createElement("div",{className:"block-flashcard__content",style:B},e.createElement(Z,{allowTabNavigation:q,alt:j,description:N,image:C,labels:s,ref:function(e){t.backSide=e},side:"back",size:c,type:b})),l&&H)))}}]),n}(e.Component),Z=function(t){function n(e){var t,r,o;return Object(d.a)(this,n),(o=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={hasOverflow:!1,isLong:!1},o.handleScroll=f()(t=o.handleScroll).call(t,Object(m.a)(o)),o.overflowMask=f()(r=o.overflowMask).call(r,Object(m.a)(o)),o}return Object(g.a)(n,t),Object(v.a)(n,null,[{key:"propTypes",get:function(){return{size:b.a.string,type:b.a.string,description:b.a.string,image:b.a.string}}}]),Object(v.a)(n,[{key:"componentDidMount",value:function(){this.scrollContent.addEventListener("scroll",this.scrollRef=F()(this.handleScroll,50)),window.addEventListener("resize",this.maskRef=F()(this.overflowMask,50)),this.overflowMask()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.maskRef),this.scrollContent.removeEventListener("scroll",this.scrollRef)}},{key:"scrollToTop",value:function(){this.scrollContent.scrollTop=0}},{key:"scrollUp",value:function(e){Object($.o)(this.scrollContent,e)}},{key:"scrollDown",value:function(e){Object($.n)(this.scrollContent,this.state.hasOverflow,e)}},{key:"handleScroll",value:function(){var e=this.state.hasOverflow,t=this.scrollContent,n=t.scrollTop,r=t.scrollHeight;n+t.offsetHeight+10>=r?this.setState({hasOverflow:!1}):e||this.setState({hasOverflow:!0})}},{key:"overflowMask",value:function(){var e=this.scrollContent,t=e.offsetHeight<e.scrollHeight-10;this.setState({hasOverflow:t,isLong:t})}},{key:"ariaLabel",value:function(){var e,t,n=this.props,r=n.alt,o=n.description,i=n.labels,a=n.side,s=n.type,l=i.flashcardBackLabel,u=i.flashcardFrontLabel,f="front"===a?u:l;return"image"===s||"fullimage"===s?r?c()(t="".concat(f," - ")).call(t,r):f:o?c()(e="".concat(f," - ")).call(e,Object(H.c)(o)):f}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.alt,i=n.size,a=n.type,s=n.description,l=n.image,c=n.side,u=this.state,f=u.hasOverflow,d=u.isLong,p=G[i],h=s,m=!!k()(M()(p.longMin),A.a,H.c,L()("&nbsp;"," "))(s)||d,v=w()("block-flashcard__center brand--linkColor",{"block-flashcard__center--long":m,"block-flashcard__center--long--front":m&&"front"===c,"block-flashcard__center--long--back":m&&"back"===c,"block-flashcard__center--overflow":f,"block-flashcard__center--column":"image"===a}),g='""'===o?"":o,y="fullimage"===a?g:null;return e.createElement("div",{ref:function(e){t.scrollContent=e},className:v,alt:y,title:y,"aria-label":this.ariaLabel()},"image"===a&&l&&e.createElement("figure",{className:"block-flashcard__image",style:{backgroundImage:"url(".concat(l,")")},title:g},e.createElement("img",{alt:g,src:l})),"description"===a&&e.createElement(z.a,{allowTabNavigation:r,className:"block-flashcard__description brand--head",value:h}))}}]),n}(e.Component),Q=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(g.a)(n,t),Object(v.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,o=t.items,i=t.settings,a=t.stack,l=t.labels,c=t.onStep,u=i.backgroundColor,f=i.entranceAnimation,d=i.paddingBottom,p=i.paddingTop,h=i.showHint,m=w()("block-flashcards",{"blocks-flashcard--column":!a,"blocks-flashcard--stack":a,"block-flashcards--no-animation":!f}),v={backgroundColor:Object(B.a)("",u),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*d,"px")},g=o.length,y=1===g?"large":2===g?"medium":"small",b=l.flashcardGridGroup,_=l.flashcardStackGroup,E=a?_:b;return e.createElement("div",{"aria-label":E,className:m,style:v},a?e.createElement(Y.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r,offset:400},e.createElement(J,{items:o,labels:l,onStep:c,showHint:h})):e.createElement(Y.a,{animateBlockEntrance:n,animateIn:"fadeIn",className:"block-flashcards__animation",isLearner:r,siblingDelay:.25},e.createElement("div",{className:"block-flashcards__wrapper"},s()(o).call(o,function(t,n){return e.createElement(X,{card:t,index:n,key:t.id,labels:l,onStep:c,showHint:h,size:y})}))))}}],[{key:"propTypes",get:function(){return{items:b.a.array,settings:b.a.object.isRequired,stack:b.a.bool,onStep:b.a.func}}},{key:"defaultProps",get:function(){return{items:[],stack:!1,editable:!1,onStep:Function.prototype}}}]),n}(e.Component),J=function(t){function n(){var e,t,r;Object(d.a)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,c()(t=[this]).call(t,i)))).state={current:1},r}return Object(g.a)(n,t),Object(v.a)(n,null,[{key:"propTypes",get:function(){return{items:b.a.array,onStep:b.a.func,showHint:b.a.bool}}},{key:"defaultProps",get:function(){return{items:[],onStep:Function.prototype}}}]),Object(v.a)(n,[{key:"handleBeforeChange",value:function(e,t){for(var n=this,r=this.props.items.length,o=0;o<r;o++){var a=this["flashcard-".concat(o)];a&&a.showFront()}this.sliderInfo.setCurrent(t+1),this["flashcard-".concat(t)].focus(),i()(function(){n.setState({current:t+1})},500)}},{key:"render",value:function(){var t,n=this,o=this.props,i=o.items,a=o.labels,l=o.onStep,c=o.showHint,u=this.state.current,d=i.length,p={dots:!1,draggable:!1,swipe:!1,speed:500,slidesToShow:1,slidesToScroll:1,fade:!0,infinite:!1,arrows:!0,beforeChange:f()(t=this.handleBeforeChange).call(t,this),nextArrow:e.createElement(te,{current:u,labels:a,length:d}),prevArrow:e.createElement(te,{previous:!0,current:u,labels:a,length:d})};return e.createElement("section",{className:"block-flashcards-slider block-flashcards-slider--full-carousel"},e.createElement("div",{className:"block-flashcards-slider__wrap"},e.createElement(q.a,Object(r.a)({className:"block-flashcards-slider__slides"},p),s()(i).call(i,function(t,r){return e.createElement("div",{className:"block-flashcards-slider__slide",key:"flashcard-".concat(r)},e.createElement(X,{allowTabNavigation:u===O()(r),card:t,index:r,labels:a,onStep:l,ref:function(e){n["flashcard-".concat(r)]=e},showHint:c}))})),e.createElement(ee,{ref:function(e){n.sliderInfo=e},labels:a,current:u,itemCount:i.length})))}}]),n}(e.Component),ee=function(t){function n(e){var t;return Object(d.a)(this,n),(t=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={current:e.current},t}return Object(g.a)(n,t),Object(v.a)(n,null,[{key:"propTypes",get:function(){return{current:b.a.number.isRequired,itemCount:b.a.number.isRequired}}}]),Object(v.a)(n,[{key:"setCurrent",value:function(e){this.setState({current:e})}},{key:"render",value:function(){var t,n,r=this.props,o=r.itemCount,i=r.labels,a=void 0===i?{}:i,s=this.state.current,l=100*(s/o).toFixed(2),u={width:"".concat(l,"%")},f=a.blocksPreposition,d=void 0===f?"of":f;return e.createElement("div",{className:"block-flashcards-slider__info"},e.createElement("div",{className:"block-flashcards-slider__progress"},e.createElement("p",{className:"block-flashcards-slider__progress-text brand--body brand--linkColor"},c()(t=c()(n="".concat(s," ")).call(n,d," ")).call(t,o)),e.createElement("div",{className:"block-flashcards-slider__progress-line brand--background",style:u})))}}]),n}(e.Component),te=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(g.a)(n,t),Object(v.a)(n,[{key:"render",value:function(){var t=this.props,n=t.current,r=t.labels,o=t.length,i=t.onClick,a=t.previous,s=r.nextFlashCardLabel,l=r.previousFlashCardLabel,c=1===n,u=n===o,f=w()("block-flashcards-slider__controls",{"block-flashcards-slider__controls--beginning":c,"block-flashcards-slider__controls--end":u}),d=w()("brand--background block-flashcards-slider__arrow",{"block-flashcards-slider__arrow--next":!a,"block-flashcards-slider__arrow--prev":a}),p=w()("icon",{"icon-chevron-right":!a,"icon-chevron-left":a}),h=a&&c||!a&&u;return e.createElement("div",{className:f},e.createElement("div",{"aria-disabled":h,"aria-label":a?l:s,className:d,onClick:i,onKeyDown:Object($.a)(i),role:"button",tabIndex:Object(W.l)(!h)},e.createElement("i",{className:p})))}}],[{key:"propTypes",get:function(){return{onClick:b.a.func,previous:b.a.bool,current:b.a.number,length:b.a.number}}},{key:"defaultProps",get:function(){return{previous:!1,onClick:function(){},current:0,length:-1}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(440),o=n(441),i=n(298).type("Pred"),a=n(335),s=n(94),l=n(199),c=function(){return u(function(){return!0})};function u(e){if(!s(e))throw new TypeError("Pred: Predicate function required");var t=function(t){return!!e(t)};return{runWith:t,inspect:function(){return"Pred"+o(t)},type:i,value:function(){return t},empty:c,concat:function(e){if(!l(u,e))throw new TypeError("Pred.concat: Pred required");return u(function(n){return!!t(n)&&!!e.runWith(n)})},contramap:function(e){if(!s(e))throw new TypeError("Pred.contramap: Function required");return u(a(t,e))}}}u.empty=c,u.type=i,u["@@implements"]=r(["concat","contramap","empty"]),e.exports=u},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(866)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(298).proxy("Pred"),o=n(120),i=n(94),a=n(199),s=n(1068);e.exports=o(function(e,t){if(!i(e)&&!a(r,e))throw new TypeError("not: Pred or predicate function required for first argument");return!s(e,t)})},function(e,t,n){"use strict";var r=n(1079);n.d(t,"a",function(){return r.a});var o=n(1080);n.d(t,"b",function(){return o.a})},function(e,t,n){var r;e.exports=function e(t,n,o){function i(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof r&&r;if(!l&&c)return r(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};t[s][0].call(f.exports,function(e){var n=t[s][1][e];return i(n||e)},f,f.exports,e,t,n,o)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){"use strict";"undefined"==typeof window?t.exports=function(t){return e("./src/utils/window").init(t),e("./src/index")}:t.exports=e("./src/index")},{"./src/index":19,"./src/utils/window":52}],2:[function(e,t,n){"use strict";var r=e("./utils/extend.js");function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r({},t||{})}return e.prototype.fire=function(e){var t=void 0,n="on"+e.type,r=this.global;(t=this[e.type])&&o(e,t),this[n]&&this[n](e),!e.propagationStopped&&r&&(t=r[e.type])&&o(e,t)},e.prototype.on=function(e,t){this[e]?this[e].push(t):this[e]=[t]},e.prototype.off=function(e,t){var n=this[e],r=n?n.indexOf(t):-1;-1!==r&&n.splice(r,1),(n&&0===n.length||!t)&&(this[e]=void 0)},e}();t.exports=i},{"./utils/extend.js":41}],3:[function(e,t,n){"use strict";var r=e("./utils/extend"),o=e("./utils/getOriginXY"),i=e("./defaultOptions"),a=e("./utils/Signals").new(),s=function(){function e(t,n,s,l,c,u){var f=arguments.length>6&&void 0!==arguments[6]&&arguments[6];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var d=t.target,p=(d&&d.options||i).deltaSource,h=o(d,c,s),m="start"===l,v="end"===l,g=m?t.startCoords:t.curCoords,y=t.prevEvent;c=c||t.element;var b=r({},g.page),_=r({},g.client);b.x-=h.x,b.y-=h.y,_.x-=h.x,_.y-=h.y,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.button=n.button,this.buttons=n.buttons,this.target=c,this.currentTarget=c,this.relatedTarget=u||null,this.preEnd=f,this.type=s+(l||""),this.interaction=t,this.interactable=d,this.t0=m?t.downTimes[t.downTimes.length-1]:y.t0;var w={interaction:t,event:n,action:s,phase:l,element:c,related:u,page:b,client:_,coords:g,starting:m,ending:v,deltaSource:p,iEvent:this};a.fire("set-xy",w),v?(this.pageX=y.pageX,this.pageY=y.pageY,this.clientX=y.clientX,this.clientY=y.clientY):(this.pageX=b.x,this.pageY=b.y,this.clientX=_.x,this.clientY=_.y),this.x0=t.startCoords.page.x-h.x,this.y0=t.startCoords.page.y-h.y,this.clientX0=t.startCoords.client.x-h.x,this.clientY0=t.startCoords.client.y-h.y,a.fire("set-delta",w),this.timeStamp=g.timeStamp,this.dt=t.pointerDelta.timeStamp,this.duration=this.timeStamp-this.t0,this.speed=t.pointerDelta[p].speed,this.velocityX=t.pointerDelta[p].vx,this.velocityY=t.pointerDelta[p].vy,this.swipe=v||"inertiastart"===l?this.getSwipe():null,a.fire("new",w)}return e.prototype.getSwipe=function(){var e=this.interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5,o=!n&&(292.5<=t||t<67.5),i=!r&&22.5<=t&&t<157.5;return{up:r,down:i,left:n,right:o,angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}},e.prototype.preventDefault=function(){},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();a.on("set-delta",function(e){var t=e.iEvent,n=e.interaction,r=e.starting,o=e.deltaSource,i=r?t:n.prevEvent;"client"===o?(t.dx=t.clientX-i.clientX,t.dy=t.clientY-i.clientY):(t.dx=t.pageX-i.pageX,t.dy=t.pageY-i.pageY)}),s.signals=a,t.exports=s},{"./defaultOptions":18,"./utils/Signals":34,"./utils/extend":41,"./utils/getOriginXY":42}],4:[function(e,t,n){"use strict";var r=e("./utils/clone"),o=e("./utils/is"),i=e("./utils/events"),a=e("./utils/extend"),s=e("./actions/base"),l=e("./scope"),c=e("./Eventable"),u=e("./defaultOptions"),f=e("./utils/Signals").new(),d=e("./utils/domUtils"),p=d.getElementRect,h=d.nodeContains,m=d.trySelector,v=d.matchesSelector,g=e("./utils/window"),y=g.getWindow,b=e("./utils/arr"),_=b.contains,w=e("./utils/browser"),E=w.wheelEvent;l.interactables=[];var x=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=n||{},this.target=t,this.events=new c,this._context=n.context||l.document,this._win=y(m(t)?this._context:t),this._doc=this._win.document,f.fire("new",{target:t,options:n,interactable:this,win:this._win}),l.addDocument(this._doc,this._win),l.interactables.push(this),this.set(n)}return e.prototype.setOnEvents=function(e,t){var n="on"+e;return o.function(t.onstart)&&(this.events[n+"start"]=t.onstart),o.function(t.onmove)&&(this.events[n+"move"]=t.onmove),o.function(t.onend)&&(this.events[n+"end"]=t.onend),o.function(t.oninertiastart)&&(this.events[n+"inertiastart"]=t.oninertiastart),this},e.prototype.setPerAction=function(e,t){for(var n in t)n in u[e]&&(o.object(t[n])?(this.options[e][n]=r(this.options[e][n]||{}),a(this.options[e][n],t[n]),o.object(u.perAction[n])&&"enabled"in u.perAction[n]&&(this.options[e][n].enabled=!1!==t[n].enabled)):o.bool(t[n])&&o.object(u.perAction[n])?this.options[e][n].enabled=t[n]:void 0!==t[n]&&(this.options[e][n]=t[n]))},e.prototype.getRect=function(e){return e=e||this.target,o.string(this.target)&&!o.element(e)&&(e=this._context.querySelector(this.target)),p(e)},e.prototype.rectChecker=function(e){return o.function(e)?(this.getRect=e,this):null===e?(delete this.options.getRect,this):this.getRect},e.prototype._backCompatOption=function(e,t){if(m(t)||o.object(t)){this.options[e]=t;for(var n=0;n<s.names.length;n++){var r=s.names[n];this.options[r][e]=t}return this}return this.options[e]},e.prototype.origin=function(e){return this._backCompatOption("origin",e)},e.prototype.deltaSource=function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource},e.prototype.context=function(){return this._context},e.prototype.inContext=function(e){return this._context===e.ownerDocument||h(this._context,e)},e.prototype.fire=function(e){return this.events.fire(e),this},e.prototype._onOffMultiple=function(e,t,n,r){if(o.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),o.array(t)){for(var i=0;i<t.length;i++){var a=t[i];this[e](a,n,r)}return!0}if(o.object(t)){for(var s in t)this[e](s,t[s],n);return!0}},e.prototype.on=function(t,n,r){return this._onOffMultiple("on",t,n,r)?this:("wheel"===t&&(t=E),_(e.eventTypes,t)?this.events.on(t,n):o.string(this.target)?i.addDelegate(this.target,this._context,t,n,r):i.add(this.target,t,n,r),this)},e.prototype.off=function(t,n,r){return this._onOffMultiple("off",t,n,r)?this:("wheel"===t&&(t=E),_(e.eventTypes,t)?this.events.off(t,n):o.string(this.target)?i.removeDelegate(this.target,this._context,t,n,r):i.remove(this.target,t,n,r),this)},e.prototype.set=function(t){o.object(t)||(t={}),this.options=r(u.base);var n=r(u.perAction);for(var i in s.methodDict){var a=s.methodDict[i];this.options[i]=r(u[i]),this.setPerAction(i,n),this[a](t[i])}for(var l=0;l<e.settingsMethods.length;l++){var c=e.settingsMethods[l];this.options[c]=u.base[c],c in t&&this[c](t[c])}return f.fire("set",{options:t,interactable:this}),this},e.prototype.unset=function(){if(i.remove(this.target,"all"),o.string(this.target))for(var e in i.delegatedEvents){var t=i.delegatedEvents[e];t.selectors[0]===this.target&&t.contexts[0]===this._context&&(t.selectors.splice(0,1),t.contexts.splice(0,1),t.listeners.splice(0,1),t.selectors.length||(t[e]=null)),i.remove(this._context,e,i.delegateListener),i.remove(this._context,e,i.delegateUseCapture,!0)}else i.remove(this,"all");f.fire("unset",{interactable:this}),l.interactables.splice(l.interactables.indexOf(this),1);for(var n=0;n<(l.interactions||[]).length;n++){var r=(l.interactions||[])[n];r.target===this&&r.interacting()&&!r._ending&&r.stop()}return l.interact},e}();l.interactables.indexOfElement=function(e,t){t=t||l.document;for(var n=0;n<this.length;n++){var r=this[n];if(r.target===e&&r._context===t)return n}return-1},l.interactables.get=function(e,t,n){var r=this[this.indexOfElement(e,t&&t.context)];return r&&(o.string(e)||n||r.inContext(e))?r:null},l.interactables.forEachMatch=function(e,t){for(var n=0;n<this.length;n++){var r=this[n],i=void 0;if((o.string(r.target)?o.element(e)&&v(e,r.target):e===r.target)&&r.inContext(e)&&(i=t(r)),void 0!==i)return i}},x.eventTypes=l.eventTypes=[],x.signals=f,x.settingsMethods=["deltaSource","origin","preventDefault","rectChecker"],t.exports=x},{"./Eventable":2,"./actions/base":6,"./defaultOptions":18,"./scope":33,"./utils/Signals":34,"./utils/arr":35,"./utils/browser":36,"./utils/clone":37,"./utils/domUtils":39,"./utils/events":40,"./utils/extend":41,"./utils/is":46,"./utils/window":52}],5:[function(e,t,n){"use strict";var r=e("./scope"),o=e("./utils"),i=e("./utils/events"),a=e("./utils/browser"),s=e("./utils/domObjects"),l=e("./utils/interactionFinder"),c=e("./utils/Signals").new(),u={},f=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer"],d=0;r.interactions=[];for(var p=function(){function e(t){var n=t.pointerType;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.target=null,this.element=null,this.prepared={name:null,axis:null,edges:null},this.pointers=[],this.pointerIds=[],this.downTargets=[],this.downTimes=[],this.prevCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.curCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.startCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.pointerDelta={page:{x:0,y:0,vx:0,vy:0,speed:0},client:{x:0,y:0,vx:0,vy:0,speed:0},timeStamp:0},this.downEvent=null,this.downPointer={},this._eventTarget=null,this._curEventTarget=null,this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this.pointerType=n,c.fire("new",this),r.interactions.push(this)}return e.prototype.pointerDown=function(e,t,n){var r=this.updatePointer(e,t,!0);c.fire("down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,interaction:this})},e.prototype.start=function(e,t,n){this.interacting()||!this.pointerIsDown||this.pointerIds.length<("gesture"===e.name?2:1)||(-1===r.interactions.indexOf(this)&&r.interactions.push(this),o.copyAction(this.prepared,e),this.target=t,this.element=n,c.fire("action-start",{interaction:this,event:this.downEvent}))},e.prototype.pointerMove=function(t,n,r){this.simulation||(this.updatePointer(t),o.setCoords(this.curCoords,this.pointers));var i=this.curCoords.page.x===this.prevCoords.page.x&&this.curCoords.page.y===this.prevCoords.page.y&&this.curCoords.client.x===this.prevCoords.client.x&&this.curCoords.client.y===this.prevCoords.client.y,a=void 0,s=void 0;this.pointerIsDown&&!this.pointerWasMoved&&(a=this.curCoords.client.x-this.startCoords.client.x,s=this.curCoords.client.y-this.startCoords.client.y,this.pointerWasMoved=o.hypot(a,s)>e.pointerMoveTolerance);var l={pointer:t,pointerIndex:this.getPointerIndex(t),event:n,eventTarget:r,dx:a,dy:s,duplicate:i,interaction:this,interactingBeforeMove:this.interacting()};i||o.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords),c.fire("move",l),i||(this.interacting()&&this.doMove(l),this.pointerWasMoved&&o.copyCoords(this.prevCoords,this.curCoords))},e.prototype.doMove=function(e){e=o.extend({pointer:this.pointers[0],event:this.prevEvent,eventTarget:this._eventTarget,interaction:this},e||{}),c.fire("before-action-move",e),this._dontFireMove||c.fire("action-move",e),this._dontFireMove=!1},e.prototype.pointerUp=function(e,t,n,r){var o=this.getPointerIndex(e);c.fire(/cancel$/i.test(t.type)?"cancel":"up",{pointer:e,pointerIndex:o,event:t,eventTarget:n,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.pointerIsDown=!1,this.removePointer(e,t)},e.prototype.end=function(e){this._ending=!0,e=e||this.prevEvent,this.interacting()&&c.fire("action-end",{event:e,interaction:this}),this.stop(),this._ending=!1},e.prototype.currentAction=function(){return this._interacting?this.prepared.name:null},e.prototype.interacting=function(){return this._interacting},e.prototype.stop=function(){c.fire("stop",{interaction:this}),this._interacting&&(c.fire("stop-active",{interaction:this}),c.fire("stop-"+this.prepared.name,{interaction:this})),this.target=this.element=null,this._interacting=!1,this.prepared.name=this.prevEvent=null},e.prototype.getPointerIndex=function(e){return"mouse"===this.pointerType||"pen"===this.pointerType?0:this.pointerIds.indexOf(o.getPointerId(e))},e.prototype.updatePointer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t&&/(down|start)$/i.test(t.type),r=o.getPointerId(e),i=this.getPointerIndex(e);return-1===i&&(i=this.pointerIds.length,this.pointerIds[i]=r),n&&c.fire("update-pointer-down",{pointer:e,event:t,down:n,pointerId:r,pointerIndex:i,interaction:this}),this.pointers[i]=e,i},e.prototype.removePointer=function(e,t){var n=this.getPointerIndex(e);-1!==n&&(c.fire("remove-pointer",{pointer:e,event:t,pointerIndex:n,interaction:this}),this.pointers.splice(n,1),this.pointerIds.splice(n,1),this.downTargets.splice(n,1),this.downTimes.splice(n,1))},e.prototype._updateEventTargets=function(e,t){this._eventTarget=e,this._curEventTarget=t},e}(),h=0;h<f.length;h++){var m=f[h];u[m]=v(m)}function v(e){return function(t){var n=o.getPointerType(t),i=o.getEventTargets(t),s=i[0],c=i[1],u=[];if(a.supportsTouch&&/touch/.test(t.type)){d=(new Date).getTime();for(var f=0;f<t.changedTouches.length;f++){var h=t.changedTouches[f],m=h,v=l.search(m,t.type,s);u.push([m,v||new p({pointerType:n})])}}else{var g=!1;if(!a.supportsPointerEvent&&/mouse/.test(t.type)){for(var y=0;y<r.interactions.length&&!g;y++)g="mouse"!==r.interactions[y].pointerType&&r.interactions[y].pointerIsDown;g=g||(new Date).getTime()-d<500||0===t.timeStamp}if(!g){var b=l.search(t,t.type,s);b||(b=new p({pointerType:n})),u.push([t,b])}}for(var _=0;_<u.length;_++){var w=u[_],E=w[0],x=w[1];x._updateEventTargets(s,c),x[e](E,t,s,c)}}}function g(e){for(var t=0;t<r.interactions.length;t++){var n=r.interactions[t];n.end(e),c.fire("endall",{event:e,interaction:n})}}var y={},b=a.pEventTypes;function _(e,t){var n=e.doc,o=0===t.indexOf("add")?i.add:i.remove;for(var s in r.delegatedEvents)o(n,s,i.delegateListener),o(n,s,i.delegateUseCapture,!0);for(var l in y)o(n,l,y[l],a.isIOS?{passive:!1}:void 0)}s.PointerEvent?(y[b.down]=u.pointerDown,y[b.move]=u.pointerMove,y[b.up]=u.pointerUp,y[b.cancel]=u.pointerUp):(y.mousedown=u.pointerDown,y.mousemove=u.pointerMove,y.mouseup=u.pointerUp,y.touchstart=u.pointerDown,y.touchmove=u.pointerMove,y.touchend=u.pointerUp,y.touchcancel=u.pointerUp),y.blur=g,c.on("update-pointer-down",function(e){var t=e.interaction,n=e.pointer,r=e.pointerId,i=e.pointerIndex,a=e.event,s=e.eventTarget,l=e.down;t.pointerIds[i]=r,t.pointers[i]=n,l&&(t.pointerIsDown=!0),t.interacting()||(o.setCoords(t.startCoords,t.pointers),o.copyCoords(t.curCoords,t.startCoords),o.copyCoords(t.prevCoords,t.startCoords),t.downEvent=a,t.downTimes[i]=t.curCoords.timeStamp,t.downTargets[i]=s||a&&o.getEventTargets(a)[0],t.pointerWasMoved=!1,o.pointerExtend(t.downPointer,n))}),r.signals.on("add-document",_),r.signals.on("remove-document",_),p.pointerMoveTolerance=1,p.doOnInteractions=v,p.endAll=g,p.signals=c,p.docEvents=y,r.endAllInteractions=g,t.exports=p},{"./scope":33,"./utils":44,"./utils/Signals":34,"./utils/browser":36,"./utils/domObjects":38,"./utils/events":40,"./utils/interactionFinder":45}],6:[function(e,t,n){"use strict";var r=e("../Interaction"),o=e("../InteractEvent"),i={firePrepared:a,names:[],methodDict:{}};function a(e,t,n,r){var i=e.prepared.name,a=new o(e,t,i,n,e.element,null,r);e.target.fire(a),e.prevEvent=a}r.signals.on("action-start",function(e){var t=e.interaction,n=e.event;t._interacting=!0,a(t,n,"start")}),r.signals.on("action-move",function(e){var t=e.interaction,n=e.event,r=e.preEnd;if(a(t,n,"move",r),!t.interacting())return!1}),r.signals.on("action-end",function(e){var t=e.interaction,n=e.event;a(t,n,"end")}),t.exports=i},{"../InteractEvent":3,"../Interaction":5}],7:[function(e,t,n){"use strict";var r=e("./base"),o=e("../utils"),i=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),l=e("../defaultOptions"),c={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,startAxis:"xy",lockAxis:"xy"},checker:function(e,t,n){var r=n.options.drag;return r.enabled?{name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis}:null},getCursor:function(){return"move"}};s.signals.on("before-action-move",function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.curCoords.page.y=t.startCoords.page.y,t.curCoords.client.y=t.startCoords.client.y,t.pointerDelta.page.speed=Math.abs(t.pointerDelta.page.vx),t.pointerDelta.client.speed=Math.abs(t.pointerDelta.client.vx),t.pointerDelta.client.vy=0,t.pointerDelta.page.vy=0):"y"===n&&(t.curCoords.page.x=t.startCoords.page.x,t.curCoords.client.x=t.startCoords.client.x,t.pointerDelta.page.speed=Math.abs(t.pointerDelta.page.vy),t.pointerDelta.client.speed=Math.abs(t.pointerDelta.client.vy),t.pointerDelta.client.vx=0,t.pointerDelta.page.vx=0)}}),i.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("dragmove"===t.type){var r=n.prepared.axis;"x"===r?(t.pageY=n.startCoords.page.y,t.clientY=n.startCoords.client.y,t.dy=0):"y"===r&&(t.pageX=n.startCoords.page.x,t.clientX=n.startCoords.client.x,t.dx=0)}}),a.prototype.draggable=function(e){return o.is.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):o.is.bool(e)?(this.options.drag.enabled=e,e||(this.ondragstart=this.ondragstart=this.ondragend=null),this):this.options.drag},r.drag=c,r.names.push("drag"),o.merge(a.eventTypes,["dragstart","dragmove","draginertiastart","draginertiaresume","dragend"]),r.methodDict.drag="draggable",l.drag=c.defaults,t.exports=c},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],8:[function(e,t,n){"use strict";var r=e("./base"),o=e("../utils"),i=e("../scope"),a=e("../interact"),s=e("../InteractEvent"),l=e("../Interactable"),c=e("../Interaction"),u=e("../defaultOptions"),f={defaults:{enabled:!1,accept:null,overlap:"pointer"}},d=!1;function p(e,t){for(var n=void 0,r=0;r<e.dropzones.length;r++){var o=e.dropzones[r],i=e.elements[r];i!==n&&(t.target=i,o.fire(t)),n=i}}function h(e,t){var n=function(e,t){for(var n=[],r=[],a=0;a<i.interactables.length;a++){var s=i.interactables[a];if(s.options.drop.enabled){var l=s.options.drop.accept;if(!(o.is.element(l)&&l!==t||o.is.string(l)&&!o.matchesSelector(t,l)))for(var c=o.is.string(s.target)?s._context.querySelectorAll(s.target):[s.target],u=0;u<c.length;u++){var f=c[u];f!==t&&(n.push(s),r.push(f))}}}return{elements:r,dropzones:n}}(0,t);e.dropzones=n.dropzones,e.elements=n.elements,e.rects=[];for(var r=0;r<e.dropzones.length;r++)e.rects[r]=e.dropzones[r].getRect(e.elements[r])}function m(e,t,n){var r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null},i={dragEvent:n,interaction:e,target:e.dropElement,dropzone:e.dropTarget,relatedTarget:n.target,draggable:n.interactable,timeStamp:n.timeStamp};return e.dropElement!==e.prevDropElement&&(e.prevDropTarget&&(r.leave=o.extend({type:"dragleave"},i),n.dragLeave=r.leave.target=e.prevDropElement,n.prevDropzone=r.leave.dropzone=e.prevDropTarget),e.dropTarget&&(r.enter={dragEvent:n,interaction:e,target:e.dropElement,dropzone:e.dropTarget,relatedTarget:n.target,draggable:n.interactable,timeStamp:n.timeStamp,type:"dragenter"},n.dragEnter=e.dropElement,n.dropzone=e.dropTarget)),"dragend"===n.type&&e.dropTarget&&(r.drop=o.extend({type:"drop"},i),n.dropzone=e.dropTarget,n.relatedTarget=e.dropElement),"dragstart"===n.type&&(r.activate=o.extend({type:"dropactivate"},i),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=o.extend({type:"dropdeactivate"},i),r.deactivate.target=null,r.deactivate.dropzone=null),"dragmove"===n.type&&e.dropTarget&&(r.move=o.extend({dragmove:n,type:"dropmove"},i),n.dropzone=e.dropTarget),r}function v(e,t){var n=e.activeDrops,r=e.prevDropTarget,o=e.dropTarget,i=e.dropElement;t.leave&&r.fire(t.leave),t.move&&o.fire(t.move),t.enter&&o.fire(t.enter),t.drop&&o.fire(t.drop),t.deactivate&&p(n,t.deactivate),e.prevDropTarget=o,e.prevDropElement=i}c.signals.on("action-start",function(e){var t=e.interaction;e.event;if("drag"===t.prepared.name){t.activeDrops.dropzones=[],t.activeDrops.elements=[],t.activeDrops.rects=[],t.dropEvents=null,t.dynamicDrop||h(t.activeDrops,t.element);var n=t.prevEvent,r=m(t,0,n);r.activate&&p(t.activeDrops,r.activate)}}),s.signals.on("new",function(e){var t=e.interaction,n=e.iEvent,r=e.event;if("dragmove"===n.type||"dragend"===n.type){var i=t.element,a=n,s=function(e,t,n){var r=e.interaction,i=[];d&&h(r.activeDrops,n);for(var a=0;a<r.activeDrops.dropzones.length;a++){var s=r.activeDrops.dropzones[a],l=r.activeDrops.elements[a],c=r.activeDrops.rects[a];i.push(s.dropCheck(e,t,r.target,n,l,c)?l:null)}var u=o.indexOfDeepestElement(i);return{dropzone:r.activeDrops.dropzones[u]||null,element:r.activeDrops.elements[u]||null}}(a,r,i);t.dropTarget=s.dropzone,t.dropElement=s.element,t.dropEvents=m(t,0,a)}}),c.signals.on("action-move",function(e){var t=e.interaction;"drag"===t.prepared.name&&v(t,t.dropEvents)}),c.signals.on("action-end",function(e){var t=e.interaction;"drag"===t.prepared.name&&v(t,t.dropEvents)}),c.signals.on("stop-drag",function(e){var t=e.interaction;t.activeDrops={dropzones:null,elements:null,rects:null},t.dropEvents=null}),l.prototype.dropzone=function(e){return o.is.object(e)?(this.options.drop.enabled=!1!==e.enabled,o.is.function(e.ondrop)&&(this.events.ondrop=e.ondrop),o.is.function(e.ondropactivate)&&(this.events.ondropactivate=e.ondropactivate),o.is.function(e.ondropdeactivate)&&(this.events.ondropdeactivate=e.ondropdeactivate),o.is.function(e.ondragenter)&&(this.events.ondragenter=e.ondragenter),o.is.function(e.ondragleave)&&(this.events.ondragleave=e.ondragleave),o.is.function(e.ondropmove)&&(this.events.ondropmove=e.ondropmove),/^(pointer|center)$/.test(e.overlap)?this.options.drop.overlap=e.overlap:o.is.number(e.overlap)&&(this.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(this.options.drop.accept=e.accept),"checker"in e&&(this.options.drop.checker=e.checker),this):o.is.bool(e)?(this.options.drop.enabled=e,e||(this.ondragenter=this.ondragleave=this.ondrop=this.ondropactivate=this.ondropdeactivate=null),this):this.options.drop},l.prototype.dropCheck=function(e,t,n,r,i,a){var s=!1;if(!(a=a||this.getRect(i)))return!!this.options.drop.checker&&this.options.drop.checker(e,t,s,this,i,n,r);var l=this.options.drop.overlap;if("pointer"===l){var c=o.getOriginXY(n,r,"drag"),u=o.getPageXY(e);u.x+=c.x,u.y+=c.y;var f=u.x>a.left&&u.x<a.right,d=u.y>a.top&&u.y<a.bottom;s=f&&d}var p=n.getRect(r);if(p&&"center"===l){var h=p.left+p.width/2,m=p.top+p.height/2;s=h>=a.left&&h<=a.right&&m>=a.top&&m<=a.bottom}if(p&&o.is.number(l)){var v=Math.max(0,Math.min(a.right,p.right)-Math.max(a.left,p.left))*Math.max(0,Math.min(a.bottom,p.bottom)-Math.max(a.top,p.top)),g=v/(p.width*p.height);s=g>=l}return this.options.drop.checker&&(s=this.options.drop.checker(e,t,s,this,i,n,r)),s},l.signals.on("unset",function(e){var t=e.interactable;t.dropzone(!1)}),l.settingsMethods.push("dropChecker"),c.signals.on("new",function(e){e.dropTarget=null,e.dropElement=null,e.prevDropTarget=null,e.prevDropElement=null,e.dropEvents=null,e.activeDrops={dropzones:[],elements:[],rects:[]}}),c.signals.on("stop",function(e){var t=e.interaction;t.dropTarget=t.dropElement=t.prevDropTarget=t.prevDropElement=null}),a.dynamicDrop=function(e){return o.is.bool(e)?(d=e,a):d},o.merge(l.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),r.methodDict.drop="dropzone",u.drop=f.defaults,t.exports=f},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"./base":6}],9:[function(e,t,n){"use strict";var r=e("./base"),o=e("../utils"),i=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),l=e("../defaultOptions"),c={defaults:{enabled:!1,origin:null,restrict:null},checker:function(e,t,n,r,o){return o.pointerIds.length>=2?{name:"gesture"}:null},getCursor:function(){return""}};i.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturestart"===t.type&&(t.ds=0,n.gesture.startDistance=n.gesture.prevDistance=t.distance,n.gesture.startAngle=n.gesture.prevAngle=t.angle,n.gesture.scale=1)}),i.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturemove"===t.type&&(t.ds=t.scale-n.gesture.scale,n.target.fire(t),n.gesture.prevAngle=t.angle,n.gesture.prevDistance=t.distance,t.scale===1/0||null===t.scale||void 0===t.scale||isNaN(t.scale)||(n.gesture.scale=t.scale))}),a.prototype.gesturable=function(e){return o.is.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):o.is.bool(e)?(this.options.gesture.enabled=e,e||(this.ongesturestart=this.ongesturestart=this.ongestureend=null),this):this.options.gesture},i.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action,a=e.event,s=e.starting,l=e.ending,c=e.deltaSource;if("gesture"===r){var u=t.pointers;n.touches=[u[0],u[1]],s?(n.distance=o.touchDistance(u,c),n.box=o.touchBBox(u),n.scale=1,n.ds=0,n.angle=o.touchAngle(u,void 0,c),n.da=0):l||a instanceof i?(n.distance=t.prevEvent.distance,n.box=t.prevEvent.box,n.scale=t.prevEvent.scale,n.ds=n.scale-1,n.angle=t.prevEvent.angle,n.da=n.angle-t.gesture.startAngle):(n.distance=o.touchDistance(u,c),n.box=o.touchBBox(u),n.scale=n.distance/t.gesture.startDistance,n.angle=o.touchAngle(u,t.gesture.prevAngle,c),n.ds=n.scale-t.gesture.prevScale,n.da=n.angle-t.gesture.prevAngle)}}),s.signals.on("new",function(e){e.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0}}),r.gesture=c,r.names.push("gesture"),o.merge(a.eventTypes,["gesturestart","gesturemove","gestureend"]),r.methodDict.gesture="gesturable",l.gesture=c.defaults,t.exports=c},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],10:[function(e,t,n){"use strict";var r=e("./base"),o=e("../utils"),i=e("../utils/browser"),a=e("../InteractEvent"),s=e("../Interactable"),l=e("../Interaction"),c=e("../defaultOptions"),u=i.supportsTouch||i.supportsPointerEvent?20:10,f={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(e,t,n,r,i,a){if(!a)return null;var s=o.extend({},i.curCoords.page),l=n.options;if(l.resize.enabled){var c=l.resize,f={left:!1,right:!1,top:!1,bottom:!1};if(o.is.object(c.edges)){for(var p in f)f[p]=d(p,c.edges[p],s,i._eventTarget,r,a,c.margin||u);if(f.left=f.left&&!f.right,f.top=f.top&&!f.bottom,f.left||f.right||f.top||f.bottom)return{name:"resize",edges:f}}else{var h="y"!==l.resize.axis&&s.x>a.right-u,m="x"!==l.resize.axis&&s.y>a.bottom-u;if(h||m)return{name:"resize",axes:(h?"x":"")+(m?"y":"")}}}return null},cursors:i.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"},getCursor:function(e){if(e.axis)return f.cursors[e.name+e.axis];if(e.edges){for(var t="",n=["top","bottom","left","right"],r=0;r<4;r++)e.edges[n[r]]&&(t+=n[r]);return f.cursors[t]}}};function d(e,t,n,r,i,a,s){if(!t)return!1;if(!0===t){var l=o.is.number(a.width)?a.width:a.right-a.left,c=o.is.number(a.height)?a.height:a.bottom-a.top;if(l<0&&("left"===e?e="right":"right"===e&&(e="left")),c<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(l>=0?a.left:a.right)+s;if("top"===e)return n.y<(c>=0?a.top:a.bottom)+s;if("right"===e)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(c>=0?a.bottom:a.top)-s}return!!o.is.element(r)&&(o.is.element(t)?t===r:o.matchesUpTo(r,t,i))}a.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("resizestart"===t.type&&n.prepared.edges){var r=n.target.getRect(n.element),i=n.target.options.resize;if(i.square||i.preserveAspectRatio){var a=o.extend({},n.prepared.edges);a.top=a.top||a.left&&!a.bottom,a.left=a.left||a.top&&!a.right,a.bottom=a.bottom||a.right&&!a.top,a.right=a.right||a.bottom&&!a.left,n.prepared._linkedEdges=a}else n.prepared._linkedEdges=null;i.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height),n.resizeRects={start:r,current:o.extend({},r),inverted:o.extend({},r),previous:o.extend({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}}),a.signals.on("new",function(e){var t=e.iEvent,n=e.phase,r=e.interaction;if("move"===n&&r.prepared.edges){var i=r.target.options.resize,a=i.invert,s="reposition"===a||"negate"===a,l=r.prepared.edges,c=r.resizeRects.start,u=r.resizeRects.current,f=r.resizeRects.inverted,d=r.resizeRects.delta,p=o.extend(r.resizeRects.previous,f),h=l,m=t.dx,v=t.dy;if(i.preserveAspectRatio||i.square){var g=i.preserveAspectRatio?r.resizeStartAspectRatio:1;l=r.prepared._linkedEdges,h.left&&h.bottom||h.right&&h.top?v=-m/g:h.left||h.right?v=m/g:(h.top||h.bottom)&&(m=v*g)}if(l.top&&(u.top+=v),l.bottom&&(u.bottom+=v),l.left&&(u.left+=m),l.right&&(u.right+=m),s){if(o.extend(f,u),"reposition"===a){var y=void 0;f.top>f.bottom&&(y=f.top,f.top=f.bottom,f.bottom=y),f.left>f.right&&(y=f.left,f.left=f.right,f.right=y)}}else f.top=Math.min(u.top,c.bottom),f.bottom=Math.max(u.bottom,c.top),f.left=Math.min(u.left,c.right),f.right=Math.max(u.right,c.left);for(var b in f.width=f.right-f.left,f.height=f.bottom-f.top,f)d[b]=f[b]-p[b];t.edges=r.prepared.edges,t.rect=f,t.deltaRect=d}}),s.prototype.resizable=function(e){return o.is.object(e)?(this.options.resize.enabled=!1!==e.enabled,this.setPerAction("resize",e),this.setOnEvents("resize",e),/^x$|^y$|^xy$/.test(e.axis)?this.options.resize.axis=e.axis:null===e.axis&&(this.options.resize.axis=c.resize.axis),o.is.bool(e.preserveAspectRatio)?this.options.resize.preserveAspectRatio=e.preserveAspectRatio:o.is.bool(e.square)&&(this.options.resize.square=e.square),this):o.is.bool(e)?(this.options.resize.enabled=e,e||(this.onresizestart=this.onresizestart=this.onresizeend=null),this):this.options.resize},l.signals.on("new",function(e){e.resizeAxes="xy"}),a.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action;if("resize"===r&&t.resizeAxes){var o=t.target.options;o.resize.square?("y"===t.resizeAxes?n.dx=n.dy:n.dy=n.dx,n.axes="xy"):(n.axes=t.resizeAxes,"x"===t.resizeAxes?n.dy=0:"y"===t.resizeAxes&&(n.dx=0))}}),r.resize=f,r.names.push("resize"),o.merge(s.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeinertiaresume","resizeend"]),r.methodDict.resize="resizable",c.resize=f.defaults,t.exports=f},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/browser":36,"./base":6}],11:[function(e,t,n){"use strict";var r=e("./utils/raf"),o=e("./utils/window").getWindow,i=e("./utils/is"),a=e("./utils/domUtils"),s=e("./Interaction"),l=e("./defaultOptions"),c={defaults:{enabled:!1,container:null,margin:60,speed:300},interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,start:function(e){c.isScrolling=!0,r.cancel(c.i),c.interaction=e,c.prevTime=(new Date).getTime(),c.i=r.request(c.scroll)},stop:function(){c.isScrolling=!1,r.cancel(c.i)},scroll:function(){var e=c.interaction.target.options[c.interaction.prepared.name].autoScroll,t=e.container||o(c.interaction.element),n=(new Date).getTime(),a=(n-c.prevTime)/1e3,s=e.speed*a;s>=1&&(i.window(t)?t.scrollBy(c.x*s,c.y*s):t&&(t.scrollLeft+=c.x*s,t.scrollTop+=c.y*s),c.prevTime=n),c.isScrolling&&(r.cancel(c.i),c.i=r.request(c.scroll))},check:function(e,t){var n=e.options;return n[t].autoScroll&&n[t].autoScroll.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&c.check(t.target,t.prepared.name))if(t.simulation)c.x=c.y=0;else{var r=void 0,s=void 0,l=void 0,u=void 0,f=t.target.options[t.prepared.name].autoScroll,d=f.container||o(t.element);if(i.window(d))u=n.clientX<c.margin,r=n.clientY<c.margin,s=n.clientX>d.innerWidth-c.margin,l=n.clientY>d.innerHeight-c.margin;else{var p=a.getElementClientRect(d);u=n.clientX<p.left+c.margin,r=n.clientY<p.top+c.margin,s=n.clientX>p.right-c.margin,l=n.clientY>p.bottom-c.margin}c.x=s?1:u?-1:0,c.y=l?1:r?-1:0,c.isScrolling||(c.margin=f.margin,c.speed=f.speed,c.start(t))}}};s.signals.on("stop-active",function(){c.stop()}),s.signals.on("action-move",c.onInteractionMove),l.perAction.autoScroll=c.defaults,t.exports=c},{"./Interaction":5,"./defaultOptions":18,"./utils/domUtils":39,"./utils/is":46,"./utils/raf":50,"./utils/window":52}],12:[function(e,t,n){"use strict";var r=e("../Interactable"),o=e("../actions/base"),i=e("../utils/is"),a=e("../utils/domUtils"),s=e("../utils"),l=s.warnOnce;r.prototype.getAction=function(e,t,n,r){var o=this.defaultActionChecker(e,t,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,o,this,r,n):o},r.prototype.ignoreFrom=l(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreForm() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),r.prototype.allowFrom=l(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowForm() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),r.prototype.testIgnore=function(e,t,n){return!(!e||!i.element(n))&&(i.string(e)?a.matchesUpTo(n,e,t):!!i.element(e)&&a.nodeContains(e,n))},r.prototype.testAllow=function(e,t,n){return!e||!!i.element(n)&&(i.string(e)?a.matchesUpTo(n,e,t):!!i.element(e)&&a.nodeContains(e,n))},r.prototype.testIgnoreAllow=function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)},r.prototype.actionChecker=function(e){return i.function(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker},r.prototype.styleCursor=function(e){return i.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor},r.prototype.defaultActionChecker=function(e,t,n,r){for(var i=this.getRect(r),a=t.buttons||{0:1,1:4,3:8,4:16}[t.button],s=null,l=0;l<o.names.length;l++){var c=o.names[l];if((!n.pointerIsDown||!/mouse|pointer/.test(n.pointerType)||0!=(a&this.options[c].mouseButtons))&&(s=o[c].checker(e,t,this,r,n,i)))return s}}},{"../Interactable":4,"../actions/base":6,"../utils":44,"../utils/domUtils":39,"../utils/is":46}],13:[function(e,t,n){"use strict";var r=e("../interact"),o=e("../Interactable"),i=e("../Interaction"),a=e("../actions/base"),s=e("../defaultOptions"),l=e("../scope"),c=e("../utils"),u=e("../utils/Signals").new();e("./InteractableMethods");var f={signals:u,withinInteractionLimit:v,maxInteractions:1/0,defaults:{perAction:{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}},setActionDefaults:function(e){c.extend(e.defaults,f.defaults.perAction)},validateAction:d};function d(e,t,n,r){return c.is.object(e)&&t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&v(t,n,e)?e:null}function p(e,t,n,r,o,i){for(var a=0,s=r.length;a<s;a++){var l=r[a],c=o[a],u=d(l.getAction(t,n,e,c),l,c,i);if(u)return{action:u,target:l,element:c}}return{}}function h(e,t,n,r){var o=[],i=[],a=r;function s(e){o.push(e),i.push(a)}for(;c.is.element(a);){o=[],i=[],l.interactables.forEachMatch(a,s);var u=p(e,t,n,o,i,r);if(u.action&&!u.target.options[u.action.name].manualStart)return u;a=c.parentNode(a)}return{}}function m(e,t){var n=t.action,r=t.target,o=t.element;if(n=n||{},e.target&&e.target.options.styleCursor&&(e.target._doc.documentElement.style.cursor=""),e.target=r,e.element=o,c.copyAction(e.prepared,n),r&&r.options.styleCursor){var i=n?a[n.name].getCursor(n):"";e.target._doc.documentElement.style.cursor=i}u.fire("prepared",{interaction:e})}function v(e,t,n){var r=e.options,o=r[n.name].max,i=r[n.name].maxPerElement,a=0,s=0,c=0;if(o&&i&&f.maxInteractions){for(var u=0;u<l.interactions.length;u++){var d=l.interactions[u],p=d.prepared.name;if(d.interacting()){if(++a>=f.maxInteractions)return!1;if(d.target===e){if((s+=p===n.name|0)>=o)return!1;if(d.element===t&&(c++,p!==n.name||c>=i))return!1}}}return f.maxInteractions>0}}i.signals.on("down",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget;if(!t.interacting()){var i=h(t,n,r,o);m(t,i)}}),i.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget;if("mouse"===t.pointerType&&!t.pointerIsDown&&!t.interacting()){var i=h(t,n,r,o);m(t,i)}}),i.signals.on("move",function(e){var t=e.interaction,n=e.event;if(t.pointerIsDown&&!t.interacting()&&t.pointerWasMoved&&t.prepared.name){u.fire("before-start",e);var r=t.target;t.prepared.name&&r&&(r.options[t.prepared.name].manualStart||!v(r,t.element,t.prepared)?t.stop(n):t.start(t.prepared,r,t.element))}}),i.signals.on("stop",function(e){var t=e.interaction,n=t.target;n&&n.options.styleCursor&&(n._doc.documentElement.style.cursor="")}),r.maxInteractions=function(e){return c.is.number(e)?(f.maxInteractions=e,r):f.maxInteractions},o.settingsMethods.push("styleCursor"),o.settingsMethods.push("actionChecker"),o.settingsMethods.push("ignoreFrom"),o.settingsMethods.push("allowFrom"),s.base.actionChecker=null,s.base.styleCursor=!0,c.extend(s.perAction,f.defaults.perAction),t.exports=f},{"../Interactable":4,"../Interaction":5,"../actions/base":6,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"../utils/Signals":34,"./InteractableMethods":12}],14:[function(e,t,n){"use strict";var r=e("./base"),o=e("../scope"),i=e("../utils/is"),a=e("../utils/domUtils"),s=a.parentNode;r.setActionDefaults(e("../actions/drag")),r.signals.on("before-start",function(e){var t=e.interaction,n=e.eventTarget,a=e.dx,l=e.dy;if("drag"===t.prepared.name){var c=Math.abs(a),u=Math.abs(l),f=t.target.options.drag,d=f.startAxis,p=c>u?"x":c<u?"y":"xy";if(t.prepared.axis="start"===f.lockAxis?p[0]:f.lockAxis,"xy"!==p&&"xy"!==d&&d!==p){t.prepared.name=null;for(var h=n,m=function(e){if(e!==t.target){var o=t.target.options.drag;if(!o.manualStart&&e.testIgnoreAllow(o,h,n)){var i=e.getAction(t.downPointer,t.downEvent,t,h);if(i&&"drag"===i.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(p,e)&&r.validateAction(i,e,h,n))return e}}};i.element(h);){var v=o.interactables.forEachMatch(h,m);if(v){t.prepared.name="drag",t.target=v,t.element=h;break}h=s(h)}}}})},{"../actions/drag":7,"../scope":33,"../utils/domUtils":39,"../utils/is":46,"./base":13}],15:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/gesture"))},{"../actions/gesture":9,"./base":13}],16:[function(e,t,n){"use strict";var r=e("./base"),o=e("../Interaction");function i(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.target.options;return n[t].hold||n[t].delay}r.defaults.perAction.hold=0,r.defaults.perAction.delay=0,o.signals.on("new",function(e){e.autoStartHoldTimer=null}),r.signals.on("prepared",function(e){var t=e.interaction,n=i(t);n>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.target,t.element)},n))}),o.signals.on("move",function(e){var t=e.interaction,n=e.duplicate;t.pointerWasMoved&&!n&&clearTimeout(t.autoStartHoldTimer)}),r.signals.on("before-start",function(e){var t=e.interaction,n=i(t);n>0&&(t.prepared.name=null)}),t.exports={getHoldDuration:i}},{"../Interaction":5,"./base":13}],17:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/resize"))},{"../actions/resize":10,"./base":13}],18:[function(e,t,n){"use strict";t.exports={base:{accept:null,preventDefault:"auto",deltaSource:"page"},perAction:{origin:{x:0,y:0},inertia:{enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}}}},{}],19:[function(e,t,n){"use strict";e("./inertia"),e("./modifiers/snap"),e("./modifiers/restrict"),e("./pointerEvents/base"),e("./pointerEvents/holdRepeat"),e("./pointerEvents/interactableTargets"),e("./autoStart/hold"),e("./actions/gesture"),e("./actions/resize"),e("./actions/drag"),e("./actions/drop"),e("./modifiers/snapSize"),e("./modifiers/restrictEdges"),e("./modifiers/restrictSize"),e("./autoStart/gesture"),e("./autoStart/resize"),e("./autoStart/drag"),e("./interactablePreventDefault.js"),e("./autoScroll"),t.exports=e("./interact")},{"./actions/drag":7,"./actions/drop":8,"./actions/gesture":9,"./actions/resize":10,"./autoScroll":11,"./autoStart/drag":14,"./autoStart/gesture":15,"./autoStart/hold":16,"./autoStart/resize":17,"./inertia":20,"./interact":21,"./interactablePreventDefault.js":22,"./modifiers/restrict":24,"./modifiers/restrictEdges":25,"./modifiers/restrictSize":26,"./modifiers/snap":27,"./modifiers/snapSize":28,"./pointerEvents/base":30,"./pointerEvents/holdRepeat":31,"./pointerEvents/interactableTargets":32}],20:[function(e,t,n){"use strict";var r=e("./InteractEvent"),o=e("./Interaction"),i=e("./modifiers/base"),a=e("./utils"),s=e("./utils/raf");function l(e){var t=e.inertiaStatus;if(t.active){var n=t.upCoords.page,r=t.upCoords.client;a.setCoords(e.curCoords,[{pageX:n.x+t.sx,pageY:n.y+t.sy,clientX:r.x+t.sx,clientY:r.y+t.sy}])}}o.signals.on("new",function(e){e.inertiaStatus={active:!1,smoothEnd:!1,allowResume:!1,startEvent:null,upCoords:{},xe:0,ye:0,sx:0,sy:0,t0:0,vx0:0,vys:0,duration:0,lambda_v0:0,one_ve_v0:0,i:null},e.boundInertiaFrame=function(){return function(){l(this),a.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords);var e=this.inertiaStatus,t=this.target.options[this.prepared.name].inertia.resistance,n=(new Date).getTime()/1e3-e.t0;if(n<e.te){var r=1-(Math.exp(-t*n)-e.lambda_v0)/e.one_ve_v0;if(e.modifiedXe===e.xe&&e.modifiedYe===e.ye)e.sx=e.xe*r,e.sy=e.ye*r;else{var o=a.getQuadraticCurvePoint(0,0,e.xe,e.ye,e.modifiedXe,e.modifiedYe,r);e.sx=o.x,e.sy=o.y}this.doMove(),e.i=s.request(this.boundInertiaFrame)}else e.sx=e.modifiedXe,e.sy=e.modifiedYe,this.doMove(),this.end(e.startEvent),e.active=!1,this.simulation=null;a.copyCoords(this.prevCoords,this.curCoords)}.apply(e)},e.boundSmoothEndFrame=function(){return function(){l(this);var e=this.inertiaStatus,t=(new Date).getTime()-e.t0,n=this.target.options[this.prepared.name].inertia.smoothEndDuration;t<n?(e.sx=a.easeOutQuad(t,0,e.xe,n),e.sy=a.easeOutQuad(t,0,e.ye,n),this.pointerMove(e.startEvent,e.startEvent),e.i=s.request(this.boundSmoothEndFrame)):(e.sx=e.xe,e.sy=e.ye,this.pointerMove(e.startEvent,e.startEvent),this.end(e.startEvent),e.smoothEnd=e.active=!1,this.simulation=null)}.apply(e)}}),o.signals.on("down",function(e){var t=e.interaction,n=e.event,l=e.pointer,c=e.eventTarget,u=t.inertiaStatus;if(u.active)for(var f=c;a.is.element(f);){if(f===t.element){s.cancel(u.i),u.active=!1,t.simulation=null,t.updatePointer(l),a.setCoords(t.curCoords,t.pointers);var d={interaction:t};o.signals.fire("before-action-move",d),o.signals.fire("action-resume",d);var p=new r(t,n,t.prepared.name,"inertiaresume",t.element);t.target.fire(p),t.prevEvent=p,i.resetStatuses(t.modifierStatuses),a.copyCoords(t.prevCoords,t.curCoords);break}f=a.parentNode(f)}}),o.signals.on("up",function(e){var t=e.interaction,n=e.event,o=t.inertiaStatus;if(t.interacting()&&!o.active){var l=t.target,c=l&&l.options,u=c&&t.prepared.name&&c[t.prepared.name].inertia,f=(new Date).getTime(),d={},p=a.extend({},t.curCoords.page),h=t.pointerDelta.client.speed,m=!1,v=void 0,g=u&&u.enabled&&"gesture"!==t.prepared.name&&n!==o.startEvent,y=g&&f-t.curCoords.timeStamp<50&&h>u.minSpeed&&h>u.endSpeed,b={interaction:t,pageCoords:p,statuses:d,preEnd:!0,requireEndOnly:!0};g&&!y&&(i.resetStatuses(d),(v=i.setAll(b)).shouldMove&&v.locked&&(m=!0)),(y||m)&&(a.copyCoords(o.upCoords,t.curCoords),t.pointers[0]=o.startEvent=new r(t,n,t.prepared.name,"inertiastart",t.element),o.t0=f,o.active=!0,o.allowResume=u.allowResume,t.simulation=o,l.fire(o.startEvent),y?(o.vx0=t.pointerDelta.client.vx,o.vy0=t.pointerDelta.client.vy,o.v0=h,function(e,t){var n=e.target.options[e.prepared.name].inertia,r=n.resistance,o=-Math.log(n.endSpeed/t.v0)/r;t.x0=e.prevEvent.pageX,t.y0=e.prevEvent.pageY,t.t0=t.startEvent.timeStamp/1e3,t.sx=t.sy=0,t.modifiedXe=t.xe=(t.vx0-o)/r,t.modifiedYe=t.ye=(t.vy0-o)/r,t.te=o,t.lambda_v0=r/t.v0,t.one_ve_v0=1-n.endSpeed/t.v0}(t,o),a.extend(p,t.curCoords.page),p.x+=o.xe,p.y+=o.ye,i.resetStatuses(d),v=i.setAll(b),o.modifiedXe+=v.dx,o.modifiedYe+=v.dy,o.i=s.request(t.boundInertiaFrame)):(o.smoothEnd=!0,o.xe=v.dx,o.ye=v.dy,o.sx=o.sy=0,o.i=s.request(t.boundSmoothEndFrame)))}}),o.signals.on("stop-active",function(e){var t=e.interaction,n=t.inertiaStatus;n.active&&(s.cancel(n.i),n.active=!1,t.simulation=null)})},{"./InteractEvent":3,"./Interaction":5,"./modifiers/base":23,"./utils":44,"./utils/raf":50}],21:[function(e,t,n){"use strict";var r=e("./utils/browser"),o=e("./utils/events"),i=e("./utils"),a=e("./scope"),s=e("./Interactable"),l=e("./Interaction"),c={};function u(e,t){var n=a.interactables.get(e,t);return n||((n=new s(e,t)).events.global=c),n}u.isSet=function(e,t){return-1!==a.interactables.indexOfElement(e,t&&t.context)},u.on=function(e,t,n){if(i.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.is.array(e)){for(var r=0;r<e.length;r++){var l=e[r];u.on(l,t,n)}return u}if(i.is.object(e)){for(var f in e)u.on(f,e[f],t);return u}return i.contains(s.eventTypes,e)?c[e]?c[e].push(t):c[e]=[t]:o.add(a.document,e,t,{options:n}),u},u.off=function(e,t,n){if(i.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.is.array(e)){for(var r=0;r<e.length;r++){var l=e[r];u.off(l,t,n)}return u}if(i.is.object(e)){for(var f in e)u.off(f,e[f],t);return u}if(i.contains(s.eventTypes,e)){var d=void 0;e in c&&-1!==(d=c[e].indexOf(t))&&c[e].splice(d,1)}else o.remove(a.document,e,t,n);return u},u.debug=function(){return a},u.getPointerAverage=i.pointerAverage,u.getTouchBBox=i.touchBBox,u.getTouchDistance=i.touchDistance,u.getTouchAngle=i.touchAngle,u.getElementRect=i.getElementRect,u.getElementClientRect=i.getElementClientRect,u.matchesSelector=i.matchesSelector,u.closest=i.closest,u.supportsTouch=function(){return r.supportsTouch},u.supportsPointerEvent=function(){return r.supportsPointerEvent},u.stop=function(e){for(var t=a.interactions.length-1;t>=0;t--)a.interactions[t].stop(e);return u},u.pointerMoveTolerance=function(e){return i.is.number(e)?(l.pointerMoveTolerance=e,u):l.pointerMoveTolerance},u.addDocument=a.addDocument,u.removeDocument=a.removeDocument,a.interact=u,t.exports=u},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils":44,"./utils/browser":36,"./utils/events":40}],22:[function(e,t,n){"use strict";var r=e("./Interactable"),o=e("./Interaction"),i=e("./scope"),a=e("./utils/is"),s=e("./utils/events"),l=e("./utils/browser"),c=e("./utils/domUtils"),u=c.nodeContains,f=c.matchesSelector;function d(e){var t=e.interaction,n=e.event;t.target&&t.target.checkAndPreventDefault(n)}r.prototype.preventDefault=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):a.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault},r.prototype.checkAndPreventDefault=function(e){var t=this.options.preventDefault;"never"!==t&&("always"!==t&&(s.supportsPassive&&/^touch(start|move)$/.test(e.type)&&!l.isIOS||/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||a.element(e.target)&&f(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *"))||e.preventDefault())};for(var p=["down","move","up","cancel"],h=0;h<p.length;h++){var m=p[h];o.signals.on(m,d)}o.docEvents.dragstart=function(e){for(var t=0;t<i.interactions.length;t++){var n=i.interactions[t];if(n.element&&(n.element===e.target||u(n.element,e.target)))return void n.target.checkAndPreventDefault(e)}}},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils/browser":36,"./utils/domUtils":39,"./utils/events":40,"./utils/is":46}],23:[function(e,t,n){"use strict";var r=e("../InteractEvent"),o=e("../Interaction"),i=e("../utils/extend"),a={names:[],setOffsets:function(e){var t=e.interaction,n=e.pageCoords,r=t.target,o=t.element,i=t.startOffset,s=r.getRect(o);s?(i.left=n.x-s.left,i.top=n.y-s.top,i.right=s.right-n.x,i.bottom=s.bottom-n.y,"width"in s||(s.width=s.right-s.left),"height"in s||(s.height=s.bottom-s.top)):i.left=i.top=i.right=i.bottom=0,e.rect=s,e.interactable=r,e.element=o;for(var l=0;l<a.names.length;l++){var c=a.names[l];e.options=r.options[t.prepared.name][c],e.options&&(t.modifierOffsets[c]=a[c].setOffset(e))}},setAll:function(e){var t=e.interaction,n=e.statuses,r=e.preEnd,o=e.requireEndOnly,l={dx:0,dy:0,changed:!1,locked:!1,shouldMove:!0};e.modifiedCoords=i({},e.pageCoords);for(var c=0;c<a.names.length;c++){var u=a.names[c],f=a[u],d=t.target.options[t.prepared.name][u];s(d,r,o)&&(e.status=e.status=n[u],e.options=d,e.offset=e.interaction.modifierOffsets[u],f.set(e),e.status.locked&&(e.modifiedCoords.x+=e.status.dx,e.modifiedCoords.y+=e.status.dy,l.dx+=e.status.dx,l.dy+=e.status.dy,l.locked=!0))}return l.shouldMove=!e.status||!l.locked||e.status.changed,l},resetStatuses:function(e){for(var t=0;t<a.names.length;t++){var n=a.names[t],r=e[n]||{};r.dx=r.dy=0,r.modifiedX=r.modifiedY=NaN,r.locked=!1,r.changed=!0,e[n]=r}return e},start:function(e,t){var n=e.interaction,r={interaction:n,pageCoords:("action-resume"===t?n.curCoords:n.startCoords).page,startOffset:n.startOffset,statuses:n.modifierStatuses,preEnd:!1,requireEndOnly:!1};a.setOffsets(r),a.resetStatuses(r.statuses),r.pageCoords=i({},n.startCoords.page),n.modifierResult=a.setAll(r)},beforeMove:function(e){var t=e.interaction,n=e.preEnd,r=e.interactingBeforeMove,o=a.setAll({interaction:t,preEnd:n,pageCoords:t.curCoords.page,statuses:t.modifierStatuses,requireEndOnly:!1});!o.shouldMove&&r&&(t._dontFireMove=!0),t.modifierResult=o},end:function(e){for(var t=e.interaction,n=e.event,r=0;r<a.names.length;r++){var o=a.names[r],i=t.target.options[t.prepared.name][o];if(s(i,!0,!0)){t.doMove({event:n,preEnd:!0});break}}},setXY:function(e){for(var t=e.iEvent,n=e.interaction,r=i({},e),o=0;o<a.names.length;o++){var s=a.names[o];if(r.options=n.target.options[n.prepared.name][s],r.options){var l=a[s];r.status=n.modifierStatuses[s],t[s]=l.modifyCoords(r)}}}};function s(e,t,n){return e&&e.enabled&&(t||!e.endOnly)&&(!n||e.endOnly)}o.signals.on("new",function(e){e.startOffset={left:0,right:0,top:0,bottom:0},e.modifierOffsets={},e.modifierStatuses=a.resetStatuses({}),e.modifierResult=null}),o.signals.on("action-start",a.start),o.signals.on("action-resume",a.start),o.signals.on("before-action-move",a.beforeMove),o.signals.on("action-end",a.end),r.signals.on("set-xy",a.setXY),t.exports=a},{"../InteractEvent":3,"../Interaction":5,"../utils/extend":41}],24:[function(e,t,n){"use strict";var r=e("./base"),o=e("../utils"),i=e("../defaultOptions"),a={defaults:{enabled:!1,endOnly:!1,restriction:null,elementRect:null},setOffset:function(e){var t=e.rect,n=e.startOffset,r=e.options,o=r&&r.elementRect,i={};return t&&o?(i.left=n.left-t.width*o.left,i.top=n.top-t.height*o.top,i.right=n.right-t.width*(1-o.right),i.bottom=n.bottom-t.height*(1-o.bottom)):i.left=i.top=i.right=i.bottom=0,i},set:function(e){var t=e.modifiedCoords,n=e.interaction,r=e.status,i=e.options;if(!i)return r;var a=r.useStatusXY?{x:r.x,y:r.y}:o.extend({},t),l=s(i.restriction,n,a);if(!l)return r;r.dx=0,r.dy=0,r.locked=!1;var c=l,u=a.x,f=a.y,d=n.modifierOffsets.restrict;"x"in l&&"y"in l?(u=Math.max(Math.min(c.x+c.width-d.right,a.x),c.x+d.left),f=Math.max(Math.min(c.y+c.height-d.bottom,a.y),c.y+d.top)):(u=Math.max(Math.min(c.right-d.right,a.x),c.left+d.left),f=Math.max(Math.min(c.bottom-d.bottom,a.y),c.top+d.top)),r.dx=u-a.x,r.dy=f-a.y,r.changed=r.modifiedX!==u||r.modifiedY!==f,r.locked=!(!r.dx&&!r.dy),r.modifiedX=u,r.modifiedY=f},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,o=e.phase,i=e.options,a=i&&i.elementRect;if(i&&i.enabled&&("start"!==o||!a||!r.locked)&&r.locked)return t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy,{dx:r.dx,dy:r.dy}},getRestrictionRect:s};function s(e,t,n){return o.is.function(e)?o.resolveRectLike(e,t.target,t.element,[n.x,n.y,t]):o.resolveRectLike(e,t.target,t.element)}r.restrict=a,r.names.push("restrict"),i.perAction.restrict=a.defaults,t.exports=a},{"../defaultOptions":18,"../utils":44,"./base":23}],25:[function(e,t,n){"use strict";var r=e("./base"),o=e("../utils"),i=e("../utils/rect"),a=e("../defaultOptions"),s=e("../actions/resize"),l=e("./restrict"),c=l.getRestrictionRect,u={top:1/0,left:1/0,bottom:-1/0,right:-1/0},f={top:-1/0,left:-1/0,bottom:1/0,right:1/0},d={defaults:{enabled:!1,endOnly:!1,min:null,max:null,offset:null},setOffset:function(e){var t=e.interaction,n=e.startOffset,r=e.options;if(!r)return o.extend({},n);var i=c(r.offset,t,t.startCoords.page);return i?{top:n.top+i.y,left:n.left+i.x,bottom:n.bottom+i.y,right:n.right+i.x}:n},set:function(e){var t=e.modifiedCoords,n=e.interaction,r=e.status,a=e.offset,s=e.options,l=n.prepared.linkedEdges||n.prepared.edges;if(n.interacting()&&l){var d=r.useStatusXY?{x:r.x,y:r.y}:o.extend({},t),p=i.xywhToTlbr(c(s.inner,n,d))||u,h=i.xywhToTlbr(c(s.outer,n,d))||f,m=d.x,v=d.y;r.dx=0,r.dy=0,r.locked=!1,l.top?v=Math.min(Math.max(h.top+a.top,d.y),p.top+a.top):l.bottom&&(v=Math.max(Math.min(h.bottom-a.bottom,d.y),p.bottom-a.bottom)),l.left?m=Math.min(Math.max(h.left+a.left,d.x),p.left+a.left):l.right&&(m=Math.max(Math.min(h.right-a.right,d.x),p.right-a.right)),r.dx=m-d.x,r.dy=v-d.y,r.changed=r.modifiedX!==m||r.modifiedY!==v,r.locked=!(!r.dx&&!r.dy),r.modifiedX=m,r.modifiedY=v}},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,o=e.phase,i=e.options;if(i&&i.enabled&&("start"!==o||!r.locked)&&r.locked)return t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy,{dx:r.dx,dy:r.dy}},noInner:u,noOuter:f,getRestrictionRect:c};r.restrictEdges=d,r.names.push("restrictEdges"),a.perAction.restrictEdges=d.defaults,s.defaults.restrictEdges=d.defaults,t.exports=d},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrict":24}],26:[function(e,t,n){"use strict";var r=e("./base"),o=e("./restrictEdges"),i=e("../utils"),a=e("../utils/rect"),s=e("../defaultOptions"),l=e("../actions/resize"),c={width:-1/0,height:-1/0},u={width:1/0,height:1/0},f={defaults:{enabled:!1,endOnly:!1,min:null,max:null},setOffset:function(e){var t=e.interaction;return t.startOffset},set:function(e){var t=e.interaction,n=e.options,r=t.prepared.linkedEdges||t.prepared.edges;if(t.interacting()&&r){var s=a.xywhToTlbr(t.resizeRects.inverted),l=a.tlbrToXywh(o.getRestrictionRect(n.min,t))||c,f=a.tlbrToXywh(o.getRestrictionRect(n.max,t))||u;e.options={enabled:n.enabled,endOnly:n.endOnly,inner:i.extend({},o.noInner),outer:i.extend({},o.noOuter)},r.top?(e.options.inner.top=s.bottom-l.height,e.options.outer.top=s.bottom-f.height):r.bottom&&(e.options.inner.bottom=s.top+l.height,e.options.outer.bottom=s.top+f.height),r.left?(e.options.inner.left=s.right-l.width,e.options.outer.left=s.right-f.width):r.right&&(e.options.inner.right=s.left+l.width,e.options.outer.right=s.left+f.width),o.set(e)}},modifyCoords:o.modifyCoords};r.restrictSize=f,r.names.push("restrictSize"),s.perAction.restrictSize=f.defaults,l.defaults.restrictSize=f.defaults,t.exports=f},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrictEdges":25}],27:[function(e,t,n){"use strict";var r=e("./base"),o=e("../interact"),i=e("../utils"),a=e("../defaultOptions"),s={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null,relativePoints:null},setOffset:function(e){var t=e.interaction,n=e.interactable,r=e.element,o=e.rect,a=e.startOffset,s=e.options,l=[],c=i.rectToXY(i.resolveRectLike(s.origin)),u=c||i.getOriginXY(n,r,t.prepared.name);s=s||n.options[t.prepared.name].snap||{};var f=void 0;if("startCoords"===s.offset)f={x:t.startCoords.page.x-u.x,y:t.startCoords.page.y-u.y};else{var d=i.resolveRectLike(s.offset,n,r,[t]);f=i.rectToXY(d)||{x:0,y:0}}if(o&&s.relativePoints&&s.relativePoints.length)for(var p=0;p<s.relativePoints.length;p++){var h=s.relativePoints[p],m=h.x,v=h.y;l.push({x:a.left-o.width*m+f.x,y:a.top-o.height*v+f.y})}else l.push(f);return l},set:function(e){var t=e.interaction,n=e.modifiedCoords,r=e.status,o=e.options,a=e.offset,s=[],l=void 0,c=void 0,u=void 0;if(r.useStatusXY)c={x:r.x,y:r.y};else{var f=i.getOriginXY(t.target,t.element,t.prepared.name);(c=i.extend({},n)).x-=f.x,c.y-=f.y}r.realX=c.x,r.realY=c.y;for(var d=o.targets?o.targets.length:0,p=0;p<a.length;p++)for(var h=a[p],m=h.x,v=h.y,g=c.x-m,y=c.y-v,b=0;b<(o.targets||[]).length;b++){var _=(o.targets||[])[b];(l=i.is.function(_)?_(g,y,t):_)&&s.push({x:i.is.number(l.x)?l.x+m:g,y:i.is.number(l.y)?l.y+v:y,range:i.is.number(l.range)?l.range:o.range})}var w={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0};for(u=0,d=s.length;u<d;u++){var E=(l=s[u]).range,x=l.x-c.x,k=l.y-c.y,S=i.hypot(x,k),T=S<=E;E===1/0&&w.inRange&&w.range!==1/0&&(T=!1),w.target&&!(T?w.inRange&&E!==1/0?S/E<w.distance/w.range:E===1/0&&w.range!==1/0||S<w.distance:!w.inRange&&S<w.distance)||(w.target=l,w.distance=S,w.range=E,w.inRange=T,w.dx=x,w.dy=k,r.range=E)}var C=void 0;w.target?(C=r.modifiedX!==w.target.x||r.modifiedY!==w.target.y,r.modifiedX=w.target.x,r.modifiedY=w.target.y):(C=!0,r.modifiedX=NaN,r.modifiedY=NaN),r.dx=w.dx,r.dy=w.dy,r.changed=C||w.inRange&&!r.locked,r.locked=w.inRange},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,o=e.phase,i=e.options,a=i&&i.relativePoints;if(i&&i.enabled&&("start"!==o||!a||!a.length))return r.locked&&(t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy),{range:r.range,locked:r.locked,x:r.modifiedX,y:r.modifiedY,realX:r.realX,realY:r.realY,dx:r.dx,dy:r.dy}}};o.createSnapGrid=function(e){return function(t,n){var r=e.limits||{left:-1/0,right:1/0,top:-1/0,bottom:1/0},o=0,a=0;i.is.object(e.offset)&&(o=e.offset.x,a=e.offset.y);var s=Math.round((t-o)/e.x),l=Math.round((n-a)/e.y),c=Math.max(r.left,Math.min(r.right,s*e.x+o)),u=Math.max(r.top,Math.min(r.bottom,l*e.y+a));return{x:c,y:u,range:e.range}}},r.snap=s,r.names.push("snap"),a.perAction.snap=s.defaults,t.exports=s},{"../defaultOptions":18,"../interact":21,"../utils":44,"./base":23}],28:[function(e,t,n){"use strict";var r=e("./base"),o=e("./snap"),i=e("../defaultOptions"),a=e("../actions/resize"),s=e("../utils/"),l={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null},setOffset:function(e){var t=e.interaction,n=e.options,r=t.prepared.edges;if(r){e.options={relativePoints:[{x:r.left?0:1,y:r.top?0:1}],origin:{x:0,y:0},offset:"self",range:n.range};var i=o.setOffset(e);return e.options=n,i}},set:function(e){var t=e.interaction,n=e.options,r=e.offset,i=e.modifiedCoords,a=s.extend({},i),l=a.x-r[0].x,c=a.y-r[0].y;e.options=s.extend({},n),e.options.targets=[];for(var u=0;u<(n.targets||[]).length;u++){var f=(n.targets||[])[u],d=void 0;(d=s.is.function(f)?f(l,c,t):f)&&("width"in d&&"height"in d&&(d.x=d.width,d.y=d.height),e.options.targets.push(d))}o.set(e)},modifyCoords:function(e){var t=e.options;e.options=s.extend({},t),e.options.enabled=t.enabled,e.options.relativePoints=[null],o.modifyCoords(e)}};r.snapSize=l,r.names.push("snapSize"),i.perAction.snapSize=l.defaults,a.defaults.snapSize=l.defaults,t.exports=l},{"../actions/resize":10,"../defaultOptions":18,"../utils/":44,"./base":23,"./snap":27}],29:[function(e,t,n){"use strict";var r=e("../utils/pointerUtils");t.exports=function(){function e(t,n,o,i,a){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.pointerExtend(this,o),o!==n&&r.pointerExtend(this,n),this.interaction=a,this.timeStamp=(new Date).getTime(),this.originalEvent=o,this.type=t,this.pointerId=r.getPointerId(n),this.pointerType=r.getPointerType(n),this.target=i,this.currentTarget=null,"tap"===t){var s=a.getPointerIndex(n);this.dt=this.timeStamp-a.downTimes[s];var l=this.timeStamp-a.tapTime;this.double=!!(a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===this.target&&l<500)}else"doubletap"===t&&(this.dt=n.timeStamp-a.tapTime)}return e.prototype.subtractOrigin=function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this},e.prototype.addOrigin=function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this},e.prototype.preventDefault=function(){this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e}()},{"../utils/pointerUtils":49}],30:[function(e,t,n){"use strict";var r=e("./PointerEvent"),o=e("../Interaction"),i=e("../utils"),a=e("../defaultOptions"),s=e("../utils/Signals").new(),l=["down","up","cancel"],c=["down","up","cancel"],u={PointerEvent:r,fire:f,collectEventTargets:d,signals:s,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up","cancel","tap","doubletap","hold"]};function f(e){for(var t=e.interaction,n=e.pointer,o=e.event,a=e.eventTarget,l=e.type,c=void 0===l?e.pointerEvent.type:l,u=e.targets,p=void 0===u?d(e):u,h=e.pointerEvent,m=void 0===h?new r(c,n,o,a,t):h,v={interaction:t,pointer:n,event:o,eventTarget:a,targets:p,type:c,pointerEvent:m},g=0;g<p.length;g++){var y=p[g];for(var b in y.props||{})m[b]=y.props[b];var _=i.getOriginXY(y.eventable,y.element);if(m.subtractOrigin(_),m.eventable=y.eventable,m.currentTarget=y.element,y.eventable.fire(m),m.addOrigin(_),m.immediatePropagationStopped||m.propagationStopped&&g+1<p.length&&p[g+1].element!==m.currentTarget)break}if(s.fire("fired",v),"tap"===c){var w=m.double?f({interaction:t,pointer:n,event:o,eventTarget:a,type:"doubletap"}):m;t.prevTap=w,t.tapTime=w.timeStamp}return m}function d(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget,a=e.type,l=t.getPointerIndex(n);if("tap"===a&&(t.pointerWasMoved||!t.downTargets[l]||t.downTargets[l]!==o))return[];for(var c=i.getPath(o),u={interaction:t,pointer:n,event:r,eventTarget:o,type:a,path:c,targets:[],element:null},f=0;f<c.length;f++){var d=c[f];u.element=d,s.fire("collect-targets",u)}return"hold"===a&&(u.targets=u.targets.filter(function(e){return e.eventable.options.holdDuration===t.holdTimers[l].duration})),u.targets}o.signals.on("update-pointer-down",function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers[n]={duration:1/0,timeout:null}}),o.signals.on("remove-pointer",function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers.splice(n,1)}),o.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget,i=e.duplicateMove,a=t.getPointerIndex(n);i||t.pointerIsDown&&!t.pointerWasMoved||(t.pointerIsDown&&clearTimeout(t.holdTimers[a].timeout),f({interaction:t,pointer:n,event:r,eventTarget:o,type:"move"}))}),o.signals.on("down",function(e){for(var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget,a=e.pointerIndex,l=t.holdTimers[a],c=i.getPath(o),u={interaction:t,pointer:n,event:r,eventTarget:o,type:"hold",targets:[],path:c,element:null},d=0;d<c.length;d++){var p=c[d];u.element=p,s.fire("collect-targets",u)}if(u.targets.length){for(var h=1/0,m=0;m<u.targets.length;m++){var v=u.targets[m],g=v.eventable.options.holdDuration;g<h&&(h=g)}l.duration=h,l.timeout=setTimeout(function(){f({interaction:t,eventTarget:o,pointer:n,event:r,type:"hold"})},h)}}),o.signals.on("up",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget;t.pointerWasMoved||f({interaction:t,eventTarget:o,pointer:n,event:r,type:"tap"})});for(var p=["up","cancel"],h=0;h<p.length;h++){var m=p[h];o.signals.on(m,function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers[n]&&clearTimeout(t.holdTimers[n].timeout)})}function v(e){return function(t){var n=t.interaction,r=t.pointer,o=t.event,i=t.eventTarget;f({interaction:n,eventTarget:i,pointer:r,event:o,type:e})}}for(var g=0;g<l.length;g++)o.signals.on(l[g],v(c[g]));o.signals.on("new",function(e){e.prevTap=null,e.tapTime=0,e.holdTimers=[]}),a.pointerEvents=u.defaults,t.exports=u},{"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/Signals":34,"./PointerEvent":29}],31:[function(e,t,n){"use strict";var r=e("./base"),o=e("../Interaction");r.signals.on("new",l),r.signals.on("fired",c);for(var i=["move","up","cancel","endall"],a=0;a<i.length;a++){var s=i[a];o.signals.on(s,u)}function l(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)}function c(e){var t=e.interaction,n=e.pointerEvent,o=e.eventTarget,i=e.targets;if("hold"===n.type&&i.length){var a=i[0].eventable.options.holdRepeatInterval;a<=0||(t.holdIntervalHandle=setTimeout(function(){r.fire({interaction:t,eventTarget:o,type:"hold",pointer:n,event:n})},a))}}function u(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}r.defaults.holdRepeatInterval=0,r.types.push("holdrepeat"),t.exports={onNew:l,onFired:c,endHoldRepeat:u}},{"../Interaction":5,"./base":30}],32:[function(e,t,n){"use strict";var r=e("./base"),o=e("../Interactable"),i=e("../utils/is"),a=e("../scope"),s=e("../utils/extend"),l=e("../utils/arr"),c=l.merge;r.signals.on("collect-targets",function(e){var t=e.targets,n=e.element,r=e.type,o=e.eventTarget;a.interactables.forEachMatch(n,function(e){var a=e.events,s=a.options;a[r]&&i.element(n)&&e.testIgnoreAllow(s,n,o)&&t.push({element:n,eventable:a,props:{interactable:e}})})}),o.signals.on("new",function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}}),o.signals.on("set",function(e){var t=e.interactable,n=e.options;s(t.events.options,r.defaults),s(t.events.options,n)}),c(o.eventTypes,r.types),o.prototype.pointerEvents=function(e){return s(this.events.options,e),this};var u=o.prototype._backCompatOption;o.prototype._backCompatOption=function(e,t){var n=u.call(this,e,t);return n===this&&(this.events.options[e]=t),n},o.settingsMethods.push("pointerEvents")},{"../Interactable":4,"../scope":33,"../utils/arr":35,"../utils/extend":41,"../utils/is":46,"./base":30}],33:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./utils/events"),i=e("./utils/Signals").new(),a=e("./utils/window"),s=a.getWindow,l={signals:i,events:o,utils:r,document:e("./utils/domObjects").document,documents:[],addDocument:function(e,t){if(r.contains(l.documents,e))return!1;t=t||s(e),l.documents.push(e),o.documents.push(e),e!==l.document&&o.add(t,"unload",l.onWindowUnload),i.fire("add-document",{doc:e,win:t})},removeDocument:function(e,t){var n=l.documents.indexOf(e);t=t||s(e),o.remove(t,"unload",l.onWindowUnload),l.documents.splice(n,1),o.documents.splice(n,1),i.fire("remove-document",{win:t,doc:e})},onWindowUnload:function(){l.removeDocument(this.document,this)}};t.exports=l},{"./utils":44,"./utils/Signals":34,"./utils/domObjects":38,"./utils/events":40,"./utils/window":52}],34:[function(e,t,n){"use strict";var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.off=function(e,t){if(this.listeners[e]){var n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}},e.prototype.fire=function(e,t){var n=this.listeners[e];if(n)for(var r=0;r<n.length;r++){var o=n[r];if(!1===o(t,e))return}},e}();r.new=function(){return new r},t.exports=r},{}],35:[function(e,t,n){"use strict";t.exports={contains:function(e,t){return-1!==e.indexOf(t)},merge:function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}}},{}],36:[function(e,t,n){"use strict";var r=e("./window"),o=r.window,i=e("./is"),a=e("./domObjects"),s=a.Element,l=o.navigator,c={supportsTouch:!!("ontouchstart"in o||i.function(o.DocumentTouch)&&a.document instanceof o.DocumentTouch),supportsPointerEvent:!!a.PointerEvent,isIOS:/iP(hone|od|ad)/.test(l.platform),isIOS7:/iP(hone|od|ad)/.test(l.platform)&&/OS 7[^\d]/.test(l.appVersion),isIe9:/MSIE 9/.test(l.userAgent),prefixedMatchesSelector:"matches"in s.prototype?"matches":"webkitMatchesSelector"in s.prototype?"webkitMatchesSelector":"mozMatchesSelector"in s.prototype?"mozMatchesSelector":"oMatchesSelector"in s.prototype?"oMatchesSelector":"msMatchesSelector",pEventTypes:a.PointerEvent?a.PointerEvent===o.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,wheelEvent:"onmousewheel"in a.document?"mousewheel":"wheel"};c.isOperaMobile="Opera"===l.appName&&c.supportsTouch&&l.userAgent.match("Presto"),t.exports=c},{"./domObjects":38,"./is":46,"./window":52}],37:[function(e,t,n){"use strict";var r=e("./is");t.exports=function e(t){var n={};for(var o in t)r.plainObject(t[o])?n[o]=e(t[o]):n[o]=t[o];return n}},{"./is":46}],38:[function(e,t,n){"use strict";var r={},o=e("./window").window;function i(){}r.document=o.document,r.DocumentFragment=o.DocumentFragment||i,r.SVGElement=o.SVGElement||i,r.SVGSVGElement=o.SVGSVGElement||i,r.SVGElementInstance=o.SVGElementInstance||i,r.Element=o.Element||i,r.HTMLElement=o.HTMLElement||r.Element,r.Event=o.Event,r.Touch=o.Touch||i,r.PointerEvent=o.PointerEvent||o.MSPointerEvent,t.exports=r},{"./window":52}],39:[function(e,t,n){"use strict";var r=e("./window"),o=e("./browser"),i=e("./is"),a=e("./domObjects"),s={nodeContains:function(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1},closest:function(e,t){for(;i.element(e);){if(s.matchesSelector(e,t))return e;e=s.parentNode(e)}return null},parentNode:function(e){var t=e.parentNode;if(i.docFrag(t)){for(;(t=t.host)&&i.docFrag(t););return t}return t},matchesSelector:function(e,t){return r.window!==r.realWindow&&(t=t.replace(/\/deep\//g," ")),e[o.prefixedMatchesSelector](t)},indexOfDeepestElement:function(e){var t=[],n=[],r=void 0,o=e[0],i=o?0:-1,s=void 0,l=void 0,c=void 0,u=void 0;for(c=1;c<e.length;c++)if((r=e[c])&&r!==o)if(o){if(r.parentNode!==r.ownerDocument)if(o.parentNode!==r.ownerDocument){if(!t.length)for(s=o;s.parentNode&&s.parentNode!==s.ownerDocument;)t.unshift(s),s=s.parentNode;if(o instanceof a.HTMLElement&&r instanceof a.SVGElement&&!(r instanceof a.SVGSVGElement)){if(r===o.parentNode)continue;s=r.ownerSVGElement}else s=r;for(n=[];s.parentNode!==s.ownerDocument;)n.unshift(s),s=s.parentNode;for(u=0;n[u]&&n[u]===t[u];)u++;var f=[n[u-1],n[u],t[u]];for(l=f[0].lastChild;l;){if(l===f[1]){o=r,i=c,t=[];break}if(l===f[2])break;l=l.previousSibling}}else o=r,i=c}else o=r,i=c;return i},matchesUpTo:function(e,t,n){for(;i.element(e);){if(s.matchesSelector(e,t))return!0;if((e=s.parentNode(e))===n)return s.matchesSelector(e,t)}return!1},getActualElement:function(e){return e instanceof a.SVGElementInstance?e.correspondingUseElement:e},getScrollXY:function(e){return{x:(e=e||r.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}},getElementClientRect:function(e){var t=e instanceof a.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}},getElementRect:function(e){var t=s.getElementClientRect(e);if(!o.isIOS7&&t){var n=s.getScrollXY(r.getWindow(e));t.left+=n.x,t.right+=n.x,t.top+=n.y,t.bottom+=n.y}return t},getPath:function(e){for(var t=[];e;)t.push(e),e=s.parentNode(e);return t},trySelector:function(e){return!!i.string(e)&&(a.document.querySelector(e),!0)}};t.exports=s},{"./browser":36,"./domObjects":38,"./is":46,"./window":52}],40:[function(e,t,n){"use strict";var r,o=e("./is"),i=e("./domUtils"),a=e("./pointerUtils"),s=e("./pointerExtend"),l=e("./window"),c=l.window,u=e("./arr"),f=u.contains,d=[],p=[],h={},m=[],v=(r=!1,c.document.createElement("div").addEventListener("test",null,{get capture(){r=!0}}),r);function g(e,t,n,r){var o=E(r),i=d.indexOf(e),a=p[i];a||(a={events:{},typeCount:0},i=d.push(e)-1,p.push(a)),a.events[t]||(a.events[t]=[],a.typeCount++),f(a.events[t],n)||(e.addEventListener(t,n,v?o:!!o.capture),a.events[t].push(n))}function y(e,t,n,r){var o=E(r),i=d.indexOf(e),a=p[i];if(a&&a.events)if("all"!==t){if(a.events[t]){var s=a.events[t].length;if("all"===n){for(var l=0;l<s;l++)y(e,t,a.events[t][l],o);return}for(var c=0;c<s;c++)if(a.events[t][c]===n){e.removeEventListener("on"+t,n,v?o:!!o.capture),a.events[t].splice(c,1);break}a.events[t]&&0===a.events[t].length&&(a.events[t]=null,a.typeCount--)}a.typeCount||(p.splice(i,1),d.splice(i,1))}else for(t in a.events)a.events.hasOwnProperty(t)&&y(e,t,"all")}function b(e,t){var n=E(t),r={},l=h[e.type],c=a.getEventTargets(e),u=c[0],f=u;for(s(r,e),r.originalEvent=e,r.preventDefault=w;o.element(f);){for(var d=0;d<l.selectors.length;d++){var p=l.selectors[d],m=l.contexts[d];if(i.matchesSelector(f,p)&&i.nodeContains(m,u)&&i.nodeContains(m,f)){var v=l.listeners[d];r.currentTarget=f;for(var g=0;g<v.length;g++){var y=v[g],b=y[0],_=y[1],x=y[2];_===!!n.capture&&x===n.passive&&b(r)}}}f=i.parentNode(f)}}function _(e){return b.call(this,e,!0)}function w(){this.originalEvent.preventDefault()}function E(e){return o.object(e)?e:{capture:e}}t.exports={add:g,remove:y,addDelegate:function(e,t,n,r,o){var i=E(o);if(!h[n]){h[n]={selectors:[],contexts:[],listeners:[]};for(var a=0;a<m.length;a++){var s=m[a];g(s,n,b),g(s,n,_,!0)}}var l=h[n],c=void 0;for(c=l.selectors.length-1;c>=0&&(l.selectors[c]!==e||l.contexts[c]!==t);c--);-1===c&&(c=l.selectors.length,l.selectors.push(e),l.contexts.push(t),l.listeners.push([])),l.listeners[c].push([r,!!i.capture,i.passive])},removeDelegate:function(e,t,n,r,o){var i=E(o),a=h[n],s=!1,l=void 0;if(a)for(l=a.selectors.length-1;l>=0;l--)if(a.selectors[l]===e&&a.contexts[l]===t){for(var c=a.listeners[l],u=c.length-1;u>=0;u--){var f=c[u],d=f[0],p=f[1],m=f[2];if(d===r&&p===!!i.capture&&m===i.passive){c.splice(u,1),c.length||(a.selectors.splice(l,1),a.contexts.splice(l,1),a.listeners.splice(l,1),y(t,n,b),y(t,n,_,!0),a.selectors.length||(h[n]=null)),s=!0;break}}if(s)break}},delegateListener:b,delegateUseCapture:_,delegatedEvents:h,documents:m,supportsOptions:v,_elements:d,_targets:p}},{"./arr":35,"./domUtils":39,"./is":46,"./pointerExtend":48,"./pointerUtils":49,"./window":52}],41:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n in t)e[n]=t[n];return e}},{}],42:[function(e,t,n){"use strict";var r=e("./rect"),o=r.resolveRectLike,i=r.rectToXY;t.exports=function(e,t,n){var r=e.options[n],a=r&&r.origin,s=a||e.options.origin,l=o(s,e,t,[e&&t]);return i(l)||{x:0,y:0}}},{"./rect":51}],43:[function(e,t,n){"use strict";t.exports=function(e,t){return Math.sqrt(e*e+t*t)}},{}],44:[function(e,t,n){"use strict";var r=e("./extend"),o=e("./window"),i={warnOnce:function(e,t){var n=!1;return function(){return n||(o.window.console.warn(t),n=!0),e.apply(this,arguments)}},_getQBezierValue:function(e,t,n,r){var o=1-e;return o*o*t+2*o*e*n+e*e*r},getQuadraticCurvePoint:function(e,t,n,r,o,a,s){return{x:i._getQBezierValue(s,e,n,o),y:i._getQBezierValue(s,t,r,a)}},easeOutQuad:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},copyAction:function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},is:e("./is"),extend:r,hypot:e("./hypot"),getOriginXY:e("./getOriginXY")};r(i,e("./arr")),r(i,e("./domUtils")),r(i,e("./pointerUtils")),r(i,e("./rect")),t.exports=i},{"./arr":35,"./domUtils":39,"./extend":41,"./getOriginXY":42,"./hypot":43,"./is":46,"./pointerUtils":49,"./rect":51,"./window":52}],45:[function(e,t,n){"use strict";var r=e("../scope"),o=e("./index"),i={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e,t,n){for(var r=o.getPointerType(e),a=o.getPointerId(e),s={pointer:e,pointerId:a,pointerType:r,eventType:t,eventTarget:n},l=0;l<i.methodOrder.length;l++){var c=i.methodOrder[l],u=i[c](s);if(u)return u}},simulationResume:function(e){var t=e.pointerType,n=e.eventType,i=e.eventTarget;if(!/down|start/i.test(n))return null;for(var a=0;a<r.interactions.length;a++){var s=r.interactions[a],l=i;if(s.simulation&&s.simulation.allowResume&&s.pointerType===t)for(;l;){if(l===s.element)return s;l=o.parentNode(l)}}return null},mouseOrPen:function(e){var t=e.pointerId,n=e.pointerType,i=e.eventType;if("mouse"!==n&&"pen"!==n)return null;for(var a=void 0,s=0;s<r.interactions.length;s++){var l=r.interactions[s];if(l.pointerType===n){if(l.simulation&&!o.contains(l.pointerIds,t))continue;if(l.interacting())return l;a||(a=l)}}if(a)return a;for(var c=0;c<r.interactions.length;c++){var u=r.interactions[c];if(!(u.pointerType!==n||/down/i.test(i)&&u.simulation))return u}return null},hasPointer:function(e){for(var t=e.pointerId,n=0;n<r.interactions.length;n++){var i=r.interactions[n];if(o.contains(i.pointerIds,t))return i}},idle:function(e){for(var t=e.pointerType,n=0;n<r.interactions.length;n++){var o=r.interactions[n];if(1===o.pointerIds.length){var i=o.target;if(i&&!i.options.gesture.enabled)continue}else if(o.pointerIds.length>=2)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};t.exports=i},{"../scope":33,"./index":44}],46:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=e("./window"),i=e("./isWindow"),a={array:function(){},window:function(e){return e===o.window||i(e)},docFrag:function(e){return a.object(e)&&11===e.nodeType},object:function(e){return!!e&&"object"===(void 0===e?"undefined":r(e))},function:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==(void 0===e?"undefined":r(e)))return!1;var t=o.getWindow(e)||o.window;return/object|function/.test(r(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return a.object(e)&&"Object"===e.constructor.name}};a.array=function(e){return a.object(e)&&void 0!==e.length&&a.function(e.splice)},t.exports=a},{"./isWindow":47,"./window":52}],47:[function(e,t,n){"use strict";t.exports=function(e){return!(!e||!e.Window)&&e instanceof e.Window}},{}],48:[function(e,t,n){"use strict";function r(e,n){for(var r in n){var o=t.exports.prefixedPropREs,i=!1;for(var a in o)if(0===r.indexOf(a)&&o[a].test(r)){i=!0;break}i||"function"==typeof n[r]||(e[r]=n[r])}return e}r.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/},t.exports=r},{}],49:[function(e,t,n){"use strict";var r=e("./hypot"),o=e("./browser"),i=e("./domObjects"),a=e("./domUtils"),s=e("./domObjects"),l=e("./is"),c=e("./pointerExtend"),u={copyCoords:function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},setCoordDeltas:function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp;var o=Math.max(e.timeStamp/1e3,.001);e.page.speed=r(e.page.x,e.page.y)/o,e.page.vx=e.page.x/o,e.page.vy=e.page.y/o,e.client.speed=r(e.client.x,e.page.y)/o,e.client.vx=e.client.x/o,e.client.vy=e.client.y/o},isNativePointer:function(e){return e instanceof i.Event||e instanceof i.Touch},getXY:function(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n},getPageXY:function(e,t){return t=t||{},o.isOperaMobile&&u.isNativePointer(e)?(u.getXY("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):u.getXY("page",e,t),t},getClientXY:function(e,t){return t=t||{},o.isOperaMobile&&u.isNativePointer(e)?u.getXY("screen",e,t):u.getXY("client",e,t),t},getPointerId:function(e){return l.number(e.pointerId)?e.pointerId:e.identifier},setCoords:function(e,t,n){var r=t.length>1?u.pointerAverage(t):t[0],o={};u.getPageXY(r,o),e.page.x=o.x,e.page.y=o.y,u.getClientXY(r,o),e.client.x=o.x,e.client.y=o.y,e.timeStamp=l.number(n)?n:(new Date).getTime()},pointerExtend:c,getTouchPair:function(e){var t=[];return l.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t},pointerAverage:function(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var o in t)t[o]+=r[o]}for(var i in t)t[i]/=e.length;return t},touchBBox:function(e){if(e.length||e.touches&&e.touches.length>1){var t=u.getTouchPair(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),o=Math.max(t[0].pageX,t[1].pageX),i=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,width:o-n,height:i-r}}},touchDistance:function(e,t){var n=t+"X",o=t+"Y",i=u.getTouchPair(e),a=i[0][n]-i[1][n],s=i[0][o]-i[1][o];return r(a,s)},touchAngle:function(e,t,n){var r=n+"X",o=n+"Y",i=u.getTouchPair(e),a=i[1][r]-i[0][r],s=i[1][o]-i[0][o],l=180*Math.atan2(s,a)/Math.PI;return l},getPointerType:function(e){return l.string(e.pointerType)?e.pointerType:l.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof s.Touch?"touch":"mouse"},getEventTargets:function(e){var t=l.function(e.composedPath)?e.composedPath():e.path;return[a.getActualElement(t?t[0]:e.target),a.getActualElement(e.currentTarget)]}};t.exports=u},{"./browser":36,"./domObjects":38,"./domUtils":39,"./hypot":43,"./is":46,"./pointerExtend":48}],50:[function(e,t,n){"use strict";for(var r=e("./window"),o=r.window,i=["ms","moz","webkit","o"],a=0,s=void 0,l=void 0,c=0;c<i.length&&!o.requestAnimationFrame;c++)s=o[i[c]+"RequestAnimationFrame"],l=o[i[c]+"CancelAnimationFrame"]||o[i[c]+"CancelRequestAnimationFrame"];s||(s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(function(){e(t+n)},n);return a=t+n,r}),l||(l=function(e){clearTimeout(e)}),t.exports={request:s,cancel:l}},{"./window":52}],51:[function(e,t,n){"use strict";var r=e("./extend"),o=e("./is"),i=e("./domUtils"),a=i.closest,s=i.parentNode,l=i.getElementRect,c={getStringOptionResult:function(e,t,n){return o.string(e)?e="parent"===e?s(n):"self"===e?t.getRect(n):a(n,e):null},resolveRectLike:function(e,t,n,r){return e=c.getStringOptionResult(e,t,n)||e,o.function(e)&&(e=e.apply(null,r)),o.element(e)&&(e=l(e)),e},rectToXY:function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},xywhToTlbr:function(e){return!e||"left"in e&&"top"in e||((e=r({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e},tlbrToXywh:function(e){return!e||"x"in e&&"y"in e||((e=r({},e)).x=e.left||0,e.top=e.top||0,e.width=e.width||e.right-e.x,e.height=e.height||e.bottom-e.y),e}};t.exports=c},{"./domUtils":39,"./extend":41,"./is":46}],52:[function(e,t,n){"use strict";var r=t.exports,o=e("./isWindow");function i(e){r.realWindow=e;var t=e.document.createTextNode("");t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t&&(e=e.wrap(e)),r.window=e}"undefined"==typeof window?(r.window=void 0,r.realWindow=void 0):i(window),r.getWindow=function(e){if(o(e))return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r.window},r.init=i},{"./isWindow":47}]},{},[1])(1)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return oe}),n.d(t,"b",function(){return ie});var r=n(161),o=n(17),i=n.n(o),a=n(34),s=n.n(a),l=n(3),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(15),m=n(11),v=(n(2072),n(96)),g=n(53),y=n.n(g),b=n(20),_=n.n(b),w=n(100),E=n.n(w),x=n(2),k=n.n(x),S=n(41),T=n.n(S),C=n(35),O=n.n(C),j=n(37),A=n.n(j),N=n(36),M=n.n(N),I=n(28),L=n.n(I),P=n(38),D=n.n(P),R=n(272),F=n.n(R),B=n(14),U=n.n(B),q=n(379),z=n.n(q),H=n(16),W=n.n(H),$=n(0),Y=n.n($),K=n(201),V=n.n(K),G=n(91),X=n.n(G),Z=n(139),Q=n.n(Z),J=n(760),ee=n(1203),te=n(75),ne=n(761),re=n(388),oe=function(t){function n(e){var t,r,o,i,a,s,l,f,m;return Object(u.a)(this,n),(m=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={arrow:{absolute:null,bottom:null,fixed:null,hidden:"prev",opacity:null,top:null},initiating:!0,scroll:{active:!1,auto:!1,end:!1},position:{next:null,prev:null},sidebar:null,slide:{active:!1,current:0,fade:!1,previous:null},style:null,width:{card:null,wrapper:null}},m.handleRestart=c()(t=m.handleRestart).call(t,Object(h.a)(m)),m.handleScroll=c()(r=m.handleScroll).call(r,Object(h.a)(m)),m.renderStep=c()(o=m.renderStep).call(o,Object(h.a)(m)),m.setArrows=c()(i=m.setArrows).call(i,Object(h.a)(m)),m.setHeight=c()(a=m.setHeight).call(a,Object(h.a)(m)),m.setPosition=c()(s=m.setPosition).call(s,Object(h.a)(m)),m.setWidth=c()(l=m.setWidth).call(l,Object(h.a)(m)),m.slideTo=c()(f=m.slideTo).call(f,Object(h.a)(m)),m}return Object(m.a)(n,t),Object(f.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.isPreview,n=document.getElementsByClassName("page-wrap")[0];this.container=t?n:window,this.initRef=s()(function(){return e.setState({initiating:!1})},1e3),this.scrollRef=Q()(this.handleScroll,10),window.addEventListener("resize",this.setPosition),this.container.addEventListener("scroll",this.scrollRef),s()(this.setPosition,0),s()(this.handleScroll,0)}},{key:"componentDidUpdate",value:function(e){this.props.menuOpen!==e.menuOpen&&(this.resizeRef=s()(this.setPosition,300))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.initRef),clearTimeout(this.resizeRef),clearTimeout(this.slideRef),clearTimeout(this.afterSlideRef),clearTimeout(this.arrowAnimRef),window.removeEventListener("resize",this.setPosition),this.container.removeEventListener("scroll",this.scrollRef)}},{key:"handleRestart",value:function(){var e=this,t=this.props,n=t.getScrollTop,r=t.steps,o=n(),i=Object(v.findDOMNode)(this.refs["slide-0"]).offsetHeight,a=this.container===window?"body, html":this.container,l=U()(this.state.arrow,{hidden:"prev"}),c=U()(this.state.scroll),u={active:!1,auto:!1,end:!1},f=U()(this.state.slide,{fade:!0}),d={active:!1,current:0,fade:!0,previous:r.length-1},p=U()(d,{fade:!1}),h=function(){e.setState({scroll:u,slide:d}),e.afterSlideRef=s()(e.setArrows,300)};this.setState({scroll:c({auto:!0}),slide:f,style:{height:i}},function(){y()(a).stop().animate({scrollTop:o},300,h)}),this.slideRef=s()(function(){return e.setState({slide:p})},700),this.arrowAnimRef=s()(function(){return e.setState({arrow:l})},300)}},{key:"handleScroll",value:function(){var e=this.state,t=e.arrow,n=e.scroll,r=e.slide.current,o="prev"===t.hidden?"next":"prev",i=Object(v.findDOMNode)(this.refs["slide-".concat(r)]),a=Object(v.findDOMNode)(this.refs["arrow-".concat(o)]).firstChild;if(!n.auto&&i&&a){var s=i.getBoundingClientRect(),l=s.height,c=s.top,u=a.getBoundingClientRect().top,f=460-l,d=.005*(c-f+200),p=U()(n),h=U()(t);c<80&&c>f?this.setState({scroll:p({active:!0,end:!1})}):c<=f?this.setState({scroll:p({active:!1,end:!0}),arrow:h({opacity:d,top:u})}):this.setState({scroll:p({active:!1,end:!1}),arrow:h({opacity:d,top:u})})}}},{key:"handleSlide",value:function(e){var t=this.props.steps,n=this.state.slide.current,r="next"===e?n+1:n-1;r<=-1||r>=t.length||this.slideTo(r,n)}},{key:"render",value:function(){var t=this,n=this.props,r=n.menuOpen,o=n.steps,a=this.state,s=a.initiating,l=a.sidebar,c=a.slide,u=a.style,f=c.current,d=c.fade,p=o.length,h=f===p-1,m=0===f,v=Math.min(p-22,f-11),g=Math.max(24-f,f+12,23),y=m?0:Math.max(0,v),b=h?p:Math.min(p,g),_=V()(y,b,o),w=p<23?_:z()(o[0],_),E=k()("process-block",{"process-block--with-sidebar":r&&l>0}),x={className:k()("process-block__inner",{"process-block__inner--fade":d||s}),ref:function(e){return t.inner=e},style:u};return e.createElement("div",{className:E},e.createElement("div",x,this.renderArrow("prev"),h?i()(w).call(w,this.renderStep):i()(_).call(_,this.renderStep),this.renderArrow("next")))}},{key:"renderArrow",value:function(t){var n,o=this.state,i=o.arrow,a=o.scroll,s=o.sidebar,l=o.slide,u=this.props,f=u.menuOpen,d=u.steps,p=this.container&&this.container!==window,h=d.length>1?i.hidden:"both",m=Object(r.a)({},i,{hidden:h,isSliding:l.active,offset:p?this.container.offsetWidth-this.container.clientWidth:0,onClick:c()(n=this.handleSlide).call(n,this,t),opacity:i.opacity>=0?i.opacity:0,ref:"arrow-".concat(t),scroll:a,sidebar:f?s:0,type:t});return e.createElement(ee.a,m)}},{key:"renderStep",value:function(t){var n,r=t.description,o=t.id,i=t.index,a=t.media,s=t.title,l=t.type,u=this.props,f=u.blockId,d=u.entered,p=u.labels,h=u.settings,m=u.steps,v=this.state,g=v.initiating,y=v.position,b=v.slide,_=v.width,w=b.current,E=b.fade,x=b.previous,k=_.card,S=_.wrapper,T=function(e){return!D()(M()(W()("type",e),m))},C=T("intro"),O=T("summary"),j=C?i:i+1,N=A()(W()("type","step"),m).length+1,I={blockId:f,current:w,description:r,entered:d,fade:E,hasNavigation:m.length>1,id:o,index:i,initiating:g,key:i,labels:p,media:a,onMediaLoad:this.setHeight,onNextClick:c()(n=this.handleSlide).call(n,this,"next"),onRestartClick:this.handleRestart,number:j,position:y,previous:x,ref:"slide-".concat(i),settings:h,title:s,type:l,width:k,wrapperWidth:S},L={current:w,hasSummary:O,isFirst:!C,length:N,slideTo:this.slideTo};return e.createElement(J.a,I,e.createElement(ne.a,L))}},{key:"setArrows",value:function(){var e=this.state,t=e.arrow,n=t.hidden,r=t.opacity,o=e.sidebar,i=e.slide.current,a=this.props.menuOpen,s="prev"===n?"next":"prev",l=Object(v.findDOMNode)(this.refs["slide-".concat(i)]),c=Object(v.findDOMNode)(this.refs["arrow-".concat(s)]).firstChild,u=L()(F.a),f=a?o:0,d=window.innerWidth;if(l&&c){var p=l.getBoundingClientRect(),h=p.height,m=p.left,g=p.width,y=c.getBoundingClientRect(),b=y.top,w=(d-g-m)/2-y.width,E=T()([[u(1280+f),_()(w+20)],[u(1350+f),_()(w)],[X.a,_()(m-f-170)]])(d),x=T()([[u(1280+f),_()(w+20)],[u(1350+f),_()(w+40)],[X.a,_()(m-f-130)]])(d);this.setState({arrow:{absolute:E,bottom:h-220,fixed:x,hidden:n,opacity:r,top:b}})}}},{key:"setHeight",value:function(e){var t=this.state.slide.current,n=Object(v.findDOMNode)(this.refs["slide-".concat(t)]),r="function"==typeof e?e:_.a;n&&this.setState({style:{height:n.offsetHeight}},r)}},{key:"setPosition",value:function(){this.setWidth(),this.setHeight(),this.setArrows()}},{key:"setWidth",value:function(){var e=this.state.slide.current,t=this.inner,n=Object(v.findDOMNode)(this.refs["slide-".concat(e)]),r=this.container&&this.container!==window?this.container.getBoundingClientRect().left:0,o=n.offsetWidth,i=t.offsetWidth,a=t&&n,s=a&&(i-o)/2+o/2,l=a&&(i-o)/2+1.5*o,c={card:n&&n.offsetWidth,wrapper:t&&t.offsetWidth},u={prev:l,next:s};t&&n&&this.setState({position:u,sidebar:r,width:c})}},{key:"slideTo",value:function(e,t){var n=this;if(!this.state.slide.active){var r=this.props,o=r.getScrollTop,i=r.onStep,a=r.steps,l=o(),c=Object(v.findDOMNode)(this.refs["slide-".concat(e)]).offsetHeight,u=this.container===window?"body, html":this.container,f=U()(this.state.scroll),d={active:!1,auto:!1,end:!1},p=U()(this.state.arrow),h=U()({current:e,previous:t,fade:!1}),m=a[e],g=T()([[O()(0),_()({hidden:"prev"})],[O()(a.length-1),_()({hidden:"next"})],[X.a,_()({hidden:null})]])(e),b=function(){n.setState({scroll:d}),n.afterSlideRef=s()(n.setArrows,400)};this.setState({scroll:f({auto:!0}),slide:h({active:!0}),style:{height:c}},function(){y()(u).stop().animate({scrollTop:l},300,b)}),this.slideRef=s()(function(){return n.setState({slide:h({active:!1})})},600),this.arrowAnimRef=s()(function(){return n.setState({arrow:p(g)})},300),i&&i(m)}}}],[{key:"propTypes",get:function(){return{blockId:Y.a.string.isRequired,entered:Y.a.bool,getScrollTop:Y.a.func.isRequired,isPreview:Y.a.bool,labels:Y.a.object.isRequired,menuOpen:Y.a.bool,onStep:Y.a.func,settings:Y.a.object.isRequired,steps:Y.a.array.isRequired,visible:Y.a.bool}}}]),n}(e.Component),ie=function(t){function n(e){var t,r,o,i,a,s,l;return Object(u.a)(this,n),(l=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={current:0,fade:!1,height:null,help:!1,helped:!1,initiating:!0,width:null,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null},l.handleRestart=c()(t=l.handleRestart).call(t,Object(h.a)(l)),l.preventScroll=c()(r=l.preventScroll).call(r,Object(h.a)(l)),l.renderStep=c()(o=l.renderStep).call(o,Object(h.a)(l)),l.setHeight=c()(i=l.setHeight).call(i,Object(h.a)(l)),l.setPosition=c()(a=l.setPosition).call(a,Object(h.a)(l)),l.setWidth=c()(s=l.setWidth).call(s,Object(h.a)(l)),l}return Object(m.a)(n,t),Object(f.a)(n,[{key:"componentDidMount",value:function(){var e,t,n=this,r=this.props.isPreview,o=document.getElementsByClassName("page-wrap")[0],i=c()(e=this.handleSlide).call(e,this,"prev"),a=c()(t=this.handleSlide).call(t,this,"next"),l=function(){return n.setState({initiating:!1})};this.container=r?o:window,this.swipeEvents=Object(re.a)(this.inner,this,a,i,60),this.initRef=s()(function(){return n.setPosition(l)},500),this.swipeEvents.addListeners(),window.addEventListener("resize",this.setPosition),this.setPosition(),this.showHelp()}},{key:"componentDidUpdate",value:function(e){this.props.menuOpen!==e.menuOpen&&(this.resizeRef=s()(this.setPosition,300))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.initRef),clearTimeout(this.afterSlideRef),clearTimeout(this.slideRef),clearTimeout(this.resizeRef),this.swipeEvents.removeListeners(),window.removeEventListener("resize",this.setPosition)}},{key:"handleRestart",value:function(){var e=this,t=(0,this.props.getScrollTop)(),n=this.container===window?"body, html":this.container,r=this.refs["slide-0"].firstChild.offsetHeight,o=function(){e.preventScroll("end")};this.setState({fade:!0},function(){e.preventScroll("start"),y()(n).stop().animate({scrollTop:t},300,o)}),this.slideRef=s()(function(){return e.setState({current:0,height:r})},300),this.afterSlideRef=s()(function(){return e.setState({fade:!1})},700)}},{key:"handleSlide",value:function(e){var t=this,n=this.props,r=n.getScrollTop,o=n.onStep,i=n.steps,a=this.state.current,s=r(),l="next"===e?a+1:a-1;if(!(l<=-1||l>=i.length)){var c=i[l],u=this.container===window?"body, html":this.container,f=this.refs["slide-".concat(l)].firstChild.offsetHeight,d=function(){t.preventScroll("end"),t.showHelp()};this.setState({current:l,height:f},function(){t.preventScroll("start"),y()(u).stop().animate({scrollTop:s},300,d)}),o&&o(c)}}},{key:"preventScroll",value:function(e){this.container!==window&&("start"===e&&te.a.isMobile?this.container.style.overflowY="hidden":this.container.style.overflowY="")}},{key:"render",value:function(){var t=this,n=this.props.steps,r=this.state,o=r.current,a=r.fade,s=r.height,l=r.initiating,c=n.length,u=o===c-1,f=0===o?0:o-1,d=u?c:o+2,p=V()(f,d,n),h=c<3?p:E()(n[0],p),m={className:k()("process-block-mobile__inner",{"process-block-mobile__inner--fade":a,"process-block-mobile__inner--initiating":l}),ref:function(e){return t.inner=e},style:s?{height:s}:null};return e.createElement("div",{className:"process-block-mobile"},e.createElement("div",m,u?i()(h).call(h,this.renderStep):i()(p).call(p,this.renderStep)))}},{key:"renderStep",value:function(t){var n,r=t.description,o=t.id,i=t.index,a=t.media,s=t.title,l=t.type,u=this.props,f=u.blockId,d=u.entered,p=u.labels,h=u.settings,m=u.steps,v=u.visible,g=this.state,y=g.current,b=g.help,_=g.helped,w=g.initiating,E=function(e){return!D()(M()(W()("type",e),m))},x=E("intro"),k=E("summary"),S=x?i:i+1,T=A()(W()("type","step"),m).length+1,C={blockId:f,current:y,description:r,entered:v&&d,hasNavigation:m.length>1,id:o,index:i,initiating:w,labels:p,media:a,onMediaLoad:this.setHeight,onNextClick:c()(n=this.handleSlide).call(n,this,"next"),onRestartClick:this.handleRestart,number:S,settings:h,showHelp:b&&_,title:s,type:l,width:this.inner&&this.inner.offsetWidth},O={current:y,hasSummary:k,isFirst:!x,length:T};return e.createElement("div",{key:i,ref:"slide-".concat(i)},e.createElement(J.b,C,e.createElement(ne.a,O)))}},{key:"setHeight",value:function(e){var t=this.state.current,n=this.refs["slide-".concat(t)].firstChild,r="function"==typeof e?e:_.a;n&&this.setState({height:n.offsetHeight},r)}},{key:"setPosition",value:function(e){this.setWidth(),this.setHeight(e)}},{key:"setWidth",value:function(){this.setState({width:this.inner.offsetWidth})}},{key:"showHelp",value:function(){var e=this.props.steps,t=this.state,n=t.current,r=t.help,o=t.helped;n!==(!D()(M()(W()("type","intro"),e))?1:0)||r||o?this.setState({help:!1}):this.setState({help:!0,helped:!0})}},{key:"shouldComponentUpdate",value:function(e,t){return e.entered!==this.props.entered||e.menuOpen!==this.props.menuOpen||e.visible!==this.props.visible||t.current!==this.state.current||t.fade!==this.state.fade||t.height!==this.state.height||t.help!==this.state.help||t.helped!==this.state.helped||t.initiating!==this.state.initiating||t.width!==this.state.width||t.xTouchDown!==this.state.xTouchDown||t.xTouchMove!==this.state.xTouchMove||t.yTouchDown!==this.state.yTouchDown||t.yTouchMove!==this.state.yTouchMove}}],[{key:"propTypes",get:function(){return{blockId:Y.a.string.isRequired,entered:Y.a.bool,getScrollTop:Y.a.func.isRequired,isPreview:Y.a.bool,menuOpen:Y.a.bool,onStep:Y.a.func,settings:Y.a.object.isRequired,steps:Y.a.array.isRequired,visible:Y.a.bool}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return F}),n.d(t,"b",function(){return B});var r=n(4),o=n.n(r),i=n(6),a=n(9),s=n(7),l=n(10),c=n(8),u=n(11),f=(n(2073),n(20)),d=n.n(f),p=n(19),h=n.n(p),m=n(2),v=n.n(m),g=n(26),y=n.n(g),b=n(41),_=n.n(b),w=n(171),E=n.n(w),x=n(38),k=n.n(x),S=n(202),T=n.n(S),C=n(102),O=n.n(C),j=n(0),A=n.n(j),N=n(91),M=n.n(N),I=n(44),L=n(22),P=n(42),D=n(24),R=n(175),F=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.current,o=t.description,i=t.entered,a=t.fade,s=t.hasNavigation,l=t.index,c=t.initiating,u=t.media,f=t.position,p=f.next,h=f.prev,m=t.previous,g=t.title,b=t.type,w=!k()(h)&&!k()(p),x=y()("process-card__"),S=v()("process-card",{"process-card--initiating":c,"process-card--entered":i,"process-card--intro":"intro"===b,"process-card--summary":"summary"===b,"process-card--active":r===l,"process-card--prev-active":m===l,"process-card--next":r+1===l,"process-card--prev":r-1===l,"process-card--slide-fade":a}),C=_()([[E()(l),d()({transform:"translate3d(".concat(p,"px, 0px, 0px)")})],[T()(l),d()({transform:"translate3d(-".concat(h,"px, 0px, 0px)")})],[M.a,d()(null)]])(r),O={className:S,style:w?C:null};return e.createElement("div",O,e.createElement("div",{className:"process-card__inner"},e.createElement("div",null,"step"===b&&$(this.props,x),g&&Y(this.props,x),u&&z(this.props,x),o&&U(this.props,x),s&&"intro"===b&&W(this.props,x),"intro"!==b&&n,s&&"summary"===b&&H(this.props,x))))}},{key:"shouldComponentUpdate",value:function(e){if(e.current!==this.props.current||e.fade!==this.props.fade||e.initiating!==this.props.initiating||e.position!==this.props.position||e.previous!==this.props.previous||e.settings!==this.props.settings)return!0;var t=e.current,n=e.index,r=e.entered!==this.props.entered;return t===n&&r}}],[{key:"propTypes",get:function(){return{blockId:A.a.string.isRequired,children:A.a.node,current:A.a.number.isRequired,description:A.a.string,entered:A.a.bool,fade:A.a.bool,hasNavigation:A.a.bool,index:A.a.any.isRequired,initiating:A.a.bool,media:A.a.object,onMediaLoad:A.a.func,onNextClick:A.a.func.isRequired,onRestartClick:A.a.func.isRequired,number:A.a.number,position:A.a.object.isRequired,previous:A.a.number,settings:A.a.object.isRequired,title:A.a.string,type:A.a.oneOf(["intro","step","summary"])}}}]),n}(e.Component),B=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.current,o=t.description,i=t.entered,a=t.hasNavigation,s=t.index,l=t.initiating,c=t.media,u=t.title,f=t.type,p=t.width,h=_()([[E()(s),d()({transform:"translate3d(".concat(p,"px, 0px, 0px)")})],[T()(s),d()({transform:"translate3d(-".concat(p,"px, 0px, 0px)")})],[M.a,d()(null)]])(r),m=v()("process-card-mobile",{"process-card-mobile--entered":i,"process-card-mobile--intro":"intro"===f,"process-card-mobile--summary":"summary"===f,"process-card-mobile--active":r===s,"process-card-mobile--initiating":l}),g=y()("process-card-mobile__");return e.createElement("div",{className:m,style:h},e.createElement("div",{className:"process-card-mobile__inner"},e.createElement("div",null,"step"===f&&$(this.props,g),u&&Y(this.props,g),c&&z(this.props,g),o&&U(this.props,g),a&&"intro"===f&&W(this.props,g),"intro"!==f&&n,a&&"summary"===f&&H(this.props,g),q(this.props,g))))}},{key:"shouldComponentUpdate",value:function(e){if(e.current!==this.props.current||e.initiating!==this.props.initiating||e.width!==this.props.width)return!0;var t=e.current,n=e.index,r=e.entered!==this.props.entered||e.showHelp!==this.props.showHelp;return t===n&&r}}],[{key:"propTypes",get:function(){return{blockId:A.a.string.isRequired,children:A.a.node,current:A.a.number.isRequired,description:A.a.string,entered:A.a.bool,hasNavigation:A.a.bool,id:A.a.string.isRequired,index:A.a.any.isRequired,initiating:A.a.bool.isRequired,labels:A.a.object.isRequired,media:A.a.object,onMediaLoad:A.a.func,onNextClick:A.a.func.isRequired,onRestartClick:A.a.func.isRequired,number:A.a.number,settings:A.a.object.isRequired,showHelp:A.a.bool,title:A.a.string,type:A.a.oneOf(["intro","step","summary"]),width:A.a.number}}}]),n}(e.Component),U=function(t,n){var r=t.current,o=t.description,i=t.index;return e.createElement(P.a,{allowTabNavigation:r===i,className:"".concat(n("description")," brand--body"),value:o})},q=function(t,n){var r=t.current,o=t.index,a=t.labels,s=t.showHelp,l=a.processSwipe,c=v()(n("help"),Object(i.a)({},"".concat(n("help"),"--show"),r===o&&s));return e.createElement("div",{className:c},e.createElement("span",null,l," ",e.createElement(I.f,null)))},z=function(t,n){var r,i,a=t.blockId,s=t.current,l=t.id,c=t.index,u=t.media,f=t.onMediaLoad,p=t.settings.zoomOnClick,m=s===c,v=O()(h()("pause",!0),u);return e.createElement("div",{className:n("media")},e.createElement(R.a,{allowTabNavigation:m,hasPadding:!1,index:o()(r=o()(i="".concat(a,"-")).call(i,l,"-")).call(r,c),media:m?u:v,onLoad:m&&f?f:d.a,opts:{disableZoom:!p}}))},H=function(t,n){var r=t.current,o=t.index,i=t.labels,a=t.onRestartClick,s=i.processStartAgain,l=r===o?L.a:L.h,c={className:"".concat(n("restart")," brand--color"),onClick:a,onKeyDown:Object(D.a)(a),role:"button",tabIndex:l};return e.createElement("div",c,e.createElement("span",null,s),e.createElement("i",{className:"icon icon-reload"}))},W=function(t,n){var r=t.current,o=t.index,i=t.labels,a=t.onNextClick,s=i.processStart,l=r===o?L.a:L.h,c={className:"".concat(n("button")," brand--background"),onClick:a,onKeyDown:Object(D.a)(a),role:"button",tabIndex:l};return e.createElement("button",c,e.createElement("span",null,s," ",e.createElement(I.f,null)))},$=function(t,n){var r,i=t.labels,a=t.number,s=t.settings,l=i.processStepName,c=s.stepLabel||l;return e.createElement("div",{className:"".concat(n("number")," brand--background brand--head")},e.createElement("p",null,o()(r="".concat(c," ")).call(r,a)))},Y=function(t,n){return e.createElement("div",{className:"".concat(n("title")," brand--head")},e.createElement("h2",null,t.title))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return M});var r=n(3),o=n.n(r),i=n(17),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(11),d=(n(2075),n(20)),p=n.n(d),h=n(2),m=n.n(h),v=n(41),g=n.n(v),y=n(312),b=n.n(y),_=n(38),w=n.n(_),E=n(272),x=n.n(E),k=n(0),S=n.n(k),T=n(459),C=n.n(T),O=n(91),j=n.n(O),A=n(44),N=n(75),M=function(t){function n(){return Object(s.a)(this,n),Object(c.a)(this,Object(u.a)(n).apply(this,arguments))}return Object(f.a)(n,t),Object(l.a)(n,[{key:"getCounterPosition",value:function(){var e=this.props,t=e.current,n=e.isFirst,r=e.length,o=n?t+1:t,i=this.refs["item-".concat(o)],a=this.refs["item-".concat(r)];if(!this.counter||!i||!a)return{lastItemPosition:null,position:null,width:null};var s=this.getItemPosition(),l=a.offsetLeft+5,c=i.offsetWidth,u=this.counter.offsetWidth,f=s-u/2+c/2,d=l-u+c/2;return{lastItemPosition:l,position:g()([[b()(u/2),p()(0)],[x()(l-u/2),p()(d)],[j.a,p()(f)]])(s),width:u}}},{key:"getItemPosition",value:function(){var e=this.props,t=e.current,n=e.isFirst?t+1:t,r=this.refs["item-".concat(n)];return r?n>=10?r.offsetLeft+3:r.offsetLeft:null}},{key:"handleSlide",value:function(e){var t=this.props,n=t.current,r=t.isFirst;(0,t.slideTo)(r?e-1:e,n)}},{key:"render",value:function(){var t,n,r=this,i=this.props,s=i.hasSummary,l=i.length,c=this.getCounterPosition(),u=c.lastItemPosition,f=c.position,d=c.width,p=this.getItemPosition(),h=s?l+1:l,v=m()("process-counter",{"process-counter--overflow-before":f>0,"process-counter--overflow-after":u>f+d}),g={transform:"translate3d(-".concat(f,"px, 0px, 0px)")},y={opacity:1,transform:"translate3d(".concat(p,"px, 0px, 0px)")},b={className:"process-counter__inner",style:!w()(f)&&f>0?g:{transform:"translate3d(0px, 0px, 0px)"},ref:function(e){return r.counter=e}},_={className:"process-counter__active brand--border",style:w()(p)?null:y};return e.createElement("div",{className:v},e.createElement("div",b,e.createElement("div",_),a()(t=C()(1,h)).call(t,o()(n=this.renderItem).call(n,this))))}},{key:"renderItem",value:function(t){var n,r=this.props,i=r.current,a=r.hasSummary,s=r.length,l=a&&t===s,c=r.isFirst?i+1:i,u=N.a.isMobile,f={className:m()("process-counter__item",{"process-counter__item--active":t===c,"process-counter__item--double":t>=10,"process-counter__item--disabled":u}),onClick:!u&&o()(n=this.handleSlide).call(n,this,t),key:t,ref:"item-".concat(t)};return e.createElement("div",f,e.createElement("span",null,l?e.createElement(A.d,null):t))}}],[{key:"propTypes",get:function(){return{current:S.a.number.isRequired,hasSummary:S.a.bool,isFirst:S.a.bool,length:S.a.number.isRequired,slideTo:S.a.func}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"b",function(){return J}),n.d(t,"a",function(){return ee});var r=n(344),o=n.n(r),i=n(19),a=n.n(i),s=n(246),l=n.n(s),c=n(130),u=n.n(c),f=n(5),d=n.n(f),p=n(26),h=n.n(p),m=n(37),v=n.n(m),g=n(36),y=n.n(g),b=n(307),_=n.n(b),w=n(67),E=n.n(w),x=n(27),k=n.n(x),S=n(102),T=n.n(S),C=n(29),O=n.n(C),j=n(18),A=n.n(j),N=n(12),M=n.n(N),I=n(16),L=n.n(I),P=n(105),D=n.n(P),R=n(457),F=n.n(R),B=n(244),U=n.n(B),q=n(162),z=n(84),H=Object(z.d)("CONTENT_PASS_URI"),W="".concat(H,"/rise/characters"),$=h()("".concat(W,"/")),Y={headers:{Authorization:"Bearer ".concat(Object(q.b)()),"Content-Type":"application/json","X-Articulate-Client":"rise-frontend"}},K=(A()(M()("filters"),y()(L()("name","style")),L()("value","photographic")),A()(M()("filters"),v()(L()("name","style")),o()(L()("value","holding_sign")))),V=A()(M()("filters"),v()(L()("name","rise_excluded")),o()(L()("value","yes"))),G=A()(D()(K),D()(V)),X=d()(F.a,M()("pathname"),U.a.parse),Z=A()(M()("filters"),v()(L()("name","rise_emotion")),u()(E.a)),Q=A()(M()("filters"),y()(L()("name","rise_emotion")),M()("value")),J=A()(M()("poses"),v()(Z),k()(function(e){return[Q(e),e]}),_.a,T()(function(e){return A()(a()("key",X(e.src)),a()("thumbnailKey",X(e.thumbnail)))(e)})),ee=function(e){return l.a.get($(e),Y).then(O()(null,["data","character"])).then(function(e){return a()("poses",G(e.poses),e)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function i(){return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(){return function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]}}(),s.prototype.handleEvent=function(){return function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach(function(e){e&&e(n)})}}(),s.prototype.add=function(){return function(e,t,n){var r=this,o=this.getEventHandlers(e,n);a(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var i=!0;return function(){if(i){i=!1,a(o);var s=o.nextHandlers.indexOf(t);o.nextHandlers.splice(s,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}}}();var l="__consolidated_events_handlers__";function c(e,t,n,r){e[l]||(e[l]=new s(e));var o=function(e){if(e)return i()?e:!!e.capture}(r);return e[l].add(t,n,o)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(2094)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return b});var r=n(4),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2259),n(287)),f=n(2),d=n.n(f),p=n(0),h=n.n(p),m=n(106),v=n(44),g=n(42),y=n(207),b=function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={isActive:!1},t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t=this.props,n=t.next,r=t.nextTitle,i=t.nextNumber,a=t.onNextClick,s=t.restrictions,l=t.isContinue,c=t.isLesson,f=t.labels,p=t.type,h=s.isRestricted,b=f.lessonName,_=f.quizContinue,w=d()("next-lesson","brand--linkColorHover",{"next-lesson--restricted":h,"next-lesson--map":"map"===p}),E=e.createElement(g.a,{className:"next-lesson__name--inline",value:r});if(h){var x,k=Object(m.a)({labels:f,restrictions:s});return e.createElement(y.a,{className:"runtime-tooltip"},e.createElement("div",{className:w},e.createElement("a",{className:"next-lesson__link"},e.createElement("div",{className:"next-lesson__name brand--ui"},c?o()(x="".concat(b," ")).call(x,i," - "):""," ",E),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(v.f,null)))),e.createElement(y.b,{side:"top"},k))}if(r||l){var S,T=c&&!l,C=l?_:E;return e.createElement("div",{className:w},e.createElement(u.a,{className:"next-lesson__link",to:"/lessons/"+encodeURIComponent(n),onClick:a},e.createElement("div",{className:"next-lesson__name brand--ui"},T?o()(S="".concat(b," ")).call(S,i," - "):""," ",C),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(v.f,null))))}return e.createElement("div",null)}}],[{key:"propTypes",get:function(){return{isContinue:h.a.bool,next:h.a.any.isRequired,nextTitle:h.a.string}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var r=n(4),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2260),n(287)),f=n(42),d=function(t){var n=t.courseHomeLabel;return e.createElement("div",{className:"previous-lesson brand--linkColorHover","data-previous-lesson":!0},e.createElement(u.a,{className:"previous-lesson__link",to:"/"},e.createElement("i",{className:"icon icon-chevron-up"}),e.createElement("div",{className:"previous-lesson__title brand--ui"},n)))},p=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t,n=this.props,r=n.previous,i=n.previousNumber,a=n.previousTitle,s=n.onPreviousClick,l=n.isLesson,c=n.labels.lessonName,d=e.createElement(f.a,{className:"previous-lesson__title--inline",value:a});return e.createElement("div",{className:"previous-lesson brand--linkColorHover","data-previous-lesson":!0},e.createElement(u.a,{className:"previous-lesson__link",to:"/lessons/"+encodeURIComponent(r),onClick:s},e.createElement("i",{className:"icon icon-chevron-up"}),e.createElement("div",{className:"previous-lesson__title brand--ui"},l?o()(t="".concat(c," ")).call(t,i," - "):""," ",d)))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=n(2),c=n.n(l),u=n(0),f=n.n(u),d=n(24),p=n(22),h=function(t){function n(e){var t;return Object(r.a)(this,n),(t=Object(i.a)(this,Object(a.a)(n).call(this,e))).state={hide:!1},t}return Object(s.a)(n,t),Object(o.a)(n,[{key:"focus",value:function(){this.controlDiv.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.atStart,i=n.isTransitioning,a=n.labels.processNextStep,s=n.onClick,l=n.type,u=this.state.hide,f="next"===l,h=f&&!i&&!o,m=c()("process__"+l,"brand--min768--background",{"brand--max768--color":o,"process__controls--hide":u,"process__controls--animating":i,"process__controls--clip":h}),v=f?"icon-chevron-right":"icon-chevron-left";return e.createElement("div",{"aria-hidden":!r,className:m,onClick:s,onKeyDown:Object(d.a)(s),ref:function(e){t.controlDiv=e},role:"button",tabIndex:Object(p.l)(r)},e.createElement("div",{className:"process__control-content","data-next-step":a},e.createElement("div",{className:"process__control-animation"},e.createElement("i",{className:v}))))}}],[{key:"propTypes",get:function(){return{type:f.a.string.isRequired,onClick:f.a.func.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(94);e.exports=r(function(e,t,n){if(!o(e))throw new TypeError("flip: Function required for first argument");return r(e)(n,t)})},function(e,t,n){"use strict";t.a={addEventListeners:function(e,t){e.addEventListener("animationend",t,!1)},removeEventListeners:function(e,t){e.removeEventListener("animationend",t,!1)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return C});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(15),u=n(11),f=(n(2300),n(1262)),d=n(2),p=n.n(d),h=n(0),m=n.n(h),v=n(316),g=n.n(v),y=n(44),b=n(24),_=n(106),w=n(394),E=n(22),x=n(207),k=n(611),S=function(e){return"/lessons/"+encodeURIComponent(e)},T=function(t){var n=t.canComplete,r=t.isDisabled,o=t.onClick,i=t.percentComplete,a=e.createElement(k.a,{percentComplete:i});if(!n)return a;var s=100===i?"Mark lesson as incomplete":"Mark lesson as complete";return e.createElement("button",{"aria-label":s,className:"lesson-link__button",disabled:r,onClick:o},a)},C=function(t){function n(e){var t,r,a;return Object(i.a)(this,n),(a=Object(s.a)(this,Object(l.a)(n).call(this,e))).onClick=o()(t=a.onClick).call(t,Object(c.a)(a)),a.onSectionClick=o()(r=a.onSectionClick).call(r,Object(c.a)(a)),a}return Object(u.a)(n,t),Object(a.a)(n,[{key:"isActive",value:function(){return this.context.router.route.match.url==="/lessons/".concat(this.props.id)}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.allowTabNavigation,o=n.id,i=n.isSectionActive,a=n.location,s=n.markComplete,l=n.percentComplete,c=n.restrictions,u=this.state.visited;return r!==e.allowTabNavigation||o!==e.id||i!==e.isSectionActive||a!==e.location||s!==e.markComplete||l!==e.percentComplete||c.isRestricted!==e.restrictions.isRestricted||c.currentLesson!==e.restrictions.currentLesson||u!==t.visited}},{key:"componentWillMount",value:function(){this.setState({visited:this.isActive()})}},{key:"onClick",value:function(e){var t=this.props,n=t.focusLessonContent,r=t.id,o=t.lesson,i=t.onClick,a=t.onMobileActiveClick;if(this.isActive()){if(e.preventDefault(),!a)return n(),!1;a()}this.setState({visited:!0}),i({lesson:o,id:r})}},{key:"onSectionClick",value:function(){var e=this.props,t=e.id,n=e.lesson;(0,e.onClick)({id:t,lesson:n})}},{key:"renderLink",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.id,o=t.icon,i=t.title,a=t.onComplete,s=t.type,l=t.percentComplete,c=t.restrictions,u=t.labels,d=t.markComplete,h=c.isRestricted,m=h||"quiz"===s&&d,v=!c.isRestrictedCourse&&d,y=p()("lesson-link",{"lesson-link--visited":this.state.visited,"lesson-link__restricted":h}),b=[e.createElement("div",{key:"icon-".concat(r),className:"lesson-link__icon"},e.createElement(w.a,{icon:o})),e.createElement("div",{key:"name-".concat(r),className:"lesson-link__name brand--ui"},g()(i,{length:60})),e.createElement("div",{key:"progress-".concat(r),className:"lesson-link__progress"},e.createElement(T,{canComplete:v,isDisabled:m,onClick:a,percentComplete:l}))],k=Object(E.l)(n);if(h){var C=Object(_.a)({labels:u,restrictions:c});return e.createElement(x.a,{className:"runtime-tooltip"},e.createElement("span",{className:y},b),e.createElement(x.b,{side:"top"},C))}return e.createElement(f.a,{activeClassName:"lesson-link--active brand--beforeBackground","aria-hidden":!n,className:y,onClick:this.onClick,tabIndex:k,to:S(r)},b)}},{key:"renderSection",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.isSectionActive,i=n.title,a=Object(E.l)(r),s=p()({"chevron__rotate-down":o});return e.createElement("div",{role:"button",onKeyPress:function(e){Object(b.d)(e)&&t.onSectionClick()},"aria-hidden":!r,tabIndex:a,onClick:this.onSectionClick,className:"lesson-link--section brand--ui"},e.createElement("div",{className:"lesson-link--section-content"},e.createElement("div",{className:"lesson-link--section-icon"},e.createElement(y.t,{className:s})),e.createElement("div",{className:"lesson-link--section-title"},i)))}},{key:"render",value:function(){return"section"===this.props.type?this.renderSection():this.renderLink()}}],[{key:"contextTypes",get:function(){return{router:m.a.object.isRequired}}},{key:"propTypes",get:function(){return{id:m.a.any.isRequired,icon:m.a.string.isRequired,isSectionActive:m.a.bool,type:m.a.string.isRequired,title:m.a.string.isRequired,onClick:m.a.func.isRequired,focusLessonContent:m.a.func.isRequired}}},{key:"defaultProps",get:function(){return{isSectionActive:!1,restrictions:{}}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return j});var r=n(17),o=n.n(r),i=n(34),a=n.n(i),s=n(3),l=n.n(s),c=n(9),u=n(7),f=n(10),d=n(8),p=n(15),h=n(11),m=n(2),v=n.n(m),g=n(572),y=n(608),b=n(82),_=n(77),w=n(287),E=n(1258),x=n(464),k=n(22),S=n(39),T=n(24),C=n(351),O=n(284),j=function(t){function n(e){var t,r,o,i,a,s,u,h;return Object(c.a)(this,n),(h=Object(f.a)(this,Object(d.a)(n).call(this,e))).state={coverImageLoaded:!1,displaySkipButton:!1,searchActive:!1},h.handleMouseDown=l()(t=h.handleMouseDown).call(t,Object(p.a)(h)),h.handleTitleKeyDown=l()(r=h.handleTitleKeyDown).call(r,Object(p.a)(h)),h.handleSearchClose=l()(o=h.handleSearchClose).call(o,Object(p.a)(h)),h.handleSearchSubmit=l()(i=h.handleSearchSubmit).call(i,Object(p.a)(h)),h.handleSearchToggle=l()(a=h.handleSearchToggle).call(a,Object(p.a)(h)),h.handleSkipButtonKeyDown=l()(s=h.handleSkipButtonKeyDown).call(s,Object(p.a)(h)),h.handleSkipButtonClick=l()(u=h.handleSkipButtonClick).call(u,Object(p.a)(h)),h}return Object(h.a)(n,t),Object(u.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.coverImage,n=t.media,r=void 0===n?{}:n,o=t.displaySidebar,i=r.image,a=void 0===i?{}:i,s=a.src,l=a.key,c=l?Object(_.c)({key:l,src:s}):s;s&&o&&(this.image=new Image,this.image.src=c,this.image.addEventListener("load",this.imageLoadRef=function(){e.setState({coverImageLoaded:!0})})),document.addEventListener("mousedown",this.handleMouseDown)}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.removeEventListener("load",this.imageLoadRef),this.image=null),document.removeEventListener("mousedown",this.handleMouseDown)}},{key:"handleTitleKeyDown",value:function(e){var t=this;Object(T.k)(e)&&!e.shiftKey&&(e.preventDefault(),this.setState({displaySkipButton:!0},function(){t.skipButton.focus()}))}},{key:"focus",value:function(){this.props.sessionPreferences.prefersKeyboardNavigation?Object(k.c)(this.header):this.header.focus()}},{key:"handleSkipButtonKeyDown",value:function(e){var t=this;Object(T.k)(e)&&a()(function(){t.setState({displaySkipButton:!1})},50)}},{key:"handleSkipButtonClick",value:function(){var e=this.props.focusLessonContent;this.setState({displaySkipButton:!1}),e()}},{key:"handleMouseDown",value:function(e){if(e.target===this.skipButton)return!1;this.state.displaySkipButton&&this.setState({displaySkipButton:!1})}},{key:"handleSearchChange",value:function(){Object(S.a)([Object(O.b)(!0)])}},{key:"handleSearchClose",value:function(e){Object(T.e)(e)&&this.handleSearchToggle()}},{key:"handleSearchSubmit",value:function(e){e.preventDefault();var t=e.target.lastChild.value,n=this.props.lessons;Object(E.a)(t,n,function(e,t,n){return Object(S.a)([Object(O.f)(e),Object(O.d)(t),Object(O.e)(n)])})}},{key:"handleSearchToggle",value:function(){var e=this,t=this.state.searchActive;Object(S.a)([Object(O.b)(t),Object(O.c)(!t)]),this.setState({searchActive:!t},function(){t||e.searchInput.focus()})}},{key:"renderInfo",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.children,i=n.courseTitle,a=n.skipLinkText,s=Object(k.l)(r),l=this.state,c=l.displaySkipButton,u=l.searchActive,f=v()("overview-sidebar__info",{"overview-sidebar__info--faded":u}),d=e.createElement("button",{className:"overview-sidebar__skip-button",onKeyDown:this.handleSkipButtonKeyDown,onClick:this.handleSkipButtonClick,ref:function(e){return t.skipButton=e}},a);return e.createElement("div",{className:f,ref:function(e){return t.header=e},tabIndex:k.h},e.createElement(w.a,{to:"/",className:"overview-sidebar__title",tabIndex:s,onKeyDown:this.handleTitleKeyDown},i),c&&d,e.createElement("div",{className:"overview-sidebar__progress brand--ui"},M(o)))}},{key:"renderSearch",value:function(){var t=this,n=this.state.searchActive,r=this.props.labels.search,o=e.createElement(b.CSSTransition,{classNames:"overview-sidebar__search",timeout:600},e.createElement("form",{className:"overview-sidebar__search",onSubmit:this.handleSearchSubmit},e.createElement("span",{className:"overview-sidebar__search__search-icon"},e.createElement(x.a,{height:13,width:13})),e.createElement("span",{className:"overview-sidebar__search__close-icon",onClick:this.handleSearchToggle,onKeyDown:this.handleSearchToggle,role:"button",tabIndex:k.a},e.createElement(g.a,{height:8,width:8})),e.createElement("input",{className:"overview-sidebar__search__input",placeholder:r,onChange:this.handleSearchChange,onKeyDown:this.handleSearchClose,ref:function(e){return t.searchInput=e},type:"text"})));return e.createElement(b.TransitionGroup,null,n&&o)}},{key:"renderSearchIcon",value:function(){var t=this.state.searchActive,n=e.createElement(b.CSSTransition,{appear:!0,classNames:"overview-sidebar__search-icon",timeout:2e3},e.createElement("div",{className:"overview-sidebar__search-icon",onClick:this.handleSearchToggle,onKeyPress:this.handleSearchToggle,role:"button",tabIndex:k.a},e.createElement(x.a,null)));return e.createElement(b.TransitionGroup,null,!t&&n)}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowSearch,o=n.allowTabNavigation,i=n.coverImage.alpha,a=this.state,s=a.coverImageLoaded,l=a.searchActive,c=this.headerWrapper?this.headerWrapper.offsetHeight:"none",u=v()("overview-sidebar__header-outer",{"overview-sidebar__header-outer--search":l});return e.createElement("div",{className:u,style:{maxHeight:c}},r&&this.renderSearch(),e.createElement("div",{"aria-hidden":!o,className:N(this.props,this.state),ref:function(e){return t.headerWrapper=e}},e.createElement("div",{className:"overview-sidebar__header--background",style:A(this.props)}),s&&e.createElement(y.a,{alpha:i,isSidebar:!0}),r&&this.renderSearchIcon(),this.renderInfo()))}}]),n}(e.Component),A=function(e){var t=e.coverImage,n=t.media,r=void 0===n?{}:n,o=t.displaySidebar,i=r.image,a=void 0===i?{}:i,s=a.src,l=a.key,c=l?Object(_.c)({key:l,src:s}):s;return s&&o?{backgroundImage:"url('".concat(c,"')")}:null},N=function(e){var t=e.coverImage,n=t.media,r=void 0===n?{}:n,o=t.displaySidebar,i=r.image,a=(void 0===i?{}:i).src,s=!a||a&&!o;return v()("overview-sidebar__header",{"brand--background":s,"overview-sidebar__header--clone":e.isClone,"overview-sidebar__header--visible":e.isClone&&e.isShowingSidebarHeaderClone})},M=function(t){var n;return o()(n=e.Children).call(n,t,function(e){return e.type!==C.a?null:e})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return te});var r=n(3),o=n.n(r),i=n(4),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=n(130),h=n.n(p),m=n(169),v=n.n(m),g=n(37),y=n.n(g),b=n(97),_=n.n(b),w=n(43),E=n.n(w),x=n(25),k=n.n(x),S=n(29),T=n.n(S),C=n(18),O=n.n(C),j=n(16),A=n.n(j),N=n(151),M=n.n(N),I=n(381),L=n.n(I),P=(n(2305),n(39)),D=n(106),R=n(308),F=n(77),B=n(24),U=n(56),q=n(81),z=n(249),H=n(279),W=n(187),$=n(474),Y=n(350),K=n(351),V=n(607),G=n(393),X=n(173),Z=n(123),Q=n(1260),J=O()(v()([]),y()(h()(A()("type","section"))),E.a),ee=Object(X.a)("modernOverview"),te=function(t){function n(){var e,t,r,i,l,d;Object(s.a)(this,n);for(var p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=Object(c.a)(this,(e=Object(u.a)(n)).call.apply(e,a()(t=[this]).call(t,h)))).enroll=o()(r=d.enroll).call(r,Object(f.a)(d)),d.unenroll=o()(i=d.unenroll).call(i,Object(f.a)(d)),d.handleStartButtonKeyDown=o()(l=d.handleStartButtonKeyDown).call(l,Object(f.a)(d)),d}return Object(d.a)(n,t),Object(l.a)(n,[{key:"componentDidMount",value:function(){M.a.Events.scrollEvent.register("end",function(e,t){t&&t.focus()})}},{key:"componentWillUnmount",value:function(){M.a.Events.scrollEvent.remove("end")}},{key:"componentWillEnter",value:function(e){this.courseOverview.animate(!0).then(e)}},{key:"componentWillExit",value:function(e){this.courseOverview.animate().then(e)}},{key:"render",value:function(){var t,n,r=this,o=this.props,i=o.course,s=o.courseProgress,l=o.lessons,c=o.labels,u=k()(["lmsOptions","enableExitCourse"],i),f=T()({},["media","image"],i),d=f.key,p=f.width,h=f.height,m=f.src,v=d?Object(F.c)({key:d,src:m}):null,g=c.courseStart,y=c.courseResume,b=c.courseDetails,w=c.courseExit,E=c.overviewPageTitleSuffix,x=i.author,S=i.authors,C=i.categories,O=i.dueAt,j=i.riseComCurrentUser,N=i.enrolled,M=i.riseComEnrollmentType,I=i.selectedAuthorId,P=i.timeToComplete,B=i.trackingCompletionPercentage,H=i.trackingQuizId,W=Object(z.b)(i),X=Object(z.c)(i),te=ee&&Object(q.g)(),ne=(n=U.d?"Continue":y,te?"Start Again":n),re=s.percentComplete?ne:g,oe=ee&&"preview"!==window.viewType&&s.percentComplete&&!Object(q.g)()?Object(D.c)(s.lessons):k()(["lessonsOnly",0,"id"],i),ie=_()(A()("id",oe))(i.lessonsOnly),ae=T()("",["lessonsOnly",ie,"title"],i),se=a()(t="Lesson ".concat(ie+1,": ")).call(t,ae),le=Object(V.a)({authors:S,author:x,selectedAuthorId:I}),ce=le.avatar,ue=le.authorName,fe=le.title,de=Object(R.a)({course:i,courseProgress:s}),pe=J(l);return e.createElement(L.a,{title:Object(G.a)(i.title+" - "+E)},e.createElement(Z.v,{ref:function(e){return r.courseOverview=e},sidebarEnabled:W,sidebarOpen:X},e.createElement($.a,{enableExitCourse:u,className:"courseExit courseExit--overview",text:w}),e.createElement("header",null,e.createElement(Z.o,{coverImage:i.coverImage},e.createElement(Y.a,{courseTitle:i.title,coverImage:i.coverImage},e.createElement(K.a,{lessonComplete:c.lessonComplete,value:s.percentComplete})),e.createElement(Z.a,{avatar:ce,authorName:ue}),e.createElement(Z.u,null,i.title),ee&&0!==s.percentComplete&&e.createElement("div",{className:"overview-progressBar"},e.createElement(K.a,{lg:!0,rounded:!0,lessonComplete:c.lessonComplete,value:s.percentComplete})),U.d&&ee?e.createElement(Z.r,{courseBtnText:re,courseProgress:s,coverImage:i.coverImage,currentUser:j,enrolled:N,enrollmentType:M,handleEnrollClick:this.enroll,handleUnenrollClick:this.unenroll,handleKeyDown:this.handleStartButtonKeyDown,nextLessonId:oe,nextLessonText:se,percentComplete:s.percentComplete,startAgain:te}):e.createElement(Z.d,{to:"/lessons/".concat(oe),coverImage:i.coverImage,onKeyDown:this.handleStartButtonKeyDown},re),W&&!U.d&&!ee&&e.createElement(Z.h,{text:b}))),e.createElement("main",null,e.createElement(Z.m,null,e.createElement(Z.p,{src:v,width:p,height:h}),e.createElement(Z.l,null,e.createElement(Z.k,null,e.createElement(Z.t,{numLessons:pe,timeToComplete:P}),e.createElement(Z.c,null,e.createElement(Z.b,{avatar:ce,authorName:ue,authorTitle:fe}),e.createElement(Z.f,{lessons:l,numLessons:pe,trackingCompletionPercentage:B,trackingQuizId:H}),U.d&&e.createElement(Z.i,{dueAt:O})),e.createElement(Z.e,{categories:C})),e.createElement(Z.n,null,e.createElement("section",null,e.createElement(Z.g,{text:i.description,publishedAt:i.publishedAt})),W&&e.createElement("section",null,e.createElement(Z.s,null,e.createElement(Z.j,null,"Course Outline"),!i.description&&e.createElement(Z.q,{publishedAt:i.publishedAt})),e.createElement(Q.a,{course:i,courseProgress:s,labels:c,lessons:l,restrictingQuiz:de}))))))))}},{key:"handleStartButtonKeyDown",value:function(e){Object(B.d)(e)&&Object(P.a)(Object(W.c)(!0))}},{key:"enroll",value:function(){Object(P.a)(Object(H.c)())}},{key:"unenroll",value:function(){Object(P.a)(Object(H.e)())}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";var r=n(188),o=n.n(r),i=n(33),a=n.n(i),s=n(3),l=n.n(s),c=n(4),u=n.n(c),f=n(9),d=n(7),p=n(10),h=n(8),m=n(15),v=n(11),g=(n(2093),n(1)),y=n.n(g),b=n(600),_=n(384),w=n.n(_),E=n(5),x=n.n(E),k=n(764),S=n.n(k),T=n(29),C=n.n(T),O=n(601),j=n.n(O),A=n(602),N=n.n(A),M=n(479),I=n(609),L=n(125),P=n(17),D=n.n(P),R=(n(2237),n(67)),F=n.n(R),B=n(391),U=n.n(B),q=(n(2238),n(2)),z=n.n(q),H=n(38),W=n.n(H),$=function(e){function t(){var e,n,r,o,i;Object(f.a)(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(i=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,s)))).handleMouseEnter=l()(r=i.handleMouseEnter).call(r,Object(m.a)(i)),i.handleMouseLeave=l()(o=i.handleMouseLeave).call(o,Object(m.a)(i)),i}return Object(v.a)(t,e),Object(d.a)(t,[{key:"handleMouseEnter",value:function(){var e=this.props,t=e.index;(0,e.onEvent)(t)}},{key:"handleMouseLeave",value:function(){(0,this.props.onEvent)(null)}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.identifier,r=e.index,o=e.label,i=e.value,a=!W()(t)&&t!==r,s=z()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":a});return y.a.createElement("div",{className:s,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},y.a.createElement("dt",{className:"block-chart__cartesianLegendTerm"},n,"."),y.a.createElement("dd",{className:"block-chart__cartesianLegendDefn"},o,y.a.createElement("span",{className:"block-chart__cartesianLegendDefnPipe"},"|"),y.a.createElement("span",{className:"block-chart__cartesianLegendDefnVal"},i)))}}]),t}(g.PureComponent),Y=Object(g.memo)(function(e){var t=e.activeIndex,n=e.labels,r=e.letters,i=e.onEvent,a=o()(e),s=U()(r,U()(n,a));return F()(s)?null:y.a.createElement("dl",{className:"block-chart__cartesianLegend"},D()(s).call(s,function(e,n){var r=Object(L.a)(e,2),o=r[0],a=Object(L.a)(r[1],2),s=a[0],l=a[1];return y.a.createElement($,{activeIndex:t,identifier:o,index:n,key:o,label:s,onEvent:i,value:l})}))}),K=n(603),V=n.n(K),G=n(72),X=function(e){var t=e.activeIndex,n=e.settings,r=n.backgroundColor,i=n.chartColor,a=n.lineCurve,s=o()(e),l=e.variant,c=i,u=i;if(!W()(t)){var f=V()(i,r||"#fff",.7);c=f,u=Object(G.h)(f,i,s.length,t)}return"bar"===l?{backgroundColor:u,borderColor:c,data:s,hoverBackgroundColor:u,hoverBorderColor:u}:{borderColor:c,cubicInterpolationMode:"linear"===a?"default":"monotone",data:s,lineTension:"linear"===a?0:void 0,pointBackgroundColor:u,pointBorderColor:u,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:i,pointHoverBorderColor:i,pointHoverBorderWidth:0,pointRadius:4}},Z=n(1213),Q=n.n(Z),J=n(218),ee=n.n(J),te=n(31),ne=n.n(te),re=n(273),oe=n.n(re)()(/([^\s].{0,14}(?![.{3}])(?=[\s\W]|$))/gm),ie=function(e){return e.displayName||e.name||"Component"},ae=n(89),se=n.n(ae),le=n(1214),ce=n.n(le),ue=n(1215),fe=n.n(ue),de=function(e,t){return y.a.createElement("mark",{key:t},e)},pe=se()(function(e,t){return fe()(new RegExp(ce()(t),"igm"),de,e)}),he=n(170),me=n.n(he),ve=n(131),ge=(n.n(ve)()(function(e,t){return me()(t).call(t,function(t,n){return t+n[e]},0)}),n(380)),ye=n(150),be=n(465),_e=function(e){var t,n=e[0],r=n.xLabel,o=n.yLabel,i=ne()(Q.a,ee()(" "),r);return u()(t="".concat(i,": ")).call(t,o)},we=function(e){var t=e.hasDarkBgColor,n=e.isDesktop,r=e.onEvent,i=e.shouldAnimate,a=o()(e);return{animation:{duration:i?1e3:0},defaultFontColor:t?"#fff":"#313537",defaultFontFamily:'"lato", sans-serif',elements:{line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},legend:{display:!1},onClick:r,onHover:r,plugins:{datalabels:{display:!1}},responsive:!1,scales:{xAxes:[{barPercentage:.6,gridLines:{color:t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)",display:!1,drawBorder:!1,offsetGridLines:!0},maxBarThickness:60,offset:!0,scaleLabel:{display:!1},ticks:{autoSkip:!1,callback:oe,minor:{fontColor:t?"#fff":"#313537"},padding:10}}],yAxes:[{gridLines:{color:t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)",drawBorder:!1,drawTicks:!1,zeroLineColor:Object(G.a)(a)?t?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.25)":t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)"},scaleLabel:{display:!1},ticks:{beginAtZero:!0,maxTicksLimit:8,minor:{fontColor:t?"#fff":"#313537"},padding:n?15:4}}]},tooltips:{backgroundColor:t?"#fff":"#000",callbacks:{label:function(){return null},title:_e},caretPadding:10,cornerRadius:3,displayColors:!1,titleFontColor:t?"#313537":"#fff",titleFontStyle:"normal",titleMarginBottom:0,titleSpacing:0,xAlign:"center",xPadding:14,yAlign:"bottom",yPadding:10}}},Ee=n(604),xe=n.n(Ee),ke=n(169),Se=n.n(ke),Te=n(12),Ce=n.n(Te),Oe=n(185),je=n.n(Oe),Ae=n(316),Ne=n.n(Ae),Me=je()(/<mark>|<\/mark>/gm,""),Ie=x()(function(e){return Ne()(e,{length:30})},Me,Ce()("type")),Le=x()(Se()(0),xe.a,Ce()("value")),Pe=function(e){return{labels:D()(e).call(e,Ie),values:D()(e).call(e,Le)}},De=se()(function(e,t,n){var r=Ne()(t,{length:e});return n?pe(r,n):r}),Re=n(32),Fe=function(e){var t=function(t){function n(){var e,t,r,o;Object(f.a)(this,n);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(o=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,u()(t=[this]).call(t,a)))).handleEvent=l()(r=o.handleEvent).call(r,Object(m.a)(o)),o.state={activeIndex:null},o}return Object(v.a)(n,t),Object(d.a)(n,[{key:"handleEvent",value:function(e){this.setState({activeIndex:e})}},{key:"render",value:function(){return y.a.createElement(e,Object(Re.a)({},this.props,{activeIndex:this.state.activeIndex,onEvent:this.handleEvent}))}}]),n}(g.PureComponent);return t.displayName="ChartEvents(".concat(ie(e),")"),t},Be=function(e){var t=function(t){function n(){var e,t,r,o;Object(f.a)(this,n);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(o=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,u()(t=[this]).call(t,a)))).chartRef=Object(g.createRef)(),o.handleResize=l()(r=o.handleResize).call(r,Object(m.a)(o)),o}return Object(v.a)(n,t),Object(d.a)(n,[{key:"componentDidMount",value:function(){this.resize(),this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"handleResize",value:function(){this.resize(),this.update()}},{key:"resize",value:function(){var e=this.chartRef.current.chartInstance;e&&e.resize()}},{key:"update",value:function(){var e=this.chartRef.current.chartInstance;e&&e.update()}},{key:"render",value:function(){return y.a.createElement(e,Object(Re.a)({},this.props,{onResize:this.handleResize,ref:this.chartRef}))}}]),n}(g.PureComponent);return t.displayName="ChartUpdater(".concat(ie(e),")"),t},Ue=(n(2248),n(2249),n(60)),qe=n(46),ze={bar:function(e){return"Bar chart with the following items: ".concat(e)},line:function(e){return"Line chart with the following items: ".concat(e)},pie:function(e){return"Pie chart with the following items: ".concat(e)}},He=function(e,t){var n=D()(t).call(t,function(e){var t;return u()(t="".concat(e.type,": ")).call(t,e.value)}).join(", ");return ze[e](n)},We=n(389),$e=n(55),Ye=n(313),Ke=x()(ge.a,Ce()("backgroundColor")),Ve=function(e){var t=function(t){function n(){var e,t,r,o,i;Object(f.a)(this,n);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(i=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,u()(t=[this]).call(t,s)))).handleAnimationEnd=l()(r=i.handleAnimationEnd).call(r,Object(m.a)(i)),i.handleTitleChange=l()(o=i.handleTitleChange).call(o,Object(m.a)(i)),i.state={isVisible:!i.props.animateBlockEntrance},i}return Object(v.a)(n,t),Object(d.a)(n,[{key:"handleAnimationEnd",value:function(){this.setState({isVisible:!0})}},{key:"handleTitleChange",value:function(e){var t=this.props,n=t.lessonId,r=t.blockId,o=t.items,i={title:e};Object(Ue.a)(Object(qe.m)({lessonId:n,itemId:r,items:o,payload:i}))}},{key:"render",value:function(){var t,n,r=this.props,o=r.animateBlockEntrance,i=r.blockId,a=r.editable,s=r.isLearner,l=r.items,c=r.itemsLabel,f=r.lessonId,d=r.settings,p=r.title,h=r.valuesLabel,m=r.variant,v=this.state.isVisible,g=p?u()(t="chartTitle-".concat(f,"-")).call(t,i):null,b=u()(n="chartDesc-".concat(f,"-")).call(n,i),_=He(m,l),w=Ke(d),E=z()("block-chart__container",{"block-chart__container--darkTheme":w});return y.a.createElement(We.a,{settings:d,type:"chart"},y.a.createElement("div",{"aria-describedby":b,"aria-labelledby":g,className:E,role:"img"},y.a.createElement("div",{className:"block-chart__row"},y.a.createElement("div",{className:"block-chart__rowInner"},(!a&&p||a)&&y.a.createElement("h2",{className:"block-chart__title brand--head"},y.a.createElement(Ye.a,{locked:!a,value:p,placeholder:"Add a chart title...",onChange:this.handleTitleChange})),y.a.createElement($e.a,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:o,animateIn:"fadeIn",initiallyVisible:!o,isLearner:s},y.a.createElement("div",{className:"block-chart__chart"},y.a.createElement(e,{hasDarkBgColor:w,isVisible:v,items:l,itemsLabel:c,settings:d,shouldAnimate:o,valuesLabel:h,variant:m}))),y.a.createElement("p",{className:"srOnly",id:b},_)))))}}]),n}(g.PureComponent);return t.displayName="ChartWrap(".concat(ie(e),")"),t},Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),Xe=function(e){function t(){var e,n,r,o,i;Object(f.a)(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(i=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,s)))).handleEvent=l()(r=i.handleEvent).call(r,Object(m.a)(i)),i.handleResize=l()(o=i.handleResize).call(o,Object(m.a)(i)),i.wrapRef=Object(g.createRef)(),i.state={labelYTop:"50%"},i}return Object(v.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.resizeObserver=new b.a(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.wrapRef.current)}},{key:"buildDataset",value:function(e){var t=this.props,n=t.activeIndex,r=t.settings,o=t.variant;return X({activeIndex:n,settings:r,values:e,variant:o})}},{key:"buildOptions",value:function(e){var t=this.props,n=t.hasDarkBgColor,r=t.isDesktop,o=t.shouldAnimate;return we({hasDarkBgColor:n,isDesktop:r,onEvent:this.handleEvent,shouldAnimate:o,values:e})}},{key:"handleEvent",value:function(e,t){return(0,this.props.onEvent)(C()(null,[0,"_index"],t))}},{key:"handleResize",value:function(){this.props.onResize(),this.setLabelYTop()}},{key:"setLabelYTop",value:function(){var e=this.props.forwardedRef.current.chartInstance;if(e){var t=C()({},["scales","y-axis-0"],e),n=t.bottom,r=t.top;S()(n)&&S()(r)&&this.setState({labelYTop:"".concat((n+r)/2,"px")})}}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.forwardedRef,r=e.isDesktop,i=e.isVisible,s=e.items,l=e.itemsLabel,c=e.onEvent,u=e.search,f=e.valuesLabel,d=e.variant,p=this.state.labelYTop,h=De(80,l,u),m=De(30,f,u),v=Pe(s),g=r?[]:a()(Ge).call(Ge,0,s.length),b=r?v.labels:g,_=i?o()(v):Object(G.g)(0,s.length),w=this.buildOptions(_),E=this.buildDataset(_),x="line"===d?M.b:M.a;return y.a.createElement("div",{className:"block-chart__cartesian"},y.a.createElement("div",{className:"block-chart__cartesianChart",ref:this.wrapRef},y.a.createElement(x,{data:{labels:b,datasets:[E]},options:w,ref:n}),m&&Object(ye.c)(m)&&y.a.createElement("div",{className:"block-chart__cartesianLabelY",style:{top:p}},m)),h&&Object(ye.c)(h)&&y.a.createElement("div",{className:"block-chart__cartesianLabelX"},h),!r&&y.a.createElement(Y,{activeIndex:t,labels:v.labels,letters:g,onEvent:c,values:_}))}}]),t}(g.PureComponent),Ze=w()({search:C()("",["search","term"])}),Qe=x()(Ve,Fe,N()("(min-width: 960px)","isDesktop","Desktop"),Be,j.a,Object(I.b)(Ze))(Xe),Je=(n(2250),n(2251),n(2252),function(e){function t(){var e,n,r,o,i;Object(f.a)(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(i=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,s)))).handleMouseEnter=l()(r=i.handleMouseEnter).call(r,Object(m.a)(i)),i.handleMouseLeave=l()(o=i.handleMouseLeave).call(o,Object(m.a)(i)),i}return Object(v.a)(t,e),Object(d.a)(t,[{key:"handleMouseEnter",value:function(){var e=this.props,t=e.index;(0,e.onEvent)(t)}},{key:"handleMouseLeave",value:function(){(0,this.props.onEvent)(null)}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.backgroundColor,r=e.index,o=e.text,i=!W()(t)&&t!==r,a=z()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return y.a.createElement("div",{className:a,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},y.a.createElement("span",{className:"block-chart__circleLegendSymbol",style:{backgroundColor:n}}),y.a.createElement("span",{className:"block-chart__circleLegendText"},o))}}]),t}(g.PureComponent)),et=Object(g.memo)(function(e){var t=e.activeIndex,n=e.colors,r=e.labels,o=e.onEvent,i=U()(r,n);return F()(i)?null:y.a.createElement("div",{className:"block-chart__circleLegend"},D()(i).call(i,function(e,n){var r=Object(L.a)(e,2),i=r[0],a=r[1];return y.a.createElement(Je,{activeIndex:t,backgroundColor:a,index:n,key:i,onEvent:o,text:i})}))}),tt=n(161),nt=n(221),rt=n.n(nt),ot=n(216),it=n.n(ot),at=n(312),st=n.n(at),lt=n(345),ct=n.n(lt)()(st()(it.a,0),"value"),ut=function(e){var t=rt()(e).call(e,ct),n=Pe(t),r=D()(t).call(t,Ce()("color"));return Object(tt.a)({},n,{colors:r})},ft=(n(2253),n(392)),dt=n.n(ft),pt=function(e){var t=C()(0,["dataIndex"],e),n=C()({},["dataset"],e),r=C()("#000",["backgroundColor",t],n);return Object(ge.a)(r)?"#fff":"#313537"},ht=function(e,t,n){return"numeric"===e?String(t):Object(be.b)(t/dt()(n.dataset.data))},mt=function(e,t,n){var r,o=C()(0,[0,"index"],t),i=C()("",["labels",o],n),a=C()([1],["datasets",0,"data"],n),s=a[o],l="numeric"===e?String(s):Object(be.b)(s/dt()(a));return u()(r="".concat(i,": ")).call(r,l)},vt=function(e,t){var n=C()(0,["dataIndex"],t),r=C()([1],["dataset","data"],t),o=r[n],i=W()(e)&&o/dt()(r)>=.06;return e===n||i},gt=function(e){var t=e.activeIndex,n=e.onEvent,r=e.settings.valueType,o=e.shouldAnimate;return{animation:{animateRotate:o,duration:o?1e3:0},legend:!1,onClick:n,onHover:n,maintainAspectRatio:!1,plugins:{datalabels:{color:pt,display:l()(vt).call(vt,null,t),font:{size:12,style:"bold"},formatter:l()(ht).call(ht,null,r)}},responsive:!1,rotation:.25*Math.PI,tooltips:{backgroundColor:"#000",callbacks:{label:function(){return null},title:l()(mt).call(mt,null,r)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFontColor:"#fff",titleFontStyle:"normal",titleMarginBottom:0,titleSpacing:0,xAlign:"center",xPadding:14,yAlign:"bottom",yPadding:10}}},yt=function(e){var t=e.activeIndex,n=e.colors,r=e.settings.backgroundColor,i=o()(e),a=W()(t)?n:D()(n).call(n,function(e,n){return n===t?e:V()(e,r||"#fff",.5)});return{backgroundColor:a,hoverBackgroundColor:a,borderWidth:0,data:i}},bt=function(e){function t(){var e,n,r,o;Object(f.a)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(o=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,a)))).handleEvent=l()(r=o.handleEvent).call(r,Object(m.a)(o)),o.wrapRef=Object(g.createRef)(),o}return Object(v.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.resizeObserver=new b.a(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.wrapRef.current)}},{key:"buildDataset",value:function(e){var t=e.colors,n=o()(e),r=this.props,i=r.activeIndex,a=r.settings;return yt({activeIndex:i,colors:t,settings:a,values:n})}},{key:"buildOptions",value:function(){var e=this.props,t=e.activeIndex,n=e.settings,r=e.shouldAnimate;return gt({activeIndex:t,onEvent:this.handleEvent,settings:n,shouldAnimate:r})}},{key:"handleEvent",value:function(e,t){return(0,this.props.onEvent)(C()(null,[0,"_index"],t))}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.forwardedRef,r=e.isVisible,i=e.items,a=e.onEvent,s=ut(i),l=s.colors,c=s.labels,u=o()(s),f=r?u:Object(G.g)(0,i.length),d=this.buildOptions(),p=this.buildDataset({colors:l,values:f});return y.a.createElement("div",{className:"block-chart__circle"},y.a.createElement("div",{className:"block-chart__circleChart",ref:this.wrapRef},y.a.createElement(M.c,{data:{labels:c,datasets:[p]},options:d,ref:n})),y.a.createElement(et,{activeIndex:t,colors:l,labels:c,onEvent:a}))}}]),t}(g.PureComponent),_t=x()(Ve,Fe,Be,j.a)(bt);n.d(t,"a",function(){return Qe}),n.d(t,"b",function(){return _t})},function(e,t,n){e.exports=!n(107)&&!n(61)(function(){return 7!=Object.defineProperty(n(617)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(407)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(775),o=n(66).WeakMap;e.exports="function"==typeof o&&/native code/.test(r.call(o))},function(e,t,n){var r=n(134),o=n(619),i=n(166),a=n(118);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(134),o=n(177),i=n(491)(!1),a=n(409);e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){e.exports=!n(61)(function(){return!String(Symbol())})},function(e,t,n){t.f=n(98)},function(e,t,n){var r=n(107),o=n(118),i=n(93),a=n(357);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,l=0;s>l;)o.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(66).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(177),o=n(324).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(135),o=n(288),i=n(104);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),s=o(e,a),l=o(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:o(c,a))-l,a-s),f=1;for(l<s&&s<l+u&&(f=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},function(e,t,n){"use strict";var r=n(358),o=n(104),i=n(290),a=function(e,t,n,s,l,c,u,f){for(var d,p=l,h=0,m=!!u&&i(u,f,3);h<s;){if(h in n){if(d=m?m(n[h],h,t):n[h],c>0&&r(d))p=a(e,t,d,o(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=a},function(e,t,n){"use strict";var r=n(290),o=n(135),i=n(787),a=n(623),s=n(104),l=n(326),c=n(414);e.exports=function(e){var t,n,u,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,y=c(d);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),null==y||p==Array&&a(y))for(n=new p(t=s(d.length));t>g;g++)l(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(u=f.next()).done;g++)l(n,g,v?i(f,m,[u.value,g],!0):u.value);return n.length=g,n}},function(e,t,n){var r=n(93);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(789).IteratorPrototype,o=n(325),i=n(323),a=n(233),s=n(413),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){"use strict";var r,o,i,a=n(234),s=n(158),l=n(134),c=n(322),u=n(98)("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),c||l(r,u)||s(r,u,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(85),o=n(93);e.exports=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},function(e,t,n){var r=n(194),o=n(104);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(118).f,o=n(325),i=n(360),a=n(290),s=n(291),l=n(417),c=n(624),u=n(359),f=n(107),d=n(327).fastKey,p=n(193),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&l(r,e[c],e,n)}),p=m(t),v=function(e,t,n){var r,o,i=p(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(u.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=p(this),n=g(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(u.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=m(t),i=m(r);c(e,t,function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),u(t)}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(85),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(357),o=n(492),i=n(406),a=n(135),s=n(489),l=Object.assign;e.exports=!l||n(61)(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=r(l({},t)).join("")})?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=o.f,f=i.f;l>c;)for(var d,p=s(arguments[c++]),h=u?r(p).concat(u(p)):r(p),m=h.length,v=0;m>v;)f.call(p,d=h[v++])&&(n[d]=p[d]);return n}:l},function(e,t,n){var r=n(357),o=n(177),i=n(406).f;e.exports=function(e,t){for(var n,a=o(e),s=r(a),l=s.length,c=0,u=[];l>c;)i.call(a,n=s[c++])&&u.push(t?[n,a[n]]:a[n]);return u}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r,o,i,a,s,l,c,u=n(66),f=n(166).f,d=n(210),p=n(631).set,h=n(632),m=u.MutationObserver||u.WebKitMutationObserver,v=u.process,g=u.Promise,y="process"==d(v),b=f(u,"queueMicrotask"),_=b&&b.value;_||(r=function(){var e,t;for(y&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:m&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(h)?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):g&&g.resolve?(c=g.resolve(void 0),a=function(){c.then(r)}):a=function(){p.call(u,r)}),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(93),o=n(85),i=n(800);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(211),o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(502),o=n(193),i=n(624),a=o.set,s=o.getterFor("String Iterator");i(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o,!0),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(104),o=n(630),i=n(192);e.exports=function(e,t,n,a){var s,l,c=String(i(e)),u=c.length,f=void 0===n?" ":String(n),d=r(t);return d<=u||""==f?c:(s=d-u,(l=o.call(f,Math.ceil(s/f.length))).length>s&&(l=l.slice(0,s)),a?l+c:c+l)}},function(e,t,n){var r=n(632);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){var r=n(194);e.exports=function(e,t){var n=r(e);if(n<0||n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(135),o=n(104),i=n(414),a=n(623),s=n(290),l=n(99).aTypedArrayConstructor;e.exports=function(e){var t,n,c,u,f,d=r(e),p=arguments.length,h=p>1?arguments[1]:void 0,m=void 0!==h,v=i(d);if(null!=v&&!a(v))for(f=v.call(d),d=[];!(u=f.next()).done;)d.push(u.value);for(m&&p>2&&(h=s(h,arguments[2],2)),n=o(d.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=m?h(d[t],t):d[t];return c}},function(e,t,n){"use strict";var r=n(360),o=n(327).getWeakData,i=n(93),a=n(85),s=n(291),l=n(417),c=n(167),u=n(134),f=n(193),d=f.set,p=f.getterFor,h=c(5),m=c(6),v=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return h(e.entries,function(e){return e[0]===t})};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t),d(e,{type:t,id:v++,frozen:void 0}),null!=r&&l(r,e[c],e,n)}),h=p(t),m=function(e,t,n){var r=h(e),a=o(i(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t).has(e):n&&u(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=o(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(322),o=n(98)("iterator");e.exports=!n(61)(function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",r&&!e.toJSON||!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(e,t,n){"use strict";n(495);var r=n(808),o=n(178),i=n(360),a=n(788),s=n(193),l=n(291),c=n(134),u=n(290),f=n(93),d=n(85),p=n(1457),h=n(414),m=n(98)("iterator"),v=s.set,g=s.getterFor("URLSearchParams"),y=s.getterFor("URLSearchParamsIterator"),b=/\+/g,_=Array(4),w=function(e){return _[e-1]||(_[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},E=function(e){try{return decodeURIComponent(e)}catch(t){return e}},x=function(e){for(var t=e.replace(b," "),n=4;n;)t=t.replace(w(n--),E);return t},k=/[!'()~]|%20/g,S={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(e){return S[e]},C=function(e){return encodeURIComponent(e).replace(k,T)},O=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:x(r.shift()),value:x(r.join("="))}));return e},j=function(e){this.entries.length=0,O(this.entries,e)},A=function(e,t){if(e<t)throw TypeError("Not enough arguments")},N=a(function(e,t){v(this,{type:"URLSearchParamsIterator",iterator:p(g(e).entries),kind:t})},"Iterator",function(){var e=y(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),M=function(){l(this,M,"URLSearchParams");var e,t,n,r,o,i,a,s=arguments.length>0?arguments[0]:void 0,u=[];if(v(this,{type:"URLSearchParams",entries:u,updateURL:null,updateSearchParams:j}),void 0!==s)if(d(s))if("function"==typeof(e=h(s)))for(t=e.call(s);!(n=t.next()).done;){if((o=(r=p(f(n.value))).next()).done||(i=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");u.push({key:o.value+"",value:i.value+""})}else for(a in s)c(s,a)&&u.push({key:a,value:s[a]+""});else O(u,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},I=M.prototype;i(I,{append:function(e,t){A(arguments.length,2);var n=g(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){A(arguments.length,1);for(var t=g(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL&&t.updateURL()},get:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){A(arguments.length,1);for(var n,r=g(this),o=r.entries,i=!1,a=e+"",s=t+"",l=0;l<o.length;l++)(n=o[l]).key===a&&(i?o.splice(l--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=g(this),o=r.entries,i=o.slice();for(o.length=0,t=0;t<i.length;t++){for(e=i[t],n=0;n<t;n++)if(o[n].key>e.key){o.splice(n,0,e);break}n===t&&o.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=g(this).entries,r=u(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new N(this,"keys")},values:function(){return new N(this,"values")},entries:function(){return new N(this,"entries")}},{enumerable:!0}),o(I,m,I.entries),o(I,"toString",function(){for(var e,t=g(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(C(e.key)+"="+C(e.value));return n.join("&")},{enumerable:!0}),n(233)(M,"URLSearchParams"),n(23)({global:!0,forced:!r},{URLSearchParams:M}),e.exports={URLSearchParams:M,getState:g}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))o.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){e.exports=!n(212)&&!n(152)(function(){return 7!=Object.defineProperty(n(641)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(152)(function(){return!String(Symbol())})},function(e,t,n){var r=n(152),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t){},function(e,t,n){var r=n(418),o=n(420);e.exports=function(e,t,n){var i,a,s=String(o(e)),l=r(t),c=s.length;return l<0||l>=c?n?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?n?s.charAt(l):i:n?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}},function(e,t,n){"use strict";var r=n(68),o=n(817),i=n(422),a=n(646),s=n(294),l=n(235),c=n(424),u=n(362),f=n(119)("iterator"),d=n(331),p=n(818),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,v=function(){return this};e.exports=function(e,t,n,p,g,y,b){o(n,t,p);var _,w,E,x=function(e){if(e===g&&O)return O;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",S=!1,T=e.prototype,C=T[f]||T["@@iterator"]||g&&T[g],O=!m&&C||x(g),j="Array"==t&&T.entries||C;if(j&&(_=i(j.call(new e)),h!==Object.prototype&&_.next&&(u||i(_)===h||(a?a(_,h):"function"!=typeof _[f]&&l(_,f,v)),s(_,k,!0,!0),u&&(d[k]=v))),"values"==g&&C&&"values"!==C.name&&(S=!0,O=function(){return C.call(this)}),u&&!b||T[f]===O||l(T,f,O),d[t]=O,g)if(w={values:x("values"),keys:y?O:x("keys"),entries:x("entries")},b)for(E in w)!m&&!S&&E in T||c(T,E,w[E]);else r({target:t,proto:!0,forced:m||S},w);return w}},function(e,t,n){"use strict";var r=n(818).IteratorPrototype,o=n(511),i=n(419),a=n(294),s=n(331),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){"use strict";var r,o,i,a=n(422),s=n(235),l=n(197),c=n(362),u=n(119)("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),c||l(r,u)||s(r,u,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){e.exports=!n(152)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(212),o=n(293),i=n(196),a=n(423);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,l=0;s>l;)o.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(197),o=n(257),i=n(644)(!1),a=n(510);e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(128).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(331),o=n(119)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(196);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(119)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r=n(196),o=n(364),i=n(119)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r,o,i,a=n(128),s=n(330),l=n(363),c=n(822),u=n(641),f=a.setImmediate,d=a.clearImmediate,p=a.process,h=a.MessageChannel,m=a.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(v),v},d=function(e){delete g[e]},"process"==s(p)?r=function(e){p.nextTick(l(y,e,1))}:m&&m.now?r=function(e){m.now(l(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=l(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(e){a.postMessage(e+"","*")},a.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(l(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,n){var r=n(196),o=n(159),i=n(426);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(424);e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:r(e,o,t[o],n);return e}},function(e,t,n){var r=n(831),o={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},i={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},s=/\s|\//;function l(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(238)(l,n(377).EventEmitter),l.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},l.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},l.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in i)for(var t;(t=this._stack[this._stack.length-1])in i[e];this.onclosetag(t));!this._options.xmlMode&&e in a||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},l.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},l.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},l.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},l.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},l.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},l.prototype.onattribdata=function(e){this._attribvalue+=e},l.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},l.prototype._getInstructionName=function(e){var t=e.search(s),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},l.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},l.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},l.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},l.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},l.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},l.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},l.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},l.prototype.parseComplete=function(e){this.reset(),this.end(e)},l.prototype.write=function(e){this._tokenizer.write(e)},l.prototype.end=function(e){this._tokenizer.end(e)},l.prototype.pause=function(){this._tokenizer.pause()},l.prototype.resume=function(){this._tokenizer.resume()},l.prototype.parseChunk=l.prototype.write,l.prototype.done=l.prototype.end,e.exports=l},function(e,t,n){e.exports=ye;var r,o,i=n(832),a=n(651),s=n(833),l=n(652),c=0,u=c++,f=c++,d=c++,p=c++,h=c++,m=c++,v=c++,g=c++,y=c++,b=c++,_=c++,w=c++,E=c++,x=c++,k=c++,S=c++,T=c++,C=c++,O=c++,j=c++,A=c++,N=c++,M=c++,I=c++,L=c++,P=c++,D=c++,R=c++,F=c++,B=c++,U=c++,q=c++,z=c++,H=c++,W=c++,$=c++,Y=c++,K=c++,V=c++,G=c++,X=c++,Z=c++,Q=c++,J=c++,ee=c++,te=c++,ne=c++,re=c++,oe=c++,ie=c++,ae=c++,se=c++,le=c++,ce=c++,ue=c++,fe=0,de=fe++,pe=fe++,he=fe++;function me(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function ve(e,t,n){var r=e.toLowerCase();return e===r?function(e){e===r?this._state=t:(this._state=n,this._index--)}:function(o){o===r||o===e?this._state=t:(this._state=n,this._index--)}}function ge(e,t){var n=e.toLowerCase();return function(r){r===n||r===e?this._state=t:(this._state=d,this._index--)}}function ye(e,t){this._state=u,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=u,this._special=de,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ye.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=f,this._sectionStart=this._index):this._decodeEntities&&this._special===de&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=u,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==de||me(e)?this._state=u:"!"===e?(this._state=k,this._sectionStart=this._index+1):"?"===e?(this._state=T,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?d:U,this._sectionStart=this._index)},ye.prototype._stateInTagName=function(e){("/"===e||">"===e||me(e))&&(this._emitToken("onopentagname"),this._state=g,this._index--)},ye.prototype._stateBeforeCloseingTagName=function(e){me(e)||(">"===e?this._state=u:this._special!==de?"s"===e||"S"===e?this._state=q:(this._state=u,this._index--):(this._state=m,this._sectionStart=this._index))},ye.prototype._stateInCloseingTagName=function(e){(">"===e||me(e))&&(this._emitToken("onclosetag"),this._state=v,this._index--)},ye.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=u,this._sectionStart=this._index+1):"/"===e?this._state=p:me(e)||(this._state=y,this._sectionStart=this._index)},ye.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=u,this._sectionStart=this._index+1):me(e)||(this._state=g,this._index--)},ye.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||me(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=b,this._index--)},ye.prototype._stateAfterAttributeName=function(e){"="===e?this._state=_:"/"===e||">"===e?(this._cbs.onattribend(),this._state=g,this._index--):me(e)||(this._cbs.onattribend(),this._state=y,this._sectionStart=this._index)},ye.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=w,this._sectionStart=this._index+1):"'"===e?(this._state=E,this._sectionStart=this._index+1):me(e)||(this._state=x,this._sectionStart=this._index,this._index--)},ye.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueNoQuotes=function(e){me(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeDeclaration=function(e){this._state="["===e?N:"-"===e?C:S},ye.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateBeforeComment=function(e){"-"===e?(this._state=O,this._sectionStart=this._index+1):this._state=S},ye.prototype._stateInComment=function(e){"-"===e&&(this._state=j)},ye.prototype._stateAfterComment1=function(e){this._state="-"===e?A:O},ye.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"-"!==e&&(this._state=O)},ye.prototype._stateBeforeCdata1=ve("C",M,S),ye.prototype._stateBeforeCdata2=ve("D",I,S),ye.prototype._stateBeforeCdata3=ve("A",L,S),ye.prototype._stateBeforeCdata4=ve("T",P,S),ye.prototype._stateBeforeCdata5=ve("A",D,S),ye.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=R,this._sectionStart=this._index+1):(this._state=S,this._index--)},ye.prototype._stateInCdata=function(e){"]"===e&&(this._state=F)},ye.prototype._stateAfterCdata1=(r="]",o=B,function(e){e===r&&(this._state=o)}),ye.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"]"!==e&&(this._state=R)},ye.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=z:"t"===e||"T"===e?this._state=Q:(this._state=d,this._index--)},ye.prototype._stateBeforeSpecialEnd=function(e){this._special!==pe||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=u:this._state=ne:this._state=K},ye.prototype._stateBeforeScript1=ge("R",H),ye.prototype._stateBeforeScript2=ge("I",W),ye.prototype._stateBeforeScript3=ge("P",$),ye.prototype._stateBeforeScript4=ge("T",Y),ye.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||me(e))&&(this._special=pe),this._state=d,this._index--},ye.prototype._stateAfterScript1=ve("R",V,u),ye.prototype._stateAfterScript2=ve("I",G,u),ye.prototype._stateAfterScript3=ve("P",X,u),ye.prototype._stateAfterScript4=ve("T",Z,u),ye.prototype._stateAfterScript5=function(e){">"===e||me(e)?(this._special=de,this._state=m,this._sectionStart=this._index-6,this._index--):this._state=u},ye.prototype._stateBeforeStyle1=ge("Y",J),ye.prototype._stateBeforeStyle2=ge("L",ee),ye.prototype._stateBeforeStyle3=ge("E",te),ye.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||me(e))&&(this._special=he),this._state=d,this._index--},ye.prototype._stateAfterStyle1=ve("Y",re,u),ye.prototype._stateAfterStyle2=ve("L",oe,u),ye.prototype._stateAfterStyle3=ve("E",ie,u),ye.prototype._stateAfterStyle4=function(e){">"===e||me(e)?(this._special=de,this._state=m,this._sectionStart=this._index-5,this._index--):this._state=u},ye.prototype._stateBeforeEntity=ve("#",se,le),ye.prototype._stateBeforeNumericEntity=ve("X",ue,ce),ye.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?l:a;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},ye.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(s.hasOwnProperty(n))return this._emitPartial(s[n]),void(this._sectionStart+=t+1);t--}},ye.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==u?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ye.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),o=parseInt(r,t);this._emitPartial(i(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ye.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ye.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ye.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===u?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ye.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ye.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===u?this._stateText(e):this._state===f?this._stateBeforeTagName(e):this._state===d?this._stateInTagName(e):this._state===h?this._stateBeforeCloseingTagName(e):this._state===m?this._stateInCloseingTagName(e):this._state===v?this._stateAfterCloseingTagName(e):this._state===p?this._stateInSelfClosingTag(e):this._state===g?this._stateBeforeAttributeName(e):this._state===y?this._stateInAttributeName(e):this._state===b?this._stateAfterAttributeName(e):this._state===_?this._stateBeforeAttributeValue(e):this._state===w?this._stateInAttributeValueDoubleQuotes(e):this._state===E?this._stateInAttributeValueSingleQuotes(e):this._state===x?this._stateInAttributeValueNoQuotes(e):this._state===k?this._stateBeforeDeclaration(e):this._state===S?this._stateInDeclaration(e):this._state===T?this._stateInProcessingInstruction(e):this._state===C?this._stateBeforeComment(e):this._state===O?this._stateInComment(e):this._state===j?this._stateAfterComment1(e):this._state===A?this._stateAfterComment2(e):this._state===N?this._stateBeforeCdata1(e):this._state===M?this._stateBeforeCdata2(e):this._state===I?this._stateBeforeCdata3(e):this._state===L?this._stateBeforeCdata4(e):this._state===P?this._stateBeforeCdata5(e):this._state===D?this._stateBeforeCdata6(e):this._state===R?this._stateInCdata(e):this._state===F?this._stateAfterCdata1(e):this._state===B?this._stateAfterCdata2(e):this._state===U?this._stateBeforeSpecial(e):this._state===q?this._stateBeforeSpecialEnd(e):this._state===z?this._stateBeforeScript1(e):this._state===H?this._stateBeforeScript2(e):this._state===W?this._stateBeforeScript3(e):this._state===$?this._stateBeforeScript4(e):this._state===Y?this._stateBeforeScript5(e):this._state===K?this._stateAfterScript1(e):this._state===V?this._stateAfterScript2(e):this._state===G?this._stateAfterScript3(e):this._state===X?this._stateAfterScript4(e):this._state===Z?this._stateAfterScript5(e):this._state===Q?this._stateBeforeStyle1(e):this._state===J?this._stateBeforeStyle2(e):this._state===ee?this._stateBeforeStyle3(e):this._state===te?this._stateBeforeStyle4(e):this._state===ne?this._stateAfterStyle1(e):this._state===re?this._stateAfterStyle2(e):this._state===oe?this._stateAfterStyle3(e):this._state===ie?this._stateAfterStyle4(e):this._state===ae?this._stateBeforeEntity(e):this._state===se?this._stateBeforeNumericEntity(e):this._state===le?this._stateInNamedEntity(e):this._state===ce?this._stateInNumericEntity(e):this._state===ue?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},ye.prototype.pause=function(){this._running=!1},ye.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},ye.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},ye.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},ye.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===R||this._state===F||this._state===B?this._cbs.oncdata(e):this._state===O||this._state===j||this._state===A?this._cbs.oncomment(e):this._state!==le||this._xmlMode?this._state!==ce||this._xmlMode?this._state!==ue||this._xmlMode?this._state!==d&&this._state!==g&&this._state!==_&&this._state!==b&&this._state!==y&&this._state!==E&&this._state!==w&&this._state!==x&&this._state!==m&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},ye.prototype.reset=function(){ye.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},ye.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},ye.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},ye.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},ye.prototype._emitPartial=function(e){this._baseState!==u?this._cbs.onattribdata(e):this._cbs.ontext(e)}},function(e,t,n){var r=n(1491);e.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return o[this.type]||o.element}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach(function(e){var t=r[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){e.exports=s;var r=n(830),o=n(1496).Writable||n(1509).Writable,i=n(655).StringDecoder,a=n(368).Buffer;function s(e,t){var n=this._parser=new r(e,t),a=this._decoder=new i;o.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end(a.end())})}n(238)(s,o),o.prototype._write=function(e,t,n){e instanceof a&&(e=this._decoder.write(e)),this._parser.write(e),n()}},function(e,t,n){"use strict";(function(t,r){var o=n(519);e.exports=b;var i,a=n(837);b.ReadableState=y;n(377).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(838),c=n(520).Buffer,u=t.Uint8Array||function(){};var f=n(429);f.inherits=n(238);var d=n(1499),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=n(1500),v=n(839);f.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(e,t){i=i||n(333),e=e||{},this.objectMode=!!e.objectMode,t instanceof i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(655).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(333),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):T(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),T(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(655).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var E=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),A(e)}function T(e,t){t.readingMore||(t.readingMore=!0,o(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function O(e){p("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;e-=o.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,o=t.needReadable;return p("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",o=!0),t.ended||t.reading?p("reading or ended",o=!1):o&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function c(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){p("onend"),e.end()}i.endEmitted?o(l):n.once("end",l),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var d=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==L(i.pipes,e))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function v(t){p("onerror",t),b(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",g),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",y),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=L(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&k(this):o(O,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o(j,e,t))}(this,e)),this},b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var o in e.on("end",function(){if(p("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(o){(p("wrapped data"),t.decoder&&(o=t.decoder.write(o)),t.objectMode&&null==o)||(t.objectMode||o&&o.length)&&(r.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<g.length;i++)e.on(g[i],r.emit.bind(r,g[i]));return r._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},r},b._fromList=N}).call(this,n(71),n(258))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(377).EventEmitter},function(e,t,n){"use strict";var r=n(519);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;i||a?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=a;var r=n(333),o=n(429);function i(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);o(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new i(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(t)})}function s(e,t,n){if(t)return e.emit("error",t);null!=n&&e.push(n);var r=e._writableState,o=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(o.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(238),o.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1531)),o=a(n(843)),i=a(n(1532));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),o&&(this.source=o),a&&(this.plugin=a),void 0!==n&&void 0!==r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n));var a=n.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length;function u(t){return e&&o.default.red?o.default.red.bold(t):t}function f(t){return e&&o.default.gray?o.default.gray(t):t}return a.slice(s,l).map(function(e,n){var r=s+1+n,o=" "+(" "+r).slice(-c)+" | ";if(r===t.line){var i=f(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return u(">")+f(o)+e+"\n "+i+u("^")}return" "+f(o)+e}).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();t.default=s,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.css.valueOf(),T=t.ignoreErrors,C=void 0,O=void 0,j=void 0,A=void 0,N=void 0,M=void 0,I=void 0,L=void 0,P=void 0,D=void 0,R=void 0,F=void 0,B=void 0,U=void 0,q=n.length,z=-1,H=1,W=0,$=[],Y=[];function K(t){throw e.error("Unclosed "+t,H,W-z)}return{back:function(e){Y.push(e)},nextToken:function(){if(Y.length)return Y.pop();if(W>=q)return;((C=n.charCodeAt(W))===s||C===c||C===f&&n.charCodeAt(W+1)!==s)&&(z=W,H+=1);switch(C){case s:case l:case u:case f:case c:O=W;do{O+=1,(C=n.charCodeAt(O))===s&&(z=O,H+=1)}while(C===l||C===s||C===u||C===f||C===c);U=["space",n.slice(W,O)],W=O-1;break;case d:U=["[","[",H,W-z];break;case p:U=["]","]",H,W-z];break;case v:U=["{","{",H,W-z];break;case g:U=["}","}",H,W-z];break;case _:U=[":",":",H,W-z];break;case y:U=[";",";",H,W-z];break;case h:if(F=$.length?$.pop()[1]:"",B=n.charCodeAt(W+1),"url"===F&&B!==r&&B!==o&&B!==l&&B!==s&&B!==u&&B!==c&&B!==f){O=W;do{if(D=!1,-1===(O=n.indexOf(")",O+1))){if(T){O=W;break}K("bracket")}for(R=O;n.charCodeAt(R-1)===i;)R-=1,D=!D}while(D);U=["brackets",n.slice(W,O+1),H,W-z,H,O-z],W=O}else O=n.indexOf(")",W+1),M=n.slice(W,O+1),-1===O||k.test(M)?U=["(","(",H,W-z]:(U=["brackets",M,H,W-z,H,O-z],W=O);break;case m:U=[")",")",H,W-z];break;case r:case o:j=C===r?"'":'"',O=W;do{if(D=!1,-1===(O=n.indexOf(j,O+1))){if(T){O=W+1;break}K("string")}for(R=O;n.charCodeAt(R-1)===i;)R-=1,D=!D}while(D);M=n.slice(W,O+1),A=M.split("\n"),(N=A.length-1)>0?(L=H+N,P=O-A[N].length):(L=H,P=z),U=["string",n.slice(W,O+1),H,W-z,L,O-P],z=P,H=L,W=O;break;case w:E.lastIndex=W+1,E.test(n),O=0===E.lastIndex?n.length-1:E.lastIndex-2,U=["at-word",n.slice(W,O+1),H,W-z,H,O-z],W=O;break;case i:for(O=W,I=!0;n.charCodeAt(O+1)===i;)O+=1,I=!I;if(C=n.charCodeAt(O+1),I&&C!==a&&C!==l&&C!==s&&C!==u&&C!==f&&C!==c&&(O+=1,S.test(n.charAt(O)))){for(;S.test(n.charAt(O+1));)O+=1;n.charCodeAt(O+1)===l&&(O+=1)}U=["word",n.slice(W,O+1),H,W-z,H,O-z],W=O;break;default:C===a&&n.charCodeAt(W+1)===b?(0===(O=n.indexOf("*/",W+2)+1)&&(T?O=n.length:K("comment")),M=n.slice(W,O+1),A=M.split("\n"),(N=A.length-1)>0?(L=H+N,P=O-A[N].length):(L=H,P=z),U=["comment",M,H,W-z,L,O-P],z=P,H=L,W=O):(x.lastIndex=W+1,x.test(n),O=0===x.lastIndex?n.length-1:x.lastIndex-2,U=["word",n.slice(W,O+1),H,W-z,H,O-z],$.push(U),W=O)}return W++,U},endOfFile:function(){return 0===Y.length&&W>=q}}};var r=39,o=34,i=92,a=47,s=10,l=32,c=12,u=9,f=13,d=91,p=93,h=40,m=41,v=123,g=125,y=59,b=42,_=58,w=64,E=/[ \n\t\r\f\{\(\)'"\\;\/\[\]#]/g,x=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,k=/.[\\\/\("'\n]/,S=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(842)),i=s(n(1533)),a=s(n(269));function s(e){return e&&e.__esModule?e:{default:e}}var l=0,c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.css=t.toString(),"\ufeff"!==this.css[0]&&""!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=a.default.resolve(n.from));var r=new i.default(this.css,n);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(l+=1,this.id="<input css "+l+">"),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0,a=this.origin(t,n);return(i=a?new o.default(e,a.line,a.column,a.source,a.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},e.prototype.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:a.default.resolve(this.map.consumer().sourceRoot||".",e)},r(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t.default=c,e.exports=t.default},function(e,t,n){t.SourceMapGenerator=n(847).SourceMapGenerator,t.SourceMapConsumer=n(1536).SourceMapConsumer,t.SourceNode=n(1539).SourceNode},function(e,t,n){var r=n(848),o=n(430),i=n(849).ArraySet,a=n(1535).MappingList;function s(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(r);null!=a&&n.setSourceContent(r,a)}),n},s.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var s=new i,l=new i;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=a&&(t.source=o.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)},this),this._sources=s,this._names=l,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=a&&(t=o.relative(a,t)),this.setSourceContent(t,r))},this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,s=1,l=0,c=0,u=0,f=0,d="",p=this._mappings.toArray(),h=0,m=p.length;h<m;h++){if(e="",(t=p[h]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(h>0){if(!o.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-f),f=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var r=n(1534);t.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,a,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<u,u+=5}while(o);n.value=(s=(a=c)>>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){var r=n(430),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=i?e:r.toSetString(e),a=i?this.has(e):o.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},a.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},function(e,t,n){"use strict";t.__esModule=!0;var r={colon:": ",indent:"    ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.builder=t}return e.prototype.stringify=function(e,t){this[e.type](e,t)},e.prototype.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},e.prototype.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},e.prototype.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},e.prototype.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},e.prototype.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},e.prototype.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}},e.prototype.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},e.prototype.raw=function(e,t,n){var o=void 0;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if("before"===n&&(!i||"root"===i.type&&i.first===e))return"";if(!i)return r[n];var a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,l="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[l]?o=this[l](a,e):a.walk(function(e){if(void 0!==(o=e.raws[t]))return!1}),void 0===o&&(o=r[n]),a.rawCache[n]=o,o},e.prototype.rawSemicolon=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},e.prototype.rawEmptyBody=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},e.prototype.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/[^\s]/g,""),!1}}),t},e.prototype.rawBeforeComment=function(e,t){var n=void 0;return e.walkComments(function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeDecl=function(e,t){var n=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeRule=function(e){var t=void 0;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeClose=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},e.prototype.beforeAfter=function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var a=0;a<o;a++)n+=i}return n},e.prototype.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if(r[e])return;r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e)};var r={};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(853),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="6.0.16",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.default(this,e,t)},e.prototype.normalize=function(e){var t=[],n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var s=a;if(s.postcss&&(s=s.postcss),"object"===(void 0===s?"undefined":o(s))&&Array.isArray(s.plugins))t=t.concat(s.plugins);else{if("function"!=typeof s)throw"object"===(void 0===s?"undefined":o(s))&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}}return t},e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=u(n(1541)),a=u(n(658)),s=u(n(851)),l=u(n(1542)),c=u(n(659));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return"object"===(void 0===e?"undefined":o(e))&&"function"==typeof e.then}var d=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringified=!1,this.processed=!1;var i=void 0;if("object"===(void 0===n?"undefined":o(n))&&"root"===n.type)i=n;else if(n instanceof e||n instanceof l.default)i=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=c.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{i=a(n,r)}catch(e){this.error=e}}this.result=new l.default(t,i,r)}return e.prototype.warnings=function(){return this.sync().warnings()},e.prototype.toString=function(){return this.css},e.prototype.then=function(e,t){return"from"in this.opts||(0,s.default)("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)},e.prototype.catch=function(e){return this.async().catch(e)},e.prototype.handleError=function(e,t){try{if(this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(t.postcssVersion){var n=t.postcssPlugin,r=t.postcssVersion,o=this.result.processor.version,i=r.split("."),a=o.split(".");(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+r+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,f(o)?o.then(function(){n.asyncTick(e,t)}).catch(function(e){n.handleError(e,r),n.processed=!0,t(e)}):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise(function(t,n){e.error?n(e.error):t(e.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)}).then(function(){return e.processed=!0,e.stringify()}),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(f(this.run(o)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=a.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new i.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},r(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();t.default=d,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r={split:function(e,t,n){for(var r=[],o="",i=!1,a=0,s=!1,l=!1,c=0;c<e.length;c++){var u=e[c];s?l?l=!1:"\\"===u?l=!0:u===s&&(s=!1):'"'===u||"'"===u?s=u:"("===u?a+=1:")"===u?a>0&&(a-=1):0===a&&-1!==t.indexOf(u)&&(i=!0),i?(""!==o&&r.push(o.trim()),o="",i=!1):o+=u}return(n||""!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[" ","\n","\t"])},comma:function(e){return r.split(e,[","],!0)}};t.default=r,e.exports=t.default},function(e,t){e.exports=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(t){return new e(t)}}()},function(e,t,n){var r=n(237),o=n(21);e.exports=o(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})})},function(e,t,n){var r=n(168);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t})},function(e,t){e.exports=function(e){return function(){return!e.apply(this,arguments)}}},function(e,t,n){var r=n(523);e.exports=function(e){return function t(n){for(var o,i,a,s=[],l=0,c=n.length;l<c;){if(r(n[l]))for(a=0,i=(o=e?t(n[l]):n[l]).length;a<i;)s[s.length]=o[a],a+=1;else s[s.length]=n[l];l+=1}return s}}},function(e,t,n){"use strict";var r=n(433),o=n(159),i=n(236),a=n(195),s=n(527),l=n(668),c=n(119)("isConcatSpreadable"),u=!n(152)(function(){var e=[];return e[c]=!1,e.concat()[0]!==e}),f=n(434)("concat"),d=function(e){if(!o(e))return!1;var t=e[c];return void 0!==t?!!t:r(e)},p=!u||!f;n(68)({target:"Array",proto:!0,forced:p},{concat:function(e){var t,n,r,o,c,u=i(this),f=l(u,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(c=-1===t?u:arguments[t],d(c)){if(p+(o=a(c.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in c&&s(f,p,c[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,c)}return f.length=p,f}})},function(e,t,n){var r=n(35);e.exports=function(e,t,n){var o,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(o=1/t;n<e.length;){if(0===(i=e[n])&&1/i===o)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(r(e[n],t))return n;n+=1}return-1}},function(e,t,n){"use strict";var r=n(423),o=n(672),i=n(507),a=n(236),s=n(508),l=Object.assign;e.exports=!l||n(152)(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=r(l({},t)).join("")})?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=o.f,f=i.f;l>c;)for(var d,p=s(arguments[c++]),h=u?r(p).concat(u(p)):r(p),m=h.length,v=0;m>v;)f.call(p,d=h[v++])&&(n[d]=p[d]);return n}:l},function(e,t,n){"use strict";t.__esModule=!0,t.isFSA=function(e){return i.default(e)&&void 0!==e.type&&Object.keys(e).every(s)},t.isError=function(e){return!0===e.error};var r,o=n(1592),i=(r=o)&&r.__esModule?r:{default:r},a=["type","payload","error","meta"];function s(e){return a.indexOf(e)>-1}},function(e,t){var n=9007199254740991,r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a=Object.prototype,s=a.hasOwnProperty,l=a.toString,c=a.propertyIsEnumerable;e.exports=function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?l.call(e):"";return t==o||t==i}(e)}(e)}(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||l.call(e)==r)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){return null==e||Number.isNaN(e)}},function(e,t,n){var r=n(21),o=n(198),i=n(673),a=n(57),s=n(27);e.exports=r(function(e,t){var n=a(e,t);return a(e,function(){return o(i,s(n,arguments[0]),Array.prototype.slice.call(arguments,1))})})},function(e,t){e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(237),o=n(21);e.exports=function(e){return o(function(t,n){return r(Math.max(0,t.length-n.length),function(){return t.apply(this,e(n,arguments))})})}},function(e,t,n){"use strict";var r=n(128),o=n(197),i=n(212),a=n(362),s=n(68),l=n(424),c=n(510),u=n(152),f=n(505),d=n(294),p=n(642),h=n(119),m=n(675),v=n(153),g=n(1602),y=n(433),b=n(196),_=n(159),w=n(257),E=n(506),x=n(419),k=n(511),S=n(1603),T=n(421),C=n(293),O=n(507),j=n(235),A=n(423),N=n(509)("hidden"),M=n(366),I=M.set,L=M.getterFor("Symbol"),P=T.f,D=C.f,R=S.f,F=r.Symbol,B=r.JSON,U=B&&B.stringify,q=h("toPrimitive"),z=O.f,H=f("symbol-registry"),W=f("symbols"),$=f("op-symbols"),Y=f("wks"),K=Object.prototype,V=r.QObject,G=n(812),X=!V||!V.prototype||!V.prototype.findChild,Z=i&&u(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(K,t);r&&delete K[t],D(e,t,n),r&&e!==K&&D(K,t,r)}:D,Q=function(e,t){var n=W[e]=k(F.prototype);return I(n,{type:"Symbol",tag:e,description:t}),i||(n.description=t),n},J=G&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof F},ee=function(e,t,n){return e===K&&ee($,t,n),b(e),t=E(t,!0),b(n),o(W,t)?(n.enumerable?(o(e,N)&&e[N][t]&&(e[N][t]=!1),n=k(n,{enumerable:x(0,!1)})):(o(e,N)||D(e,N,x(1,{})),e[N][t]=!0),Z(e,t,n)):D(e,t,n)},te=function(e,t){b(e);for(var n,r=g(t=w(t)),o=0,i=r.length;i>o;)ee(e,n=r[o++],t[n]);return e},ne=function(e){var t=z.call(this,e=E(e,!0));return!(this===K&&o(W,e)&&!o($,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,N)&&this[N][e])||t)},re=function(e,t){if(e=w(e),t=E(t,!0),e!==K||!o(W,t)||o($,t)){var n=P(e,t);return!n||!o(W,t)||o(e,N)&&e[N][t]||(n.enumerable=!0),n}},oe=function(e){for(var t,n=R(w(e)),r=[],i=0;n.length>i;)o(W,t=n[i++])||o(c,t)||r.push(t);return r},ie=function(e){for(var t,n=e===K,r=R(n?$:w(e)),i=[],a=0;r.length>a;)!o(W,t=r[a++])||n&&!o(K,t)||i.push(W[t]);return i};G||(l((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=p(e),n=function(e){this===K&&n.call($,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),Z(this,t,x(1,e))};return i&&X&&Z(K,t,{configurable:!0,set:n}),Q(t,e)}).prototype,"toString",function(){return L(this).tag}),O.f=ne,C.f=ee,T.f=re,n(871).f=S.f=oe,n(672).f=ie,i&&(D(F.prototype,"description",{configurable:!0,get:function(){return L(this).description}}),a||l(K,"propertyIsEnumerable",ne,{unsafe:!0})),m.f=function(e){return Q(h(e),e)}),s({global:!0,wrap:!0,forced:!G,sham:!G},{Symbol:F});for(var ae=A(Y),se=0;ae.length>se;)v(ae[se++]);s({target:"Symbol",stat:!0,forced:!G},{for:function(e){return o(H,e+="")?H[e]:H[e]=F(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol");for(var t in H)if(H[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s({target:"Object",stat:!0,forced:!G,sham:!i},{create:function(e,t){return void 0===t?k(e):te(k(e),t)},defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:oe,getOwnPropertySymbols:ie}),B&&s({target:"JSON",stat:!0,forced:!G||u(function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))})},{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(_(t)||void 0!==e)&&!J(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,U.apply(B,r)}}),F.prototype[q]||j(F.prototype,q,F.prototype.valueOf),d(F,"Symbol"),c[N]=!0},function(e,t,n){var r=n(821),o=n(645).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(363),o=n(236),i=n(824),a=n(823),s=n(195),l=n(527),c=n(515);e.exports=function(e){var t,n,u,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,y=c(d);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),null==y||p==Array&&a(y))for(n=new p(t=s(d.length));t>g;g++)l(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(u=f.next()).done;g++)l(n,g,v?i(f,m,[u.value,g],!0):u.value);return n.length=g,n}},function(e,t,n){var r=n(196),o=n(515);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){var r=n(21),o=n(299),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=o(this.xf["@@transducer/step"](e,!0))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1612),o=n(21);e.exports=o(function(e,t){for(var n,o,i=new r,a=[],s=0;s<t.length;)n=e(o=t[s]),i.add(n)&&a.push(o),s+=1;return a})},function(e,t,n){var r=n(131);e.exports=r(function(e,t){return{type:e,payload:t}})},function(e,t,n){n(153)("iterator")},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(442)),o=s(n(1)),i=s(n(96)),a=n(879);n(880);function s(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";t.UNMOUNTED=l;var c="exited";t.EXITED=c;var u="entering";t.ENTERING=u;var f="entered";t.ENTERED=f;t.EXITING="exiting";var d=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=u):o=f:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==f&&(t=u):n!==u&&n!==f||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},a.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts();t||r?(this.props.onEnter(e,o),this.safeSetState({status:u},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i.enter,function(){n.safeSetState({status:f},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:f},function(){n.props.onEntered(e)})},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:c},function(){t.props.onExited(e)})})})):this.safeSetState({status:c},function(){t.props.onExited(e)})},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function p(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var h=(0,a.polyfill)(d);t.default=h},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},t.classNamesShape=t.timeoutsShape=void 0;var r,o=(r=n(442))&&r.__esModule?r:{default:r};var i=o.default.oneOfType([o.default.number,o.default.shape({enter:o.default.number,exit:o.default.number}).isRequired]);t.timeoutsShape=i;var a=o.default.oneOfType([o.default.string,o.default.shape({enter:o.default.string,exit:o.default.string,active:o.default.string}),o.default.shape({enter:o.default.string,enterDone:o.default.string,enterActive:o.default.string,exit:o.default.string,exitDone:o.default.string,exitActive:o.default.string})]);t.classNamesShape=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(442)),o=s(n(1)),i=n(879),a=n(1657);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=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}).apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},f=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},i.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.setState(function(t){var n=l({},t.children);return delete n[e.key],{children:n}}))},i.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,i.polyfill)(f);t.default=d,e.exports=t.default},function(e,t,n){var r=n(21),o=n(168);e.exports=r(function(e,t){for(var n in e)if(o(n,e)&&!e[n](t[n]))return!1;return!0})},function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=u||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,v=function(){return d.Date.now()};function g(e,t,r){var o,i,a,s,l,c,u=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function g(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function _(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=a}function w(){var e=v();if(_(e))return E(e);l=setTimeout(w,function(e){var n=t-(e-c);return d?m(n,a-(e-u)):n}(e))}function E(e){return l=void 0,p&&o?g(e):(o=i=void 0,s)}function x(){var e=v(),n=_(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),f?g(e):s}(c);if(d)return l=setTimeout(w,t),g(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=b(t)||0,y(r)&&(f=!!r.leading,a=(d="maxWait"in r)?h(b(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},x.flush=function(){return void 0===l?s:E(v())},x}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),g(e,t,{leading:o,maxWait:t,trailing:i})}}).call(this,n(71))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=(s(n(443)),s(n(1709))),i=s(n(1710)),a=s(n(680));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return o.default[e.smooth]||o.default.defaultEasing},c=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},u=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},f=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},d=function(e,t,n,r){if(t.data=t.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),i.default.subscribe(function(){t.data.cancel=!0}),f(t),t.data.start=null,t.data.cancel=!1,t.data.startPositionY=u(t),t.data.targetPositionY=t.absolute?e:e+t.data.startPositionY,t.data.startPositionY!==t.data.targetPositionY){var o;t.data.deltaTop=Math.round(t.data.targetPositionY-t.data.startPositionY),t.data.duration=("function"==typeof(o=t.duration)?o:function(){return o})(t.data.deltaTop),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var s=l(t),d=function e(t,n,r){var o=n.data;if(n.ignoreCancelEvents||!o.cancel)if(o.deltaTop=Math.round(o.targetPositionY-o.startPositionY),null===o.start&&(o.start=r),o.progress=r-o.start,o.percent=o.progress>=o.duration?1:t(o.progress/o.duration),o.currentPositionY=o.startPositionY+Math.ceil(o.deltaTop*o.percent),o.containerElement&&o.containerElement!==document&&o.containerElement!==document.body?o.containerElement.scrollTop=o.currentPositionY:window.scrollTo(0,o.currentPositionY),o.percent<1){var i=e.bind(null,t,n);c.call(window,i)}else a.default.registered.end&&a.default.registered.end(o.to,o.target,o.currentPositionY);else a.default.registered.end&&a.default.registered.end(o.to,o.target,o.currentPositionY)}.bind(null,s,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout(function(){c.call(window,d)},t.delay):c.call(window,d)}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPositionY)},p=function(e){return(e=r({},e)).data=e.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:d,getAnimationType:l,scrollToTop:function(e){d(0,p(e))},scrollToBottom:function(e){e=p(e),f(e),d(function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight);var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(e),e)},scrollTo:function(e,t){d(e,p(t))},scrollMore:function(e,t){t=p(t),f(t),d(u(t)+e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(679);var r,o=n(443),i=(r=o)&&r.__esModule?r:{default:r};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var r=this.containers[e]||document;n.scrollTo(e,{container:r})}},getHash:function(){return i.default.getHash()},changeHash:function(e){this.isInitialized()&&i.default.getHash()!==e&&i.default.pushHash(e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(1)),a=(l(n(96)),l(n(533))),s=l(n(534));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(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}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(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)}(n,i.default.Component),o(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return i.default.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:s.default.string,id:s.default.string},t}},function(e,t,n){var r=n(681)(function(e,t,n){var r={};for(var o in n)r[o]=n[o];return r[e]=t,r});e.exports=r},function(e,t,n){var r=n(182),o=n(889),i=n(370),a=n(890),s=n(1718),l=n(896),c=r(function(e,t){return i(l(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,o(function(e){return e.apply(r,n)},t))})});e.exports=c},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}},function(e,t,n){var r=n(182)(function(e,t){return t>e?t:e});e.exports=r},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(214),o=n(894),i=n(1726),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},u=r("function"!=typeof Object.keys||l?function(e){if(Object(e)!==e)return[];var t,n,r=[],u=l&&i(e);for(t in e)!o(t,e)||u&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)o(t=s[n],e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)});e.exports=u},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(182),o=n(1727),i=r(function(e,t){return o([e],t)});e.exports=i},function(e,t,n){var r=n(681)(n(682));e.exports=r},function(e,t,n){var r=n(182),o=n(370),i=r(function(e,t){return o(e,function(){for(var n,r=1,o=t,i=0;r<=e&&"function"==typeof o;)n=r===e?arguments.length:i+o.length,o=o.apply(this,Array.prototype.slice.call(arguments,i,n)),r+=1,i=n;return o})});e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(200),o=n(1737),i=n(1739),a=n(1740),s=n(1741),l=n(900),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(1742);e.exports=function(e){return new Promise(function(t,u){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(e.url)||(p=new window.XDomainRequest,h="onload",m=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var v=e.auth.username||"",g=e.auth.password||"";d.Authorization="Basic "+c(v+":"+g)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[h]=function(){if(p&&(4===p.readyState||m)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:e,request:p};o(t,u,r),p=null}},p.onerror=function(){u(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n(1743),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),u(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,n){"use strict";var r=n(1738);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(297),o=n(684);e.exports=function(e){return o(e)&&r("of",e)}},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(686),o=n(260),i=n(1755),a=n(1756);function s(e){return e&&o(e.inspect)?" "+e.inspect():o(e)?" Function":r(e)?" ["+((t=e).length?t.map(s).reduce(function(e,t){return e+","+t}):t)+" ]":i(e)?" {}":a(e)?' "'+e+'"':" "+e;var t}e.exports=s},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(){return"Const"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e){return{type:r(e)}},type:r}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1765),o=n(260),i=n(1766);e.exports=r(function(e,t){var n=i(e),r=i(t);return n===r||o(e)&&e.name===r||o(t)&&t.name===n})},function(e,t,n){var r=n(540),o=n(336)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=o},function(e,t,n){var r=n(337),o=n(336),i=n(541);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(a)?t:i(n)?o(function(t,n){return e(t,a,n)}):i(a)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return i(n)&&i(a)&&i(s)?t:i(n)&&i(a)?o(function(t,n){return e(t,n,s)}):i(n)&&i(s)?o(function(t,n){return e(t,a,n)}):i(a)&&i(s)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,a,s)}):i(a)?r(function(t){return e(n,t,s)}):i(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(911);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return r(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,o=e.indexOf("["),i=e.indexOf("]");-1!=o&&-1!=i&&(e=e.substring(0,o)+e.substring(o,i).replace(/:/g,";")+e.substring(i,e.length));for(var a=n.exec(e||""),s={},l=14;l--;)s[r[l]]=a[l]||"";return-1!=o&&-1!=i&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t,n){(function(t){var r=n(1783),o=Object.prototype.toString,i="function"==typeof t.Blob||"[object BlobConstructor]"===o.call(t.Blob),a="function"==typeof t.File||"[object FileConstructor]"===o.call(t.File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var o=0,s=n.length;o<s;o++)if(e(n[o]))return!0;return!1}if("function"==typeof t.Buffer&&t.Buffer.isBuffer&&t.Buffer.isBuffer(n)||"function"==typeof t.ArrayBuffer&&n instanceof ArrayBuffer||i&&n instanceof Blob||a&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return e(n.toJSON(),!0);for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&e(n[l]))return!0;return!1}}).call(this,n(71))},function(e,t,n){(function(t){e.exports=function(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}}).call(this,n(71))},function(e,t,n){var r=n(1786),o=n(922),i=n(371),a=n(688),s=n(923),l=n(924),c=n(261)("socket.io-client:manager"),u=n(921),f=n(1800),d=Object.prototype.hasOwnProperty;function p(e,t){if(!(this instanceof p))return new p(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=p,p.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)d.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},p.prototype.updateSocketIds=function(){for(var e in this.nsps)d.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},p.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},i(p.prototype),p.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},p.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},p.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,t){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i=s(n,"open",function(){o.onopen(),e&&e()}),a=s(n,"error",function(t){if(c("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()});if(!1!==this._timeout){var l=this._timeout;c("connect attempt will timeout after %d",l);var u=setTimeout(function(){c("connect attempt timed out after %d",l),i.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",l)},l);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(i),this.subs.push(a),this},p.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",l(this,"ondata"))),this.subs.push(s(e,"ping",l(this,"onping"))),this.subs.push(s(e,"pong",l(this,"onpong"))),this.subs.push(s(e,"error",l(this,"onerror"))),this.subs.push(s(e,"close",l(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",l(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(e){this.decoder.add(e)},p.prototype.ondecoded=function(e){this.emit("packet",e)},p.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},p.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",i),n.on("connect",function(){n.id=r.generateId(e)}),this.autoConnect&&i()}function i(){~u(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(e){var t=u(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},p.prototype.packet=function(e){c("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(e){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){(function(e){var r=n(689),o=n(1789),i=n(1796),a=n(1797);t.polling=function(t){var n=!1,a=!1,s=!1!==t.jsonp;if(e.location){var l="https:"===location.protocol,c=location.port;c||(c=l?443:80),n=t.hostname!==location.hostname||c!==t.port,a=t.secure!==l}if(t.xdomain=n,t.xscheme=a,"open"in new r(t)&&!t.forceJSONP)return new o(t);if(!s)throw new Error("JSONP disabled");return new i(t)},t.websocket=a}).call(this,n(71))},function(e,t,n){var r=n(690),o=n(542),i=n(372),a=n(543),s=n(920),l=n(261)("engine.io-client:polling");e.exports=u;var c=null!=new(n(689))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}a(u,r),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||n()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||n()}))}else n()},u.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;l("polling got data %s",e);i.decodePayload(e,this.socket.binaryType,function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){"use strict";var r,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i=64,a={},s=0,l=0;function c(e){var t="";do{t=o[e%i]+t,e=Math.floor(e/i)}while(e>0);return t}function u(){var e=c(+new Date);return e!==r?(s=0,r=e):e+"."+c(s++)}for(;l<i;l++)a[o[l]]=l;u.encode=c,u.decode=function(e){var t=0;for(l=0;l<e.length;l++)t=t*i+a[e.charAt(l)];return t},e.exports=u},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(688),o=n(371),i=n(1799),a=n(923),s=n(924),l=n(261)("socket.io-client:socket"),c=n(542);e.exports=d;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=o.prototype.emit;function d(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(d.prototype),d.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",s(this,"onopen")),a(e,"packet",s(this,"onpacket")),a(e,"close",s(this,"onclose"))]}},d.prototype.open=d.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},d.prototype.send=function(){var e=i(arguments);return e.unshift("message"),this.emit.apply(this,e),this},d.prototype.emit=function(e){if(u.hasOwnProperty(e))return f.apply(this,arguments),this;var t=i(arguments),n={type:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),delete this.flags,this},d.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},d.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},d.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},d.prototype.onpacket=function(e){if(e.nsp===this.nsp)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},d.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?f.apply(this,t):this.receiveBuffer.push(t)},d.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=i(arguments);l("sending ack %j",o),t.packet({type:r.ACK,id:e,data:o})}}},d.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},d.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},d.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)f.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},d.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},d.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},d.prototype.close=d.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},d.prototype.compress=function(e){return this.flags=this.flags||{},this.flags.compress=e,this}},function(e,t){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(904),o=n(905),i=n(906).type("IO"),a=n(907),s=n(260),l=n(908),c=function(e){return u(function(){return e})};function u(e){if(!s(e))throw new TypeError("IO: Must wrap a function");function t(t){if(!s(t))throw new TypeError("IO.chain: Function required");return u(function(){var n=t(e());if(!l(u,n))throw new TypeError("IO.chain: Function must return an IO");return n.run()})}return{inspect:function(){return"IO"+o(e)},run:e,type:i,map:function(t){if(!s(t))throw new TypeError("IO.map: Function required");return u(a(t,e))},ap:function(e){if(!l(u,e))throw new TypeError("IO.ap: IO required");return t(function(t){return e.map(t)})},of:c,chain:t,constructor:u}}u.of=c,u.type=i,u["@@implements"]=r(["ap","chain","map","of"]),e.exports=u},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(696),o=n(262),i=n(693),a=n(338),s=n(183),l=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return[];s(e)||(e=Object(e));var t=e.length;t=t&&a(t)&&(o(e)||r(e))&&t||0;for(var n=e.constructor,c=-1,u="function"==typeof n&&n.prototype===e,f=Array(t),d=t>0;++c<t;)f[c]=c+"";for(var p in e)d&&i(p,t)||"constructor"==p&&(u||!l.call(e,p))||f.push(p);return f}},function(e,t,n){var r=n(930),o=n(445);e.exports=function(e,t){return r(e,t,o)}},function(e,t,n){var r=n(1832)();e.exports=r},function(e,t,n){var r=n(214)(function(e){return function(){return e}});e.exports=r},function(e,t,n){var r=n(362),o=n(119)("iterator");e.exports=!n(152)(function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",r&&!e.toJSON||!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(e,t,n){"use strict";n(513);var r=n(932),o=n(424),i=n(829),a=n(817),s=n(366),l=n(647),c=n(197),u=n(363),f=n(196),d=n(159),p=n(873),h=n(515),m=n(119)("iterator"),v=s.set,g=s.getterFor("URLSearchParams"),y=s.getterFor("URLSearchParamsIterator"),b=/\+/g,_=Array(4),w=function(e){return _[e-1]||(_[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},E=function(e){try{return decodeURIComponent(e)}catch(t){return e}},x=function(e){for(var t=e.replace(b," "),n=4;n;)t=t.replace(w(n--),E);return t},k=/[!'()~]|%20/g,S={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(e){return S[e]},C=function(e){return encodeURIComponent(e).replace(k,T)},O=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:x(r.shift()),value:x(r.join("="))}));return e},j=function(e){this.entries.length=0,O(this.entries,e)},A=function(e,t){if(e<t)throw TypeError("Not enough arguments")},N=a(function(e,t){v(this,{type:"URLSearchParamsIterator",iterator:p(g(e).entries),kind:t})},"Iterator",function(){var e=y(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),M=function(){l(this,M,"URLSearchParams");var e,t,n,r,o,i,a,s=arguments.length>0?arguments[0]:void 0,u=[];if(v(this,{type:"URLSearchParams",entries:u,updateURL:null,updateSearchParams:j}),void 0!==s)if(d(s))if("function"==typeof(e=h(s)))for(t=e.call(s);!(n=t.next()).done;){if((o=(r=p(f(n.value))).next()).done||(i=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");u.push({key:o.value+"",value:i.value+""})}else for(a in s)c(s,a)&&u.push({key:a,value:s[a]+""});else O(u,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},I=M.prototype;i(I,{append:function(e,t){A(arguments.length,2);var n=g(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){A(arguments.length,1);for(var t=g(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL&&t.updateURL()},get:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){A(arguments.length,1);for(var n,r=g(this),o=r.entries,i=!1,a=e+"",s=t+"",l=0;l<o.length;l++)(n=o[l]).key===a&&(i?o.splice(l--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=g(this),o=r.entries,i=o.slice();for(o.length=0,t=0;t<i.length;t++){for(e=i[t],n=0;n<t;n++)if(o[n].key>e.key){o.splice(n,0,e);break}n===t&&o.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=g(this).entries,r=u(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new N(this,"keys")},values:function(){return new N(this,"values")},entries:function(){return new N(this,"entries")}},{enumerable:!0}),o(I,m,I.entries),o(I,"toString",function(){for(var e,t=g(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(C(e.key)+"="+C(e.value));return n.join("&")},{enumerable:!0}),n(294)(M,"URLSearchParams"),n(68)({global:!0,forced:!r},{URLSearchParams:M}),e.exports={URLSearchParams:M,getState:g}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(297),o=n(684);e.exports=function(e){return o(e)&&r("chain",e)}},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={keys:["Enter"],keyCode:13},o=function(e){var t=e.keyCode,n=e.keys;return function(e){return e.keyCode?e.keyCode===t:-1!==n.indexOf(e.key)}},i=(t.isEnterOrSpaceBarKey=function(e){return o(r)(e)||i(e)},t.isTabKey=o({keys:["Tab"],keyCode:9}),t.isSpaceBarKey=o({keys:[" "],keyCode:32}));t.isEscapeKey=o({keys:["Escape","Esc"],keyCode:27})},function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",r=0;r<arguments.length;r++)t+=n(e[r])+(arguments[r+1]||"");return t}},function(e,t,n){"use strict";t.__esModule=!0,t.setTextContent=t.createStyleElement=void 0;var r,o=n(129),i=(r=o)&&r.__esModule?r:{default:r};t.createStyleElement=function(e){var t=i.default.createElement("style");return t.className=e,t},t.setTextContent=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}},function(e,t,n){var r=n(1946),o=n(1960)(r);e.exports=o},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(300),o=n(703),i=n(548);e.exports=function(e){if(i.unindexedChars&&o(e)){for(var t=-1,n=e.length,a=Object(e);++t<n;)a[t]=e.charAt(t);return a}return r(e)?e:Object(e)}},function(e,t,n){var r=n(300),o="[object Function]",i=Object.prototype.toString;e.exports=function(e){return r(e)&&i.call(e)==o}},function(e,t){var n=function(){try{Object({toString:0}+"")}catch(e){return function(){return!1}}return function(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}}();e.exports=n},function(e,t,n){var r=n(447),o=n(339),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var a=Object.prototype.toString;e.exports=function(e){return o(e)&&r(e.length)&&!!i[a.call(e)]}},function(e,t,n){"use strict";t.__esModule=!0;var r=C(n(48)),o=C(n(129)),i=C(n(141)),a=T(n(264)),s=T(n(124)),l=T(n(108)),c=T(n(375)),u=T(n(154)),f=C(n(184)),d=C(n(376)),p=n(448),h=n(946),m=T(n(938)),v=C(n(1965)),g=C(n(947)),y=C(n(952)),b=C(n(301)),_=C(n(265)),w=C(n(1972)),E=C(n(953)),x=C(n(449)),k=C(n(957)),S=C(n(956));function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}n(1981),n(1982),n(1984),n(1985),n(1986),n(1987),n(1988),n(1989),n(2024),n(2025),n(2026);var O=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],j=function(e){function t(n,r,o){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n.id=n.id||"vjs_video_"+c.newGUID(),(r=(0,b.default)(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var i=n.closest("[lang]");i&&(r.language=i.getAttribute("lang"))}else for(var a=n;a&&1===a.nodeType;){if(s.getElAttributes(a).hasOwnProperty("lang")){r.language=a.getAttribute("lang");break}a=a.parentNode}var l,d=function(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}(this,e.call(this,null,r,o));if(!d.options_||!d.options_.techOrder||!d.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");d.tag=n,d.tagAttributes=n&&s.getElAttributes(n),d.language(d.options_.language),r.languages?(l={},Object.getOwnPropertyNames(r.languages).forEach(function(e){l[e.toLowerCase()]=r.languages[e]}),d.languages_=l):d.languages_=t.prototype.options_.languages,d.cache_={},d.poster_=r.poster||"",d.controls_=!!r.controls,n.controls=!1,d.scrubbing_=!1,d.el_=d.createEl();var p,h=(0,_.default)(d.options_);return r.plugins&&(p=r.plugins,Object.getOwnPropertyNames(p).forEach(function(e){"function"==typeof this[e]?this[e](p[e]):f.default.error("Unable to find plugin:",e)},d)),d.options_.playerOptions=h,d.initChildren(),d.isAudio("audio"===n.nodeName.toLowerCase()),d.controls()?d.addClass("vjs-controls-enabled"):d.addClass("vjs-controls-disabled"),d.el_.setAttribute("role","region"),d.isAudio()?d.el_.setAttribute("aria-label","audio player"):d.el_.setAttribute("aria-label","video player"),d.isAudio()&&d.addClass("vjs-audio"),d.flexNotSupported_()&&d.addClass("vjs-no-flex"),u.IS_IOS||d.addClass("vjs-workinghover"),t.players[d.id_]=d,d.userActive(!0),d.reportUserActivity(),d.listenForUserActivity_(),d.on("fullscreenchange",d.handleFullscreenChange_),d.on("stageclick",d.handleStageClick_),d}return function(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,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.el_=e.prototype.createEl.call(this,"div"),n=this.tag;n.removeAttribute("width"),n.removeAttribute("height");var r=s.getElAttributes(n);if(Object.getOwnPropertyNames(r).forEach(function(e){"class"===e?t.className=r[e]:t.setAttribute(e,r[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=m.createStyleElement("vjs-styles-dimensions");var o=s.$(".vjs-styles-defaults"),a=s.$("head");a.insertBefore(this.styleEl_,o?o.nextSibling:a.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var l=n.getElementsByTagName("a"),c=0;c<l.length;c++){var u=l.item(c);s.addElClass(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&n.parentNode.insertBefore(t,n),s.insertElFirst(n,t),this.children_.unshift(n),this.el_=t,t},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)this[n]=void 0;else{var r=parseFloat(t);if(isNaN(r))return f.default.error('Improper value "'+t+'" supplied for for '+e),this;this[n]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(!0!==i.default.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),m.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*o+"%;\n      }\n    ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(a>=0&&(l.width=a),s>=0&&(l.height=s))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_(),"Html5"!==e&&this.tag&&(x.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=e,this.isReady_=!1;var o=(0,b.default)({source:t,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[e.toLowerCase()]);this.tag&&(o.tag=this.tag),t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime),this.cache_.src=t.src);var i=x.default.getTech(e);i||(i=r.default.getComponent(e)),this.tech_=new i(o),this.tech_.ready(l.bind(this,this.handleTechReady_),!0),w.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),O.forEach(function(e){n.on(n.tech_,e,n["handleTech"+(0,d.default)(e)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===e&&this.tag||s.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=w.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(e){if(e&&e.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw i.default.alert(t),new Error(t)},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){(0,f.default)("deleting tag.poster throws in some browsers",e)}this.play()}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(e){return void 0!==e?(this.hasStarted_!==e&&(this.hasStarted_=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){0===e.button&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[e](t)},!0);else try{this.tech_&&this.tech_[e](t)}catch(e){throw(0,f.default)(e),e}},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?(0,f.default)("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t):"TypeError"===t.name?((0,f.default)("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):(0,f.default)(t),t}},t.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.scrubbing=function(e){return void 0!==e?(this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(e){return void 0!==e?(this.techCall_("setCurrentTime",e),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){return void 0===e?this.cache_.duration||0:((e=parseFloat(e)||0)<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=(0,p.createTimeRange)(0,0)),e},t.prototype.bufferedPercent=function(){return(0,h.bufferedPercent)(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){return void 0!==e?(this.techCall_("setMuted",e),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var e=v.default;return this.isFullscreen(!0),e.requestFullscreen?(a.on(o.default,e.fullscreenchange,l.bind(this,function t(n){this.isFullscreen(o.default[e.fullscreenElement]),!1===this.isFullscreen()&&a.off(o.default,e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.exitFullscreen=function(){var e=v.default;return this.isFullscreen(!1),e.requestFullscreen?o.default[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=o.default.documentElement.style.overflow,a.on(o.default,"keydown",l.bind(this,this.fullWindowOnEscKey)),o.default.documentElement.style.overflow="hidden",s.addElClass(o.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,a.off(o.default,"keydown",this.fullWindowOnEscKey),o.default.documentElement.style.overflow=this.docOrigOverflow,s.removeElClass(o.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,o=this.options_.techOrder;n<o.length;n++){var i=(0,d.default)(o[n]),a=x.default.getTech(i);if(a||(a=r.default.getComponent(i)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else f.default.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t,n=this,o=this.options_.techOrder.map(d.default).map(function(e){return[e,x.default.getTech(e)||r.default.getComponent(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(f.default.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var r=void 0;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},a=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,o,(t=a,function(e,n){return t(n,e)})):i(o,e,a))||!1},t.prototype.src=function(e){if(void 0===e)return this.techGet_("src");var t=x.default.getTech(this.techName_);return t||(t=r.default.getComponent(this.techName_)),Array.isArray(e)?this.sourceList_(e):"string"==typeof e?this.src({src:e}):e instanceof Object&&(e.type&&!t.canPlaySource(e,this.options_[this.techName_.toLowerCase()])?this.sourceList_([e]):(this.cache_.src=e.src,this.currentType_=e.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(e){var t=this.selectSource(e);t?t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_((0,d.default)(this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),this.options_.preload=e,this):this.techGet_("preload")},t.prototype.autoplay=function(e){return void 0!==e?(this.techCall_("setAutoplay",e),this.options_.autoplay=e,this):this.techGet_("autoplay",e)},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),this.options_.loop=e,this):this.techGet_("loop")},t.prototype.poster=function(e){return void 0===e?this.poster_:(e||(e=""),this.poster_=e,this.techCall_("setPoster",e),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(e){return void 0!==e?(e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),e?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(e){return void 0!==e?(e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,e?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.error_=new g.default(e),this.addClass("vjs-error"),f.default.error("(CODE:"+this.error_.code+" "+g.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){return void 0!==e?((e=!!e)!==this.userActive_&&(this.userActive_=e,e?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,r=l.bind(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",function(t){r(),this.clearInterval(e)}),this.on("keydown",r),this.on("keyup",r);var o=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e>0&&(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},t.prototype.playbackRate=function(e){return void 0!==e?(this.techCall_("setPlaybackRate",e),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(e){return void 0!==e?(this.isAudio_=!!e,this):!!this.isAudio_},t.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new S.default,this.videoTracks_)},t.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new k.default,this.audioTracks_)},t.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e){if(this.tech_)return this.tech_.addRemoteTextTrack(e)},t.prototype.removeRemoteTextTrack=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).track,t=void 0===e?arguments[0]:e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){return void 0===e?this.language_:(this.language_=String(e).toLowerCase(),this)},t.prototype.languages=function(){return(0,_.default)(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=(0,_.default)(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=(0,_.default)(r)).player=void 0,e.tracks[n]=r}return e},t.prototype.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new E.default(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open()},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=s.getElAttributes(e),r=n["data-setup"];if(null!==r){var o=(0,y.default)(r||"{}"),i=o[0],a=o[1];i&&f.default.error(i),(0,b.default)(n,a)}if((0,b.default)(t,n),e.hasChildNodes())for(var l=e.childNodes,c=0,u=l.length;c<u;c++){var d=l[c],p=d.nodeName.toLowerCase();"source"===p?t.sources.push(s.getElAttributes(d)):"track"===p&&t.tracks.push(s.getElAttributes(d))}return t},t.prototype.flexNotSupported_=function(){var e=o.default.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(r.default);j.players={};var A=i.default.navigator;j.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:A&&(A.languages&&A.languages[0]||A.userLanguage||A.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){j.prototype[e]=function(){return this.techGet_(e)}}),O.forEach(function(e){j.prototype["handleTech"+(0,d.default)(e)+"_"]=function(){return this.trigger(e)}}),r.default.registerComponent("Player",j),t.default=j},function(e,t,n){"use strict";t.__esModule=!0,t.bufferedPercent=function(e,t){var n=0,o=void 0,i=void 0;if(!t)return 0;e&&e.length||(e=(0,r.createTimeRange)(0,0));for(var a=0;a<e.length;a++)o=e.start(a),(i=e.end(a))>t&&(i=t),n+=i-o;return n/t};var r=n(448)},function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(301),a=(r=i)&&r.__esModule?r:{default:r};function s(e){if(e instanceof s)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"===(void 0===e?"undefined":o(e))&&("number"==typeof e.code&&(this.code=e.code),(0,a.default)(this,e)),this.message||(this.message=s.defaultMessages[this.code]||"")}s.prototype.code=0,s.prototype.message="",s.prototype.status=null,s.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],s.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var l=0;l<s.errorTypes.length;l++)s[s.errorTypes[l]]=l,s.prototype[s.errorTypes[l]]=l;t.default=s},function(e,t,n){"use strict";var r=n(949),o=n(1967),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),a=Object.prototype.toString,s=Object.defineProperty&&function(){var e={};try{for(var t in Object.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;t in e&&("function"!=typeof(o=r)||"[object Function]"!==a.call(o)||!r())||(s?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t))),o(a,function(r){l(e,r,t[r],n[r])})};c.supportsDescriptors=!!s,e.exports=c},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,a=n(1966),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),i=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!r.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(i&&e.length>0)for(var v=0;v<e.length;++v)d.push(String(v));else for(var g in e)h&&"prototype"===g||!r.call(e,g)||d.push(String(g));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!r.call(e,u[b])||d.push(u[b]);return d};h.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return a(t)?e(i.call(t)):e(t)}}}else Object.keys=h;return Object.keys||h},e.exports=h},function(e,t,n){"use strict";var r=n(949),o=n(1968),i=n(1970)(),a=Object,s=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable),c=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n,o,u,f,d,p,h,m=a(e);for(n=1;n<arguments.length;++n){o=a(arguments[n]),f=r(o);var v=i&&(Object.getOwnPropertySymbols||c);if(v)for(d=v(o),u=0;u<d.length;++u)h=d[u],l(o,h)&&s(f,h);for(u=0;u<f.length;++u)p=o[h=f[u]],l(o,h)&&(m[h]=p)}return m}},function(e,t,n){"use strict";var r=n(950);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()?r:function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=l(n(124)),i=l(n(108)),a=n(48),s=(r=a)&&r.__esModule?r:{default:r};function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c="vjs-modal-dialog",u=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(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}(this,e.call(this,n,r));return i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=o.createEl("div",{className:c+"-content"},{role:"document"}),i.descEl_=o.createEl("p",{className:c+"-description vjs-offscreen",id:i.el().getAttribute("aria-describedby")}),o.textContent(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return c+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",i.bind(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},t.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",i.bind(this,this.handleKeyPress)),e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),o.insertContent(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),o.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t}(s.default);u.prototype.options_={temporary:!0},s.default.registerComponent("ModalDialog",u),t.default=u},function(e,t,n){"use strict";var r=n(141),o=n(1975),i=n(955),a=n(1976),s=n(841);function l(e,t,n){var r=e;return i(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=s(t,{uri:e}),r.callback=n,r}function c(e,t,n){return u(t=l(e,t,n))}function u(e){var t=e.callback;if(void 0===t)throw new Error("callback argument missing");function n(){var e=void 0;if(f.response?e=f.response:"text"!==f.responseType&&f.responseType||(e=f.responseText||f.responseXML),y)try{e=JSON.parse(e)}catch(e){}return e}t=o(t);var r={body:void 0,headers:{},statusCode:0,method:h,url:p,rawRequest:f};function i(e){clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,t(e,r)}function s(){if(!u){var o;clearTimeout(d),o=e.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var i=r,s=null;0!==o?(i={body:n(),statusCode:o,method:h,headers:{},url:p,rawRequest:f},f.getAllResponseHeaders&&(i.headers=a(f.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),t(s,i,i.body)}}var l,u,f=e.xhr||null;f||(f=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var d,p=f.url=e.uri||e.url,h=f.method=e.method||"GET",m=e.body||e.data||null,v=f.headers=e.headers||{},g=!!e.sync,y=!1;if("json"in e&&(y=!0,v.accept||v.Accept||(v.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),m=JSON.stringify(e.json))),f.onreadystatechange=function(){4===f.readyState&&s()},f.onload=s,f.onerror=i,f.onprogress=function(){},f.ontimeout=i,f.open(h,p,!g,e.username,e.password),g||(f.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout(function(){u=!0,f.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)},e.timeout)),f.setRequestHeader)for(l in v)v.hasOwnProperty(l)&&f.setRequestHeader(l,v[l]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(f.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(f),f.send(m),f}e.exports=c,c.XMLHttpRequest=r.XMLHttpRequest||function(){},c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){c["delete"===e?"del":e]=function(t,n,r){return(n=l(t,n,r)).method=e.toUpperCase(),u(n)}})},function(e,t){e.exports=function(e){var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(710)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154)),i=a(n(129));function a(e){return e&&e.__esModule?e:{default:e}}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}var l=function(e,t){for(var n=0;n<e.length;n++)t.id!==e[n].id&&(e[n].selected=!1)},c=function(e){function t(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var c=void 0,u=a.length-1;u>=0;u--)if(a[u].selected){l(a,a[u]);break}if(o.IS_IE8){for(var f in c=i.default.createElement("custom"),r.default.prototype)"constructor"!==f&&(c[f]=r.default.prototype[f]);for(var d in t.prototype)"constructor"!==d&&(c[d]=t.prototype[d])}return(c=n=s(this,e.call(this,a,c))).changing_=!1,Object.defineProperty(c,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),s(n,c)}return function(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,e),t.prototype.addTrack_=function(t){var n=this;t.selected&&l(this,t),e.prototype.addTrack_.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,l(n,t),n.changing_=!1,n.trigger("change"))})},t.prototype.addTrack=function(e){this.addTrack_(e)},t.prototype.removeTrack=function(t){e.prototype.removeTrack_.call(this,t)},t}(r.default);t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(710)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154)),i=a(n(129));function a(e){return e&&e.__esModule?e:{default:e}}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}var l=function(e,t){for(var n=0;n<e.length;n++)t.id!==e[n].id&&(e[n].enabled=!1)},c=function(e){function t(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var c=void 0,u=a.length-1;u>=0;u--)if(a[u].enabled){l(a,a[u]);break}if(o.IS_IE8){for(var f in c=i.default.createElement("custom"),r.default.prototype)"constructor"!==f&&(c[f]=r.default.prototype[f]);for(var d in t.prototype)"constructor"!==d&&(c[d]=t.prototype[d])}return(c=n=s(this,e.call(this,a,c))).changing_=!1,s(n,c)}return function(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,e),t.prototype.addTrack_=function(t){var n=this;t.enabled&&l(this,t),e.prototype.addTrack_.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,l(n,t),n.changing_=!1,n.trigger("change"))})},t.prototype.addTrack=function(e){this.addTrack_(e)},t.prototype.removeTrack=function(t){e.prototype.removeTrack_.call(this,t)},t}(r.default);t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124)),i=a(n(301));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.bar=o.getChild(o.options_.barName),o.vertical(!!o.options_.vertical),o.on("mousedown",o.handleMouseDown),o.on("touchstart",o.handleMouseDown),o.on("focus",o.handleFocus),o.on("blur",o.handleBlur),o.on("click",o.handleClick),o.on(n,"controlsvisible",o.update),o.on(n,o.playerEvent,o.update),o}return function(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,e),t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=(0,i.default)({tabIndex:0},n),r=(0,i.default)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;e.preventDefault(),o.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;o.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%";this.vertical()?t.el().style.height=n:t.el().style.width=n}}},t.prototype.calculateDistance=function(e){var t=o.getPointerPosition(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){return void 0===e?this.vertical_||!1:(this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(r.default);r.default.registerComponent("Slider",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(958)),o=a(n(48)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108));function a(e){return e&&e.__esModule?e:{default:e}}n(2007);var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"volumechange",o.updateARIAAttributes),n.ready(i.bind(o,o.updateARIAAttributes)),o}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(e){this.checkMuted(),this.player_.volume(this.calculateDistance(e))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(){var e=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},t}(r.default);s.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},s.prototype.playerEvent="volumechange",o.default.registerComponent("VolumeBar",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(451)),o=a(n(48)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"volumechange",o.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&o.addClass("vjs-hidden"),o.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),o}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},t.prototype.update=function(){var e=this.player_.volume(),t=3;0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var r=0;r<4;r++)i.removeElClass(this.el_,"vjs-vol-"+r);i.addElClass(this.el_,"vjs-vol-"+t)},t}(r.default);s.prototype.controlText_="Mute",o.default.registerComponent("MuteToggle",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(962)),o=a(n(48)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108));function a(e){return e&&e.__esModule?e:{default:e}}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}var l=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=r.tracks,a=s(this,e.call(this,n,r));if(a.items.length<=1&&a.hide(),!o)return s(a);var l=i.bind(a,a.update);return o.addEventListener("removetrack",l),o.addEventListener("addtrack",l),a.player_.on("dispose",function(){o.removeEventListener("removetrack",l),o.removeEventListener("addtrack",l)}),a}return function(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,e),t}(r.default);o.default.registerComponent("TrackButton",l),t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(450)),o=u(n(48)),i=u(n(711)),a=c(n(124)),s=c(n(108)),l=u(n(376));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.update(),o.enabled_=!0,o.el_.setAttribute("aria-haspopup","true"),o.el_.setAttribute("role","menuitem"),o.on("keydown",o.handleSubmenuKeyPress),o}return function(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,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createMenu=function(){var e=new i.default(this.player_);if(this.options_.title){var t=a.createEl("li",{className:"vjs-menu-title",innerHTML:(0,l.default)(this.options_.title),tabIndex:-1});e.children_.unshift(t),a.insertElFirst(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.one(this.menu.contentEl(),"mouseleave",s.bind(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.buttonPressed_||(this.pressButton(),t.preventDefault()):e.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault())},t.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},t.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,e.prototype.disable.call(this)},t.prototype.enable=function(){return this.enabled_=!0,e.prototype.enable.call(this)},t}(r.default);o.default.registerComponent("MenuButton",f),t.default=f},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Align left":n,i=t.desc,a=void 0===i?"Three vertical lines aligned to the left":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"12":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 12",width:l,height:u,className:o()("i",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),e.createElement("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),e.createElement("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Export":n,i=t.desc,a=void 0===i?"An arrow pointing right":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"8":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 8",width:l,height:u,className:o()("i",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fill:"#444",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){t.a=function(t){var n=t.width,r=void 0===n?"17":n,o=t.height,i=void 0===o?"15":o,a=t.title,s=void 0===a?"Book":a,l=t.desc,c=void 0===l?"Book":l,u=t.focusable,f=void 0===u?"false":u,d=t.className;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 17 15",focusable:f,className:d},e.createElement("title",null,s),e.createElement("desc",null,c),e.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Check mark":n,i=t.desc,a=void 0===i?"Check mark":i,s=t.width,l=void 0===s?"11":s,c=t.height,u=void 0===c?"8":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 11 8",width:l,height:u,className:o()("i i-checkMark",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Check mark filled":n,i=t.desc,a=void 0===i?"Check mark inside of a circle that is filled in with a color":i,s=t.width,l=void 0===s?"21":s,c=t.height,u=void 0===c?"21":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 21 21",width:l,height:u,className:o()("i i-checkMarkFilled",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"More":n,i=t.desc,a=void 0===i?"Caret pointing down":i,s=t.width,l=void 0===s?"7":s,c=t.height,u=void 0===c?"5":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 7 5",width:l,height:u,className:o()("i i-chevronDown",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(-15 -14)"},e.createElement("path",{d:"M18.1042026,17.8957974 C18.2994647,18.0910596 18.6160472,18.0910596 18.8113094,17.8957974 L21.3535534,15.3535534 C21.5488155,15.1582912 21.5488155,14.8417088 21.3535534,14.6464466 C21.1582912,14.4511845 20.8417088,14.4511845 20.6464466,14.6464466 L18.4734187,16.8508 L16.3535534,14.7309347 C16.1582912,14.5356725 15.8417088,14.5356725 15.6464466,14.7309347 C15.4511845,14.9261968 15.4511845,15.2427793 15.6464466,15.4380415 L18.1042026,17.8957974 Z"})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"DestinationArrow":n,i=t.desc,a=void 0===i?"DestinationArrow":i,s=t.width,l=void 0===s?"13":s,c=t.height,u=void 0===c?"10":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 13 10",width:l,height:u,className:o()("i i-destinationArrow",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Download":n,i=t.desc,a=void 0===i?"Arrow down with horizontal line beneath it":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"19":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 19",width:l,height:u,className:o()("i i-download",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("rect",{y:"17",width:"16",height:"2",rx:"1"}),e.createElement("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),e.createElement("path",{d:"M7 0h2v12H7z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Draggable":n,i=t.desc,a=void 0===i?"Three dots stacked on top of one another":i,s=t.width,l=void 0===s?"4":s,c=t.height,u=void 0===c?"14":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 4 14",width:l,height:u,className:o()("i i-ellipsis--vert",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(.158 .445)"},e.createElement("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),e.createElement("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),e.createElement("circle",{cx:"1.5",cy:"1.5",r:"1.5"})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Incorrect":n,i=t.desc,a=void 0===i?"Image of an X":i,s=t.width,l=void 0===s?"10":s,c=t.height,u=void 0===c?"10":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 10 10",width:l,height:u,className:o()("i i-exMark",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"File":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-file",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M13.5335,22.9865 L13.5335,24.4165 L10.2445,24.4165 L10.2445,26.446 L12.9835,26.446 L12.9835,27.8815 L10.2445,27.8815 L10.2445,31 L8.3745,31 L8.3745,22.9865 L13.5335,22.9865 Z M17.0365,31 L15.1665,31 L15.1665,22.9865 L17.0365,22.9865 L17.0365,31 Z M20.8805,29.515 L23.8505,29.515 L23.8505,31 L19.0215,31 L19.0215,22.9865 L20.8805,22.9865 L20.8805,29.515 Z M30.3895,22.9865 L30.3895,24.4165 L27.1005,24.4165 L27.1005,26.2865 L29.6195,26.2865 L29.6195,27.6615 L27.1005,27.6615 L27.1005,29.57 L30.3895,29.57 L30.3895,31 L25.2305,31 L25.2305,22.9865 L30.3895,22.9865 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Document":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-fileDoc",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M14.5865,26.9905 C14.5865,27.5698362 14.4865843,28.1042476 14.28675,28.59375 C14.0869157,29.0832524 13.8055018,29.5067482 13.4425,29.86425 C13.0794982,30.2217518 12.6422526,30.5004157 12.13075,30.70025 C11.6192474,30.9000843 11.0518364,31 10.4285,31 L7.3155,31 L7.3155,22.9865 L10.4285,22.9865 C11.0518364,22.9865 11.6192474,23.0873323 12.13075,23.289 C12.6422526,23.4906677 13.0794982,23.7693316 13.4425,24.125 C13.8055018,24.4806684 14.0869157,24.9032476 14.28675,25.39275 C14.4865843,25.8822524 14.5865,26.4148305 14.5865,26.9905 L14.5865,26.9905 Z M12.6835,26.9905 C12.6835,26.594498 12.6321672,26.2370016 12.5295,25.918 C12.4268328,25.5989984 12.279251,25.3285844 12.08675,25.10675 C11.894249,24.8849156 11.6586681,24.7144173 11.38,24.59525 C11.1013319,24.4760827 10.7841684,24.4165 10.4285,24.4165 L9.1855,24.4165 L9.1855,29.57 L10.4285,29.57 C10.7841684,29.57 11.1013319,29.5104173 11.38,29.39125 C11.6586681,29.2720827 11.894249,29.1015844 12.08675,28.87975 C12.279251,28.6579156 12.4268328,28.3875016 12.5295,28.0685 C12.6321672,27.7494984 12.6835,27.3901687 12.6835,26.9905 L12.6835,26.9905 Z M23.8865,26.9905 C23.8865,27.5698362 23.7865843,28.1088308 23.58675,28.6075 C23.3869157,29.1061692 23.1055018,29.5397482 22.7425,29.90825 C22.3794982,30.2767518 21.9422526,30.565499 21.43075,30.7745 C20.9192474,30.983501 20.3518364,31.088 19.7285,31.088 C19.1051635,31.088 18.5368359,30.983501 18.0235,30.7745 C17.5101641,30.565499 17.0710852,30.2767518 16.70625,29.90825 C16.3414148,29.5397482 16.0590843,29.1061692 15.85925,28.6075 C15.6594157,28.1088308 15.5595,27.5698362 15.5595,26.9905 C15.5595,26.4111638 15.6594157,25.8721692 15.85925,25.3735 C16.0590843,24.8748308 16.3414148,24.4421685 16.70625,24.0755 C17.0710852,23.7088315 17.5101641,23.421001 18.0235,23.212 C18.5368359,23.002999 19.1051635,22.8985 19.7285,22.8985 C20.3518364,22.8985 20.9192474,23.0039156 21.43075,23.21475 C21.9422526,23.4255844 22.3794982,23.7143315 22.7425,24.081 C23.1055018,24.4476685 23.3869157,24.8803308 23.58675,25.379 C23.7865843,25.8776692 23.8865,26.4148305 23.8865,26.9905 L23.8865,26.9905 Z M21.9835,26.9905 C21.9835,26.594498 21.9321672,26.2379183 21.8295,25.92075 C21.7268328,25.6035817 21.579251,25.3350011 21.38675,25.115 C21.194249,24.8949989 20.9586681,24.7263339 20.68,24.609 C20.4013319,24.4916661 20.0841684,24.433 19.7285,24.433 C19.3691649,24.433 19.0492514,24.4916661 18.76875,24.609 C18.4882486,24.7263339 18.251751,24.8949989 18.05925,25.115 C17.866749,25.3350011 17.7191672,25.6035817 17.6165,25.92075 C17.5138328,26.2379183 17.4625,26.594498 17.4625,26.9905 C17.4625,27.3901687 17.5138328,27.7485817 17.6165,28.06575 C17.7191672,28.3829183 17.866749,28.6514989 18.05925,28.8715 C18.251751,29.0915011 18.4882486,29.2592494 18.76875,29.37475 C19.0492514,29.4902506 19.3691649,29.548 19.7285,29.548 C20.0841684,29.548 20.4013319,29.4902506 20.68,29.37475 C20.9586681,29.2592494 21.194249,29.0915011 21.38675,28.8715 C21.579251,28.6514989 21.7268328,28.3829183 21.8295,28.06575 C21.9321672,27.7485817 21.9835,27.3901687 21.9835,26.9905 L21.9835,26.9905 Z M30.662,28.9265 C30.7060002,28.9265 30.7499998,28.9347499 30.794,28.95125 C30.8380002,28.9677501 30.8801665,28.9961665 30.9205,29.0365 L31.6575,29.812 C31.3348317,30.2336688 30.9305858,30.5517489 30.44475,30.76625 C29.9589142,30.9807511 29.38417,31.088 28.7205,31.088 C28.1118303,31.088 27.5664191,30.9844177 27.08425,30.77725 C26.6020809,30.5700823 26.1932517,30.2840852 25.85775,29.91925 C25.5222483,29.5544148 25.2646676,29.1217525 25.085,28.62125 C24.9053324,28.1207475 24.8155,27.5771696 24.8155,26.9905 C24.8155,26.3928303 24.9181656,25.8437525 25.1235,25.34325 C25.3288344,24.8427475 25.6157482,24.4110018 25.98425,24.048 C26.3527518,23.6849982 26.7936641,23.4026677 27.307,23.201 C27.8203359,22.9993323 28.3868302,22.8985 29.0065,22.8985 C29.3071682,22.8985 29.5904153,22.9250831 29.85625,22.97825 C30.1220847,23.0314169 30.3704988,23.1047495 30.6015,23.19825 C30.8325012,23.2917505 31.0451657,23.4035827 31.2395,23.53375 C31.4338343,23.6639173 31.6061659,23.8078325 31.7565,23.9655 L31.1295,24.807 C31.0891665,24.8583336 31.0415003,24.9050831 30.9865,24.94725 C30.9314997,24.9894169 30.8545005,25.0105 30.7555,25.0105 C30.6894997,25.0105 30.627167,24.9958335 30.5685,24.9665 C30.509833,24.9371665 30.4475003,24.9014169 30.3815,24.85925 C30.3154997,24.8170831 30.2430837,24.7712502 30.16425,24.72175 C30.0854163,24.6722498 29.9919172,24.6264169 29.88375,24.58425 C29.7755828,24.5420831 29.6490841,24.5063335 29.50425,24.477 C29.3594159,24.4476665 29.1898343,24.433 28.9955,24.433 C28.658165,24.433 28.3501681,24.4925827 28.0715,24.61175 C27.7928319,24.7309173 27.5535843,24.9014156 27.35375,25.12325 C27.1539157,25.3450844 26.9980839,25.6136651 26.88625,25.929 C26.7744161,26.2443349 26.7185,26.5981647 26.7185,26.9905 C26.7185,27.4011687 26.7744161,27.7659984 26.88625,28.085 C26.9980839,28.4040016 27.150249,28.6725822 27.34275,28.89075 C27.535251,29.1089178 27.759832,29.2748328 28.0165,29.3885 C28.2731679,29.5021672 28.5481652,29.559 28.8415,29.559 C29.0101675,29.559 29.164166,29.5507501 29.3035,29.53425 C29.442834,29.5177499 29.5720827,29.4893335 29.69125,29.449 C29.8104173,29.4086665 29.9240828,29.356417 30.03225,29.29225 C30.1404172,29.228083 30.2494994,29.1483338 30.3595,29.053 C30.4035002,29.0163332 30.4511664,28.9860835 30.5025,28.96225 C30.5538336,28.9384165 30.6069997,28.9265 30.662,28.9265 L30.662,28.9265 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"PDF":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-filePdf",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26,0 L26,11.7296861 C26,12.8319383 26.8984843,13.7254902 27.999569,13.7254902 L39.0718954,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M10.6155,28.3215 L10.6155,31 L8.7565,31 L8.7565,22.9865 L11.5835,22.9865 C12.1481695,22.9865 12.6330813,23.053416 13.03825,23.18725 C13.4434187,23.321084 13.777082,23.5053322 14.03925,23.74 C14.301418,23.9746678 14.4948327,24.2514984 14.6195,24.5705 C14.7441673,24.8895016 14.8065,25.2341648 14.8065,25.6045 C14.8065,26.0041687 14.742334,26.3708317 14.614,26.7045 C14.485666,27.0381683 14.2895013,27.3241655 14.0255,27.5625 C13.7614987,27.8008345 13.4269187,27.986916 13.02175,28.12075 C12.6165813,28.254584 12.1371694,28.3215 11.5835,28.3215 L10.6155,28.3215 Z M10.6155,26.919 L11.5835,26.919 C12.0675024,26.919 12.4158323,26.8035012 12.6285,26.5725 C12.8411677,26.3414988 12.9475,26.0188354 12.9475,25.6045 C12.9475,25.4211657 12.9200003,25.2543341 12.865,25.104 C12.8099997,24.9536659 12.7265839,24.8244172 12.61475,24.71625 C12.5029161,24.6080828 12.3617509,24.524667 12.19125,24.466 C12.0207491,24.407333 11.8181678,24.378 11.5835,24.378 L10.6155,24.378 L10.6155,26.919 Z M23.5455,26.9905 C23.5455,27.5698362 23.4455843,28.1042476 23.24575,28.59375 C23.0459157,29.0832524 22.7645018,29.5067482 22.4015,29.86425 C22.0384982,30.2217518 21.6012526,30.5004157 21.08975,30.70025 C20.5782474,30.9000843 20.0108365,31 19.3875,31 L16.2745,31 L16.2745,22.9865 L19.3875,22.9865 C20.0108365,22.9865 20.5782474,23.0873323 21.08975,23.289 C21.6012526,23.4906677 22.0384982,23.7693316 22.4015,24.125 C22.7645018,24.4806684 23.0459157,24.9032476 23.24575,25.39275 C23.4455843,25.8822524 23.5455,26.4148305 23.5455,26.9905 L23.5455,26.9905 Z M21.6425,26.9905 C21.6425,26.594498 21.5911672,26.2370016 21.4885,25.918 C21.3858328,25.5989984 21.238251,25.3285844 21.04575,25.10675 C20.853249,24.8849156 20.6176681,24.7144173 20.339,24.59525 C20.0603319,24.4760827 19.7431684,24.4165 19.3875,24.4165 L18.1445,24.4165 L18.1445,29.57 L19.3875,29.57 C19.7431684,29.57 20.0603319,29.5104173 20.339,29.39125 C20.6176681,29.2720827 20.853249,29.1015844 21.04575,28.87975 C21.238251,28.6579156 21.3858328,28.3875016 21.4885,28.0685 C21.5911672,27.7494984 21.6425,27.3901687 21.6425,26.9905 L21.6425,26.9905 Z M30.0955,22.9865 L30.0955,24.4165 L26.8065,24.4165 L26.8065,26.446 L29.5455,26.446 L29.5455,27.8815 L26.8065,27.8815 L26.8065,31 L24.9365,31 L24.9365,22.9865 L30.0955,22.9865 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Presentation":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-filePpt",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M10.9565,28.3215 L10.9565,31 L9.0975,31 L9.0975,22.9865 L11.9245,22.9865 C12.4891695,22.9865 12.9740813,23.053416 13.37925,23.18725 C13.7844187,23.321084 14.118082,23.5053322 14.38025,23.74 C14.642418,23.9746678 14.8358327,24.2514984 14.9605,24.5705 C15.0851673,24.8895016 15.1475,25.2341648 15.1475,25.6045 C15.1475,26.0041687 15.083334,26.3708317 14.955,26.7045 C14.826666,27.0381683 14.6305013,27.3241655 14.3665,27.5625 C14.1024987,27.8008345 13.7679187,27.986916 13.36275,28.12075 C12.9575813,28.254584 12.4781694,28.3215 11.9245,28.3215 L10.9565,28.3215 Z M10.9565,26.919 L11.9245,26.919 C12.4085024,26.919 12.7568323,26.8035012 12.9695,26.5725 C13.1821677,26.3414988 13.2885,26.0188354 13.2885,25.6045 C13.2885,25.4211657 13.2610003,25.2543341 13.206,25.104 C13.1509997,24.9536659 13.0675839,24.8244172 12.95575,24.71625 C12.8439161,24.6080828 12.7027509,24.524667 12.53225,24.466 C12.3617491,24.407333 12.1591678,24.378 11.9245,24.378 L10.9565,24.378 L10.9565,26.919 Z M18.4745,28.3215 L18.4745,31 L16.6155,31 L16.6155,22.9865 L19.4425,22.9865 C20.0071695,22.9865 20.4920813,23.053416 20.89725,23.18725 C21.3024187,23.321084 21.636082,23.5053322 21.89825,23.74 C22.160418,23.9746678 22.3538327,24.2514984 22.4785,24.5705 C22.6031673,24.8895016 22.6655,25.2341648 22.6655,25.6045 C22.6655,26.0041687 22.601334,26.3708317 22.473,26.7045 C22.344666,27.0381683 22.1485013,27.3241655 21.8845,27.5625 C21.6204987,27.8008345 21.2859187,27.986916 20.88075,28.12075 C20.4755813,28.254584 19.9961694,28.3215 19.4425,28.3215 L18.4745,28.3215 Z M18.4745,26.919 L19.4425,26.919 C19.9265024,26.919 20.2748323,26.8035012 20.4875,26.5725 C20.7001677,26.3414988 20.8065,26.0188354 20.8065,25.6045 C20.8065,25.4211657 20.7790003,25.2543341 20.724,25.104 C20.6689997,24.9536659 20.5855839,24.8244172 20.47375,24.71625 C20.3619161,24.6080828 20.2207509,24.524667 20.05025,24.466 C19.8797491,24.407333 19.6771678,24.378 19.4425,24.378 L18.4745,24.378 L18.4745,26.919 Z M29.9525,22.9865 L29.9525,24.4605 L27.6975,24.4605 L27.6975,31 L25.8385,31 L25.8385,24.4605 L23.5835,24.4605 L23.5835,22.9865 L29.9525,22.9865 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Rich Text File":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-fileRtf",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26,0 L26,11.7296861 C26,12.8319383 26.8984843,13.7254902 27.999569,13.7254902 L39.0718954,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M11.4185,28.0355 L11.4185,31 L9.5595,31 L9.5595,22.9865 L12.1665,22.9865 C12.7458362,22.9865 13.2399146,23.0460827 13.64875,23.16525 C14.0575854,23.2844173 14.3912487,23.4503323 14.64975,23.663 C14.9082513,23.8756677 15.0961661,24.1268319 15.2135,24.4165 C15.3308339,24.7061681 15.3895,25.0214983 15.3895,25.3625 C15.3895,25.6228346 15.354667,25.8684988 15.285,26.0995 C15.215333,26.3305012 15.1117507,26.5440824 14.97425,26.74025 C14.8367493,26.9364176 14.6680843,27.1114992 14.46825,27.2655 C14.2684157,27.4195008 14.0383346,27.5459995 13.778,27.645 C13.9026673,27.7073336 14.0190828,27.7843329 14.12725,27.876 C14.2354172,27.9676671 14.3298329,28.0794993 14.4105,28.2115 L16.1155,31 L14.4325,31 C14.1208318,31 13.8971673,30.8826678 13.7615,30.648 L12.4305,28.3215 C12.371833,28.2188328 12.3030837,28.1455002 12.22425,28.1015 C12.1454163,28.0574998 12.0345007,28.0355 11.8915,28.0355 L11.4185,28.0355 Z M11.4185,26.754 L12.1665,26.754 C12.4195013,26.754 12.6349158,26.721917 12.81275,26.65775 C12.9905842,26.593583 13.1363328,26.5046672 13.25,26.391 C13.3636672,26.2773328 13.4461664,26.1444174 13.4975,25.99225 C13.5488336,25.8400826 13.5745,25.6760009 13.5745,25.5 C13.5745,25.1479982 13.4599178,24.873001 13.23075,24.675 C13.0015822,24.476999 12.6468357,24.378 12.1665,24.378 L11.4185,24.378 L11.4185,26.754 Z M22.8635,22.9865 L22.8635,24.4605 L20.6085,24.4605 L20.6085,31 L18.7495,31 L18.7495,24.4605 L16.4945,24.4605 L16.4945,22.9865 L22.8635,22.9865 Z M29.2925,22.9865 L29.2925,24.4165 L26.0035,24.4165 L26.0035,26.446 L28.7425,26.446 L28.7425,27.8815 L26.0035,27.8815 L26.0035,31 L24.1335,31 L24.1335,22.9865 L29.2925,22.9865 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Spreadsheet":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-fileXls",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M11.883,26.8805 L9.4025,22.9865 L11.2615,22.9865 C11.3825006,22.9865 11.4714164,23.0020832 11.52825,23.03325 C11.5850836,23.0644168 11.6354998,23.1166663 11.6795,23.19 L13.2745,25.8905 C13.2928334,25.8428331 13.3139165,25.7970002 13.33775,25.753 C13.3615835,25.7089998 13.3881665,25.6631669 13.4175,25.6155 L14.8145,23.2175 C14.9061671,23.0634992 15.0308325,22.9865 15.1885,22.9865 L16.9705,22.9865 L14.457,26.798 L17.0255,31 L15.1665,31 C15.0454994,31 14.947417,30.970667 14.87225,30.912 C14.797083,30.853333 14.7375002,30.7836671 14.6935,30.703 L13.0875,27.898 C13.0581665,27.9786671 13.0251668,28.048333 12.9885,28.107 L11.4925,30.703 C11.4484998,30.7800004 11.3898337,30.8487497 11.3165,30.90925 C11.2431663,30.9697503 11.1515005,31 11.0415,31 L9.3035,31 L11.883,26.8805 Z M20.0995,29.515 L23.0695,29.515 L23.0695,31 L18.2405,31 L18.2405,22.9865 L20.0995,22.9865 L20.0995,29.515 Z M28.9155,24.6145 C28.8604997,24.7025004 28.8027503,24.7684998 28.74225,24.8125 C28.6817497,24.8565002 28.6038338,24.8785 28.5085,24.8785 C28.4241662,24.8785 28.3334172,24.8519169 28.23625,24.79875 C28.1390828,24.7455831 28.0290839,24.6860003 27.90625,24.62 C27.7834161,24.5539997 27.6431675,24.4944169 27.4855,24.44125 C27.3278325,24.3880831 27.1481677,24.3615 26.9465,24.3615 C26.5981649,24.3615 26.3387509,24.4357493 26.16825,24.58425 C25.9977491,24.7327507 25.9125,24.9334987 25.9125,25.1865 C25.9125,25.3478341 25.9638328,25.4816661 26.0665,25.588 C26.1691672,25.6943339 26.3039158,25.7859996 26.47075,25.863 C26.6375842,25.9400004 26.8282489,26.010583 27.04275,26.07475 C27.2572511,26.138917 27.4763322,26.2104163 27.7,26.28925 C27.9236678,26.3680837 28.1427489,26.4606661 28.35725,26.567 C28.5717511,26.6733339 28.7624158,26.8089992 28.92925,26.974 C29.0960842,27.1390008 29.2308328,27.3397488 29.3335,27.57625 C29.4361672,27.8127512 29.4875,28.0978317 29.4875,28.4315 C29.4875,28.8018352 29.423334,29.1483317 29.295,29.471 C29.166666,29.7936683 28.9805846,30.0750821 28.73675,30.31525 C28.4929154,30.5554179 28.1922518,30.7442493 27.83475,30.88175 C27.4772482,31.0192507 27.0711689,31.088 26.6165,31.088 C26.3671654,31.088 26.1132513,31.0623336 25.85475,31.011 C25.5962487,30.9596664 25.3460012,30.8872505 25.104,30.79375 C24.8619988,30.7002495 24.6346677,30.589334 24.422,30.461 C24.2093323,30.332666 24.0241675,30.1896675 23.8665,30.032 L24.4165,29.163 C24.4568335,29.0969997 24.5136663,29.0438335 24.587,29.0035 C24.6603337,28.9631665 24.7391662,28.943 24.8235,28.943 C24.9335006,28.943 25.0444161,28.977833 25.15625,29.0475 C25.2680839,29.117167 25.3945826,29.1941662 25.53575,29.2785 C25.6769174,29.3628338 25.8391658,29.439833 26.0225,29.5095 C26.2058343,29.579167 26.4221654,29.614 26.6715,29.614 C27.008835,29.614 27.2709991,29.5397507 27.458,29.39125 C27.6450009,29.2427493 27.7385,29.0071683 27.7385,28.6845 C27.7385,28.4974991 27.6871672,28.3453339 27.5845,28.228 C27.4818328,28.1106661 27.3470842,28.0135004 27.18025,27.9365 C27.0134158,27.8594996 26.8236677,27.791667 26.611,27.733 C26.3983323,27.674333 26.1801678,27.6092504 25.9565,27.53775 C25.7328322,27.4662496 25.5146677,27.3782505 25.302,27.27375 C25.0893323,27.1692495 24.8995842,27.0317509 24.73275,26.86125 C24.5659158,26.6907491 24.4311672,26.4780846 24.3285,26.22325 C24.2258328,25.9684154 24.1745,25.6540019 24.1745,25.28 C24.1745,24.9793318 24.2349994,24.6860014 24.356,24.4 C24.4770006,24.1139986 24.6548322,23.8591678 24.8895,23.6355 C25.1241678,23.4118322 25.4119983,23.233084 25.753,23.09925 C26.0940017,22.965416 26.4844978,22.8985 26.9245,22.8985 C27.1701679,22.8985 27.4094155,22.9177498 27.64225,22.95625 C27.8750845,22.9947502 28.095999,23.051583 28.305,23.12675 C28.514001,23.201917 28.7092491,23.2917495 28.89075,23.39625 C29.0722509,23.5007505 29.2344993,23.6189993 29.3775,23.751 L28.9155,24.6145 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Zip":n,i=t.desc,a=void 0===i?"Paper icon with one corner bent inwards":i,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:o()("i i-fileZip",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M16.649,22.9865 L16.649,23.6575 C16.649,23.7528338 16.6334168,23.8463329 16.60225,23.938 C16.5710832,24.0296671 16.5280003,24.1158329 16.473,24.1965 L12.711,29.57 L16.528,29.57 L16.528,31 L10.346,31 L10.346,30.285 C10.346,30.2006662 10.3606665,30.1172504 10.39,30.03475 C10.4193335,29.9522496 10.4596664,29.876167 10.511,29.8065 L14.284,24.4165 L10.654,24.4165 L10.654,22.9865 L16.649,22.9865 Z M20.031,31 L18.161,31 L18.161,22.9865 L20.031,22.9865 L20.031,31 Z M23.875,28.3215 L23.875,31 L22.016,31 L22.016,22.9865 L24.843,22.9865 C25.4076695,22.9865 25.8925813,23.053416 26.29775,23.18725 C26.7029187,23.321084 27.036582,23.5053322 27.29875,23.74 C27.560918,23.9746678 27.7543327,24.2514984 27.879,24.5705 C28.0036673,24.8895016 28.066,25.2341648 28.066,25.6045 C28.066,26.0041687 28.001834,26.3708317 27.8735,26.7045 C27.745166,27.0381683 27.5490013,27.3241655 27.285,27.5625 C27.0209987,27.8008345 26.6864187,27.986916 26.28125,28.12075 C25.8760813,28.254584 25.3966694,28.3215 24.843,28.3215 L23.875,28.3215 Z M23.875,26.919 L24.843,26.919 C25.3270024,26.919 25.6753323,26.8035012 25.888,26.5725 C26.1006677,26.3414988 26.207,26.0188354 26.207,25.6045 C26.207,25.4211657 26.1795003,25.2543341 26.1245,25.104 C26.0694997,24.9536659 25.9860839,24.8244172 25.87425,24.71625 C25.7624161,24.6080828 25.6212509,24.524667 25.45075,24.466 C25.2802491,24.407333 25.0776678,24.378 24.843,24.378 L23.875,24.378 L23.875,26.919 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Fill in the Blank":n,i=t.desc,a=void 0===i?"Pencil writing on a surface":i,s=t.width,l=void 0===s?"15":s,c=t.height,u=void 0===c?"15":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 15",width:l,height:u,className:o()("i i-fillInTheBlank",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"More":n,i=t.desc,a=void 0===i?"Filled caret pointing right":i,s=t.width,l=void 0===s?"7":s,c=t.height,u=void 0===c?"5":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 5 7",width:l,height:u,className:o()("i i-filledChevronRight",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",null,e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 3.625L1 1v5.25z"})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Lock":n,i=t.desc,a=void 0===i?"Closed padlock":i,s=t.width,l=void 0===s?"14":s,c=t.height,u=void 0===c?"19":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 14 19",width:l,height:u,className:o()("i",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("defs",null,e.createElement("rect",{height:"12",id:"lock-a",rx:"2",width:"14",y:"6"}),e.createElement("mask",{fill:"#fff",height:"12",id:"lock-d",width:"14",x:"0",y:"0"},e.createElement("use",{xlinkHref:"#lock-a"})),e.createElement("path",{d:"M0 0h8v4H0z",id:"lock-e"}),e.createElement("circle",{cx:"4",cy:"4",id:"lock-b",r:"4"}),e.createElement("mask",{fill:"#fff",height:"8",id:"lock-g",width:"8",x:"0",y:"0"},e.createElement("use",{xlinkHref:"#lock-b"})),e.createElement("path",{d:"M8 12.732V14c0 .552-.444 1-1 1-.552 0-1-.444-1-1v-1.268a2 2 0 1 1 2 0z",id:"lock-c"}),e.createElement("mask",{fill:"#fff",height:"6",id:"lock-h",width:"4",x:"0",y:"0"},e.createElement("use",{xlinkHref:"#lock-c"}))),e.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(0 .625)"},e.createElement("use",{mask:"url(#lock-d)",stroke:"#313537",strokeWidth:"2",xlinkHref:"#lock-a"}),e.createElement("g",{transform:"translate(3)"},e.createElement("mask",{fill:"#fff",id:"lock-f"},e.createElement("use",{xlinkHref:"#lock-e"})),e.createElement("g",{mask:"url(#lock-f)",stroke:"#313537",strokeWidth:"2"},e.createElement("use",{mask:"url(#lock-g)",xlinkHref:"#lock-b"}))),e.createElement("path",{d:"M3 4h1v2H3zM10 4h1v2h-1z",fill:"#313537"}),e.createElement("use",{mask:"url(#lock-h)",stroke:"#313537",strokeWidth:"2",xlinkHref:"#lock-c"})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Matching":n,i=t.desc,a=void 0===i?"Two rows of stacked squares":i,s=t.width,l=void 0===s?"15":s,c=t.height,u=void 0===c?"15":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 15",width:l,height:u,className:o()("i i-matching",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Multiple Choice":n,i=t.desc,a=void 0===i?"Stacked circles to the left of stacked lines":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 16",width:l,height:u,className:o()("i i-multipleChoice",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),e.createElement("circle",{cx:"7.904",cy:"7.904",r:"1.904"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Multiple Response":n,i=t.desc,a=void 0===i?"A box with a checkmark in it":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 16",width:l,height:u,className:o()("i i-multipleResponse",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Not Allowed":n,i=t.desc,a=void 0===i?"A circle with a slanted line through it":i,s=t.width,l=void 0===s?"12":s,c=t.height,u=void 0===c?"12":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 12 12",width:l,height:u,className:o()("i i-notAllowed",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Pick One":n,i=t.desc,a=void 0===i?"Pick One":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"14":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:u,viewBox:"0 0 16 14",className:o()("i i-pickOne",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{fillRule:"evenodd"},e.createElement("path",{fillRule:"nonzero",d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z"}),e.createElement("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Question box":n,i=t.desc,a=void 0===i?"Question mark inside of a square":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 16",width:l,height:u,className:o()("i",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),e.createElement("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),e.createElement("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Sortable":n,i=t.desc,a=void 0===i?"Three horizontal lines stacked on top of each other":i,s=t.width,l=void 0===s?"22":s,c=t.height,u=void 0===c?"7":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 22 7",width:l,height:u,className:o()("i i-sortable",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("rect",{x:"0",y:"0",width:"100%",height:"1",strokeWidth:"1"}),e.createElement("rect",{x:"0",y:"3",width:"100%",height:"1",strokeWidth:"1"}),e.createElement("rect",{x:"0",y:"6",width:"100%",height:"1",strokeWidth:"1"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Touch":n,i=t.desc,a=void 0===i?"Hand with a finger extended and a semi-circle around the finger":i,s=t.width,l=void 0===s?"15":s,c=t.height,u=void 0===c?"16":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 16",width:l,height:u,className:o()("i",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),e.createElement("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Video camera":n,i=t.desc,a=void 0===i?"Video camera":i,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"12":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 12",width:l,height:u,className:o()("vgIcon",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(-1 -2)"},e.createElement("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"X mark filled":n,i=t.desc,a=void 0===i?"X mark inside of a circle that is filled in with a color":i,s=t.width,l=void 0===s?"20":s,c=t.height,u=void 0===c?"20":c,f=t.className,d=t.focusable,p=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 20 20",width:l,height:u,className:o()("i i-xMarkFilled",f),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"}))}}).call(this,n(1))},function(e,t,n){var r=n(2048),o=n(445);e.exports=function(e){return r(e,o(e))}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(296);e.exports=function(e){return r(e)?!Object.keys(e).length:!e||void 0===e.length||!e.length}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(94);e.exports=function(e,t){return r(e)?e(t):e.runWith(t)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(2050),o=r.Nothing,i=r.Just,a=n(1068);e.exports=function(e){return function(t){return a(e,t)?i(t):o()}}},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r),i=n(22),a=function(e){var t=e.canProceed;return o()("quiz-card__actions",{"quiz-card__actions--proceed":t})},s=function(e){var t=e.canSubmit;return o()("quiz-card__button",{"quiz-card__button--disabled":!t,"brand--background":t})};t.a=function(t){var n=t.allowTabNavigation,r=t.canProceed,o=t.canSubmit,l=t.onSubmit,c=t.quizSubmit,u=n&&o;return e.createElement("div",{className:a({canProceed:r})},e.createElement("div",{className:"quiz-card__submit brand--ui"},e.createElement("button",{"aria-disabled":!o,"aria-hidden":!n,className:s({canSubmit:o}),onClick:l,tabIndex:Object(i.l)(u)},c)))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2053);var r=n(2),o=n.n(r),i=function(e){var t=e.isActive,n=e.isComplete;return o()("quiz-card",{"quiz-card--active":t,"quiz-card--done":n})};t.a=function(t){var n=t.children,r=t.isActive,o=t.isComplete;return e.createElement("div",{className:i({isActive:r,isComplete:o})},e.createElement("div",{className:"quiz-card__container"},e.createElement("div",{className:"quiz-card__row"},e.createElement("div",{className:"quiz-card__main"},n))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r),i=n(22),a=function(e){var t=e.canProceed,n=e.hasFeedback;return o()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":n})},s=function(e){var t=e.isCorrect;return o()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct brand--color":t})},l=function(t){var n=t.allowFocus,r=t.onNext,o=t.quizNext;return e.createElement("div",{className:"quiz-card__feedback-button"},e.createElement("button",{"aria-hidden":!n,className:"quiz-card__button brand--background brand--ui",onClick:r,tabIndex:Object(i.l)(n)},o))};t.a=function(t){var n=t.allowTabNavigation,r=t.canProceed,o=t.feedbackRef,i=t.hasFeedback,c=t.isCorrect,u=t.labels,f=t.onNext,d=t.quizCorrect,p=t.quizIncorrect,h=t.quizNext,m=t.renderText,v=n&&r,g=u.feedbackGroup;return e.createElement("div",{"aria-hidden":!v,"aria-label":g,className:a({canProceed:r,hasFeedback:i}),role:"group",ref:o},e.createElement("div",{className:"quiz-card__main--feedback"},e.createElement("div",{className:"quiz-card__feedback-wrap"},e.createElement("div",{className:s({isCorrect:c})},e.createElement("i",{className:c?"icon icon-Master-05":"icon icon-Master-06"})),e.createElement("div",{className:"quiz-card__feedback-label brand--head"},c?d:p),m()),f?l({allowFocus:v,onNext:f,quizNext:h}):null))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(2),o=n.n(r),i=function(e){var t=e.hasNoBorder,n=e.isComplete,r=e.type;return o()("quiz-card__interactive",{"quiz-card__interactive--no-border":t,"quiz-card__interactive--done":n,"quiz-card__interactive--fill":"FILL_IN_THE_BLANK"===r})};t.a=function(t){var n=t.children,r=t.hasNoBorder,o=t.isComplete,a=t.type;return e.createElement("div",{className:i({hasNoBorder:r,isComplete:o,type:a})},n)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(275),o=n.n(r),i=n(594),a=n.n(i),s=n(1188),l=n.n(s),c=n(1189),u=n.n(c),f=n(29),d=n.n(f),p=n(1190),h=n(150),m=n(175),v=o()(u()(["tmp"]),d()({},["media"])),g=l()(v,h.a),y=a()(g,h.a),b=Object(p.a)(y,function(t){var n=t.allowTabNavigation,r=t.blockId,o=t.index,i=t.labels,a=t.media,s=t.settings;return e.createElement("div",{className:"quiz-card__media"},e.createElement(m.a,{allowTabNavigation:n,blockId:r,index:o,labels:i,media:a,opts:s}))});t.a=b}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(4),o=n.n(r),i=n(465);t.a=function(t){var n,r=t.num,a=t.total,s=t.quizQuestion;return e.createElement("div",{className:"quiz-card__number"},e.createElement("div",{className:"quiz-card__step-label brand--body"},s),e.createElement("div",{className:"quiz-card__counter brand--color brand--ui"},o()(n="".concat(Object(i.a)(r),"/")).call(n,Object(i.a)(a))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(42);t.a=function(t){var n=t.allowTabNavigation,o=t.value;return e.createElement(r.a,{className:"quiz-card__title brand--body brand--linkColor",value:o,allowTabNavigation:n})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2054);var r=n(5),o=n.n(r),i=n(218),a=n.n(i),s=n(27),l=n.n(s),c=n(25),u=n.n(c),f=n(51),d=n.n(f),p=n(224),h=n.n(p),m=n(31),v=n.n(m),g=n(2),y=n.n(g),b=n(44),_=n(22),w=n(24),E=function(t){var n=t.isComplete,r=t.isCorrect;if(t.revealAnswers){var o=y()("quiz-fill__icon",{"quiz-fill__icon--visible":n});return e.createElement("div",{className:o},x(r))}},x=function(t){return t?e.createElement(b.e,{className:"brand--fill"}):e.createElement(b.F,null)},k=o()(a()(", "),l()(o()(h.a,d()("","title")))),S=function(t){var n=t.isComplete,r=t.options,o=t.revealAnswers,i=t.quizAcceptableResponses;if(o){var a=y()("quiz-fill__options",{"quiz-fill__options--visible":n});return e.createElement("div",{className:a},i,": ",k(r))}};t.a=function(t){var n=t.allowTabNavigation,r=t.isComplete,i=t.isCorrect,a=t.onChange,s=t.onEnterToSubmit,l=t.options,c=t.revealAnswers,f=t.value,d=t.quizAcceptableResponses,p=t.quizAnswerPlaceholder;return e.createElement("div",{className:"quiz-fill"},e.createElement("div",{className:"quiz-fill__container"},E({isComplete:r,isCorrect:i,revealAnswers:c}),e.createElement("input",{"aria-hidden":!n,className:"quiz-fill__input brand--body ignore-prefers",onChange:o()(a,u()(["target","value"])),onKeyDown:v()(w.c,s),placeholder:p,tabIndex:Object(_.l)(n),type:"text",value:f})),S({isComplete:r,options:l,revealAnswers:c,quizAcceptableResponses:d}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return de});var r=n(34),o=n.n(r),i=n(32),a=n(170),s=n.n(a),l=n(3),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(15),m=n(11),v=(n(2055),n(2056),n(148)),g=n.n(v),y=n(343),b=n.n(y),_=n(100),w=n.n(_),E=n(2),x=n.n(E),k=n(5),S=n.n(k),T=n(41),C=n.n(T),O=n(573),j=n.n(O),A=n(186),N=n.n(A),M=n(80),I=n.n(M),L=n(346),P=n.n(L),D=n(67),R=n.n(D),F=n(27),B=n.n(F),U=n(87),q=n.n(U),z=n(25),H=n.n(z),W=n(73),$=n.n(W),Y=n(220),K=n.n(Y),V=n(172),G=n.n(V),X=n(75),Z=n(757),Q=n(150),J=n(314),ee=n(72),te=n(78),ne=n(139),re=n.n(ne),oe=n(82),ie=n(22),ae=n(24),se=n(44),le=g()(B.a),ce=S()(q.a,R.a),ue=function(t){function n(e){var t,r;return Object(u.a)(this,n),(r=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={isDragging:!1},r.setDrag=c()(t=r.setDrag).call(t,Object(h.a)(r)),r}return Object(m.a)(n,t),Object(f.a)(n,[{key:"focus",value:function(){this.listItem.focus()}},{key:"setDrag",value:function(e){this.setState({isDragging:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowMovableKeySelect,o=n.allowTabNavigation,i=n.id,a=n.isEnabled,s=n.isKeySelected,l=n.isMatched,c=n.height,u=n.nextIndex,f=n.onDragEnd,d=n.onDragStart,p=n.onKeyDown,h=n.prefersKeyboardNavigation,m=n.prevIndex,v=n.text,g=n.willBeReplaced,y=o&&r,b=ye({isMatched:l,prefersKeyboardNavigation:h,willBeReplaced:g});return e.createElement(oe.TransitionGroup,{className:this.state.isDragging?"".concat(b," dragging"):b,component:"li",onKeyDown:p,style:{height:c}},e.createElement(J.a,{key:i},e.createElement(Z.a,{childRef:function(e){t.listItem=e},isEnabled:a,key:i,nextIndex:u,onDragEnd:f,onDragStart:d,prevIndex:m,setDrag:this.setDrag},e.createElement("div",{className:"quiz-match__item-wrapper","aria-hidden":!y,tabIndex:Object(ie.l)(y)},e.createElement(pe,{className:me({isKeySelected:s})}),e.createElement("div",{className:"quiz-match__item-content"},e.createElement(se.C,{className:"quiz-match__item-sortable"}),e.createElement(se.j,{className:"quiz-match__item-sortable--dots"}),e.createElement("span",{"data-match-content":!0},v))))))}}]),n}(e.Component),fe=function(t){function n(){return Object(u.a)(this,n),Object(d.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"focus",value:function(){this.listItem.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowMovableKeySelect,o=n.allowTabNavigation,i=n.id,a=n.isEnabled,s=n.height,l=n.onDrop,c=n.onKeyDown,u=n.onKeyUp,f=n.onEnter,d=n.onLeave,p=n.prefersKeyboardNavigation,h=n.text,m=o&&!r;return e.createElement(Z.b,{activeClassName:"quiz-match__item--active",childRef:function(e){t.listItem=e},isEnabled:a,key:i,onDrop:l,onEnter:f,onLeave:d},e.createElement("li",{"aria-hidden":!m,className:be({prefersKeyboardNavigation:p}),onKeyDown:c,onKeyUp:u,style:{height:s},tabIndex:Object(ie.l)(m)},e.createElement(he,{className:ve({isSelectable:!r})}),e.createElement("div",{className:"quiz-match__item-content"},e.createElement("span",{"data-match-content":!0},h))))}}]),n}(e.Component),de=function(t){function n(e){var t,r,o;return Object(u.a)(this,n),(o=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={allowMovableKeySelect:!0,dragIndex:null,dropZoneIndex:null,height:null,isLoaded:!1,keySelectedSourceIndex:null,titleIndices:e.titleIndices,toDropRow:null},o.moveableItems=[],o.matchItems=[],o.handleResize=re()(c()(t=o.handleResize).call(t,Object(h.a)(o)),100),o.handleCancelKeyDrop=c()(r=o.handleCancelKeyDrop).call(r,Object(h.a)(o)),o}return Object(m.a)(n,t),Object(f.a)(n,[{key:"componentDidMount",value:function(){this.setHeights(),window.addEventListener("resize",this.handleResize),window.addEventListener("keydown",this.handleCancelKeyDrop),document.addEventListener("mousedown",this.handleCancelKeyDrop)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("keydown",this.handleCancelKeyDrop),document.removeEventListener("mousedown",this.handleCancelKeyDrop)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.titleIndices,n=this.props,r=n.isKnowledgeCheck,o=n.isLearner,i=n.isRetake,a=n.matches,l=e.isRetake,c=e.matches,u=e.matchIndices,f=e.titleIndices,d=a!==c,p=!i&&l;if(!R()(c)||r)if(d){var h,m=Object(ee.f)(u),v=s()(h=K()(c)).call(h,m,t);this.setState({titleIndices:v})}else if(r){var g=Ee({titleIndices:t,nextTitleIndices:f,isLearner:o,isNewRetake:p});this.setState({titleIndices:g})}}},{key:"componentDidUpdate",value:function(){var e=this.state,t=e.dragIndex,n=e.dropZoneIndex;b()(Q.b,[t,n])&&(this.props.onMatch({dragIndex:t,dropZoneIndex:n}),this.setState({dragIndex:null,dropZoneIndex:null}))}},{key:"render",value:function(){var t=this;return e.createElement("div",{className:this.getClassName(),ref:function(e){t.el=e}},this.buildResultsList(),this.buildMovableList(),this.buildMatchList())}},{key:"getClassName",value:function(){return x()("quiz-match",{"quiz-match--completed":this.props.isComplete,"quiz-match--hidden":!this.state.isLoaded})}},{key:"buildResultsList",value:function(){var e,t=le(c()(e=this.buildResultItem).call(e,this));return S()(we,t,ee.i)(this.props.matchIndices)}},{key:"buildResultItem",value:function(t){var n=this.props,r=n.isComplete,o=n.matchIndices,i=n.revealAnswers,a=this.state,s=a.height,l=r&&i,c=a.titleIndices[t],u=c===o[t],f=x()("quiz-match__item-feedback",{"quiz-match__item-feedback--hidden":!l});return l?u?e.createElement("li",{className:f,key:t,style:{height:s}},e.createElement(se.e,{className:"brand--fill"})):e.createElement("li",{className:f,key:t,style:{height:s}},e.createElement("span",{className:"quiz-match__item-feedback-bubble"},I()(P()(c,o)))):e.createElement("li",{className:f,key:t,style:{height:s}})}},{key:"buildMovableList",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.answers,a=n.isActive,s=n.matches,l=n.prefersKeyboardNavigation,u=this.state,f=u.allowMovableKeySelect,d=u.dragIndex,p=u.height,h=u.keySelectedSourceIndex,m=u.titleIndices,v=u.toDropRow;return S()(_e,le(function(n,r){return e.createElement(ue,Object(i.a)({key:"movable-item-".concat(r),nextIndex:r,prevIndex:v,ref:function(e){t.moveableItems[r]=e}},n))}))(le(function(e,n){var i,u,g,y=H()([e],o),b=y.id,_=y.title,w=Object(Q.b)(d)&&n===v&&v!==P()(d,m);return{allowMovableKeySelect:f,allowTabNavigation:r,height:p,id:b,isEnabled:a,isKeySelected:e===h,isMatched:Object(Q.b)(s[e]),onDragEnd:c()(i=t.handleDragEnd).call(i,t),onDragStart:c()(u=t.handleDragStart).call(u,t,e),onKeyDown:c()(g=t.handleMovableKeyDown).call(g,t,e,n),prefersKeyboardNavigation:l,text:_,willBeReplaced:w}},m))}},{key:"buildMatchList",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,o=n.answers,a=n.isActive,s=n.matchIndices,l=n.prefersKeyboardNavigation,u=this.state,f=u.allowMovableKeySelect,d=u.height;return S()(_e,le(function(n,r){return e.createElement(fe,Object(i.a)({key:"match-item-".concat(r),ref:function(e){t.matchItems[r]=e}},n))}))(le(function(e,n){var i,s,u,p,h,m=H()([e],o),v=m.id,g=m.matchTitle;return{allowMovableKeySelect:f,allowTabNavigation:r,height:d,id:v,isEnabled:a,onDrop:c()(i=t.handleDrop).call(i,t,e),onEnter:c()(s=t.handleDropEnter).call(s,t,n),onKeyDown:c()(u=t.handleMatchKeyDown).call(u,t,e,n),onKeyUp:c()(p=t.handleMatchKeyUp).call(p,t),onLeave:c()(h=t.handleDropLeave).call(h,t),prefersKeyboardNavigation:l,text:g}},s))}},{key:"handleDragEnd",value:function(){var e=this;o()(function(){e.setState({dragIndex:null})},0)}},{key:"handleDragStart",value:function(e){this.setState({dragIndex:e})}},{key:"handleDropEnter",value:function(e){this.setState({toDropRow:e})}},{key:"handleDrop",value:function(e){this.setState({dropZoneIndex:e})}},{key:"handleDropLeave",value:function(){this.setState({toDropRow:null})}},{key:"handleResize",value:function(){this.setHeights()}},{key:"keySelectMovableAtIndex",value:function(e){this.state.dragIndex===e?this.resetKeySelection():this.setState({allowMovableKeySelect:!1,dragIndex:e,keySelectedSourceIndex:e})}},{key:"keySelectMatch",value:function(e,t){this.setState({dropZoneIndex:e,toDropRow:t})}},{key:"handleMovableKeyDown",value:function(e,t,n){var r=this,o=this.state.allowMovableKeySelect,i=Object(te.a)(function(){return r.keySelectMovableAtIndex(e)}),a=Object(te.a)(function(){return Object(ie.g)({list:r.moveableItems,currentIndex:t})}),s=Object(te.a)(function(){return Object(ie.f)({list:r.moveableItems,currentIndex:t})}),l=Object(te.a)(function(){return!o&&Object(ie.e)({list:r.matchItems,index:t})});C()([[ae.j,i],[ae.b,s],[ae.l,a],[ae.h,l]])(n)}},{key:"handleMatchKeyDown",value:function(e,t,n){var r=this,o=this.props,i=o.canSubmit,a=o.onEnterToSubmit;if(i&&Object(ae.c)(n))a();else{var s=Object(te.a)(function(){return r.keySelectMatch(e,t)}),l=Object(te.a)(function(){return Object(ie.g)({list:r.matchItems,currentIndex:t})}),c=Object(te.a)(function(){return Object(ie.f)({list:r.matchItems,currentIndex:t})}),u=Object(te.a)(function(){return Object(ie.e)({list:r.moveableItems,index:t})});C()([[ae.d,s],[ae.b,c],[ae.l,l],[ae.f,u]])(n)}}},{key:"handleMatchKeyUp",value:function(e){Object(ae.d)(e)&&this.resetKeySelection()}},{key:"handleCancelKeyDrop",value:function(e){("mousedown"===e.type||Object(ae.e)(e))&&this.setState({allowMovableKeySelect:!0,keySelectedSourceIndex:null})}},{key:"resetKeySelection",value:function(){this.setState({allowMovableKeySelect:!0,dragIndex:null,dropZoneIndex:null,keySelectedSourceIndex:null,toDropRow:null})}},{key:"setHeights",value:function(){var e=this.el.querySelectorAll("[data-match-content]"),t=$()(function(e,t){return Math.max(e,t.offsetHeight+32)},0,e);this.setState({height:t,isLoaded:!0})}}]),n}(e.Component),pe=function(t){var n=t.className;return e.createElement("svg",{className:n,viewBox:"-0.5 -0.5 315 55",preserveAspectRatio:"none",focusable:"false"},e.createElement("title",null,"Draggable item"),e.createElement("desc",null,"Rectangular shape with an arrow on the right side"),e.createElement("polygon",{points:"0,0  298.5,0  312,27.5  298.5,54  0,54"}),e.createElement("rect",{x:"0",y:"0",width:"5",height:"54"}))},he=function(t){var n=t.className;return e.createElement("svg",{className:n,viewBox:"-0.5 -0.5 315 55",preserveAspectRatio:"none",focusable:"false"},e.createElement("title",null,"Drop zone item"),e.createElement("desc",null,"Rectangular shape with a fish-tail shape on the left side"),e.createElement("polygon",{points:"0,0  314,0  314,54  0,54  13.5,27.5  0,0"}))},me=function(e){var t=e.isKeySelected;return x()("quiz-match__item-arrow",{"quiz-match__item-arrow--selected":t})},ve=function(e){var t=e.isSelectable;return x()("quiz-match__item-tail",{"quiz-match__item-tail--selectable":t})},ge=X.a.isIe11||X.a.isEdge,ye=function(e){var t=e.isMatched,n=e.prefersKeyboardNavigation,r=e.willBeReplaced;return x()("quiz-match__item quiz-match__item--draggable",{"quiz-match__item--matched":t,"quiz-match__item--faded":r,"quiz-match__item--ms_browser-focus":n&&ge})},be=function(e){var t=e.prefersKeyboardNavigation;return x()("quiz-match__item quiz-match__item--immobile",{"quiz-match__item--ms_browser-focus":t&&ge})},_e=function(t){return e.createElement("ul",{className:"quiz-match__list brand--body"},t)},we=function(t){return e.createElement("ul",{className:"quiz-match__list quiz-match__list--results"},t)},Ee=function(e){var t=e.titleIndices,n=e.nextTitleIndices,r=e.isNewRetake,o=e.isLearner;if(r&&o)return n;var i=G()(t,n),a=j()(t,n);return ce(a)?G()(a,t):ce(i)?N()(w()(i,t)):t}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return F});var r=n(34),o=n.n(r),i=n(103),a=n.n(i),s=n(3),l=n.n(s),c=n(9),u=n(10),f=n(8),d=n(15),p=n(7),h=n(11),m=n(4),v=n.n(m),g=n(2),y=n.n(g),b=n(227),_=n(38),w=n.n(_),E=n(74),x=n.n(E),k=n(14),S=n.n(k),T=n(47),C=n.n(T),O=n(29),j=n.n(O),A=n(466),N=n.n(A),M=n(31),I=n.n(M),L=x()(["draggableOptions","autoScroll","container"]),P=N()(L),D=I()(w.a,function(){return document.querySelector(".page-wrap")||document.querySelector(".block-knowledge__wrapper")}),R=C()(L,D),F=function(t){function n(e){var t,r,o,i;return Object(c.a)(this,n),(i=Object(u.a)(this,Object(f.a)(n).call(this,e))).state={isDragging:!1,x:0,y:0,zIndex:0},i.handleEnd=l()(t=i.handleEnd).call(t,Object(d.a)(i)),i.handleMove=l()(r=i.handleMove).call(r,Object(d.a)(i)),i.handleStart=l()(o=i.handleStart).call(o,Object(d.a)(i)),i}return Object(h.a)(n,t),Object(p.a)(n,null,[{key:"defaultProps",get:function(){return{childRef:Function.prototype,draggableOptions:{autoScroll:{container:null}},interactOptions:{styleCursor:!1},isEnabled:!0,onDragEnd:Function.prototype,onDragStart:Function.prototype}}}]),Object(p.a)(n,[{key:"componentDidMount",value:function(){this.interact=Object(b.a)(this.el,this.props.interactOptions),this.props.isEnabled&&this.enableInteract()}},{key:"componentWillEnter",value:function(e){var t=this.props.prevIndex-this.props.nextIndex>0?"up":"down",n=this.el,r="movable-item__will-enter-".concat(t);this.animate({activeClass:"movable-item__will-enter-active",element:n,enterClass:r,timeout:300}).then(e)}},{key:"componentWillReceiveProps",value:function(e){!this.props.isEnabled&&e.isEnabled?this.enableInteract():this.props.isEnabled&&!e.isEnabled&&this.disableInteract()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutRef)}},{key:"render",value:function(){var t=this;return e.cloneElement(e.Children.only(this.props.children),{className:this.getClassName(),ref:function(e){t.el=e,t.props.childRef(e)},style:this.getStyle()})}},{key:"animate",value:function(e){var t=this,n=e.activeClass,r=e.element,i=e.enterClass,s=e.timeout;return new a.a(function(e){r.classList.add(i),o()(function(){r.classList.add(n)},10),t.timeoutRef=o()(function(){r.classList.remove(i,n),e()},s)})}},{key:"enableInteract",value:function(){var e=R(this.props);this.interact.draggable(S()({onstart:this.handleStart,onmove:this.handleMove,onend:this.handleEnd},e.draggableOptions)),this.interactScrollHandler(e)}},{key:"interactScrollHandler",value:function(e){var t=this;this.yBefore=0,this.yAfter=0,P(e).addEventListener("scroll",function(e){t.yBefore=t.yAfter,t.yAfter=e.currentTarget.scrollTop,t.state.isDragging&&t.setState({y:t.state.y+(t.yAfter-t.yBefore)})})}},{key:"disableInteract",value:function(){this.interact.draggable(!1),delete this.yBefore,delete this.yAfter}},{key:"getClassName",value:function(){var e=j()("",["props","className"],this.props.children);return y()(e,"draggable",{"draggable--dragging":this.state.isDragging})}},{key:"getStyle",value:function(){var e,t,n,r,o,i=j()({},["props","style"],this.props.children);return S()(i,(e=this.state,n=e.x,r=e.y,o=e.zIndex,{transform:v()(t="translate(".concat(n,"px, ")).call(t,r,"px)"),zIndex:o}))}},{key:"handleStart",value:function(e){this.props.onDragStart(e),this.props.setDrag(!0),this.setState({isDragging:!0})}},{key:"handleEnd",value:function(e){this.props.onDragEnd(e),this.props.setDrag(!1),this.setState({isDragging:!1,x:0,y:0,zIndex:0})}},{key:"handleMove",value:function(e){var t=e.dx,n=e.dy,r=this.state.x+t,o=this.state.y+n;this.setState({x:r,y:o,zIndex:1})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return b});var r=n(6),o=n(3),i=n.n(o),a=n(9),s=n(10),l=n(8),c=n(15),u=n(7),f=n(11),d=n(2),p=n.n(d),h=n(227),m=n(14),v=n.n(m),g=n(29),y=n.n(g),b=function(t){function n(e){var t,r,o,u;return Object(a.a)(this,n),(u=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={isActive:!1},u.handleEnter=i()(t=u.handleEnter).call(t,Object(c.a)(u)),u.handleLeave=i()(r=u.handleLeave).call(r,Object(c.a)(u)),u.handleDrop=i()(o=u.handleDrop).call(o,Object(c.a)(u)),u}return Object(f.a)(n,t),Object(u.a)(n,null,[{key:"defaultProps",get:function(){return{activeClassName:"",childRef:Function.prototype,droppableOptions:{overlap:.015},interactOptions:{},isEnabled:!0,onDrop:Function.prototype,onEnter:Function.prototype,onLeave:Function.prototype}}}]),Object(u.a)(n,[{key:"componentDidMount",value:function(){this.interact=Object(h.a)(this.el,this.props.interactOptions),this.props.isEnabled&&this.enableInteract()}},{key:"componentWillReceiveProps",value:function(e){!this.props.isEnabled&&e.isEnabled?this.enableInteract():this.props.isEnabled&&!e.isEnabled&&this.disableInteract()}},{key:"render",value:function(){var t=this;return e.cloneElement(e.Children.only(this.props.children),{className:this.getClassName(),ref:function(e){t.el=e,t.props.childRef(e)},style:this.getStyle()})}},{key:"enableInteract",value:function(){this.interact.dropzone(v()({ondrop:this.handleDrop,ondragenter:this.handleEnter,ondragleave:this.handleLeave},this.props.droppableOptions))}},{key:"disableInteract",value:function(){this.interact.dropzone(!1)}},{key:"getClassName",value:function(){var e=this.state.isActive,t=this.props.activeClassName,n=y()("",["props","className"],this.props.children);return p()(n,"droppable",Object(r.a)({"droppable--active":e},t,e))}},{key:"getStyle",value:function(){return y()({},["props","style"],this.props.children)}},{key:"handleEnter",value:function(e){this.props.onEnter(e),this.setState({isActive:!0})}},{key:"handleLeave",value:function(e){this.props.onLeave(e),this.setState({isActive:!1})}},{key:"handleDrop",value:function(e){this.props.onDrop(e),this.setState({isActive:!1})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(3),o=n.n(r),i=n(4),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(11),d=(n(1082),n(148)),p=n.n(d),h=n(27),m=n.n(h),v=n(80),g=n.n(v),y=n(149),b=n.n(y),_=n(43),w=n.n(_),E=n(2),x=n.n(E),k=n(1193),S=n(111),T=n(63),C=p()(m.a),O=function(t){function n(e){var t;return Object(s.a)(this,n),(t=Object(c.a)(this,Object(u.a)(n).call(this,e))).options=[],t}return Object(f.a)(n,t),Object(l.a)(n,[{key:"navigateToNextOption",value:function(){var e=this.props.selectedIndex,t=g()(e||0),n=t<w()(this.options)?t:0;this.options[n].select()}},{key:"navigateToPreviousOption",value:function(){var e=this.props.selectedIndex,t=b()(e),n=t>=0?t:b()(w()(this.options));this.options[n].select()}},{key:"buildOption",value:function(t,n){var r,i,s,l,c=this,u=t.id,f=t.title,d=this.props,p=d.allowTabNavigation,h=d.correctId,m=d.isComplete,v=d.onChange,g=d.onEnterToSubmit,y=d.renderOptionText,b=d.selectedIndex,_=d.uniqueId,w=n===b;return e.createElement("li",{className:A({correctId:h,isComplete:m,optionId:u,optionIndex:n,selectedIndex:b}),key:a()(r="option-".concat(_,"-")).call(r,u)},e.createElement(k.a,{allowTabNavigation:p&&(w||j(n,b)),buttonClassName:N({isComplete:m}),className:"quiz-multiple-choice-option__radio-label",checked:w,id:a()(i="option-".concat(_,"-")).call(i,u),onChange:I({onChange:v,optionIndex:n}),onEnterToSubmit:g,onNavigateToNext:o()(s=this.navigateToNextOption).call(s,this),onNavigateToPrevious:o()(l=this.navigateToPreviousOption).call(l,this),radioIcon:L({correctId:h,isComplete:m,optionId:u}),ref:function(e){c.options[n]=e},title:Object(S.c)(f),value:u},y({optionId:u,title:f})),e.createElement("span",{className:M({correctId:h,isComplete:m,optionId:u,optionIndex:n,selectedIndex:b})}))}},{key:"render",value:function(){var t,n=this.props,r=n.options,i=n.title;return e.createElement("ul",{"aria-label":Object(S.c)(i),role:T.e},C(o()(t=this.buildOption).call(t,this),r))}}]),n}(e.Component),j=function(e,t){return!t&&0===e},A=function(e){var t=e.correctId,n=e.isComplete,r=e.optionId,o=e.optionIndex,i=e.selectedIndex;return x()("quiz-multiple-choice-option",{"quiz-multiple-choice-option--selected":o===i,"quiz-multiple-choice-option--correct":n&&r===t,"quiz-multiple-choice-option--incorrect":n&&r!==t})},N=function(e){var t=e.isComplete;return x()("quiz-multiple-choice-option__radio-btn",{"brand--afterBackground":!t})},M=function(e){var t=e.correctId,n=e.isComplete,r=e.optionId,o=e.optionIndex,i=e.selectedIndex;return x()("quiz-multiple-choice-option__border",{"brand--beforeBorder":n&&o===i&&r===t})},I=function(e){var t=e.onChange,n=e.optionIndex;return function(){return t({optionIndex:n})}},L=function(t){var n=t.correctId,r=t.isComplete,o=t.optionId,i=x()("icon icon-tick",{"brand--color":r&&o===n});return e.createElement("span",null,e.createElement("i",{className:i}),e.createElement("i",{className:"icon icon-close-media-panel"}))}}).call(this,n(1))},function(e,t,n){},function(e,t,n){"use strict";(function(e){var r=n(4),o=n.n(r),i=(n(1082),n(148)),a=n.n(i),s=n(79),l=n.n(s),c=n(27),u=n.n(c),f=n(2),d=n.n(f),p=n(1194),h=n(44),m=a()(u.a),v=function(t){var n=t.allowTabNavigation,r=t.correctIds,i=t.isComplete,a=t.onChange,s=t.onEnterToSubmit,c=t.renderOptionText,u=t.revealAnswers,f=t.selectedIndices,d=t.uniqueId;return function(t,h){var m,v,w=t.id,E=t.title,x=l()(w,r),k=l()(h,f),S=k&&!i||i&&u;return e.createElement("li",{className:g({isComplete:i,isCorrect:x,isSelected:k,revealAnswers:u}),key:o()(m="option-".concat(d,"-")).call(m,w)},e.createElement(p.a,{allowTabNavigation:n,className:"quiz-multiple-choice-option__checkbox-label brand--fill",checked:S,enabled:!i,icon:b({isComplete:i,isCorrect:x,revealAnswers:u}),id:o()(v="option-".concat(d,"-")).call(v,w),onChange:_({onChange:a,optionIndex:h}),onEnterToSubmit:s},c({optionId:w,title:E})),e.createElement("span",{className:y({isComplete:i,isCorrect:x,isSelected:k,revealAnswers:u})}))}},g=function(e){var t=e.isComplete,n=e.isCorrect,r=e.isSelected,o=e.revealAnswers;return d()("quiz-multiple-choice-option",{"quiz-multiple-choice-option--selected":r,"quiz-multiple-choice-option--correct":t&&n&&o,"quiz-multiple-choice-option--incorrect":t&&!n&&o})},y=function(e){var t=e.isComplete,n=e.isCorrect,r=e.isSelected,o=e.revealAnswers;return d()("quiz-multiple-choice-option__border",{"brand--beforeBorder":t&&o&&n&&r})},b=function(t){var n=t.isComplete,r=t.isCorrect;return t.revealAnswers?!n||r?e.createElement(h.d,{className:"brand--fill",width:"9",height:"7"}):e.createElement(h.k,{width:"8",height:"8"}):null},_=function(e){var t=e.onChange,n=e.optionIndex;return function(){return t({optionIndex:n})}};t.a=function(t){var n=t.allowTabNavigation,r=t.correctIds,o=void 0===r?[]:r,i=t.isComplete,a=t.onChange,s=t.onEnterToSubmit,l=t.options,c=t.renderOptionText,u=t.revealAnswers,f=t.selectedIndices,d=void 0===f?[]:f,p=t.uniqueId;return e.createElement("ul",null,m(v({allowTabNavigation:n,correctIds:o,isComplete:i,onChange:a,onEnterToSubmit:s,renderOptionText:c,revealAnswers:u,selectedIndices:d,uniqueId:p}),l))}}).call(this,n(1))},function(e,t,n){e.exports=n(2063)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=a(n(1)),i=a(n(2065));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(function(e,t,n,i,a){var s=e[t],l=void 0===s?"undefined":r(s);return o.default.isValidElement(s)?new Error("Invalid "+i+" `"+a+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+i+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var r,o=n(96),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,o.default)(r.default.findDOMNode(e))};var r=i(n(96)),o=i(n(2066));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){var r=n(2104),o=n(2106),i=function(e){return e instanceof i?e:this instanceof i?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=o.getRgba(e))?this.setValues("rgb",t):(t=o.getHsla(e))?this.setValues("hsl",t):(t=o.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new i(e);var t};i.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,o=2*r-1,i=this.alpha()-n.alpha(),a=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new i,r=this.values,o=n.values;for(var a in r)r.hasOwnProperty(a)&&(e=r[a],"[object Array]"===(t={}.toString.call(e))?o[a]=e.slice(0):"[object Number]"===t?o[a]=e:console.error("unexpected color value:",e));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},i.prototype.setValues=function(e,t){var n,o,i=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)i[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)i[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[a[e][0]]){var c=a[e];for(n=0;n<e.length;n++)i[e][n]=t[c[n]];l=t.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===l?i.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)o=Math.max(0,Math.min(s[e][n],i[e][n])),i[e][n]=Math.round(o);for(var u in a)u!==e&&(i[u]=r[e][u](i[e]));return!0},i.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},i.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:n===r[t]?this:(r[t]=n,this.setValues(e,r),this)},"undefined"!=typeof window&&(window.Color=i),e.exports=i},function(e,t,n){"use strict";var r=n(239);t=e.exports=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(t.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})},function(e,t,n){"use strict";var r=n(109),o=n(86);r._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:o.noop,onComplete:o.noop}}),e.exports={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,n,r){var o,i,a=this.animations;for(t.chart=e,r||(e.animating=!0),o=0,i=a.length;o<i;++o)if(a[o].chart===e)return void(a[o]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=o.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=o.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this,t=Date.now(),n=0;e.dropFrames>1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var r=Date.now();e.dropFrames+=(r-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,r=this.animations,i=0;i<r.length;)n=(t=r[i]).chart,t.currentStep=(t.currentStep||0)+e,t.currentStep=Math.min(t.currentStep,t.numSteps),o.callback(t.render,[n,t],n),o.callback(t.onAnimationProgress,[t],n),t.currentStep>=t.numSteps?(o.callback(t.onAnimationComplete,[t],n),n.animating=!1,r.splice(i,1)):++i}}},function(e,t,n){"use strict";var r=n(86);function o(e,t){return e.native?{x:e.x,y:e.y}:r.getRelativePosition(e,t)}function i(e,t){var n,r,o,i,a;for(r=0,i=e.data.datasets.length;r<i;++r)if(e.isDatasetVisible(r))for(o=0,a=(n=e.getDatasetMeta(r)).data.length;o<a;++o){var s=n.data[o];s._view.skip||t(s)}}function a(e,t){var n=[];return i(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function s(e,t,n,r){var o=Number.POSITIVE_INFINITY,a=[];return i(e,function(e){if(!n||e.inRange(t.x,t.y)){var i=e.getCenterPoint(),s=r(t,i);s<o?(a=[e],o=s):s===o&&a.push(e)}}),a}function l(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}function c(e,t,n){var r=o(t,e);n.axis=n.axis||"x";var i=l(n.axis),c=n.intersect?a(e,r):s(e,r,!1,i),u=[];return c.length?(e.data.datasets.forEach(function(t,n){if(e.isDatasetVisible(n)){var r=e.getDatasetMeta(n).data[c[0]._index];r&&!r._view.skip&&u.push(r)}}),u):[]}e.exports={modes:{single:function(e,t){var n=o(t,e),r=[];return i(e,function(e){if(e.inRange(n.x,n.y))return r.push(e),r}),r.slice(0,1)},label:c,index:c,dataset:function(e,t,n){var r=o(t,e);n.axis=n.axis||"xy";var i=l(n.axis),c=n.intersect?a(e,r):s(e,r,!1,i);return c.length>0&&(c=e.getDatasetMeta(c[0]._datasetIndex).data),c},"x-axis":function(e,t){return c(e,t,{intersect:!1})},point:function(e,t){return a(e,o(t,e))},nearest:function(e,t,n){var r=o(t,e);n.axis=n.axis||"xy";var i=l(n.axis),a=s(e,r,n.intersect,i);return a.length>1&&a.sort(function(e,t){var n=e.getArea()-t.getArea();return 0===n&&(n=e._datasetIndex-t._datasetIndex),n}),a.slice(0,1)},x:function(e,t,n){var r=o(t,e),a=[],s=!1;return i(e,function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var r=o(t,e),a=[],s=!1;return i(e,function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){"use strict";var r=n(86),o=n(2112),i=n(2113),a=i._enabled?i:o;e.exports=r.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){"use strict";var r=n(109),o=n(86);r._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,o,i,a,s,l=this.descriptors(e),c=l.length;for(r=0;r<c;++r)if("function"==typeof(s=(i=(o=l[r]).plugin)[t])&&((a=[e].concat(n||[])).push(o.options),!1===s.apply(i,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],a=e&&e.config||{},s=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,a=s[t];!1!==a&&(!0===a&&(a=o.clone(r.global.plugins[t])),n.push(e),i.push({plugin:e,options:a||{}}))}}),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}}},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86);r._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(e,t){var n="",r=t.labels,o=r?r.length:0;if(e.length>0){var i=e[0];i.xLabel?n=i.xLabel:o>0&&i.index<o&&(n=r[i.index])}return n},afterTitle:i.noop,beforeBody:i.noop,beforeLabel:i.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),n+=e.yLabel},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:i.noop,afterBody:i.noop,beforeFooter:i.noop,footer:i.noop,afterFooter:i.noop}}});var a={average:function(e){if(!e.length)return!1;var t,n,r=0,o=0,i=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,o+=s.y,++i}}return{x:Math.round(r/i),y:Math.round(o/i)}},nearest:function(e,t){var n,r,o,a=t.x,s=t.y,l=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var c=e[n];if(c&&c.hasValue()){var u=c.getCenterPoint(),f=i.distanceBetweenPoints(t,u);f<l&&(l=f,o=c)}}if(o){var d=o.tooltipPosition();a=d.x,s=d.y}return{x:a,y:s}}};function s(e,t){var n=i.color(e);return n.alpha(t*n.alpha()).rgbaString()}function l(e,t){return t&&(i.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function c(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function u(e){var t=r.global,n=i.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function f(e){return l([],c(e))}(e.exports=o.extend({initialize:function(){this._model=u(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),n=e.title.apply(this,arguments),r=e.afterTitle.apply(this,arguments),o=[];return o=l(o,c(t)),o=l(o,c(n)),o=l(o,c(r))},getBeforeBody:function(){return f(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,o=[];return i.each(e,function(e){var i={before:[],lines:[],after:[]};l(i.before,c(r.beforeLabel.call(n,e,t))),l(i.lines,r.label.call(n,e,t)),l(i.after,c(r.afterLabel.call(n,e,t))),o.push(i)}),o},getAfterBody:function(){return f(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),r=e.afterFooter.apply(this,arguments),o=[];return o=l(o,c(t)),o=l(o,c(n)),o=l(o,c(r))},update:function(e){var t,n,r,o,s,l,c,f=this,d=f._options,p=f._model,h=f._model=u(d),m=f._active,v=f._data,g={xAlign:p.xAlign,yAlign:p.yAlign},y={x:p.x,y:p.y},b={width:p.width,height:p.height},_={x:p.caretX,y:p.caretY};if(m.length){h.opacity=1;var w=[],E=[];_=a[d.position].call(f,m,f._eventPosition);var x=[];for(t=0,n=m.length;t<n;++t)x.push((r=m[t],o=void 0,s=void 0,l=void 0,c=void 0,o=r._xScale,s=r._yScale||r._scale,l=r._index,c=r._datasetIndex,{xLabel:o?o.getLabelForIndex(l,c):"",yLabel:s?s.getLabelForIndex(l,c):"",index:l,datasetIndex:c,x:r._model.x,y:r._model.y}));d.filter&&(x=x.filter(function(e){return d.filter(e,v)})),d.itemSort&&(x=x.sort(function(e,t){return d.itemSort(e,t,v)})),i.each(x,function(e){w.push(d.callbacks.labelColor.call(f,e,f._chart)),E.push(d.callbacks.labelTextColor.call(f,e,f._chart))}),h.title=f.getTitle(x,v),h.beforeBody=f.getBeforeBody(x,v),h.body=f.getBody(x,v),h.afterBody=f.getAfterBody(x,v),h.footer=f.getFooter(x,v),h.x=Math.round(_.x),h.y=Math.round(_.y),h.caretPadding=d.caretPadding,h.labelColors=w,h.labelTextColors=E,h.dataPoints=x,b=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,o=0,a=t.body,s=a.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var l=t.title.length,c=t.footer.length,u=t.titleFontSize,f=t.bodyFontSize,d=t.footerFontSize;r+=l*u,r+=l?(l-1)*t.titleSpacing:0,r+=l?t.titleMarginBottom:0,r+=s*f,r+=s?(s-1)*t.bodySpacing:0,r+=c?t.footerMarginTop:0,r+=c*d,r+=c?(c-1)*t.footerSpacing:0;var p=0,h=function(e){o=Math.max(o,n.measureText(e).width+p)};return n.font=i.fontString(u,t._titleFontStyle,t._titleFontFamily),i.each(t.title,h),n.font=i.fontString(f,t._bodyFontStyle,t._bodyFontFamily),i.each(t.beforeBody.concat(t.afterBody),h),p=t.displayColors?f+2:0,i.each(a,function(e){i.each(e.before,h),i.each(e.lines,h),i.each(e.after,h)}),p=0,n.font=i.fontString(d,t._footerFontStyle,t._footerFontFamily),i.each(t.footer,h),{width:o+=2*t.xPadding,height:r}}(this,h),y=function(e,t,n,r){var o=e.x,i=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,f=a+s,d=l+s;return"right"===c?o-=t.width:"center"===c&&((o-=t.width/2)+t.width>r.width&&(o=r.width-t.width),o<0&&(o=0)),"top"===u?i+=f:i-="bottom"===u?t.height+f:t.height/2,"center"===u?"left"===c?o+=f:"right"===c&&(o-=f):"left"===c?o-=d:"right"===c&&(o+=d),{x:o,y:i}}(h,b,g=function(e,t){var n,r,o,i,a,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",f="center";s.y<t.height?f="top":s.y>l.height-t.height&&(f="bottom");var d=(c.left+c.right)/2,p=(c.top+c.bottom)/2;"center"===f?(n=function(e){return e<=d},r=function(e){return e>d}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),o=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},i=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=p?"top":"bottom"},n(s.x)?(u="left",o(s.x)&&(u="center",f=a(s.y))):r(s.x)&&(u="right",i(s.x)&&(u="center",f=a(s.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:u,yAlign:h.yAlign?h.yAlign:f}}(this,b),f._chart)}else h.opacity=0;return h.xAlign=g.xAlign,h.yAlign=g.yAlign,h.x=y.x,h.y=y.y,h.width=b.width,h.height=b.height,h.caretX=_.x,h.caretY=_.y,f._model=h,e&&d.custom&&d.custom.call(f,h),f},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,o=this.getCaretPosition(e,t,r);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)},getCaretPosition:function(e,t,n){var r,o,i,a,s,l,c=n.caretSize,u=n.cornerRadius,f=n.xAlign,d=n.yAlign,p=e.x,h=e.y,m=t.width,v=t.height;if("center"===d)s=h+v/2,"left"===f?(o=(r=p)-c,i=r,a=s+c,l=s-c):(o=(r=p+m)+c,i=r,a=s-c,l=s+c);else if("left"===f?(r=(o=p+u+c)-c,i=o+c):"right"===f?(r=(o=p+m-u-c)-c,i=o+c):(r=(o=n.caretX)-c,i=o+c),"top"===d)s=(a=h)-c,l=a;else{s=(a=h+v)+c,l=a;var g=i;i=r,r=g}return{x1:r,x2:o,x3:i,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n,r){var o=t.title;if(o.length){n.textAlign=t._titleAlign,n.textBaseline="top";var a,l,c=t.titleFontSize,u=t.titleSpacing;for(n.fillStyle=s(t.titleFontColor,r),n.font=i.fontString(c,t._titleFontStyle,t._titleFontFamily),a=0,l=o.length;a<l;++a)n.fillText(o[a],e.x,e.y),e.y+=c+u,a+1===o.length&&(e.y+=t.titleMarginBottom-u)}},drawBody:function(e,t,n,r){var o=t.bodyFontSize,a=t.bodySpacing,l=t.body;n.textAlign=t._bodyAlign,n.textBaseline="top",n.font=i.fontString(o,t._bodyFontStyle,t._bodyFontFamily);var c=0,u=function(t){n.fillText(t,e.x+c,e.y),e.y+=o+a};n.fillStyle=s(t.bodyFontColor,r),i.each(t.beforeBody,u);var f=t.displayColors;c=f?o+2:0,i.each(l,function(a,l){var c=s(t.labelTextColors[l],r);n.fillStyle=c,i.each(a.before,u),i.each(a.lines,function(i){f&&(n.fillStyle=s(t.legendColorBackground,r),n.fillRect(e.x,e.y,o,o),n.lineWidth=1,n.strokeStyle=s(t.labelColors[l].borderColor,r),n.strokeRect(e.x,e.y,o,o),n.fillStyle=s(t.labelColors[l].backgroundColor,r),n.fillRect(e.x+1,e.y+1,o-2,o-2),n.fillStyle=c),u(i)}),i.each(a.after,u)}),c=0,i.each(t.afterBody,u),e.y-=a},drawFooter:function(e,t,n,r){var o=t.footer;o.length&&(e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=s(t.footerFontColor,r),n.font=i.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),i.each(o,function(r){n.fillText(r,e.x,e.y),e.y+=t.footerFontSize+t.footerSpacing}))},drawBackground:function(e,t,n,r,o){n.fillStyle=s(t.backgroundColor,o),n.strokeStyle=s(t.borderColor,o),n.lineWidth=t.borderWidth;var i=t.xAlign,a=t.yAlign,l=e.x,c=e.y,u=r.width,f=r.height,d=t.cornerRadius;n.beginPath(),n.moveTo(l+d,c),"top"===a&&this.drawCaret(e,r),n.lineTo(l+u-d,c),n.quadraticCurveTo(l+u,c,l+u,c+d),"center"===a&&"right"===i&&this.drawCaret(e,r),n.lineTo(l+u,c+f-d),n.quadraticCurveTo(l+u,c+f,l+u-d,c+f),"bottom"===a&&this.drawCaret(e,r),n.lineTo(l+d,c+f),n.quadraticCurveTo(l,c+f,l,c+f-d),"center"===a&&"left"===i&&this.drawCaret(e,r),n.lineTo(l,c+d),n.quadraticCurveTo(l,c,l+d,c),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},o=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(this.drawBackground(r,t,e,n,o),r.x+=t.xPadding,r.y+=t.yPadding,this.drawTitle(r,t,e,o),this.drawBody(r,t,e,o),this.drawFooter(r,t,e,o))}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),(t=!i.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}})).positioners=a},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(340))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(340))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(340))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(340))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(340))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(340))},function(e,t,n){var r=n(556),o=n(2147),i=n(2148),a=n(2149),s=n(2150),l=n(2151);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(455),o=n(559),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(71))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(2170),o=n(2173),i=n(2174),a=1,s=2;e.exports=function(e,t,n,l,c,u){var f=n&a,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var h=u.get(e);if(h&&u.get(t))return h==t;var m=-1,v=!0,g=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++m<d;){var y=e[m],b=t[m];if(l)var _=f?l(b,y,m,t,e,u):l(y,b,m,e,t,u);if(void 0!==_){if(_)continue;v=!1;break}if(g){if(!o(t,function(e,t){if(!i(g,t)&&(y===e||c(y,e,n,l,u)))return g.push(t)})){v=!1;break}}else if(y!==b&&!c(y,b,n,l,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},function(e,t,n){var r=n(2188),o=n(456),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(266),o=n(2189),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l}).call(this,n(256)(e))},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(2190),o=n(2191),i=n(2192),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(559);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(1114),o=n(564);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(267),o=n(718),i=n(2209),a=n(2212);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(2281),o=n(183),i=n(374);e.exports=function e(t,n,a,s,l,c){return t===n||(null==t||null==n||!o(t)&&!i(n)?t!=t&&n!=n:r(t,n,e,a,s,l,c))}},function(e,t,n){var r=n(183);e.exports=function(e){return e==e&&!r(e)}},function(e,t,n){var r=n(262),o=n(263),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){var n=typeof e;return!!("string"==n&&a.test(e)||"number"==n)||!r(e)&&(!i.test(e)||null!=t&&e in o(t))}},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(189))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(189))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(189))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(189))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(189))},function(e,t,n){var r=n(1124),o=n(664);e.exports=function e(t,n,i,a){var s=function(r){for(var o=n.length,s=0;s<o;){if(t===n[s])return i[s];s+=1}for(var l in n[s+1]=t,i[s+1]=r,t)r[l]=a?e(t[l],n,i,!0):t[l];return r};switch(o(t)){case"Object":return s({});case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return r(t);default:return t}}},function(e,t){e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},function(e,t,n){var r=n(719),o=n(5),i=n(27);e.exports=function(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return o(o.apply(this,i(r,e)),t)}},function(e,t,n){var r=n(237),o=n(2321),i=n(73),a=n(457);e.exports=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return r(arguments[0].length,i(o,arguments[0],a(arguments)))}},function(e,t,n){var r=n(21),o=n(89),i=n(531);e.exports=r(function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:o(i(e,function(e,n,r,o,i,a,s,l,c,u){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,o);case 5:return new t(e,n,r,o,i);case 6:return new t(e,n,r,o,i,a);case 7:return new t(e,n,r,o,i,a,s);case 8:return new t(e,n,r,o,i,a,s,l);case 9:return new t(e,n,r,o,i,a,s,l,c);case 10:return new t(e,n,r,o,i,a,s,l,c,u)}}))})},function(e,t,n){var r=n(566),o=n(62);e.exports=o(function(e,t,n){for(var o=[],i=0,a=t.length;i<a;)r(e,t[i],n)||r(e,t[i],o)||o.push(t[i]),i+=1;return o})},function(e,t,n){var r=n(21),o=n(137),i=n(2325),a=n(201);e.exports=r(o(["drop"],i,function(e,t){return a(Math.max(0,e),1/0,t)}))},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(137),i=n(1130),a=n(138);e.exports=r(o([],i,function(e,t){var n=[],r=1,o=t.length;if(0!==o)for(n[0]=t[0];r<o;)e(a(n),t[r])||(n[n.length]=t[r]),r+=1;return n}))},function(e,t,n){var r=n(21),o=n(1129);e.exports=r(function(e,t){return o(e>=0?t.length-e:0,t)})},function(e,t,n){var r=n(52),o=n(392);e.exports=r(function(e){return o(e)/e.length})},function(e,t,n){var r=n(237),o=n(21),i=n(168);e.exports=o(function(e,t){var n={};return r(t.length,function(){var r=e.apply(this,arguments);return i(r,n)||(n[r]=t.apply(this,arguments)),n[r]})})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n={},r=0,o=e.length;r<o;){var i=e[r];n[i]=t[i],r+=1}return n})},function(e,t,n){var r=n(21),o=n(57);e.exports=r(function(e,t){return o(t.length,function(){for(var n=[],r=0;r<t.length;)n.push(t[r].call(this,arguments[r])),r+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))})})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){for(var r=n.length-1;r>=0;)t=e(n[r],t),r-=1;return t})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){var n,r=Number(t),o=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);o<r;)n[o]=e(o),o+=1;return n})},function(e,t,n){var r=n(21),o=n(673),i=n(27),a=n(379),s=n(1137);e.exports=r(function(e,t){return"function"==typeof t.sequence?t.sequence(e):s(function(e,t){return o(i(a,e),t)},e([]),t)})},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(u){var d=c(n);d&&d!==u&&e(t,d,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var h=0;h<p.length;++h){var m=p[h];if(!(r[m]||o[m]||f&&f[m])){var v=l(n,m);try{i(t,m,v)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(71))},function(e,t,n){e.exports=n(1564)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(120),o=n(296),i=n(369),a=n(670);e.exports=r(function(e,t,n){if(!i(e))throw new TypeError("assoc: String required for first argument");if(!o(n))throw new TypeError("assoc: Object required for third argument");return a.assign(((r={})[e]=t,r),n);var r})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(671),i=n(94);e.exports=r(function(e,t,n){if(!i(e))throw new TypeError("reduce: Function required for first argument");if(!o(n))throw new TypeError("reduce: Foldable required for third argument");return n.reduce(e,t)})},function(e,t,n){(function(r){var o;!function(r,i){e.exports=function(r){"use strict";var i,a=r.Base64;if(e.exports)try{i=n(368).Buffer}catch(e){}var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(s),c=String.fromCharCode,u=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(e){return e.replace(f,u)},p=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[s.charAt(n>>>18),s.charAt(n>>>12&63),t>=2?"=":s.charAt(n>>>6&63),t>=1?"=":s.charAt(63&n)];return r.join("")},h=r.btoa?function(e){return r.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,p)},m=i?i.from&&i.from!==Uint8Array.from?function(e){return(e.constructor===i.constructor?e:i.from(e)).toString("base64")}:function(e){return(e.constructor===i.constructor?e:new i(e)).toString("base64")}:function(e){return h(d(e))},v=function(e,t){return t?m(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):m(String(e))},g=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),y=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return c(55296+(n>>>10))+c(56320+(1023&n));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},b=function(e){return e.replace(g,y)},_=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),o=[c(r>>>16),c(r>>>8&255),c(255&r)];return o.length-=[0,0,2,1][n],o.join("")},w=r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,_)},E=i?i.from&&i.from!==Uint8Array.from?function(e){return(e.constructor===i.constructor?e:i.from(e,"base64")).toString()}:function(e){return(e.constructor===i.constructor?e:new i(e,"base64")).toString()}:function(e){return b(w(e))},x=function(e){return E(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};if(r.Base64={VERSION:"2.4.0",atob:w,btoa:h,fromBase64:x,toBase64:v,utob:d,encode:v,encodeURI:function(e){return v(e,!0)},btou:b,decode:x,noConflict:function(){var e=r.Base64;return r.Base64=a,e}},"function"==typeof Object.defineProperty){var k=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k(function(){return x(this)})),Object.defineProperty(String.prototype,"toBase64",k(function(e){return v(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",k(function(){return v(this,!0)}))}}r.Meteor&&(Base64=r.Base64);e.exports?e.exports.Base64=r.Base64:void 0===(o=function(){return r.Base64}.apply(t,[]))||(e.exports=o);return{Base64:r.Base64}}(r)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:this)}).call(this,n(71))},function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function f(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function m(e,t,n){function r(){s&&o&&i&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,a=null,s=n||null;c?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout(function(){o=!0,r()},0),f(e,"head",t)}function v(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=u(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout(function(){a||(a=!0,n&&n(Error("Script load timeout")))},r||5e3),i}return null}function g(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,_(e)}}function b(e,t){e.c=t,_(e)}function _(e){0==e.a&&e.c&&(e.c(),e.c=null)}function w(e){this.a=e||"-"}function E(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function x(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function k(e){return e.a+e.f}function S(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function T(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new w("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function O(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}j(e,"inactive")}function j(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,k(n)):e.h[t]())}function A(){this.c={}}function N(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function M(e){f(e.c,"body",e.a)}function I(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+x(e.c)+";font-style:"+S(e)+";font-weight:"+e.f+"00;"}function L(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function P(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new N(this.c,this.s),this.h=new N(this.c,this.s),this.j=new N(this.c,this.s),this.m=new N(this.c,this.s),e=I(e=new E(this.a.c+",serif",k(this.a))),this.g.a.style.cssText=e,e=I(e=new E(this.a.c+",sans-serif",k(this.a))),this.h.a.style.cssText=e,e=I(e=new E("serif",k(this.a))),this.j.a.style.cssText=e,e=I(e=new E("sans-serif",k(this.a))),this.m.a.style.cssText=e,M(this.g),M(this.h),M(this.j),M(this.m)}w.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},L.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise(function(r,o){!function i(){s()-n>=t.f?o():e.fonts.load(function(e){return S(e)+" "+e.f+"00 300px "+x(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(i,25)},function(){o()})}()}),o=null,i=new Promise(function(e,n){o=setTimeout(n,t.f)});Promise.race([i,r]).then(function(){o&&(clearTimeout(o),o=null),t.g(t.a)},function(){t.j(t.a)})};var D={D:"serif",C:"sans-serif"},R=null;function F(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function B(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function U(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=F()&&B(e,n,r)),t?s()-e.A>=e.w?F()&&B(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?q(e,e.v):q(e,e.B):function(e){setTimeout(a(function(){U(this)},e),50)}(e):q(e,e.v)}function q(e,t){setTimeout(a(function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)},e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),U(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):O(e.a))}function $(e){this.j=e,this.a=new A,this.h=0,this.f=this.g=!0}function Y(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=o||null,s=r||{};if(0===n.length&&i)O(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],f=s[u.c],d=t.a,h=u;if(d.g&&p(d.f,[d.a.c("wf",h.c,k(h).toString(),"loading")]),j(d,"fontloading",h),d=null,null===H)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=h?42<parseInt(h[1],10):!m}else H=!1;d=H?new L(a(t.g,t),a(t.h,t),t.c,u,t.s,f):new P(a(t.g,t),a(t.h,t),t.c,u,t.s,e,f),c.push(d)}for(l=0;l<c.length;l++)c[l].start()}},0)}function K(e,t){this.c=e,this.a=t}function V(e,t){this.c=e,this.a=t}function G(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,k(e).toString(),"active")],[t.a.c("wf",e.c,k(e).toString(),"loading"),t.a.c("wf",e.c,k(e).toString(),"inactive")]),j(t,"fontactive",e),this.m=!0,W(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=h(t.f,t.a.c("wf",e.c,k(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,k(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,k(e).toString(),"inactive")),p(t.f,r,o)}j(t,"fontinactive",e),W(this)},$.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&p(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t);var r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c),i=new z(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){Y(e,i,t,n,r)})}(this,new C(this.c,e),e)},K.prototype.load=function(e){var t=this,n=t.a.projectId,r=t.a.version;if(n){var o=t.c.o;v(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(r?"?v="+r:""),function(r){r?e([]):(o["__MonotypeConfiguration__"+n]=function(){return t.a},function t(){if(o["__mti_fntLst"+n]){var r,i=o["__mti_fntLst"+n](),a=[];if(i)for(var s=0;s<i.length;s++){var l=i[s].fontfamily;null!=i[s].fontStyle&&null!=i[s].fontWeight?(r=i[s].fontStyle+i[s].fontWeight,a.push(new E(l,r))):a.push(new E(l))}e(a)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+n}else e([])},V.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new g;for(t=0,n=r.length;t<n;t++)m(this.c,r[t],y(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new E(r[0],l[c]));else s.push(new E(r[0]));b(a,function(){e(s,i)})};var X="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function oe(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new g,n=this.c,r=new G(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":ee[u],null==(d=d[1])||""==d)d="4";else var f=J[d],d=f||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new E(o,i[r]))}}(i),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),y(t)),b(t,function(){e(i.a,i.c,re)})},oe.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?v(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new E(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new E(a.name,T("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},v(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var ae=new $(window);ae.a.c.custom=function(e,t){return new V(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new K(t,e)},ae.a.c.typekit=function(e,t){return new oe(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var se={load:a(ae.load,ae)};void 0===(r=function(){return se}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){e.exports=n(1647)},function(e,t,n){
/*! iNoBounce - v0.1.0
* https://github.com/lazd/iNoBounce/
* Copyright (c) 2013 Larry Davis <lazdnet@gmail.com>; Licensed BSD */
!function(t){var n=0,r=!1,o=function(e){for(var t=e.target;t!==document.body&&t!==document;){var r=window.getComputedStyle(t);if(!r)break;if("INPUT"===t.nodeName&&"range"===t.getAttribute("type"))return;var o=r.getPropertyValue("-webkit-overflow-scrolling"),i=r.getPropertyValue("overflow-y"),a=parseInt(r.getPropertyValue("height"),10),s="touch"===o&&("auto"===i||"scroll"===i),l=t.scrollHeight>t.offsetHeight;if(s&&l){var c=e.touches?e.touches[0].screenY:e.screenY,u=n<=c&&0===t.scrollTop,f=n>=c&&t.scrollHeight-t.scrollTop===a;return void((u||f)&&e.preventDefault())}t=t.parentNode}e.preventDefault()},i=function(e){n=e.touches?e.touches[0].screenY:e.screenY},a=function(){window.addEventListener("touchstart",i,!1),window.addEventListener("touchmove",o,!1),r=!0},s=document.createElement("div");document.documentElement.appendChild(s),s.style.WebkitOverflowScrolling="touch";var l="getComputedStyle"in window&&"touch"===window.getComputedStyle(s)["-webkit-overflow-scrolling"];document.documentElement.removeChild(s),l&&a();var c={enable:a,disable:function(){window.removeEventListener("touchstart",i,!1),window.removeEventListener("touchmove",o,!1),r=!1},isEnabled:function(){return r}};e.exports&&(e.exports=c),"function"==typeof t.define?(0,t.define)("iNoBounce",[],function(){return c}):t.iNoBounce=c}(this)},function(e,t,n){var r=n(1666);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,d)s+=d[1];else{var h=e[a],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,E="+"===b||"*"===b,x="?"===b||"*"===b,k=n[2]||u,S=g||y;r.push({name:v||i++,prefix:m||"",delimiter:k,optional:x,repeat:E,partial:w,asterisk:!!_,pattern:S?c(S):_?".*":"[^"+l(k)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,o){for(var i="",s=n||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var f,d=s[u.name];if(null==d){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=l(d[p]),!t[c].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(d).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):l(d),!t[c].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');i+=u.prefix+f}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function f(e){return e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=l(c);else{var d=l(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+d+p+")*"),a+=p=c.optional?c.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";(function(e){var r=n(17),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=n(110),f=n.n(u),d=n(2417),p=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"componentWillEnter",value:function(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}},{key:"componentDidEnter",value:function(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}},{key:"componentWillExit",value:function(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}},{key:"componentDidExit",value:function(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}},{key:"render",value:function(){var t,n=this,r=this.props.children,i=f()("children",this.props);return e.createElement(d.a,i,r&&o()(t=e.Children).call(t,r,function(t){return e.cloneElement(t,{ref:function(e){return n.child=e}})}))}}]),n}(e.Component);t.a=p}).call(this,n(1))},function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+="<style>\n  .brand--head, .brand--head *   { font-family: "+(null==(__t=headingTypeface)?"":__t)+" !important; }\n  .brand--body, .brand--body *   { font-family: "+(null==(__t=bodyTypeface)?"":__t)+" !important; }\n  .brand--lhead, .brand--lhead * { font-family: "+(null==(__t=headingTypeface)?"":__t)+" !important; }\n  .brand--lbody, .brand--lbody * { font-family: "+(null==(__t=bodyTypeface)?"":__t)+" !important; }\n  .brand--ui, .brand--ui *       { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n\n  .brand--beforeHead:before { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n  .brand--afterHead:after   { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n\n  .brand--background             { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--background-transparent { background-color: "+(null==(__t=color+"1A")?"":__t)+" !important; }\n  .brand--background-all *       { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--border                 { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--color                  { color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--color-all *            { color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--shadow                 { box-shadow: 0 0 0 0.2rem "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--shadow-all *           { box-shadow: 0 0 0 0.2rem "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--fill                   { fill: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--stroke                 { stroke: "+(null==(__t=color)?"":__t)+" !important; }\n\n\n  .brand--beforeBackground:before { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--beforeBorder:before     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--beforeColor:before      { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n  .brand--afterBackground:after { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--afterBorder:after     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--afterColor:after      { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n  /* should be applied to containers where links\n     need to appear in brand color */\n  .brand--linkColor a {\n    color: "+(null==(__t=color)?"":__t)+" !important;\n    fill: "+(null==(__t=color)?"":__t)+" !important;\n  }\n\n  /* should be applied to containers where links\n     need to change to brand color on hover */\n  .brand--linkColorHover a:hover {\n    color: "+(null==(__t=color)?"":__t)+" !important;\n    fill: "+(null==(__t=color)?"":__t)+" !important;\n  }\n\n  /* should be applied to any single element that\n     needs to change color on hover */\n  .brand--hoverColor:hover { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n  .brand--linkColor a:hover,\n  .button.brand--background:hover { opacity: .65 !important; }\n\n  @media (min-width: 47.9375em) { /* 768px */\n    .brand--min768--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--min768--border     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--min768--color      { color: "+(null==(__t=color)?"":__t)+" !important; }\n  }\n\n  @media (max-width: 47.9375em) { /* 768px */\n    .brand--max768--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--max768--border     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--max768--color      { color: "+(null==(__t=color)?"":__t)+" !important; }\n  }\n</style>\n";return __p}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(1667),{authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/}),f=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){return e=this.props.env,new RegExp(u[e],"i").test(window.navigator.userAgent)&&!window.sessionStorage.getItem("riseUnsupportedBrowser")?this.renderUnsupported():this.props.children;var e}},{key:"renderUnsupported",value:function(){var t;return e.createElement("div",null,this.props.children,e.createElement("div",{className:"browser-support"},e.createElement("div",{className:"browser-support__inner"},e.createElement("p",{className:"browser-support__text browser-support__text--full"},"You’re using an unsupported browser. For better results, use a modern browser. "),e.createElement("p",{className:"browser-support__text browser-support__text--mobile"},"Unsupported browser"),e.createElement("a",{href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",className:"browser-support__link"},e.createElement("span",null,"Learn more"),e.createElement("i",{className:"icon icon-chevron-right"})),e.createElement("div",{className:"browser-support__dismiss",onClick:o()(t=this.handleDismiss).call(t,this)},e.createElement("span",{className:"browser-support__dismiss-icon"},"×")))))}},{key:"handleDismiss",value:function(){window.sessionStorage.setItem("riseUnsupportedBrowser","true"),this.forceUpdate()}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(1668),function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"renderCourseLoad",value:function(){return e.createElement("div",{className:"curtain__container"},e.createElement("div",{className:"curtain"},e.createElement("div",{className:"curtain__spinner"}),e.createElement("div",{className:"curtain__text"},"Your course is loading.")))}},{key:"renderReconnect",value:function(){return e.createElement("div",{className:"curtain__container"},e.createElement("div",{className:"curtain"},e.createElement("div",{className:"curtain__spinner curtain__spinner--reconnect"}),e.createElement("div",{className:"curtain__title"},"Your computer is offline."),e.createElement("div",{className:"curtain__description"},"Attempting to reconnect…")))}},{key:"render",value:function(){return"error"===this.props.status?this.renderReconnect():this.renderCourseLoad()}}]),n}(e.Component))}).call(this,n(1))},function(e,t,n){var r=n(1675);"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});var o={},i=void 0;function a(){return!!i&&!0!==i.headersSent}function s(e){o=e?r.parse(e):{}}var l={load:function(e,t){var n="undefined"==typeof document?o:r.parse(document.cookie),i=n&&n[e];if(void 0===t&&(t=!i||"{"!==i[0]&&"["!==i[0]),!t)try{i=JSON.parse(i)}catch(e){}return i},select:function(e){var t="undefined"==typeof document?o:r.parse(document.cookie);return t?e?Object.keys(t).reduce(function(n,r){if(!e.test(r))return n;var o={};return o[r]=t[r],Object.assign({},n,o)},{}):t:{}},save:function(e,t,n){o[e]=t,"object"==typeof t&&(o[e]=JSON.stringify(t)),"undefined"!=typeof document&&(document.cookie=r.serialize(e,o[e],n)),a()&&i.cookie&&i.cookie(e,t,n)},remove:function(e,t){delete o[e],t=void 0===t?{}:"string"==typeof t?{path:t}:Object.assign({},t),"undefined"!=typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=r.serialize(e,"",t)),a()&&i.clearCookie&&i.clearCookie(e,t)},setRawCookie:s,plugToRequest:function(e,t){return e.cookie?o=e.cookie:e.cookies?o=e.cookies:e.headers&&e.headers.cookie?s(e.headers.cookie):o={},i=t,function(){i=null,o={}}}};"undefined"!=typeof window&&(window.reactCookie=l),e.exports=l},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ye});var r=n(274),o=n.n(r),i=n(4),a=n.n(i),s=n(144),l=n.n(s),c=n(3),u=n.n(c),f=n(221),d=n.n(f),p=n(17),h=n.n(p),m=n(9),v=n(10),g=n(8),y=n(15),b=n(7),_=n(11),w=n(148),E=n.n(w),x=n(19),k=n.n(x),S=n(2),T=n.n(S),C=n(26),O=n.n(C),j=n(37),A=n.n(j),N=n(67),M=n.n(N),I=n(27),L=n.n(I),P=n(25),D=n.n(P),R=n(29),F=n.n(R),B=n(18),U=n.n(B),q=n(16),z=n.n(q),H=n(105),W=n.n(H),$=n(473),Y=n(474),K=n(1156),V=n(1247),G=n(1248),X=n(770),Z=n(314),Q=n(350),J=n(351),ee=n(0),te=n.n(ee),ne=n(1249),re=n(388),oe=n(82),ie=n(187),ae=n(65),se=n(22),le=n(39),ce=n(106),ue=n(308),fe=n(480),de=n(249),pe=n(321),he=n(616),me=E()(L.a),ve=W()(z()("type","section")),ge=function(e){return function(){if(e){var t=document.querySelector(".page-wrap");Object(se.c)(t)}else{document.getElementById("no-menu").focus()}}},ye=function(t){function n(e){var t,r,o,i,a,s,l,c,f,p;Object(m.a)(this,n),p=Object(v.a)(this,Object(g.a)(n).call(this,e));var b=e.course,_=e.lessons,w=e.match.params;return p.state={activeSections:h()(t=d()(_).call(_,function(e){return"section"===e.type})).call(t,function(e){return e.id}),isPreviewLesson:"preview-lesson"===w.mode,menuDisabled:!1,menuIsOpen:Object(de.c)(b),mobileMenuIsOpen:!1,selectedIndex:Object(pe.b)(w.id)(_),sidebarEnabled:Object(de.b)(b),xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null},p.forwardTransition=!0,p.closeMenu=u()(r=p.closeMenu).call(r,Object(y.a)(p)),p.handleLessonsListRowClick=u()(o=p.handleLessonsListRowClick).call(o,Object(y.a)(p)),p.handleMenuToggle=u()(i=p.handleMenuToggle).call(i,Object(y.a)(p)),p.handleNavigateDirection=u()(a=p.handleNavigateDirection).call(a,Object(y.a)(p)),p.handleNavigate=u()(s=p.handleNavigate).call(s,Object(y.a)(p)),p.handleStorylineFullscreen=u()(l=p.handleStorylineFullscreen).call(l,Object(y.a)(p)),p.renderLesson=u()(c=p.renderLesson).call(c,Object(y.a)(p)),p.renderSearchLesson=u()(f=p.renderSearchLesson).call(f,Object(y.a)(p)),p}return Object(_.a)(n,t),Object(b.a)(n,null,[{key:"propTypes",get:function(){return{children:te.a.node,course:te.a.object,courseProgress:te.a.object,labels:te.a.object,lessons:te.a.array,location:te.a.object.isRequired,match:te.a.object.isRequired}}},{key:"defaultProps",get:function(){return{course:{},lessons:[]}}}]),Object(b.a)(n,[{key:"componentDidMount",value:function(){this.swipeEvents=Object(re.a)(this.node,this,this.handleMenuToggle,Function.prototype),this.setFocusIfNecessary()}},{key:"componentWillReceiveProps",value:function(e){if(e.match.params.id!==this.props.match.params.id){var t=O()(Object(pe.a)(e.lessons,e.match.params.id),this.state.activeSections);this.setState({activeSections:t})}}},{key:"componentWillUnmount",value:function(){this.swipeEvents.removeListeners()}},{key:"setFocusIfNecessary",value:function(){var e=this.props.sessionPreferences.startedCourseWithLessonSelected,t=this.state.sidebarEnabled,n=ge(t);t?e?(n(),Object(le.a)(Object(ie.d)(!1))):this.sidebar.focus():n()}},{key:"handleLessonListRowComplete",value:function(e,t,n,r){var o=e.id,i=e.type,a=this.props,s=a.course,l=a.courseProgress,c=n.isRestricted;if(!Object(de.a)(s)&&!c&&"quiz"!==i)return r.preventDefault(),r.stopPropagation(),D()(["lessons",o,"isComplete"],l)?Object(le.a)(Object(ae.d)({id:o,type:i})):Object(le.a)(Object(ae.b)({id:o,type:i}))}},{key:"handleNavigateDirection",value:function(){return this.forwardTransition?"page-transition":"page-transition-back"}},{key:"handleMenuToggle",value:function(){var e=this,t=this.state,n=t.menuIsOpen,r=t.mobileMenuIsOpen;this.setState({menuIsOpen:!n,mobileMenuIsOpen:Object(fe.c)()&&!r,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null},function(){e.resetSwipeListeners()})}},{key:"handleNavigate",value:function(e){var t=this,n=this.props.lessons,r=this.state.selectedIndex,o=Object(pe.b)(e)(n);this.forwardTransition=r<o,this.setState({mobileMenuIsOpen:!1,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null,selectedIndex:o},function(){t.resetSwipeListeners()})}},{key:"handleStorylineFullscreen",value:function(e){this.setState({menuDisabled:e,menuIsOpen:!e})}},{key:"handleToggleSection",value:function(e){var t=this.state.activeSections;l()(t).call(t,e.id)?this.setState({activeSections:d()(t).call(t,function(t){return t!==e.id})}):this.setState({activeSections:a()(t).call(t,e.id)})}},{key:"resetSwipeListeners",value:function(){this.state.mobileMenuIsOpen?this.swipeEvents.addListeners():this.swipeEvents.removeListeners()}},{key:"allowTabNavigation",value:function(){var e=this.state,t=e.menuIsOpen,n=e.isPreviewLesson;return t&&!n}},{key:"allowTabNavigationForLesson",value:function(e){var t=this.state.activeSections;return this.allowTabNavigation()&&(!e||!e.sectionId||l()(t).call(t,e.sectionId))}},{key:"handleLessonsListRowClick",value:function(e){var t=e.lesson,n=e.id;"section"===t.type?this.handleToggleSection(t):this.handleNavigate(n)}},{key:"renderLesson",value:function(t,n,r,i){var a,s=this.props,c=s.course,f=s.courseProgress,d=s.labels,p=s.lessons,m=s.location,v=this.state,g=v.activeSections,y=v.sidebarEnabled,b=r.id,_=r.type,w=r.title,E=r.icon,x=Object(ce.b)({course:c,courseProgress:f,lesson:r,restrictingQuiz:n}),k=F()(0,["lessons",b,"percentComplete"],f);if(r.children){var S,T,C,O=l()(g).call(g,r.id),j=u()(S=this.renderLesson).call(S,this,t,n);return e.createElement("div",{key:"item-".concat(b)},e.createElement(X.a,{id:b,labels:d,lesson:r,isSectionActive:O,lessonIndex:o()(p).call(p,r),location:m,title:w,type:_,markComplete:c.markComplete,icon:E,onClick:this.handleLessonsListRowClick,onMobileActiveClick:this.closeMenu,percentComplete:k,restrictions:x,onComplete:u()(T=this.handleLessonListRowComplete).call(T,this,r,i,x),allowTabNavigation:t,focusLessonContent:ge(y)}),e.createElement(ne.a,{isActive:O,allowTabNavigation:t},h()(C=r.children).call(C,j)))}return e.createElement(X.a,{id:b,labels:d,lesson:r,lessonIndex:o()(p).call(p,r),location:m,title:w,type:_,markComplete:c.markComplete,icon:E,key:"item-".concat(b),onClick:this.handleLessonsListRowClick,onMobileActiveClick:this.closeMenu,percentComplete:k,restrictions:x,onComplete:u()(a=this.handleLessonListRowComplete).call(a,this,r,i,x),allowTabNavigation:this.allowTabNavigationForLesson(r),focusLessonContent:ge(y)})}},{key:"renderMenuButtons",value:function(){var t=this.props,n=t.course,r=t.labels,o=this.state,i=o.menuIsOpen,a=o.mobileMenuIsOpen,s=o.sidebarEnabled,l=n.lmsOptions,c=(void 0===l?{}:l).enableExitCourse,u=r.courseExit,f=r.hamburgerButtonLabel;return e.createElement("div",{className:"page__menu"},s&&e.createElement($.a,{ariaLabel:f,ariaPressed:i||a,icon:"menu",menu:!0,onClick:this.handleMenuToggle,onlyIcon:!0,tabIndex:se.a}),e.createElement(Y.a,{enableExitCourse:c,className:"courseExit courseExit--mobile",text:u}),e.createElement("div",{id:"no-menu",tabIndex:se.h}))}},{key:"renderSidebar",value:function(t){var n,r=this,o=t.allowTabNavigation,i=t.restrictingQuiz,a=this.props,s=a.course,l=a.courseProgress,c=a.labels,f=a.lessons,d=a.search,p=a.sessionPreferences,h=this.state.sidebarEnabled,m=c.courseSkipToLesson,v=c.lessonSidebarLandmark,g=u()(n=this.renderLesson).call(n,this,o,i);return e.createElement("section",{"aria-hidden":!o,"aria-label":v},e.createElement(he.b,null,e.createElement(Q.a,{allowSearch:!Object(de.a)(s)&&s.allowSearch,courseTitle:s.title,container:this.wrap,coverImage:s.coverImage,allowTabNavigation:o,focusLessonContent:ge(h),labels:c,lessons:f,sessionPreferences:p,ref:function(e){r.sidebar=e},skipLinkText:m},e.createElement(J.a,{lessonComplete:c.lessonComplete,value:l.percentComplete}),e.createElement(V.a,{allowTabNavigation:o,labels:c,search:d},d.active?this.renderSearchResults(o):me(g,Object(pe.c)(f))))))}},{key:"render",value:function(){var t=this,n=this.props,r=n.applySafariLandscapeHack,o=n.course,i=n.courseProgress,a=n.labels,s=n.location,l=n.match,c=n.previewType,u=n.safariLandscapeHackOffset,f=n.search,d=n.sessionPreferences,p=this.state,h=p.isPreviewLesson,m=p.menuIsOpen,v=p.mobileMenuIsOpen,g=p.sidebarEnabled,y=o.lmsOptions,b=(void 0===y?{}:y).enableExitCourse,_=a.courseExit,w=function(e){var t=e.course,n=e.search;return U()(k()("lessons",n.lessons),k()("lessonsOnly",ve(n.lessons)))(t)}({course:o,search:f}),E=this.allowTabNavigation(),x=this.renderMenuButtons(),S=T()("lesson",{"lesson--preview":h,"lesson--open":m&&!h,"lesson--open-mobile":v&&!h}),C=Object(ue.a)({course:o,courseProgress:i}),O=r?{paddingBottom:u}:{},j={course:f.active&&!M()(f.lessons)?w:o,focusLessonContent:ge(g),handleStorylineFullscreen:this.handleStorylineFullscreen,key:s.pathname,labels:a,lessonProgress:i.lessons[l.params.id],match:l,menuButtons:x,menuOpen:!h&&m,mobileMenuOpen:v,navigateDirection:this.handleNavigateDirection,onNavigate:this.handleNavigate,previewType:c,courseProgress:i,sessionPreferences:d,sidebarEnabled:g};return e.createElement(he.c,{className:S,contentRef:function(e){return t.node=e}},g&&this.renderSidebar({allowTabNavigation:E,restrictingQuiz:C}),e.createElement("div",{className:"lesson__wrap",ref:function(e){return t.wrap=e}}),e.createElement(he.a,{onMobileMenuActiveClick:this.closeMenu},e.createElement("div",{className:"page-view page-view--visible"},e.createElement(Y.a,{enableExitCourse:b,className:"courseExit courseExit--standard",text:_}),e.createElement(oe.TransitionGroup,{component:"div",className:"page-wrap",id:"page-wrap",style:O},e.createElement(Z.a,{key:s.pathname},e.createElement(K.a,j))))))}},{key:"closeMenu",value:function(){return this.state.mobileMenuIsOpen?this.handleMenuToggle:Function.prototype}},{key:"renderSearchLesson",value:function(t,n,r){var o=this.props.labels,i=this.state.sidebarEnabled,a=n.icon,s=n.id,l=n.results,c=n.title,u=n.type;return e.createElement(G.a,{allowTabNavigation:t,focusLessonContent:ge(i),icon:a,id:s,key:"item-".concat(s),labels:o,lessonIndex:r,onClick:this.handleNavigate,onMobileActiveClick:this.closeMenu,resultsCount:l,title:c,type:u})}},{key:"renderSearchResults",value:function(e){var t,n=this.props.search.activeLessons,r=u()(t=this.renderSearchLesson).call(t,this,e);return U()(A()(ce.f),me(r))(n)}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return V});var r=n(3),o=n.n(r),i=n(32),a=n(4),s=n.n(a),l=n(9),c=n(10),u=n(8),f=n(7),d=n(11),p=n(53),h=n.n(p),m=n(25),v=n.n(m),g=n(12),y=n.n(g),b=n(51),_=n.n(b),w=n(0),E=n.n(w),x=n(96),k=n.n(x),S=n(381),T=n.n(S),C=n(65),O=n(39),j=n(106),A=n(308),N=n(321),M=n(243),I=n(1158),L=n(1218),P=n(1220),D=n(1221),R=n(765),F=n(766),B=n(1223),U=n(317),q=n(1228),z=n(607),H=n(1241),W=n(1243),$=n(769),Y=n(1245),K=n(393),V=function(t){function n(e){var t;Object(l.a)(this,n),t=Object(c.a)(this,Object(u.a)(n).call(this,e));var r=e.course,o=e.lessonProgress,i=e.match.params,a=y()("index",o),s=v()(["lessons",a],r),f={course:r,lesson:s},d=Object(j.i)(f),p=Object(j.h)(f);return t.state={color:r.color,hasTransitioned:!1,lessonNumber:Object(j.g)(f),mode:i.mode||"",model:s,next:p,nextNumber:Object(j.g)({course:r,lesson:p}),previous:d,previousNumber:Object(j.g)({course:r,lesson:d}),scrollPosition:0,totalLessons:Object(j.j)(r)},t}return Object(d.a)(n,t),Object(f.a)(n,null,[{key:"propTypes",get:function(){return{focusLessonContent:E.a.func,navigateDirection:E.a.func,onNavigate:E.a.func,match:E.a.object.isRequired,previewType:E.a.string,sidebarEnabled:E.a.bool}}}]),Object(f.a)(n,[{key:"componentDidMount",value:function(){this.setState({hasTransitioned:!0}),Object(O.a)(Object(C.a)(this.props.match.params.id))}},{key:"componentWillReceiveProps",value:function(e){var t=e.course,n=e.lessonProgress,r=y()("index",n),o=v()(["lessons",r],t),i={course:t,lesson:o},a=Object(j.i)(i),s=Object(j.h)(i);o&&this.setState({model:o,next:s,previous:a})}},{key:"displayFlex",value:function(e){e.css({display:"flex"})}},{key:"componentWillEnter",value:function(e){h()("[data-lesson-header]").css({top:""}),this.transition("enter",e)}},{key:"componentDidEnter",value:function(){var e=h()("[data-page]:first-child [data-previous-lesson]"),t=document.getElementsByClassName("page-wrap");if(this.setState({hasTransitioned:!0}),e.length>0){var n=e.height();e.hide(),this.displayFlex(e),h()(t).scrollTop(n),h()("[data-lesson-header]").css({top:n})}}},{key:"componentWillExit",value:function(e){var t=document.getElementsByClassName("page-wrap"),n=t[0].scrollTop;h()(t).scrollTop(0),this.lastScrollPosition=n,this.transition("leave",e),h()(k.a.findDOMNode(this)).scrollTop(this.lastScrollPosition)}},{key:"transitionComplete",value:function(){var e=k.a.findDOMNode(this);if(!e)return!1;var t=e.classList;return t&&(t.contains("page-transition-complete")||t.contains("page-transition-back-complete")||1===t.length&&t.contains("page"))}},{key:"transition",value:function(e,t){var n,r=this.props,o=r.focusLessonContent,i=(0,r.navigateDirection)(),a=k.a.findDOMNode(this);if(a){var l=s()(n="page ".concat(i,"-")).call(n,e);a.className=l,$.a.addEventListeners(a,function n(){"enter"===e?(a.className="page ".concat(i,"-complete"),o()):a.className="page",$.a.removeEventListeners(a,n),t()})}else t()}},{key:"handleNextClick",value:function(e){var t=this.props.course.lessonsOnly;Object(N.b)(e)(t)>=t.length-1||this.props.onNavigate(this.state.next.id)}},{key:"handlePreviousClick",value:function(e){var t=this.props.course.lessonsOnly;Object(N.b)(e)(t)<=0||this.props.onNavigate(this.state.previous.id)}},{key:"renderLessonType",value:function(t){var n=t.type,r=t.props,o=t.course,a=t.model;switch(n){case"blocks":return e.createElement(I.a,Object(i.a)({},r,{animateBlockEntrance:o.animateBlockEntrance,isFirstLesson:Object(j.e)({course:o,lesson:a})}));case"map":return e.createElement(D.a,r);case"process":return e.createElement(B.a,r);case"timeline":return e.createElement(W.a,r);case"quiz":return e.createElement(q.a,r);case"sorting":return e.createElement(H.a,r);case"screencast":case"slidecast":case"video":return e.createElement(Y.a,r);case"embed":return e.createElement(L.a,r);default:return null}}},{key:"render",value:function(){var t,n,r,i=this,a=this.state,s=a.color,l=a.lessonNumber,c=a.mode,u=a.model,f=a.next,d=a.nextNumber,p=a.previous,h=a.previousNumber,m=a.scrollPosition,v=a.totalLessons,g=this.props,y=g.course,b=g.courseProgress,w=g.handleStorylineFullscreen,E=g.labels,x=g.lessonProgress,k=g.location,S=g.match,C=g.menuButtons,O=g.menuOpen,N=g.mobileMenuOpen,I=g.onNavigate,L=g.previewType,D=g.sessionPreferences.prefersKeyboardNavigation,B=g.sidebarEnabled,q=u.author,H=u.selectedAuthorId,W=u.type,$=y.authors,Y=y.showLessonCount,V=y.showNavigationButtons,G=E.courseHome,X=Object(z.a)({authors:$,author:q,selectedAuthorId:H}),Z=X.avatar,Q=X.authorName,J=u.items?u.items.length:0,ee=Object(A.a)({course:y,courseProgress:b}),te=Object(j.b)({course:y,courseProgress:b,lesson:f,restrictingQuiz:ee}),ne=p&&"preview-lesson"!==c?e.createElement(F.b,{isLesson:Object(j.d)(p),key:"prev-".concat(u.id),labels:E,onPreviousClick:o()(t=this.handlePreviousClick).call(t,this,u.id),previous:p.id,previousNumber:h,previousTitle:p?p.title:"",ref:function(e){return i.previousLesson=e}}):"preview-lesson"!==c?e.createElement(F.a,{courseHomeLabel:G}):null,re=f&&"preview-lesson"!==c?e.createElement(R.a,{id:u.id,isLesson:Object(j.d)(f),restrictions:te,key:"next-".concat(u.id),labels:E,next:f.id,nextNumber:d,nextTitle:f.title,onNextClick:o()(n=this.handleNextClick).call(n,this,u.id),ref:function(e){return i.nextLesson=e},type:W}):null,oe=f&&"preview-lesson"!==c?e.createElement(R.a,{id:u.id,isContinue:!0,isLesson:Object(j.d)(f),restrictions:te,key:"next-".concat(u.id),labels:E,next:f.id,nextNumber:d,onNextClick:o()(r=this.handleNextClick).call(r,this,u.id),ref:function(e){return i.nextLesson=e},type:W}):null,ie=e.createElement(P.a,{authorName:Q,avatar:Z,description:u.description,labels:E,length:u.length||"",lessonNumber:l,ref:"header",showLessonCount:Y,steps:J,title:u.title,totalLessons:v,type:u.type},"audio"===u.mediaType&&u.mediaSrc&&e.createElement(M.a,{id:"audio-".concat(u.cid),key:"audio-".concat(u.cid),labels:E,mediaSrc:u.mediaSrc}),e.createElement(U.a,{id:u.id,items:u.items,lessonProgress:x,menuOpen:O,mobileMenuOpen:N,scrollPosition:m,type:u.type})),ae={authorName:Q,avatar:Z,color:s,continueComponent:!V&&!B&&oe,courseTitle:y.title,data:u,handleStorylineFullscreen:w,handleNavigate:I,isLesson:Object(j.d)(u),labels:E,lessonHeader:ie,lessonNumber:l,lessonProgress:x,loadMedia:this.state.hasTransitioned,location:k,match:S,menuButtons:C,menuOpen:O,mobileMenuOpen:N,nextComponent:V&&re,nextLesson:_()(null,"id",f),prefersKeyboardNavigation:D,previewType:L,previousComponent:V&&ne,scrollPosition:m,showLessonCount:Y,totalLessons:v};return e.createElement(T.a,{title:Object(K.a)(y.title+" - "+u.title)},e.createElement("main",null,this.renderLessonType({type:W,props:ae,course:y,model:u})))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){e.exports=n(1693)},function(e,t,n){"use strict";(function(e){var r=n(12),o=n.n(r),i=n(1159),a=n(92);t.a=function(t){var n=t.animateBlockEntrance,r=t.color,s=t.courseTitle,l=t.data,c=l.id,u=l.type,f=l.items,d=t.handleNavigate,p=t.handleStorylineFullscreen,h=t.labels,m=t.lessonHeader,v=t.lessonProgress,g=t.loadMedia,y=t.match,b=t.menuButtons,_=t.menuOpen,w=t.nextComponent,E=t.nextLesson,x=t.previewType,k=t.previousComponent;return e.createElement(a.c,{type:u},k,e.createElement(a.b,{type:u},b,m,e.createElement(a.a,null,e.createElement(i.a,{animateBlockEntrance:n,blocks:f,color:r,courseTitle:s,handleNavigate:d,handleStorylineFullscreen:p,isFirstLesson:!0,labels:h,lessonId:c,lessonProgress:v,loadMedia:g,match:y,menuOpen:_,nextLesson:E,previewType:x,type:u}))),o()("isComplete",v)?w:null)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(144),o=n.n(r),i=n(161),a=n(156),s=n(33),l=n.n(s),c=n(17),u=n.n(c),f=n(4),d=n.n(f),p=n(3),h=n.n(p),m=n(9),v=n(7),g=n(10),y=n(8),b=n(11),_=(n(1707),n(2418)),w=n(5),E=n.n(w),x=n(149),k=n.n(x),S=n(35),T=n.n(S),C=n(37),O=n.n(C),j=n(36),A=n.n(j),N=n(97),M=n.n(N),I=n(80),L=n.n(I),P=n(138),D=n.n(P),R=n(43),F=n.n(R),B=n(14),U=n.n(B),q=n(54),z=n.n(q),H=n(29),W=n.n(H),$=n(18),Y=n.n($),K=n(12),V=n.n(K),G=n(16),X=n.n(G),Z=n(151),Q=n.n(Z),J=n(69),ee=n.n(J),te=n(39),ne=n(24),re=n(72),oe=n(280),ie=n(1160),ae=n(1216),se=n(605),le=n(22),ce=["timeline"],ue=function(t){function n(){return Object(m.a)(this,n),Object(g.a)(this,Object(y.a)(n).apply(this,arguments))}return Object(b.a)(n,t),Object(v.a)(n,[{key:"componentDidMount",value:function(){var e,t;this.handleKeyDown=h()(e=this.handleKeyDown).call(e,this),this.handleClick=h()(t=this.handleClick).call(t,this),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClick)}},{key:"componentDidUpdate",value:function(){this.scrollIfContinued()}},{key:"handleKeyDown",value:function(e){if(this.lastCompletedContinueIndex&&Object(ne.k)(e)){e.preventDefault();for(var t=!e.shiftKey,n=this.lastCompletedContinueIndex,r=document.querySelector(".page-wrap"),o=xe(t),i=Se(t);o(n,this.props.blocks.length);){n=ke(n,t);var a=W()(null,["blocks",n,"id"],this.props);if(i(r.querySelector('[data-block-id="'.concat(a,'"]'))))break}delete this.lastCompletedContinueIndex}}},{key:"handleClick",value:function(){delete this.lastCompletedContinueIndex}},{key:"render",value:function(){this.dividerNumber=0;var t=this.props.labels.lessonContentLandmark;return e.createElement("section",{"aria-label":t,className:"blocks-lesson"},this.renderBlocks())}},{key:"getBlockType",value:function(t){var n;"divider numbered divider"===d()(n="".concat(t.family," ")).call(n,t.variant)&&this.dividerNumber++;var r=this.props,o=r.animateBlockEntrance,i=r.color,a=r.courseTitle,s=r.handleNavigate,l=r.handleStorylineFullscreen,c=r.lessonId,u=r.loadMedia,f=r.labels,p=r.lessonProgress,h=r.match,m=r.menuOpen,v=r.previewType,g=U()(z()(["type"],t),{animateBlockEntrance:o,color:i,courseTitle:a,dividerNumber:this.dividerNumber,handleNavigate:s,handleStorylineFullscreen:l,isLearner:!0,lessonId:c,loadMedia:u,labels:f,match:h,menuOpen:m,progress:p,previewType:v});return e.createElement(ie.a,g)}},{key:"renderBlocks",value:function(){var e,t;return u()(e=function e(t,n,r){var o;if(t.length){var i=l()(t).call(t,-1)[0],a=W()(!1,["items",i.id,"isComplete"],r);if(!a)return t}var s=u()(o=Object(re.j)(de(r),l()(n).call(n,t.length))).call(o,fe);return s.length?e(d()(t).call(t,s),n,r):t}([],this.props.blocks,this.props.lessonProgress)).call(e,h()(t=this.buildBlock).call(t,this,this.props.lessonProgress))}},{key:"buildBlock",value:function(t,n,r,o){var s,c,u,f=function(e,t,n){var r=e.id,o=Object(a.a)(e,["id"]);if("continue"===o.family){var s=W()("",["items",0,"type"],o);return U()(Object(i.a)({blockId:r},o),{canContinue:_e({continueType:s,blocks:t,progress:n}),lessonProgress:n})}return Object(i.a)({blockId:r},o)}(n,l()(o).call(o,0,-1),t),d=this.getBlockType(f),p=f.blockId,m=f.family,v=f.variant,g=f.items,y="block-".concat(p),b=W()(!1,["items",p,"isComplete"],t);return pe({family:m,isComplete:b})?null:he({family:m,variant:v})?e.createElement("div",{key:y,"data-block-id":p},e.createElement(ae.a,{onStep:h()(c=this.handleStep).call(c,this,m,p,g),isFirstLesson:this.props.isFirstLesson,onViewed:h()(u=this.handleViewed).call(u,this,g,p)},d)):e.createElement("div",{key:y,"data-block-id":p},e.createElement(se.a,{key:y,onViewed:h()(s=this.handleViewed).call(s,this,g,p),isFirstLesson:this.props.isFirstLesson},d))}},{key:"handleStep",value:function(e,t,n,r){var o=this.props,i=o.blocks,a=o.lessonId,s=o.lessonProgress,l=o.nextLesson,c=o.history,u=A()(X()("id",r),n),f=W()(!1,["items",r,"isComplete"],s),d=Y()(D.a,X()("id",t))(i);"continue"!==e||f||(this.continueFromId=t),Object(te.a)(Object(oe.e)({id:t,lessonId:a,items:[u]})),"continue"===e&&d&&l&&c.push("/lessons/".concat(encodeURIComponent(l)))}},{key:"handleViewed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.props.lessonId;Object(te.a)(Object(oe.e)({id:t,lessonId:n,items:e}))}},{key:"scrollIfContinued",value:function(){if(this.continueFromId){var e=this.props.blocks,t=M()(X()("id",this.continueFromId),e),n=L()(t),r=W()(null,["blocks",n,"id"],this.props);if(r){var o=document.querySelector(".page-wrap"),i=o.querySelector('[data-block-id="'.concat(r,'"]')),a=i?i.getBoundingClientRect().top:0;Q.a.animateScroll.scrollTo(a+o.scrollTop,{smooth:!0,containerId:"page-wrap"}),this.lastCompletedContinueIndex=t}delete this.continueFromId}}}]),n}(e.Component);function fe(e,t,n){var r=l()(n).call(n,-1)[0]||{},o="continue"===r.family&&W()(!1,["items",0,"type"],r);return"continue"===e.variant||o&&("completeBlock"!==o||t===n.length-1||t===n.length-2)?U()(e,{requiresInteraction:!0}):e}t.a=Object(_.a)(ue);var de=function(e){return function(t){var n=t.family,r=t.items,o=W()({},0,r);return"continue"===n&&!W()(!1,["items",o.id,"isComplete"],e)}},pe=function(e){var t=e.family,n=e.isComplete;return"continue"===t&&n},he=function(e){var t=e.family,n=e.variant;return(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(n))&&!o()(ce).call(ce,n)},me=O()(X()("isComplete",!0)),ve=E()(ee.a,V()("items")),ge=E()(me,ve),ye=E()(F.a,ge),be=E()(V()("id"),D.a),_e=function(e){var t=e.continueType,n=e.blocks,r=e.progress;switch(t){case"completeAll":return T()(F()(n),ye(r));case"completeBlock":return W()(!1,["items",be(n),"isComplete"],r);default:return!0}},we=function(e,t){return e<t},Ee=function(e){return e>=0},xe=function(e){return e?we:Ee},ke=function(e,t){return t?L()(e):k()(e)},Se=function(e){return e?le.c:le.d}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return V});var r=n(3),o=n.n(r),i=n(32),a=n(161),s=n(4),l=n.n(s),c=n(9),u=n(7),f=n(10),d=n(8),p=n(11),h=n(37),m=n.n(h),v=n(43),g=n.n(v),y=n(171),b=n.n(y),_=n(54),w=n.n(_),E=n(18),x=n.n(E),k=n(16),S=n.n(k),T=n(254),C=n(403),O=n(356),j=n(613),A=n(485),N=n(486),M=n(614),I=n(749),L=n(1181),P=n(751),D=n(487),R=n(1183),F=n(753),B=n(404),U=n(1195),q=n(1201),z=n(1204),H=n(1207),W=n(1210),$=n(773),Y=m()(S()("variant","storyline")),K=x()(Y,g.a,b()(1)),V=function(t){function n(){return Object(c.a)(this,n),Object(f.a)(this,Object(d.a)(n).apply(this,arguments))}return Object(p.a)(n,t),Object(u.a)(n,[{key:"render",value:function(){var t,n,r=this.props,s=r.dividerNumber,c=r.family,u=r.handleStorylineFullscreen,f=r.menuOpen,d=r.variant,p=l()(t="".concat(c," ")).call(t,d),h=w()(["handleStorylineFullscreen","dividerNumber"],this.props),m=Object(a.a)({},h,{variant:d});switch(p){case"text paragraph":case"text table":return e.createElement(T.h,m);case"text heading paragraph":return e.createElement(T.d,m);case"text subheading paragraph":return e.createElement(T.e,m);case"text heading":return e.createElement(T.b,m);case"text subheading":return e.createElement(T.c,m);case"text two column":return e.createElement(T.g,m);case"text three column":return e.createElement(T.f,m);case"text code":return e.createElement(T.a,m);case"impact a":return e.createElement(C.e,m);case"impact b":return e.createElement(C.a,m);case"impact c":return e.createElement(C.b,m);case"impact d":return e.createElement(C.c,m);case"impact note":return e.createElement(C.d,m);case"quote a":return e.createElement(O.f,m);case"quote b":return e.createElement(O.a,m);case"quote c":return e.createElement(O.c,m);case"quote d":return e.createElement(O.e,m);case"quote background":return e.createElement(O.b,m);case"quote carousel":return e.createElement(O.d,m);case"list numbered":return e.createElement(j.c,m);case"list checkboxes":return e.createElement(j.b,m);case"list bulleted":return e.createElement(j.a,m);case"image hero":return e.createElement(A.d,m);case"image full":return e.createElement(A.a,m);case"image text aside":return e.createElement(A.c,m);case"image text overlay":return e.createElement(A.b,m);case"gallery centered":case"gallery full":return e.createElement(N.b,m);case"gallery two column":return e.createElement(N.a,m);case"gallery three column":return e.createElement(N.a,Object(i.a)({width:3},m));case"gallery four column":return e.createElement(N.a,Object(i.a)({width:4},m));case"divider divider":return e.createElement(M.c,m);case"divider numbered divider":return e.createElement(M.a,Object(i.a)({number:s},m));case"divider spacing divider":return e.createElement(M.b,m);case"360 storyline":return e.createElement(L.a,Object(i.a)({},m,{isLesson:!0,menuOpen:f,handleStorylineFullscreen:u,hasManySlBlocks:o()(n=this.hasManySlBlocks).call(n,this)}));case"interactive accordion":return e.createElement(I.b,m);case"interactive tabs":return e.createElement(I.a,m);case"interactive-fullscreen labeledgraphic":return e.createElement(U.a,m);case"interactive-fullscreen process":return e.createElement(q.a,m);case"interactive-fullscreen scenario":return e.createElement(z.a,m);case"interactive-fullscreen sorting":return e.createElement(H.a,m);case"interactive-fullscreen timeline":return e.createElement(W.a,m);case"buttons button":return e.createElement(P.b,m);case"buttons button stack":return e.createElement(P.a,m);case"flashcard flashcard":return e.createElement(F.a,m);case"flashcard stack":return e.createElement(F.a,Object(i.a)({stack:!0},m));case"knowledge knowledge":return e.createElement(B.a,m);case"continue continue":return e.createElement(R.a,m);case"multimedia audio":return e.createElement(D.b,m);case"multimedia video":return e.createElement(D.d,m);case"multimedia embed":return e.createElement(D.c,m);case"multimedia attachment":return e.createElement(D.a,m);case"multimedia code":return e.createElement(T.a,m);case"knowledgeCheck multiple choice":case"knowledgeCheck multiple response":case"knowledgeCheck fillin":case"knowledgeCheck matching":return e.createElement(B.a,m);case"chart bar":case"chart line":return e.createElement($.a,m);case"chart pie":return e.createElement($.b,m);default:return"Unknown type: ".concat(p)}}},{key:"hasManySlBlocks",value:function(){var e=this.props.items;return e&&K(e)}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){var r=n(876),o=n(685),i=n(909),a=n(1767),s=n(310),l=n(687),c=n(1779),u=n(727),f=n(1801),d=n(1805),p=n(244),h=n(1811),m=n(1812),v=n(1814),g=l(function(e,t){return e+"/"+t.id});e.exports=function(e){void 0===e&&(e={});var t=e.query;void 0===t&&(t=Function.prototype);var n=e.uri;void 0===n&&(n="");var y={session:s()},b=p.parse(n),_=p.format(d(["protocol","slashes","host"],b)),w={autoConnect:!1,path:b.pathname,query:f(y,t())},E=u(_,w),x=i(E.connect,E),k=l(function(e,t,n){return E.emit("action",r(e,t),n)}),S=l(function(e,t){return o(function(n,r){k(e,t,function(e){e.error?n(c({payload:v},e)):r(e)})})}),T=function(){return E.io.opts.query=f(y,t())};return E.connect=a(x,T),E.debounce=l(function(e,t){return h(e,g(t),S(t))}),E.send=S,Object.assign(E,y),E.throttle=l(function(e,t){return m(e,g(t),S(t))}),E.on("reconnect_attempt",T),E}},function(e,t,n){var r=n(1815)(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});e.exports=r},function(e,t,n){e.exports=n(1819)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(94)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(94);e.exports=r(function(e,t,n){if(!o(e)||!o(t))throw new TypeError("coalesce: Functions required for first two arguments");if(!o(n.coalesce))throw new TypeError("coalesce: Async, Either, Maybe or Result required for third argument");return n.coalesce(e,t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(538).chain,o=n(120),i=n(259),a=n(934),s=n(94);e.exports=o(function(e,t){if(!s(e))throw new TypeError("chain: Chain returning function required for first argument");if(!a(t)&&!i(t))throw new TypeError("chain: Chain of the same type required for second argument");return i(t)?r(e,t):t.chain(e)})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(435),o=n(436),i=n(934),a=n(94),s="pipeK: Chain returning functions of the same type required";e.exports=function(e){if(!arguments.length||!a(e))throw new TypeError(s);if(1===arguments.length)return e;var t=r(arguments).slice(1).reduce(function(e,t){if(!a(t))throw new TypeError(s);return function(n){if(!i(n))throw new TypeError(s);return e(n).chain(t)}},o);return function(){return t(e.apply(null,arguments))}}},function(e,t,n){e.exports=n(1856)},function(e,t,n){e.exports=n(1860)},function(e,t,n){var r=n(1864),o=n(697),i=n(1866),a=n(1867),s=n(1869)(function(e,t){return null==e?{}:"function"==typeof t[0]?a(e,o(t[0],t[1],3)):i(e,r(t))});e.exports=s},function(e,t,n){e.exports=n(1870)},function(e,t,n){e.exports=n(1892)},function(e,t,n){(function(t){var r;window,e.exports=(r=n(1),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}({0:function(e,t){e.exports=r},1:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(0),s=(o=a)&&o.__esModule?o:{default:o},l=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(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}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.tag=null,t.defaultTag="div",t.listeningEvents=[],t.$element=null,t.editor=null,t.config={immediateReactModelUpdate:!1,reactIgnoreAttrs:null},t.editorInitialized=!1,t.SPECIAL_TAGS=["img","button","input","a"],t.INNER_HTML_ATTR="innerHTML",t.hasSpecialTag=!1,t.oldModel=null,t}return function(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)}(n,s.default.Component),i(n,[{key:"componentWillMount",value:function(){this.tag=this.props.tag||this.defaultTag}},{key:"componentDidMount",value:function(){var e=this.refs.el.tagName.toLowerCase();-1!=this.SPECIAL_TAGS.indexOf(e)&&(this.tag=e,this.hasSpecialTag=!0),this.props.onManualControllerReady?this.generateManualController():this.createEditor()}},{key:"componentWillUnmount",value:function(){this.destroyEditor()}},{key:"componentDidUpdate",value:function(){JSON.stringify(this.oldModel)!=JSON.stringify(this.props.model)&&this.setContent()}},{key:"createEditor",value:function(){this.editorInitialized||(this.config=this.props.config||this.config,this.$element=t(this.refs.el),this.props.model&&(this.$element[0].innerHTML=this.props.model),this.setContent(!0),this.registerEvents(),this.$editor=this.$element.froalaEditor(this.config).data("froala.editor").$el,this.initListeners())}},{key:"setContent",value:function(e){(this.props.model||""==this.props.model)&&(this.oldModel=this.props.model,this.hasSpecialTag?this.setSpecialTagContent():this.setNormalTagContent(e))}},{key:"setNormalTagContent",value:function(e){var t=this,n=this;function r(){n.$element.froalaEditor("html.set",n.props.model||"",!0),n.editorInitialized&&(n.$element.froalaEditor("undo.reset"),n.$element.froalaEditor("undo.saveStep"))}e?this.config.initOnClick?(this.registerEvent(this.$element,"froalaEditor.initializationDelayed",function(){r()}),this.registerEvent(this.$element,"froalaEditor.initialized",function(){t.editorInitialized=!0})):this.registerEvent(this.$element,"froalaEditor.initialized",function(){t.editorInitialized=!0,r()}):r()}},{key:"setSpecialTagContent",value:function(){var e=this.props.model;if(e){for(var t in e)e.hasOwnProperty(t)&&t!=this.INNER_HTML_ATTR&&this.$element.attr(t,e[t]);e.hasOwnProperty(this.INNER_HTML_ATTR)&&(this.$element[0].innerHTML=e[this.INNER_HTML_ATTR])}}},{key:"destroyEditor",value:function(){this.$element&&(this.listeningEvents&&this.$element.off(this.listeningEvents.join(" ")),this.$editor.off("keyup"),this.$element.froalaEditor("destroy"),this.listeningEvents.length=0,this.$element=null,this.editorInitialized=!1)}},{key:"getEditor",value:function(){return this.$element?this.$element.froalaEditor.bind(this.$element):null}},{key:"generateManualController",value:function(){var e=this,t={initialize:function(){return e.createEditor.call(e)},destroy:function(){return e.destroyEditor.call(e)},getEditor:function(){return e.getEditor.call(e)}};this.props.onManualControllerReady(t)}},{key:"updateModel",value:function(){if(this.props.onModelChange){var e="";if(this.hasSpecialTag){for(var t=this.$element[0].attributes,n={},r=0;r<t.length;r++){var o=t[r].name;this.config.reactIgnoreAttrs&&-1!=this.config.reactIgnoreAttrs.indexOf(o)||(n[o]=t[r].value)}this.$element[0].innerHTML&&(n[this.INNER_HTML_ATTR]=this.$element[0].innerHTML),e=n}else{var i=this.$element.froalaEditor("html.get");"string"==typeof i&&(e=i)}this.oldModel=e,this.props.onModelChange(e)}}},{key:"initListeners",value:function(){var e=this;this.registerEvent(this.$element,"froalaEditor.contentChanged",function(){e.updateModel()}),this.config.immediateReactModelUpdate&&this.registerEvent(this.$editor,"keyup",function(){e.updateModel()})}},{key:"registerEvent",value:function(e,t,n){e&&t&&n&&(this.listeningEvents.push(t),e.on(t,n))}},{key:"registerEvents",value:function(){var e=this.config.events;if(e)for(var t in e)e.hasOwnProperty(t)&&this.registerEvent(this.$element,t,e[t])}}]),n}();n.default=l},12:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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,i.default),r(t,[{key:"render",value:function(){return o.default.createElement(this.tag,{ref:"el"},this.props.children)}}]),t}();t.default=s},13:function(e,t,n){e.exports=n(12)}}))}).call(this,n(53))},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(25),o=n.n(r),i=n(142),a=n.n(i),s=a()(function(e){return e.preventDefault()});a()(function(e){return e.stopPropagation()}),o()(["target","value"])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=i,n=a,r=!0,s=c=void 0}};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(1),c=i(l),u=i(n(883)),f=i(n(1899)),d=function(e){function t(e){a(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.serverSide="undefined"==typeof window,this.listener=(0,u.default)(this.handleScroll.bind(this),50),this.visibility={onScreen:!1,inViewport:!1},this.state={classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}}return s(t,l.Component),r(t,[{key:"getElementTop",value:function(e){for(var t=0;e&&void 0!==e.offsetTop&&void 0!==e.clientTop;)t+=e.offsetTop+e.clientTop,e=e.offsetParent;return t}},{key:"getScrollPos",value:function(){return void 0!==this.scrollableParent.pageYOffset?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}},{key:"getScrollableParentHeight",value:function(){return void 0!==this.scrollableParent.innerHeight?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}},{key:"getViewportTop",value:function(){return this.getScrollPos()+this.props.offset}},{key:"getViewportBottom",value:function(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}},{key:"isInViewport",value:function(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}},{key:"isAboveViewport",value:function(e){return e<this.getViewportTop()}},{key:"isBelowViewport",value:function(e){return e>this.getViewportBottom()}},{key:"inViewport",value:function(e,t){return this.isInViewport(e)||this.isInViewport(t)||this.isAboveViewport(e)&&this.isBelowViewport(t)}},{key:"onScreen",value:function(e,t){return!this.isAboveScreen(t)&&!this.isBelowScreen(e)}},{key:"isAboveScreen",value:function(e){return e<this.getScrollPos()}},{key:"isBelowScreen",value:function(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}},{key:"getVisibility",value:function(){var e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),t=e+this.node.clientHeight;return{inViewport:this.inViewport(e,t),aboveViewport:this.isAboveViewport(e),belowViewport:this.isBelowViewport(e),onScreen:this.onScreen(e,t)}}},{key:"componentDidMount",value:function(){if(!this.serverSide){var e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener):console.warn("Cannot find element by locator: "+this.props.scrollableParentSelector),this.handleScroll()}}},{key:"componentWillUnmount",value:function(){this.cleanup()}},{key:"cleanup",value:function(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),window&&window.removeEventListener&&window.removeEventListener("scroll",this.listener)}},{key:"visibilityHasChanged",value:function(e,t){return e.inViewport!==t.inViewport||e.onScreen!==t.onScreen}},{key:"animate",value:function(e,t){var n=this;this.delayedAnimationTimeout=setTimeout(function(){n.animating=!0,n.setState({classes:"animated "+e,style:{animationDuration:n.props.duration+"s"}}),n.callbackTimeout=setTimeout(t,1e3*n.props.duration)},this.props.delay)}},{key:"animateIn",value:function(e){var t=this;this.animate(this.props.animateIn,function(){t.props.animateOnce||(t.setState({style:{animationDuration:t.props.duration+"s",opacity:1}}),t.animating=!1);var n=t.getVisibility();e&&e(n)})}},{key:"animateOut",value:function(e){var t=this;this.animate(this.props.animateOut,function(){t.setState({classes:"animated",style:{animationDuration:t.props.duration+"s",opacity:0}});var n=t.getVisibility();n.inViewport&&t.props.animateIn?t.animateIn(t.props.afterAnimatedIn):t.animating=!1,e&&e(n)})}},{key:"shouldNotAnimate",value:function(e){return this.props.animateIn&&this.props.animateOut?!e.onScreen:this.props.animateIn?!e.onScreen&&!e.aboveViewport:!e.onScreen&&!e.belowViewport}},{key:"shouldAnimateIn",value:function(e){return!!this.props.animateIn&&(this.props.animateOut?e.inViewport:e.inViewport||e.aboveViewport)}},{key:"shouldAnimateOut",value:function(e){return!(!this.props.animateOut||!e.onScreen||1!==this.state.style.opacity)&&(this.props.animateIn?e.inViewport:e.inViewport||e.belowViewport)}},{key:"handleScroll",value:function(){if(!this.animating){if(!this.node)return this.cleanup(),!0;var e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),this.shouldNotAnimate(e)?this.setState({classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}):this.shouldAnimateIn(e)?this.animateIn(this.props.afterAnimatedIn):this.shouldAnimateOut(e)&&this.animateOut(this.props.afterAnimatedOut),this.visibility=e)}}},{key:"renderChild",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=this.props,o=r.initiallyVisible,i=r.siblingDelay*n,a=Object.assign({},this.state.style,this.props.style,{animationDelay:i+"s"});return c.default.createElement(p,{classes:t,initiallyVisible:o,style:a,key:n},e)}},{key:"renderChildren",value:function(e){var t=this,n=this.props,r=n.children;return n.siblingDelay&&Array.isArray(r)?[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(r.length).keys())).map(function(n){return t.renderChild(r[n],e,n)}):this.renderChild(r,e)}},{key:"render",value:function(){var e=this,t=this.props.className?this.props.className+" "+this.state.classes:this.state.classes;return c.default.createElement("div",{ref:function(t){e.node=t}},this.renderChildren(t))}}]),t}();t.default=d,d.defaultProps={offset:150,duration:1,initiallyVisible:!1,delay:0,animateOnce:!1,siblingDelay:0},d.propTypes={animateIn:f.default.string,animateOut:f.default.string,offset:f.default.number,duration:f.default.number,delay:f.default.number,initiallyVisible:f.default.bool,animateOnce:f.default.bool,style:f.default.object,scrollableParentSelector:f.default.string,className:f.default.string,siblingDelay:f.default.number};var p=function(e){function t(e){a(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={hasAnimated:!1}}return s(t,l.Component),r(t,[{key:"componentDidMount",value:function(){var e=this;this.animationEndListener=this.ref.addEventListener("animationend",function(){e.ref&&e.setState({hasAnimated:!0})})}},{key:"componentWillUnmount",value:function(){this.ref&&this.ref.removeEventListener("animationend",this.animationEndListener)}},{key:"componentWillReceiveProps",value:function(e){0===e.style.opacity&&this.setState({hasAnimated:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.initiallyVisible,r=t.children,o=t.classes,i=this.state.hasAnimated,a=this.props.style,s=void 0===a.animationDelay||n?a.opacity:0,l=Object.assign({},a,{opacity:i?1:s});return c.default.createElement("div",{className:o,style:l,ref:function(t){return e.ref=t}},r)}}]),t}();p.propTypes={classes:f.default.string,style:f.default.object},e.exports=t.default},function(e,t,n){e.exports=n(1923)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1930),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t){e.exports=playerjs},function(e,t,n){"use strict";(function(t){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=n(1).Component,i=n(1941).PropTypes,a=n(738),s=function(e){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(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}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.state={},e.setDimensions=e.setDimensions.bind(e),e}return function(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)}(n,o),r(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.setDimensions);var e=this.player=a(this.video,this.props.options);e.on("ended",function(){e.posterImage.show(),e.bigPlayButton.show(),e.currentTime(0)}),this.setDimensions()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.setDimensions)}},{key:"getBoundingRect",value:function(){return this.container.parentNode.getBoundingClientRect()}},{key:"getParentPadding",value:function(){var e=window.getComputedStyle(this.container.parentNode,null),t=function(e,t){return parseInt(e.getPropertyValue(t),10)||0};return{top:t(e,"padding-top"),bottom:t(e,"padding-bottom")}}},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"videoContainer",style:this.state.dimensions,ref:function(t){e.container=t}},t.createElement("video",{className:"video-js vjs-default-skin",ref:function(t){e.video=t},poster:this.props.poster},this.props.children))}},{key:"setDimensions",value:function(){var e=this.getBoundingRect(),t=e.width,n=e.height,r=this.getParentPadding();n=n-r.top-r.bottom;var o=this.props.aspectRatio,i=void 0,a=void 0;t*o<=n||this.props.fullWidthAt&&window.innerWidth<this.props.fullWidthAt?(i=t,a=t*o):(a=n,i=n*(1/o)),this.setState({dimensions:{width:i,height:a}})}},{key:"snapshot",value:function(){var e=document.createElement("canvas"),t=e.getContext("2d"),n=this.player.videoHeight(),r=this.player.videoWidth();return e.width=r,e.height=n,t.drawImage(this.video,0,0,r,n),e.toDataURL("image/png")}}]),n}();s.defaultProps={aspectRatio:9/16,fullWidthAt:0,options:{preload:"auto",controls:!0,controlBar:{remainingTimeDisplay:!0,volumeMenuButton:{inline:!1}}}},s.propTypes={aspectRatio:i.number,fullWidthAt:i.number,options:i.shape({bigPlayButton:i.bool,preload:i.string,controls:i.bool,controlBar:i.object}),poster:i.string},e.exports=s}).call(this,n(1))},function(e,t,n){
/*!
 * sweet-scroll
 * Modern and the sweet smooth scroll library.
 * @author tsuyoshiwada
 * @license MIT
 * @version 2.2.1
 */
e.exports=function(){"use strict";var e=Math.cos,t=Math.sin,n=Math.pow,r=Math.abs,o=Math.sqrt,i=Math.asin,a=Math.PI,s=Math.max,l=Math.min,c=Math.round,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(2,53)-1,h={};function m(e){return null==e?"":"object"===(void 0===e?"undefined":u(e))||"function"==typeof e?h[Object.prototype.toString.call(e)]||"object":void 0===e?"undefined":u(e)}function v(e){return"string"===m(e)}function g(e){return"function"===m(e)}function y(e){return Array.isArray(e)}function b(e){var t=null==e?null:e.length;return function(e){return"number"===m(e)}(t)&&t>=0&&t<=p}function _(e,t){return e&&e.hasOwnProperty(t)}function w(e,t,n){if(null==e)return e;var r=n||e;if(function(e){return!y(e)&&"object"===m(e)}(e)){for(var o in e)if(_(e,o)&&!1===t.call(r,e[o],o))break}else if(b(e))for(var i=0;i<e.length&&!1!==t.call(r,e[i],i);i++);return e}function E(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return w(n,function(t){w(t,function(t,n){e[n]=t})}),e}["Boolean","Number","String","Function","Array","Object"].forEach(function(e){h["[object "+e+"]"]=e.toLowerCase()});var x=!("undefined"==typeof window||!window.document||!window.document.createElement),k=function(){if(!x)return!1;var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history&&"file:"!==window.location.protocol}(),S=x?window:null,T=x?document:null;function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return(null==t?T:t).querySelector(e)}function O(e,t){for(var n=(e.document||e.ownerDocument).querySelectorAll(t),r=n.length;--r>=0&&n.item(r)!==e;);return r>-1}var j={y:"scrollTop",x:"scrollLeft"},A={y:"pageYOffset",x:"pageXOffset"};function N(e){return e===T.documentElement||e===T.body}function M(e){for(var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=j[r],a=e instanceof Element?[e]:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return(null==t?T:t).querySelectorAll(e)}(e),s=[],l=T.createElement("div"),c=0;c<a.length;c++){var u=a[c];if(u[i]>0?s.push(u):(l.style.width=u.clientWidth+1+"px",l.style.height=u.clientHeight+1+"px",u.appendChild(l),u[i]=1.5/(t=void 0,n=void 0,t=S.outerWidth,n=S.innerWidth,t?t/n:1),u[i]>0&&s.push(u),u[i]=0,u.removeChild(l)),!o&&s.length>0)break}return s}function I(e,t){var n=M(e,t,!1);return n.length>=1?n[0]:null}function L(e){return null!=e&&e===e.window?e:9===e.nodeType&&e.defaultView}function P(e){return s(e.scrollHeight,e.clientHeight,e.offsetHeight)}function D(e){return s(e.scrollWidth,e.clientWidth,e.offsetWidth)}function R(e){return{width:D(e),height:P(e)}}function F(e){return N(e)?{viewport:{width:l(S.innerWidth,T.documentElement.clientWidth),height:S.innerHeight},size:{width:s(D(T.body),D(T.documentElement)),height:s(P(T.body),P(T.documentElement))}}:{viewport:{width:e.clientWidth,height:e.clientHeight},size:R(e)}}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=L(e);return n?n[A[t]]:e[j[t]]}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"y",r=L(e),o="y"===n;r?r.scrollTo(o?r[A.x]:t,o?t:r[A.y]):e[j[n]]=t}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||e&&!e.getClientRects().length)return{top:0,left:0};var n=e.getBoundingClientRect();if(n.width||n.height){var r={},o=null;if(null==t||N(t))o=e.ownerDocument.documentElement,r.top=S.pageYOffset,r.left=S.pageXOffset;else{var i=(o=t).getBoundingClientRect();r.top=-1*i.top+o.scrollTop,r.left=-1*i.left+o.scrollLeft}return{top:n.top+r.top-o.clientTop,left:n.left+r.left-o.clientLeft}}return n}function z(e,t,n){var r=t.split(",");r.forEach(function(t){e.addEventListener(t.trim(),n,!1)})}function H(e,t,n){var r=t.split(",");r.forEach(function(t){e.removeEventListener(t.trim(),n,!1)})}function W(e,t,n,r,o){return(t/=o)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n}function $(e,t,n,r,o){return r-W(0,o-t,0,r,o)+n}var Y=Object.freeze({linear:function(e){return e},InQuad:function(e,t,n,r,o){return r*(t/=o)*t+n},OutQuad:function(e,t,n,r,o){return-r*(t/=o)*(t-2)+n},InOutQuad:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},InCubic:function(e,t,n,r,o){return r*(t/=o)*t*t+n},OutCubic:function(e,t,n,r,o){return r*((t=t/o-1)*t*t+1)+n},InOutCubic:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},InQuart:function(e,t,n,r,o){return r*(t/=o)*t*t*t+n},OutQuart:function(e,t,n,r,o){return-r*((t=t/o-1)*t*t*t-1)+n},InOutQuart:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},InQuint:function(e,t,n,r,o){return r*(t/=o)*t*t*t*t+n},OutQuint:function(e,t,n,r,o){return r*((t=t/o-1)*t*t*t*t+1)+n},InOutQuint:function(e,t,n,r,o){return(t/=o/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},InSine:function(t,n,r,o,i){return-o*e(n/i*(a/2))+o+r},OutSine:function(e,n,r,o,i){return o*t(n/i*(a/2))+r},InOutSine:function(t,n,r,o,i){return-o/2*(e(a*n/i)-1)+r},InExpo:function(e,t,r,o,i){return 0===t?r:o*n(2,10*(t/i-1))+r},OutExpo:function(e,t,r,o,i){return t===i?r+o:o*(1-n(2,-10*t/i))+r},InOutExpo:function(e,t,r,o,i){return 0===t?r:t===i?r+o:(t/=i/2)<1?o/2*n(2,10*(t-1))+r:o/2*(2-n(2,-10*--t))+r},InCirc:function(e,t,n,r,i){return-r*(o(1-(t/=i)*t)-1)+n},OutCirc:function(e,t,n,r,i){return r*o(1-(t=t/i-1)*t)+n},InOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(o(1-t*t)-1)+n:r/2*(o(1-(t-=2)*t)+1)+n},InElastic:function(e,o,s,l,c){var u=1.70158,f=0,d=l;return 0===o?s:1==(o/=c)?s+l:(f||(f=.3*c),d<r(l)?(d=l,u=f/4):u=f/(2*a)*i(l/d),-d*n(2,10*(o-=1))*t(2*a*(o*c-u)/f)+s)},OutElastic:function(e,o,s,l,c){var u=1.70158,f=0,d=l;return 0===o?s:1==(o/=c)?s+l:(f||(f=.3*c),d<r(l)?(d=l,u=f/4):u=f/(2*a)*i(l/d),d*n(2,-10*o)*t(2*a*(o*c-u)/f)+l+s)},InOutElastic:function(e,o,s,l,c){var u=1.70158,f=0,d=l;return 0===o?s:2==(o/=c/2)?s+l:(f||(f=c*(.3*1.5)),d<r(l)?(d=l,u=f/4):u=f/(2*a)*i(l/d),o<1?d*n(2,10*(o-=1))*t(2*a*(o*c-u)/f)*-.5+s:d*n(2,-10*(o-=1))*t(2*a*(o*c-u)/f)*.5+l+s)},InBack:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return r*(t/=o)*t*((i+1)*t-i)+n},OutBack:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return r*((t=t/o-1)*t*((i+1)*t+i)+1)+n},InOutBack:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return(t/=o/2)<1?r/2*(t*t*((1+(i*=1.525))*t-i))+n:r/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+n},OutBounce:W,InBounce:$,InOutBounce:function(e,t,n,r,o){return t<o/2?.5*$(0,2*t,0,r,o)+n:.5*W(0,2*t-o,0,r,o)+.5*r+n}}),K=["ms","moz","webkit"],V=0,G=x?S.requestAnimationFrame:null,X=x?S.cancelAnimationFrame:null;if(x){for(var Z=0;Z<K.length&&!G;++Z)G=S[K[Z]+"RequestAnimationFrame"],X=S[K[Z]+"CancelAnimationFrame"]||S[K[Z]+"CancelRequestAnimationFrame"];G||(G=function(e){var t=Date.now(),n=s(0,16-(t-V)),r=setTimeout(function(){e(t+n)},n);return V=t+n,r}),X||(X=function(e){clearTimeout(e)})}var Q=function(){function e(t){f(this,e),this.el=t,this.props={},this.options={},this.progress=!1,this.easing=null,this.startTime=null,this.rafId=null}return d(e,[{key:"run",value:function(e,t,n){var r=this;this.progress||(this.props={x:e,y:t},this.options=n,this.easing=g(n.easing)?n.easing:Y[n.easing.replace("ease","")],this.progress=!0,setTimeout(function(){r.startProps=r.calcStartProps(e,t),r.rafId=G(function(e){return r._loop(e)})},this.options.delay))}},{key:"stop",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.options.complete;this.startTime=null,this.progress=!1,X(this.rafId),e&&(U(this.el,this.props.x,"x"),U(this.el,this.props.y,"y")),g(t)&&(t.call(this),this.options.complete=null)}},{key:"_loop",value:function(e){var t=this;if(this.startTime||(this.startTime=e),this.progress){var n=this.el,r=this.props,o=this.options,i=this.startTime,a=this.startProps,u=this.easing,f=o.duration,d=o.step,p={},h=e-i,m=l(1,s(h/f,0));w(r,function(e,t){var n=a[t],r=e-n;if(0===r)return!0;var o=u(m,f*m,0,1,f);p[t]=c(n+r*o)}),w(p,function(e,t){U(n,e,t)}),h<=f?(d.call(this,m,p),this.rafId=G(function(e){return t._loop(e)})):this.stop(!0)}else this.stop(!1)}},{key:"calcStartProps",value:function(e,t){var n={x:B(this.el,"x"),y:B(this.el,"y")};if(this.options.quickMode){var o=F(this.el),i=o.viewport,a=i.width,s=i.height;r(n.y-t)>s&&(n.y=n.y>t?t+s:t-s),r(n.x-e)>a&&(n.x=n.x>e?e+a:e-a)}return n}}]),e}(),J=(x?"onwheel"in T?"wheel":"onmousewheel"in T?"mousewheel":"DOMMouseScroll":"wheel")+", touchstart, touchmove",ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body, html";f(this,e),this.isSSR=!x,this.options=E({},e.defaults,t),this.container=this.getContainer(n),null==this.container?(this.header=null,this.tween=null,this.isSSR||(/comp|inter|loaded/.test(T.readyState)?this.log('Not found scrollable container. => "'+n+'"'):this.log("Should be initialize later than DOMContentLoaded."))):(this.header=C(this.options.header),this.tween=new Q(this.container),this._trigger=null,this._shouldCallCancelScroll=!1,this.bindContainerClick())}return d(e,[{key:"log",value:function(e){this.options.outputLog&&function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}("[SweetScroll] "+e)}},{key:"getScrollOffset",value:function(e,t){var n=this.container,r=this.header,o=this.parseCoodinate(t.offset),i=this.parseCoodinate(e);if(!i&&v(e))if("#"===e)i={top:0,left:0};else{var a=C(e),l=q(a,n);if(!l)return;i=l}return i?(o&&(i.top+=o.top,i.left+=o.left),r&&(i.top=s(0,i.top-R(r).height)),i):null}},{key:"normalizeScrollOffset",value:function(e,t){var n=this.container,r=E({},e),o=F(n),i=o.viewport,a=o.size;return r.top=t.verticalScroll?s(0,l(a.height-i.height,r.top)):B(n,"y"),r.left=t.horizontalScroll?s(0,l(a.width-i.width,r.left)):B(n,"x"),r}},{key:"to",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isSSR){var r=this.container,o=E({},this.options,n),i=this._trigger,a=v(e)&&/^#/.test(e)?e:null;if(this._options=o,this._trigger=null,this._shouldCallCancelScroll=!1,this.stop(),!r)return this.log("Not found container element.");var s=this.getScrollOffset(e,o);if(!s)return this.log("Invalid parameter of distance. => "+e);!1!==this.hook(o,"beforeScroll",s,i)?(s=this.normalizeScrollOffset(s,o),this.tween.run(s.left,s.top,{duration:o.duration,delay:o.delay,easing:o.easing,quickMode:o.quickMode,complete:function(){null!=a&&a!==S.location.hash&&t.updateURLHash(a,o.updateURL),t.unbindContainerStop(),t._options=null,t._shouldCallCancelScroll?t.hook(o,"cancelScroll"):t.hook(o,"afterScroll",s,i),t.hook(o,"completeScroll",t._shouldCallCancelScroll)},step:function(e,n){t.hook(o,"stepScroll",e,n)}}),this.bindContainerStop()):this._options=null}}},{key:"toTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.to(e,E({},t,{verticalScroll:!0,horizontalScroll:!1}))}},{key:"toLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.to(e,E({},t,{verticalScroll:!1,horizontalScroll:!0}))}},{key:"toElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isSSR)if(e instanceof Element){var n=q(e,this.container);this.to(n,E({},t))}else this.log("Invalid parameter.")}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isSSR||(this.container?(this._stopScrollListener&&(this._shouldCallCancelScroll=!0),this.tween.stop(e)):this.log("Not found scrollable container."))}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.container?(this.stop(),this.unbindContainerClick(),this.unbindContainerStop(),this.options=E({},this.options,e),this.header=C(this.options.header),this.bindContainerClick()):this.isSSR||this.log("Not found scrollable container.")}},{key:"destroy",value:function(){this.container?(this.stop(),this.unbindContainerClick(),this.unbindContainerStop(),this.container=null,this.header=null,this.tween=null):this.isSSR||this.log("Not found scrollable container.")}},{key:"beforeScroll",value:function(e,t){return!0}},{key:"cancelScroll",value:function(){}},{key:"afterScroll",value:function(e,t){}},{key:"completeScroll",value:function(e){}},{key:"stepScroll",value:function(e,t){}},{key:"parseCoodinate",value:function(e){var t,n=this._options?this._options.verticalScroll:this.options.verticalScroll,r={top:0,left:0};if(_(e,"top")||_(e,"left"))r=E(r,e);else if(y(e))2===e.length?(r.top=e[0],r.left=e[1]):(r.top=n?e[0]:0,r.left=n?0:e[0]);else if(!y(t=e)&&t-parseFloat(t)+1>=0)r.top=n?e:0,r.left=n?0:e;else{if(!v(e))return null;var o=e.replace(/\s*/g,"")||"";if(/^\d+,\d+$/.test(o))o=o.split(","),r.top=o[0],r.left=o[1];else if(/^(top|left):\d+,?(?:(top|left):\d+)?$/.test(o)){var i=o.match(/top:(\d+)/),a=o.match(/left:(\d+)/);r.top=i?i[1]:0,r.left=a?a[1]:0}else{if(!this.container||!/^(\+|-)=(\d+)$/.test(o))return null;var s=B(this.container,n?"y":"x"),l=o.match(/^(\+|-)=(\d+)$/),c=l[1],u=parseInt(l[2],10);"+"===c?(r.top=n?s+u:0,r.left=n?0:s+u):(r.top=n?s-u:0,r.left=n?0:s-u)}}return r.top=parseInt(r.top,10),r.left=parseInt(r.left,10),r}},{key:"updateURLHash",value:function(e,t){!this.isSSR&&k&&t&&S.history["replace"===t?"replaceState":"pushState"](null,null,e)}},{key:"getContainer",value:function(e){var t=this.options,n=t.verticalScroll,r=t.horizontalScroll,o=null;return this.isSSR?o:(n&&(o=I(e,"y")),!o&&r&&(o=I(e,"x")),o)}},{key:"bindContainerClick",value:function(){var e=this.container;e&&(this._containerClickListener=this.handleContainerClick.bind(this),z(e,"click",this._containerClickListener))}},{key:"unbindContainerClick",value:function(){var e=this.container;e&&this._containerClickListener&&(H(e,"click",this._containerClickListener),this._containerClickListener=null)}},{key:"bindContainerStop",value:function(){var e=this.container;e&&(this._stopScrollListener=this.handleStopScroll.bind(this),z(e,J,this._stopScrollListener))}},{key:"unbindContainerStop",value:function(){var e=this.container;e&&this._stopScrollListener&&(H(e,J,this._stopScrollListener),this._stopScrollListener=null)}},{key:"hook",value:function(e,t){for(var n=e[t],r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(g(n)){var a=n.apply(this,o);if(void 0===a)return a}return this[t].apply(this,o)}},{key:"handleStopScroll",value:function(e){var t=this._options?this._options.stopScroll:this.options.stopScroll;t?this.stop():e.preventDefault()}},{key:"handleContainerClick",value:function(e){for(var t=this.options,n=e.target;n&&n!==T;n=n.parentNode)if(O(n,t.trigger)){var r=n.getAttribute("data-scroll"),o=this.parseDataOptions(n),i=r||n.getAttribute("href");(t=E({},t,o)).preventDefault&&e.preventDefault(),t.stopPropagation&&e.stopPropagation(),this._trigger=n,t.horizontalScroll&&t.verticalScroll?this.to(i,t):t.verticalScroll?this.toTop(i,t):t.horizontalScroll&&this.toLeft(i,t)}}},{key:"parseDataOptions",value:function(e){var t=e.getAttribute("data-scroll-options");return t?JSON.parse(t):{}}}]),e}();return ee.defaults={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,delay:0,easing:"easeOutQuint",offset:0,verticalScroll:!0,horizontalScroll:!1,stopScroll:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,outputLog:!1,quickMode:!1,beforeScroll:null,afterScroll:null,cancelScroll:null,completeScroll:null,stepScroll:null},ee}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A});var r=n(4),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=(n(2037),n(76)),h=n.n(p),m=n(143),v=n.n(m),g=n(5),y=n.n(g),b=n(2),_=n.n(b),w=n(473),E=n(55),x=n(56),k=n(60),S=n(64),T=n(477),C=n(84),O=n(81),j=n(209),A=function(t){function n(){var e,t,r,o,i,l,d;return Object(s.a)(this,n),(d=Object(c.a)(this,Object(u.a)(n).call(this))).state={fullscreen:!1,reopenMenu:!1},d.iframe=null,d.canFullscreen=a()(e=d.canFullscreen).call(e,Object(f.a)(d)),d.handleCourseUpdate=a()(t=d.handleCourseUpdate).call(t,Object(f.a)(d)),d.handleFullscreenEnter=a()(r=d.handleFullscreenEnter).call(r,Object(f.a)(d)),d.handleFullscreenExit=a()(o=d.handleFullscreenExit).call(o,Object(f.a)(d)),d.handleMessages=a()(i=d.handleMessages).call(i,Object(f.a)(d)),d.renderItem=a()(l=d.renderItem).call(l,Object(f.a)(d)),d}return Object(d.a)(n,t),Object(l.a)(n,[{key:"componentWillMount",value:function(){window.addEventListener("message",this.handleMessages)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.handleMessages)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.items,n=e.onStep,r=h()(t),o=y()(j.b,j.f);v()(o,n,r)}},{key:"canFullscreen",value:function(e){var t=this.props,n=t.blockId,r=t.hasManySlBlocks;return n===e.windowName||!r()}},{key:"handleMessages",value:function(e){var t=e.data,n=t.type,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[n];r&&r(t)}},{key:"handleCourseUpdate",value:function(e){var t=this.props,n=t.items,r=t.onStep,o=t.blockId,i=h()(n);if(o===e.windowName&&Object(j.h)(e)){var a=Object(j.c)(e),s=a.score,l=a.success;if(Object(j.j)(e)){var c=100*s.scaled;Object(O.e)(o,l,!0,c)}else Object(O.e)(o,!0,!1);r(i)}}},{key:"handleFullscreenEnter",value:function(e){var t=this.props,n=t.menuOpen,r=t.handleStorylineFullscreen;this.canFullscreen(e)&&(n&&r(!0),this.setState({fullscreen:!0,reopenMenu:n}))}},{key:"handleFullscreenExit",value:function(e){var t=this.props.handleStorylineFullscreen,n=this.state.reopenMenu;this.canFullscreen(e)&&(n&&t(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLesson,o=t.isLearner,i=t.items,a=t.labels.storylineGroup,s=t.settings,l=t.takingSnapshot,c=h()(i),u=s.paddingTop,f=s.paddingBottom,d=s.backgroundColor,p=s.mediaWidth,m=void 0===p?"0":p,v={backgroundColor:Object(S.a)("",d),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*f,"px"),display:r&&!Object(j.g)(c)?"none":"block"},g=_()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":"0"===m,"blocks-storyline__wrapper--medium":"1"===m,"blocks-storyline__wrapper--full":"2"===m,"blocks-storyline__wrapper--snapshot":l});return e.createElement("div",{className:"blocks-storyline",style:v},e.createElement(E.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:o},e.createElement("div",{"aria-label":a,className:g},l?this.renderThumbnail(c):this.renderStorylineBlock(c))))}},{key:"renderStorylineBlock",value:function(e){return Object(j.i)(e)?this.renderProcessing():Object(j.g)(e)?this.renderItem(e):this.renderEmpty()}},{key:"renderThumbnail",value:function(t){var n,r=Object(j.e)(t),i=o()(n="".concat(Object(C.d)("CDN_USER_CONTENT_URI"),"/")).call(n,r);return e.createElement("img",{src:i})}},{key:"renderEmpty",value:function(){var t;return e.createElement("div",{className:"blocks-storyline__empty"},e.createElement("div",{className:"blocks-storyline__empty__icon"},e.createElement("img",{src:Object(x.e)("assets/images/storyline_product.svg")})),e.createElement("div",{className:"blocks-storyline__empty__heading"},"Add a Storyline 360 interaction from Review 360"),e.createElement("div",{className:"blocks-storyline__empty__button"},e.createElement(w.a,{outline:!0,onClick:a()(t=this.showModal).call(t,this)},"Browse Review 360")))}},{key:"renderItem",value:function(t){var n=this,r=this.state.fullscreen,o=this.props,i=o.blockId,a=o.isLesson,s=o.previewType,l=Object(j.d)(t),c=l.src,u=l.meta.player,f=Object(j.a)(c,a,s),d=u.height/u.width,p={paddingBottom:"".concat(100*d,"%")},h=_()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":r});return e.createElement("div",{className:"blocks-storyline__item",style:p},e.createElement("iframe",{allowtransparency:"true",ref:function(e){return n.iframe=e},name:i,className:h,src:Object(x.e)(f)}))}},{key:"renderProcessing",value:function(){var t;return e.createElement("div",{className:"blocks-storyline__empty"},e.createElement("div",{className:"blocks-storyline__empty__icon"},e.createElement("div",{className:"blocks-storyline__empty__spinner"})),e.createElement("div",{className:"blocks-storyline__empty__heading blocks-storyline__empty__heading--processing"},"Processing course..."),e.createElement("div",{className:"blocks-storyline__empty__text"},"Adding your Storyline 360 course to this block. Your course will ",e.createElement("br",null),"appear here when processing is complete."),e.createElement("div",{className:"blocks-storyline__empty__button"},e.createElement(w.a,{outline:!0,onClick:a()(t=this.onProcessingCancel).call(t,this)},"Cancel")))}},{key:"showModal",value:function(){var e=this.props,t=e.lessonId,n=e.blockId,r=e.items,o=h()(r).id;Object(k.a)(Object(T.c)({lessonId:t,blockId:n,itemId:o}))}},{key:"onProcessingCancel",value:function(){var e=this.props,t=e.lessonId,n=e.blockId,r=e.items,o=h()(r).id;Object(k.a)(Object(T.a)({lessonId:t,blockId:n,itemId:o}))}}],[{key:"defaultProps",get:function(){return{isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(t){
/**
 * filesize
 *
 * @copyright 2017 Jason Mulligan <jason.mulligan@avoidwork.com>
 * @license BSD-3-Clause
 * @version 3.5.11
 */
!function(t){var n=/^(b|B)$/,r={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},o={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function i(e){var t,i,a,s,l,c,u,f,d,p,h,m,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],y=0,b=void 0,_=void 0;if(isNaN(e))throw new Error("Invalid arguments");return i=!0===v.bits,d=!0===v.unix,t=v.base||2,f=void 0!==v.round?v.round:d?1:2,p=void 0!==v.spacer?v.spacer:d?"":" ",m=v.symbols||v.suffixes||{},h=2===t&&v.standard||"jedec",u=v.output||"string",s=!0===v.fullform,l=v.fullforms instanceof Array?v.fullforms:[],b=void 0!==v.exponent?v.exponent:-1,a=t>2?1e3:1024,(c=(_=Number(e))<0)&&(_=-_),(-1===b||isNaN(b))&&(b=Math.floor(Math.log(_)/Math.log(a)))<0&&(b=0),b>8&&(b=8),0===_?(g[0]=0,g[1]=d?"":r[h][i?"bits":"bytes"][b]):(y=_/(2===t?Math.pow(2,10*b):Math.pow(1e3,b)),i&&(y*=8)>=a&&b<8&&(y/=a,b++),g[0]=Number(y.toFixed(b>0?f:0)),g[1]=10===t&&1===b?i?"kb":"kB":r[h][i?"bits":"bytes"][b],d&&(g[1]="jedec"===h?g[1].charAt(0):b>0?g[1].replace(/B$/,""):g[1],n.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))),c&&(g[0]=-g[0]),g[1]=m[g[1]]||g[1],"array"===u?g:"exponent"===u?b:"object"===u?{value:g[0],suffix:g[1],symbol:g[1]}:(s&&(g[1]=l[b]?l[b]:o[h][b]+(i?"bit":"byte")+(1===g[0]?"":"s")),g.join(p))}i.partial=function(e){return function(t){return i(t,e)}},e.exports=i}("undefined"!=typeof window&&window)}).call(this,n(71))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2042),n(2)),c=n.n(l),u=n(0),f=n.n(u),d=n(64),p=n(44),h=n(24),m=n(22),v=n(55),g=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.canContinue,o=t.isLearner,i=t.items,a=t.onStep,s=t.settings,l=i[0]||{};return e.createElement("div",{style:y(s)},e.createElement(v.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:o,offset:25},e.createElement("div",{className:"block-text--onecol"},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},e.createElement("div",{className:"block-text__col"},function(t){var n=t.canContinue,r=t.item,o=t.onStep;return!r.type||n?function(t){var n=t.item,r=t.onStep,o=n.buttonColor,i=n.id,a=n.title,s=function(){return r({id:i})},l=c()("block-continue","block-continue--btn",{"block-continue--btn--gray":"gray"===o,"block-continue--btn--black":"black"===o,"brand--background":"brand"===o});return e.createElement("div",{className:l,onClick:s,onKeyDown:Object(h.a)(s),role:"button",tabIndex:m.a},e.createElement("div",{className:"block-continue__content"},a))}({item:r,onStep:o}):(i=r,a=i.completeHint,e.createElement("div",{className:"block-continue block-continue--hint"},e.createElement(p.u,null),e.createElement("div",{className:"block-continue__content"},a)));var i,a}({canContinue:r,item:l,onStep:a})))))))}}],[{key:"propTypes",get:function(){return{items:f.a.array,settings:f.a.object.isRequired,canContinue:f.a.bool,onStep:f.a.func}}},{key:"defaultProps",get:function(){return{canContinue:!1,items:[],onStep:Function.prototype}}}]),n}(e.Component);function y(e){return{backgroundColor:Object(d.a)("",e.backgroundColor),paddingTop:"".concat(10*e.paddingTop,"px"),paddingBottom:"".concat(10*e.paddingBottom,"px")}}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){t.a=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 23 17",focusable:!1},e.createElement("path",{fillRule:"nonzero",d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z"}))}}).call(this,n(1))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(1067)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(296)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1069),o=n(298).proxy("Pred"),i=n(120),a=n(94),s=n(199);e.exports=i(function(e,t){if(!a(e)&&!s(o,e))throw new TypeError("safe: Pred or predicate function required for first argument");return r(e)(t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(335),o=n(120),i=n(94);e.exports=o(function(e,t){if(i(e)){if(i(t))return r(t,e);if(t&&i(t.contramap))return t.contramap(e);throw new TypeError("contramap: Function or Contavariant Functor of the same type required for second requirement")}throw new TypeError("contramap: Function required for first argument")})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(120),o=n(671),i=n(296);e.exports=r(function(e,t){if(!o(e))throw new TypeError("omit: Foldable required for first argument");if(!i(t))throw new TypeError("omit: Object required for second argument");return Object.keys(t).reduce(function(e,t){return function(n,r){return-1===e.indexOf(r)&&void 0!==t[r]?Object.assign(n,((o={})[r]=t[r],o)):n;var o}}(e,t),{})})},function(e,t,n){"use strict";var r=n(275),o=n.n(r),i=n(131),a=n.n(i),s=n(1191),l=n.n(s),c=n(1192),u=n.n(c),f=a()(function(e,t){return o()(l()(null),u()(e,t))});t.a=f},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120),o=n(94);e.exports=r(function(e,t){if(!t||!o(t.option))throw new TypeError("option: Last argument must be a Maybe");return t.option(e)})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(298).proxy("Pred"),o=n(335),i=n(120),a=n(94),s=n(199),l=n(1069),c=function(e){return function(t){return t.map(e)}};e.exports=i(function(e,t){if(!a(e)&&!s(r,e))throw new TypeError("safeLift: Pred or predicate function required for first argument");if(!a(t))throw new TypeError("safeLift: Function required for second argument");return o(c(t),l(e))})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var r=n(6),o=n(3),i=n.n(o),a=n(9),s=n(7),l=n(10),c=n(8),u=n(11),f=(n(2057),n(2)),d=n.n(f),p=n(5),h=n.n(p),m=n(25),v=n.n(m),g=n(41),y=n.n(g),b=n(126),_=n.n(b),w=n(24),E=n(78),x=n(22),k=n(63),S=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"select",value:function(){var e=this.props,t=e.onChange,n=e.value;this.input.focus(),t(n)}},{key:"onKeyDown",value:function(e,t){var n=this.props,r=n.onChange,o=n.onEnterToSubmit,i=n.onNavigateToNext,a=n.onNavigateToPrevious,s=Object(E.a)(function(){r(e)}),l=Object(E.a)(a),c=Object(E.a)(i);y()([[w.j,s],[_()(w.f,w.l),l],[_()(w.h,w.b),c],[w.c,o]])(t)}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.allowTabNavigation,a=r.buttonClassName,s=r.checked,l=r.children,c=r.className,u=r.disabled,f=r.id,d=r.name,p=r.onChange,m=r.radioIcon,g=r.readOnly,y=r.title,b=r.value;return e.createElement("label",{"aria-checked":s,"aria-label":y,className:T({className:c,disabled:u}),htmlFor:f,role:k.f},e.createElement("input",{checked:s,className:"radio-button__input",disabled:u,id:f,name:d,onChange:h()(p,v()(["target","value"])),readOnly:g,type:"radio",value:b}),e.createElement("div",{"aria-hidden":!o,className:C({buttonClassName:a}),tabIndex:Object(x.l)(o),onKeyDown:i()(t=this.onKeyDown).call(t,this,b),ref:function(e){n.input=e}},m),O(l))}}]),n}(e.Component);S.defaultProps={allowTabNavigation:!1,onEnterToSubmit:function(){},onNavigateToNext:function(){},onNavigateToPrevious:function(){}};var T=function(e){var t=e.className,n=e.disabled;return d()("radio-button",Object(r.a)({"radio-button--disabled":n},t,t))},C=function(e){var t=e.buttonClassName;return d()("radio-button__radio",Object(r.a)({},t,t))},O=function(t){if(t)return e.createElement("div",{className:"radio-button__label"},t)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(6),o=(n(2058),n(2)),i=n.n(o),a=n(5),s=n.n(a),l=n(25),c=n.n(l),u=n(41),f=n.n(u),d=n(44),p=n(22),h=n(24),m=n(78),v=function(e){var t=e.value,n=e.onChange,r=e.onEnterToSubmit;return function(e){var o=Object(m.a)(function(){n(t)});f()([[h.j,o],[h.c,r]])(e)}},g=function(t){var n=t.allowTabNavigation,r=t.checked,o=t.children,i=t.className,a=t.enabled,l=t.icon,u=t.id,f=t.onChange,h=t.onEnterToSubmit;return e.createElement("label",{htmlFor:u,className:y({checked:r,className:i})},e.createElement("input",{id:u,type:"checkbox",className:"checkbox__input",value:r,checked:r,onChange:a?s()(f,c()(["target","checked"])):void 0}),e.createElement("div",{"aria-hidden":!n,className:"checkbox__indicator",tabIndex:Object(p.l)(n),onKeyDown:a&&v({value:r,onChange:f,onEnterToSubmit:h})||null},l||e.createElement(d.d,null)),b(o))};g.defaultProps={allowTabNavigation:!1,enabled:!0,onEnterToSubmit:function(){}};var y=function(e){var t=e.checked,n=e.className;return i()("checkbox",Object(r.a)({"checkbox--checked":t},n,n))},b=function(t){if(t)return e.createElement("div",{className:"checkbox__label"},t)};t.a=g}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(32),o=(n(2059),n(25)),i=n.n(o),a=n(64),s=n(595);t.a=function(t){var n=t.blockId,o=t.progress,l=t.settings,c=l.backgroundColor,u=l.paddingTop,f=l.paddingBottom,d={backgroundColor:Object(a.a)("",c),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*f,"px")},p=i()(["items",n],o);return e.createElement("div",{className:"block-labeled-graphic",style:d},e.createElement(s.a,Object(r.a)({},t,{editable:!1,isBlock:!0,parentId:n,progress:p})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(4),o=n.n(r),i=n(17),a=n.n(i),s=n(34),l=n.n(s),c=n(3),u=n.n(c),f=n(9),d=n(10),p=n(8),h=n(15),m=n(7),v=n(11),g=(n(2061),n(2)),y=n.n(g),b=n(310),_=n.n(b),w=n(25),E=n.n(w),x=n(1197),k=n(1198),S=n(55),T=n(1200),C=n(175),O=function(t){function n(e){var t,r,o;Object(f.a)(this,n),o=Object(d.a)(this,Object(p.a)(n).call(this,e));var i=e.isLearner;return o.createMarker=u()(t=o.createMarker).call(t,Object(h.a)(o)),o.afterAnimatedIn=u()(r=o.afterAnimatedIn).call(r,Object(h.a)(o)),o.state={showMarkers:!i},o}return Object(v.a)(n,t),Object(m.a)(n,null,[{key:"defaultProps",get:function(){return{animateBlockEntrance:!1,editable:!0,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}}]),Object(m.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.isBlock,r=t.isLearner,o=t.isPreview,i=t.markerDelay;r&&!n&&(this.timeout=l()(function(){return e.setState({showMarkers:!0})},o?0:i))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.blockId,s=n.canvasClassNames,l=n.editable,c=n.hint,f=n.imageLoaded,d=void 0===f||f,p=n.isBlock,h=n.isLearner,m=n.isPreview,v=n.items,g=n.labels,b=n.lesson,_=n.media,w=n.onClose,O=n.onItemClear,j=n.onItemHint,A=n.onItemSelected,N=n.onNextClick,M=n.onPreviousClick,I=n.onShowAltDialog,L=n.parentId,P=n.progress,D=n.selected,R=n.showBubbles,F=this.state.showMarkers,B=y()("map-item",{"map-item--animated":!l}),U=r?"fadeIn":"none",q=r?1:0;return e.createElement(S.a,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!m,animateIn:U,duration:m?0:q,initiallyVisible:!r,isLearner:h,offset:300},e.createElement(k.a,{canvasClassNames:s,editable:l,imageLoaded:d,lesson:b,media:_,onCreateMarker:this.createMarker,onShowAltDialog:I,ref:function(e){t.canvas=e}},a()(v).call(v,function(n,r){var a,s,f,d=n.description,h=n.id,m=n.icon,v=n.media,y=n.title,b=n.x,_=n.y,k={top:_+"%",left:b+"%"},S=E()(["items",h,"isComplete"],P),I=D===h;return e.createElement("div",{className:B,key:h},e.createElement(T.a,{editable:l,icon:m,isActive:c===h,isComplete:S,isSelected:I,isVisible:F,itemId:h,key:h,labels:g,onClick:function(){A(h)},onHover:function(){j()},onLeave:function(){O()},onSetPosition:u()(a=t.onSetPosition).call(a,t,h),parentId:L,styles:k,useLocalStateForCompletion:p}),!l&&R&&e.createElement(x.a,{description:d,isActive:I,key:"bubble-".concat(h),labels:g,onClose:function(){w()},onNextClick:function(){N(r)},onPreviousClick:function(){M(r)},title:y,x:b,y:_},v?e.createElement(C.a,{hasPadding:!1,index:o()(s=o()(f="".concat(i,"-")).call(f,h,"-")).call(s,r),labels:t.props.labels,media:v}):null))})))}},{key:"createMarker",value:function(e){var t=this.props,n=t.editable,r=t.isBlock,o=t.lesson,i=t.onCreateMarker;if(n){var a=o.id,s=o.items,l=this.findItemCoordinates({e:e}),c=l.x,u=l.y;i({index:r?s[0].items.length:s.length,lessonId:a,items:s,payload:{description:"",hasMedia:!1,icon:"01",id:_()(),isActive:!1,title:"",x:String(c),y:String(u)}})}}},{key:"onSetPosition",value:function(e,t,n,r){var o=this.props,i=o.lesson,a=o.onSetMarkerPosition,s=i.id,l=i.items,c=this.findItemCoordinates({e:t,offsetX:n,offsetY:r}),u=c.x,f=c.y;a({itemId:e,lessonId:s,items:l,payload:{x:String(u),y:String(f)}})}},{key:"findItemCoordinates",value:function(e){var t=e.e,n=e.offsetX,r=void 0===n?0:n,o=e.offsetY,i=void 0===o?0:o,a=this.canvas.imageEl.getBoundingClientRect();return{x:this.findItemCoordinate({clientPos:t.clientX,clientOffset:r,rectSubtractor:a.left,rectDivisor:a.width,validOffsetAmount:20}),y:this.findItemCoordinate({clientPos:t.clientY,clientOffset:i,rectSubtractor:a.top,rectDivisor:a.height,validOffsetAmount:20})}}},{key:"findItemCoordinate",value:function(e){var t=e.clientPos,n=e.clientOffset,r=e.rectSubtractor,o=e.rectDivisor,i=e.validOffsetAmount/o*100,a=100-i,s=(t+n-r)/o*100;return s>a?s=a:s<i&&(s=i),s}},{key:"afterAnimatedIn",value:function(){this.props.isBlock&&this.setState({showMarkers:!0})}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return j});var r=n(17),o=n.n(r),i=n(34),a=n.n(i),s=n(3),l=n.n(s),c=n(9),u=n(7),f=n(10),d=n(8),p=n(15),h=n(11),m=(n(2062),n(2)),v=n.n(m),g=n(41),y=n.n(g),b=n(315),_=n.n(b),w=n(0),E=n.n(w),x=n(139),k=n.n(x),S=n(44),T=n(42),C=n(24),O=n(22),j=function(t){function n(e){var t,r,o,i,a,s,u;return Object(c.a)(this,n),(u=Object(f.a)(this,Object(d.a)(n).call(this,e))).state={hasOverflow:!1},u.renderOverflowMask=l()(t=u.renderOverflowMask).call(t,Object(p.a)(u)),u.handleScroll=l()(r=u.handleScroll).call(r,Object(p.a)(u)),u.handleBubbleClick=l()(o=u.handleBubbleClick).call(o,Object(p.a)(u)),u.handleKeyDown=l()(i=u.handleKeyDown).call(i,Object(p.a)(u)),u.handleNextClick=l()(a=u.handleNextClick).call(a,Object(p.a)(u)),u.handlePreviousClick=l()(s=u.handlePreviousClick).call(s,Object(p.a)(u)),u}return Object(h.a)(n,t),Object(u.a)(n,[{key:"componentWillUnmount",value:function(){this.contentRef.removeEventListener("scroll",this.scrollRef),this.videoContainer&&this.videoContainer.removeEventListener("click",this.handleBubbleClick)}},{key:"componentWillReceiveProps",value:function(e){e.isActive&&a()(this.renderOverflowMask,100)}},{key:"componentDidUpdate",value:function(e){var t=this.contentRef;!e.isActive&&this.props.isActive&&(t.scrollTop=0,this.bubble.focus()),this.state.hasOverflow&&e.isActive&&!this.props.isActive&&t.removeEventListener("scroll",this.scrollRef),this.stopVideoClickBubbling(e.isActive)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.children,a=r.description,s=r.isActive,l=r.labels,c=r.onClose,u=r.title,f=r.x,d=r.y,p=v()("bubble",{"bubble--active":s}),h=N({hasOverflow:this.state.hasOverflow,x:f,y:d}),m=l.labeledGraphicBubbleLabel,g=l.labeledGraphicNextMarkerLabel,y=l.labeledGraphicPreviousMarkerLabel,b=A({x:f,y:d}),w=e.createElement("div",{ref:function(e){n.el=e},className:p,style:b},e.createElement("div",{"aria-keyshortcuts":"ArrowRight ArrowLeft Escape","aria-label":m,className:h,onClick:this.handleBubbleClick,onKeyDown:this.handleKeyDown,ref:function(e){n.bubble=e},role:"dialog",tabIndex:O.a},e.createElement(T.a,{className:"bubble__title brand--head",value:u}),e.createElement("div",{className:"bubble__controls"},e.createElement("div",{"aria-label":y,className:"bubble__prev brand--hoverColor",onClick:this.handlePreviousClick,onKeyDown:Object(C.a)(this.handlePreviousClick),role:"button",tabIndex:O.a},e.createElement("i",{className:"icon icon-chevron-left"})),e.createElement("div",{"aria-label":g,className:"bubble__next brand--hoverColor",onClick:this.handleNextClick,onKeyDown:Object(C.a)(this.handleNextClick),role:"button",tabIndex:O.a},e.createElement("i",{className:"icon icon-chevron-right"}))),e.createElement("div",{className:"bubble__content",ref:function(e){n.contentRef=e},tabIndex:O.a,role:"button"},o()(t=e.Children).call(t,i,function(t){return t&&s?e.createElement("div",{className:"bubble__figure"},t):null}),e.createElement(T.a,{className:"bubble__description brand--body brand--linkColor",value:a})),e.createElement("button",{className:"bubble__close",onClick:c},e.createElement(S.g,null))));return window.matchMedia("(max-width: 767px)").matches?e.createElement(_.a,null,w):w}},{key:"renderOverflowMask",value:function(){if(this.contentRef){var e=this.contentRef,t=e.offsetHeight;e.scrollHeight>t?(e.addEventListener("scroll",this.scrollRef=k()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.onClose,r=t.onNextClick,o=t.onPreviousClick,i=Object(C.p)(this.contentRef,this.state.hasOverflow);y()([[C.f,o],[C.h,r],[C.e,n],[C.m,i]])(e)}},{key:"handleNextClick",value:function(e){var t=this.props.onNextClick;e.preventDefault(),t(e)}},{key:"handlePreviousClick",value:function(e){var t=this.props.onPreviousClick;e.preventDefault(),t(e)}},{key:"handleScroll",value:function(){var e=this.contentRef;e.scrollTop>=e.scrollHeight-e.offsetHeight-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}},{key:"stopVideoClickBubbling",value:function(e){if(!e&&this.props.isActive&&!this.videoContainer&&window.matchMedia("(max-width: 767px)").matches){var t=this.el.querySelector(".videoContainer");t&&(this.videoContainer=t,this.videoContainer.addEventListener("click",this.handleBubbleClick))}else e&&!this.props.isActive&&this.videoContainer&&(this.videoContainer.removeEventListener("click",this.handleBubbleClick),delete this.videoContainer)}},{key:"handleBubbleClick",value:function(e){e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}}],[{key:"propTypes",get:function(){return{description:E.a.string.isRequired,isActive:E.a.bool.isRequired,onClose:E.a.func.isRequired,onNextClick:E.a.func.isRequired,onPreviousClick:E.a.func.isRequired,title:E.a.string.isRequired}}},{key:"defaultProps",get:function(){return{onClose:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype}}}]),n}(e.Component),A=function(e){var t=e.x,n=e.y,r={top:"initial",bottom:"initial",left:0,right:0};return t>50?r.right=100-t+"%":r.left=t+"%",n>50?r.bottom=100-n+"%":r.top=n+"%",r},N=function(e){var t=e.hasOverflow,n=e.x,r=e.y,o=n<50,i="top";return r>33&&(i=r>66?"bottom":"middle"),v()("bubble__body","brand--border",{"bubble__body--has-overflow":t,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":"top"===i,"bubble__body--middle":"middle"===i,"bubble__body--bottom":"bottom"===i})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2068),n(2)),c=n.n(l),u=n(5),f=n.n(u),d=n(12),p=n.n(d),h=n(244),m=n.n(h),v=n(77),g=n(1199),y=n(207),b=f()(function(e){return e.substr(1)},p()("path"),m.a.parse),_=function(t){function n(e){var t;return Object(r.a)(this,n),(t=Object(i.a)(this,Object(a.a)(n).call(this,e))).state={style:{}},t}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this,n=this.props,r=n.canvasClassNames,o=n.children,i=n.editable,a=n.imageLoaded,s=n.media,l=void 0===s?{}:s,u=n.onCreateMarker,f=n.onShowAltDialog,d=this.state.style,p=l.image,h=void 0===p?{}:p,m=h.alt,_=h.key,w=h.src,E=!!h.alt,x='""'===m?"":m,k=Object(g.a)(h),S=c()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":i}),T=x||(i?"Labeled graphic lesson main image":void 0),C=_?Object(v.c)({key:_,src:w}):Object(v.c)({key:b(w),src:w});return e.createElement("div",{className:r||"labeled-graphic-canvas"},e.createElement("div",{className:"labeled-graphic-canvas__item"},e.createElement("div",{className:"labeled-graphic-canvas__bounds"},e.createElement("figure",{className:S},E&&i?e.createElement(y.a,{className:"item-media__tooltip"},e.createElement("div",{onClick:f,className:"labeled-graphic-canvas__alt-tag"},"ALT"),e.createElement(y.b,{side:"top"},"Edit alt text")):[],a&&e.createElement("img",{alt:T,"aria-describedby":T,className:"labeled-graphic-canvas__image",id:"graphic",onClick:u,onLoad:function(){return t.setState({style:k})},ref:function(e){t.imageEl=e},src:C,style:d,title:T}),o))))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(20),o=n.n(r),i=n(5),a=n.n(i),s=n(79),l=n.n(s),c=n(126),u=n.n(c),f=n(90),d=n.n(f),p=n(12),h=n.n(p),m=n(51),v=n.n(m),g=n(206),y=(n.n(g)()("type","contentType"),u()(h()("contentType"),v()("","type"))),b=a()(l()("svg"),y),_=d()(b,o()({width:"500rem"}),o()({}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(4),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=(n(2070),n(2)),h=n.n(p),m=n(0),v=n.n(m),g=n(22),y=n(24),b=n(75),_=function(t){function n(e){var t,r;return Object(s.a)(this,n),(r=Object(c.a)(this,Object(u.a)(n).call(this,e))).state={dragging:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},r.onClick=a()(t=r.onClick).call(t,Object(f.a)(r)),r}return Object(d.a)(n,t),Object(l.a)(n,[{key:"parentCanvasElement",value:function(){return this.marker.parentElement.parentElement}},{key:"componentDidMount",value:function(){var e=this,t=this.parentCanvasElement();t.addEventListener("mousemove",this.onMouseMove=function(t){e.onItemDrag(t)}),t.addEventListener("mouseleave",this.onMouseLeave=function(t){e.onItemRelease(t)})}},{key:"componentWillUnmount",value:function(){var e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isSelected,n=e.useLocalStateForCompletion;t&&n&&!this.state.isComplete&&this.setState({isComplete:!0})}},{key:"render",value:function(){var t,n,r,o,i=this,s=this.props,l=s.editable,c=s.labels,u=s.isActive,f=s.isComplete,d=s.isSelected,p=s.isVisible,m=s.icon,v=s.onLeave,b=s.styles,_=s.useLocalStateForCompletion,w=c?c.labeledGraphicMarkerLabel:void 0,E=h()("labeled-graphic-marker",{"labeled-graphic-marker--hint":u,"labeled-graphic-marker--active":d,"labeled-graphic-marker--dragged":this.state.isDragged,"labeled-graphic-marker--visible":p,"labeled-graphic-marker--complete":_?this.state.isComplete:f}),x=h()("labeled-graphic-marker__pin",{"brand--border":!l&&!d,"brand--color":!l&&!d,"brand--background":!l&&d});return e.createElement("div",{"aria-expanded":u,"aria-label":w,className:E,onClick:this.onClick,onContextMenu:a()(t=this.onItemRelease).call(t,this),onKeyDown:Object(y.a)(this.onClick),onMouseDown:a()(n=this.onItemGrab).call(n,this),onMouseEnter:a()(r=this.onHover).call(r,this),onMouseLeave:v,onMouseUp:a()(o=this.onItemRelease).call(o,this),ref:function(e){i.marker=e},role:"button",style:b,tabIndex:g.a},e.createElement("div",{className:x},e.createElement("i",{className:"icon icon-Master-".concat(m)})))}},{key:"onHover",value:function(){this.state.wasDragged&&this.props.onHover()}},{key:"onClick",value:function(e){e.stopPropagation(),e.preventDefault(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation();var t=this.props,n=t.editable,r=t.itemId,o=t.onClick,i={detail:{itemId:r,parentId:t.parentId}},a=null;b.a.isIe11?(a=document.createEvent("UIEvents")).initUIEvent("labeledGraphicMarkerClick",!1,!1,window,i):a=new CustomEvent("labeledGraphicMarkerClick",i),document.dispatchEvent(a),n||o()}},{key:"onItemGrab",value:function(e){if(this.props.editable){var t=this.marker.getBoundingClientRect(),n=t.left-e.clientX+this.marker.offsetWidth/2,r=t.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:n,offsetY:r,isDragged:!0})}}},{key:"onItemDrag",value:function(e){if(this.state.isDragged){var t,n=e.clientX-this.state.posX,r=e.clientY-this.state.posY;this.marker.style.transform=o()(t="translate3d(".concat(n,"px, ")).call(t,r,"px, 0)")}}},{key:"onItemRelease",value:function(e){var t=this.props.editable,n={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():t&&e.currentTarget&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(n.offsetX=0,n.offsetY=0),this.setState(n)}}],[{key:"propTypes",get:function(){return{editable:v.a.bool,isActive:v.a.bool,isDragged:v.a.bool,isSelected:v.a.bool,onClick:v.a.func,onLeave:v.a.func,onSetPosition:v.a.func,styles:v.a.shape({top:v.a.string,left:v.a.string}).isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(161),o=n(3),i=n.n(o),a=n(9),s=n(7),l=n(10),c=n(8),u=n(11),f=(n(2071),n(41)),d=n.n(f),p=n(22),h=n(24),m=n(1202),v=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"onKeyDown",value:function(e){var t,n;d()([[h.h,i()(t=this.triggerSlide).call(t,this,"next")],[h.f,i()(n=this.triggerSlide).call(n,this,"prev")]])(e)}},{key:"render",value:function(){var t,n=this,o=this.props.settings,a=o.paddingBottom,s=o.paddingTop,l={paddingBottom:"".concat(10*a,"px"),paddingTop:"".concat(10*s,"px")},c={className:"block-process",onKeyDown:i()(t=this.onKeyDown).call(t,this),style:l,tabIndex:p.a},u=Object(r.a)({ref:function(e){return n.process=e}},this.props);return e.createElement("div",c,e.createElement(m.a,u))}},{key:"triggerSlide",value:function(e){this.process.triggerSlide(e)}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return W});var r=n(17),o=n.n(r),i=n(4),a=n.n(i),s=n(482),l=n(3),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(15),m=n(11),v=n(96),g=n(53),y=n.n(g),b=n(100),_=n.n(b),w=n(19),E=n.n(w),x=n(5),k=n.n(x),S=n(37),T=n.n(S),C=n(36),O=n.n(C),j=n(50),A=n.n(j),N=n(38),M=n.n(N),I=n(27),L=n.n(I),P=n(16),D=n.n(P),R=n(0),F=n.n(R),B=n(105),U=n.n(B),q=n(759),z=n(75),H=n(55),W=function(t){function n(e){var t,r,o,i,a;return Object(u.a)(this,n),(a=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={entered:!1,visible:!1},a.getScrollTop=c()(t=a.getScrollTop).call(t,Object(h.a)(a)),a.handleEntranceEnd=c()(r=a.handleEntranceEnd).call(r,Object(h.a)(a)),a.handleScroll=c()(o=a.handleScroll).call(o,Object(h.a)(a)),a.triggerSlide=c()(i=a.triggerSlide).call(i,Object(h.a)(a)),a}return Object(m.a)(n,t),Object(f.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.onStep,n=e.previewType,r=document.getElementsByClassName("page-wrap")[0];this.container=M()(n)?window:r,this.container.addEventListener("scroll",this.handleScroll),this.handleScroll(),t&&this.setProgress()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("scroll",this.handleScroll)}},{key:"getScrollTop",value:function(){var e=this.props.settings.paddingTop,t=this.container,n=Object(v.findDOMNode)(this),r=y()(n).offset().top,o=10*e;return t===window?r-o:y()(t).scrollTop()+r-y()(t).offset().top-o}},{key:"getSteps",value:function(){var e,t=this.props.items,n=O()(D()("type","intro"),t),r=O()(D()("type","summary"),t),i=T()(D()("type","step"),t),l=a()(e=[n]).call(e,Object(s.a)(i),[r]),c=U()(D()("isHidden",!0),l);return o()(c).call(c,function(e,t){return E()("index",t,e)})}},{key:"handleEntranceEnd",value:function(){this.setState({visible:!0})}},{key:"handleScroll",value:function(){this.state.entered||this.wrapper.getBoundingClientRect().bottom-100<=(this.container.innerHeight||this.container.offsetHeight)&&!this.state.entered&&this.setState({entered:!0})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.blockId,i=n.isLearner,a=n.labels,s=n.menuOpen,l=n.onStep,c=n.previewType,u=n.settings,f=this.state,d=f.entered,p=f.visible,h=this.getSteps(),m=!M()(c),v=r?"fadeIn":"none",g=m&&r?1:0,y={afterAnimatedIn:this.handleEntranceEnd,animateBlockEntrance:m,animateIn:v,duration:g,initiallyVisible:!r,isLearner:i,offset:300},b={className:"process-block-wrapper",ref:function(e){return t.wrapper=e}},_={blockId:o,entered:d,getScrollTop:this.getScrollTop,labels:a,menuOpen:s,onStep:l,isPreview:m,settings:u,steps:h,visible:p},w=E()("ref",function(e){return t.process=e},_),x=E()("ref",function(e){return t.processMobile=e},_),k=e.createElement(q.a,w),S=e.createElement(q.b,x);return e.createElement(H.a,y,e.createElement("div",b,z.a.isMobile?S:k))}},{key:"setProgress",value:function(){var e=this.props,t=e.items,n=e.onStep,r=this.getSteps(),o=T()(D()("isHidden",!0),t),i=r[0]?_()(r[0]):A.a;k()(L()(n),i)(o)}},{key:"shouldComponentUpdate",value:function(e,t){return e.menuOpen!==this.props.menuOpen||e.settings!==this.props.settings||t.entered!==this.state.entered||t.visible!==this.state.visible}},{key:"triggerSlide",value:function(e){z.a.isMobile?this.processMobile.handleSlide(e):this.process.handleSlide(e)}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:F.a.bool,blockId:F.a.string.isRequired,isLearner:F.a.bool,items:F.a.array.isRequired,labels:F.a.object.isRequired,menuOpen:F.a.bool,onStep:F.a.func,previewType:F.a.string,settings:F.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2074),n(20)),f=n.n(u),d=n(44),p=n(2),h=n.n(p),m=n(5),v=n.n(m),g=n(41),y=n.n(g),b=n(82),_=n(87),w=n.n(_),E=n(16),x=n.n(E),k=n(0),S=n.n(k),T=n(91),C=n.n(T),O=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"onClick",value:function(){var e=this.props,t=e.onClick;e.opacity>.5&&t()}},{key:"render",value:function(){var t,n=this.props,r=n.absolute,i=n.bottom,a=n.fixed,s=n.hidden,l=n.isSliding,c=n.offset,u=n.opacity,p=n.scroll,m=n.sidebar,v=n.top,g=n.type,_="next"===g,w="prev"===g,E=w&&"prev"===s||_&&"next"===s||"both"===s,k=p.active?a+m:r,S=p.active?a+c:r,T=y()([[x()("active",!0),f()(v)],[x()("end",!0),f()(i)],[C.a,f()(null)]])(p),O=h()("process-arrow",{"process-arrow--left":w,"process-arrow--right":_,"process-arrow--hidden":E,"process-arrow--scrolling":p.active,"process-arrow--disabled":u<=.5}),j={left:w?k:null,opacity:p.end?u:null,right:_?S:null,top:T},A={className:O,key:"arrow",onClick:o()(t=this.onClick).call(t,this),role:"button",style:j};return e.createElement(b.TransitionGroup,{component:"div"},!l&&e.createElement(b.CSSTransition,{classNames:"process-arrow",timeout:{enter:300,exit:200}},e.createElement("div",A,e.createElement(d.f,null))))}},{key:"shouldComponentUpdate",value:function(e){var t=function(e,t){return v()(w.a,x()(e,t))};return y()([[t("absolute",this.props.absolute),f()(!0)],[t("fixed",this.props.fixed),f()(!0)],[t("isSliding",this.props.isSliding),f()(!0)],[t("opacity",this.props.opacity),f()(!0)],[t("scroll",this.props.scroll),f()(!0)],[t("top",this.props.top),f()(!0)],[C.a,f()(!1)]])(e)}}],[{key:"propTypes",get:function(){return{absolute:S.a.number,bottom:S.a.number,fixed:S.a.number,hidden:S.a.oneOf(["both","next",null,"prev"]),isSliding:S.a.bool,offset:S.a.number,onClick:S.a.func.isRequired,opacity:S.a.number,scroll:S.a.object,sidebar:S.a.number,top:S.a.number,type:S.a.oneOf(["next","prev"])}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(32),o=n(9),i=n(7),a=n(10),s=n(8),l=n(11),c=n(38),u=n.n(c),f=n(0),d=n.n(f),p=n(55),h=n(1205),m=n(1206),v=function(t){function n(){return Object(o.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(i.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,o=t.blockId,i=t.isLearner,a=t.lessonId,s=t.previewType,l=t.settings,c=!u()(s),f=n?"fadeIn":"none",d=c&&n?1:0,v=l.backgroundColor,g=l.paddingBottom,y=l.paddingTop,b={item:{id:o},lesson:{id:a}},_={backgroundColor:v,paddingBottom:"".concat(10*g,"px"),paddingTop:"".concat(10*y,"px")},w={animateBlockEntrance:c,animateIn:f,duration:d,initiallyVisible:!n,isLearner:i,offset:300};return e.createElement("div",{className:"block-scenario",style:_},e.createElement(p.a,w,e.createElement(m.a,Object(r.a)({onItemUpdate:Object(h.a)(b)},this.props))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:d.a.bool,blockId:d.a.string.isRequired,isLearner:d.a.bool,items:d.a.array.isRequired,lessonId:d.a.string.isRequired,menuOpen:d.a.bool,onStep:d.a.func,previewType:d.a.string,settings:d.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return s});n(4);var r=n(60),o=n(5),i=n.n(o),a=n(46),s=function(e){var t=e.item,n=e.lesson;return function(e){var o=e.itemId,s=e.payload,l=t.id,c=n.id;i()(r.a,a.k)({blockId:l,itemId:o,lessonId:c,payload:s})}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ye});var r=n(6),o=n(34),i=n.n(o),a=n(17),s=n.n(a),l=n(4),c=n.n(l),u=n(3),f=n.n(u),d=n(9),p=n(7),h=n(10),m=n(8),v=n(15),g=n(11),y=(n(2076),n(148)),b=n.n(y),_=n(20),w=n.n(_),E=n(117),x=n.n(E),k=n(19),S=n.n(k),T=n(309),C=n.n(T),O=n(2),j=n.n(O),A=n(130),N=n.n(A),M=n(5),I=n.n(M),L=n(41),P=n.n(L),D=n(82),R=n(35),F=n.n(R),B=n(30),U=n.n(B),q=n(36),z=n.n(q),H=n(186),W=n.n(H),$=n(596),Y=n.n($),K=n(76),V=n.n(K),G=n(50),X=n.n(G),Z=n(90),Q=n.n(Z),J=n(67),ee=n.n(J),te=n(38),ne=n.n(te),re=n(27),oe=n.n(re),ie=n(14),ae=n.n(ie),se=n(740),le=n.n(se),ce=n(87),ue=n.n(ce),fe=n(127),de=n.n(fe),pe=n(29),he=n.n(pe),me=n(49),ve=n.n(me),ge=n(18),ye=n.n(ge),be=n(12),_e=n.n(be),we=n(16),Ee=n.n(we),xe=n(51),ke=n.n(xe),Se=n(0),Te=n.n(Se),Ce=n(73),Oe=n.n(Ce),je=n(91),Ae=n.n(je),Ne=n(69),Me=n.n(Ne),Ie=n(615),Le=n(77),Pe=n(75),De=n(44),Re=n(22),Fe=n(42),Be=n(762),Ue=n(24),qe=function(e){return Q()(ne.a,X.a,e)},ze=N()(ee.a),He=N()(ne.a),We=C()(He,ze),$e=b()(Oe.a),Ye=function(t){function n(e){var t,r,o,i,a,s,l,c,u,p,g,y,b,_,w,E,x,k,S,T,C;Object(d.a)(this,n);return(C=Object(h.a)(this,Object(m.a)(n).call(this,e))).state=e.initialState||{activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:[]},C.fetchCharacters=f()(t=C.fetchCharacters).call(t,Object(v.a)(C)),C.fetchCharacterPose=f()(r=C.fetchCharacterPose).call(r,Object(v.a)(C)),C.getCharacterPose=f()(o=C.getCharacterPose).call(o,Object(v.a)(C)),C.onClick=f()(i=C.onClick).call(i,Object(v.a)(C)),C.onFocus=f()(a=C.onFocus).call(a,Object(v.a)(C)),C.onInit=f()(s=C.onInit).call(s,Object(v.a)(C)),C.onResize=f()(l=C.onResize).call(l,Object(v.a)(C)),C.onResponseClick=f()(c=C.onResponseClick).call(c,Object(v.a)(C)),C.onTryAgainClick=f()(u=C.onTryAgainClick).call(u,Object(v.a)(C)),C.renderBackground=f()(p=C.renderBackground).call(p,Object(v.a)(C)),C.renderButton=f()(g=C.renderButton).call(g,Object(v.a)(C)),C.renderDetails=f()(y=C.renderDetails).call(y,Object(v.a)(C)),C.renderDialogues=f()(b=C.renderDialogues).call(b,Object(v.a)(C)),C.renderEnd=f()(_=C.renderEnd).call(_,Object(v.a)(C)),C.renderPose=f()(w=C.renderPose).call(w,Object(v.a)(C)),C.renderResponse=f()(E=C.renderResponse).call(E,Object(v.a)(C)),C.renderText=f()(x=C.renderText).call(x,Object(v.a)(C)),C.resetSlide=f()(k=C.resetSlide).call(k,Object(v.a)(C)),C.resetSlides=f()(S=C.resetSlides).call(S,Object(v.a)(C)),C.setNextSlide=f()(T=C.setNextSlide).call(T,Object(v.a)(C)),C}return Object(g.a)(n,t),Object(p.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialState,n=e.items,r=I()(Y()("poses"),ke()({},"character"),V.a);We(n)&&!r(n)&&this.fetchCharacters(),t||this.resetSlides(),window.addEventListener("resize",this.onResize)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.items,n=e.onStep,r=this.state,o=r.activeScene,i=r.activeSlide,a=he()([],[o,"slides"],t),s=he()(null,[i,"goTo"],a),l=he()(null,[i,"type"],a);"end"===s&&"text"===l&&n&&oe()(n,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize)}},{key:"fetchCharacterPose",value:function(e,t){var n,r=this.props.items[e],o=r.character,i=r.slides[t],a=c()(n="".concat(e,".")).call(n,t),s=[a,"response"],l=[a,"hasFeedback"],u=he()(null,s,this.state.slides),f=he()(!1,l,this.state.slides),d=ke()("neutral","emotion",i),p=Q()(w()(f),he()(d,["responses",u,"emotion"]),w()(d)),h=ye()(he()(null,["poses",p(i)]),qe(Le.a));return{name:o.name,pose:h(o)}}},{key:"fetchCharacters",value:function(){var e=this.props,t=e.items,n=e.onItemUpdate,r=ve()(["id","name","poses","src"]);s()(t).call(t,function(e){var t,o=e.character,i=e.id;return We(o)&&Object(Be.a)(o.id).then(function(e){return S()("poses",Object(Be.b)(e),e)}).then(r).then((t=i,function(e){return n({itemId:t,payload:{character:e}})}))})}},{key:"getCharacterPose",value:function(){var e=this.props.items,t=this.state,n=t.activeScene,r=t.activeSlide,o=t.prevScene,i=t.prevSlide,a=he()([],[n,"slides"],e),s=he()(!0,[r,"hasCharacter"],a);return He(o)&&ue()(s)?this.fetchCharacterPose(o,i):this.fetchCharacterPose(n,r)}},{key:"onClick",value:function(e,t){var n,r=this,o=this.props,a=o.items,s=o.onStep,l=this.state,c=l.activeScene,u=l.activeSlide,d=a[c].slides,p="dialogue"===ke()(null,"type",d[u]),h=c===a.length-1,m=u===d.length-1,v={activeSlide:u+1},g={activeScene:c+1,activeSlide:0},y={activeSlide:null},b=ye()(Object(Ie.b)(a),function(e){return{activeScene:e.scene,activeSlide:e.slide}}),_=P()([[w()(m&&h),w()(y)],[w()(m&&!h),w()(g)],[Ae.a,w()(v)]]),E=Q()(w()(p),w()(y),w()({activeScene:0,activeSlide:0})),x=P()([[F()("slide"),de()(b,[t])],[F()("next"),_],[F()("end"),E]]);this.resetRef=i()(f()(n=this.resetSlide).call(n,this,c,u),500),this.setState({prevScene:c,prevSlide:u}),this.setState(x(e),function(){return r.continueRef=i()(r.setNextSlide,1300)}),"end"===e&&this.resetSlides(),"end"===e&&s&&oe()(s,a)}},{key:"onFocus",value:function(){this.refs.scenario.focus()}},{key:"onInit",value:function(){this.setState({initiated:!0})}},{key:"onResize",value:function(){this.setState({resizes:this.state.resizes+1})}},{key:"onResponseClick",value:function(e){var t,n=this,o=this.state,a=o.activeScene,s=o.activeSlide,l=o.slides,u=c()(t="".concat(a,".")).call(t,s),f=S()("response",e),d=S()("hasFeedback",!0),p=U()(Object(r.a)({},"".concat(u),f)),h=U()(Object(r.a)({},"".concat(u),d)),m=I()(h,p);this.setState({slides:p(l)}),this.feedbackRef=i()(function(){return n.setState({slides:m(l)})},1300)}},{key:"onTryAgainClick",value:function(){var e,t=this.state,n=t.activeScene,o=t.activeSlide,i=t.slides,a=c()(e="".concat(n,".")).call(e,o),s=x()({hasFeedback:null,response:null}),l=U()(Object(r.a)({},"".concat(a),s));this.setState({slides:l(i)})}},{key:"render",value:function(){var t,n=this.props,r=n.isPDF,o=n.items,i=n.menuOpen,a=this.state,l=a.activeScene,c=a.activeSlide,u=a.initiated,f=(o[l]||{}).slides,d=f&&f[c],p=I()(ze,ke()({},"character"),V.a),h=I()(Y()("poses"),ke()({},"character"),V.a),m=I()(Me.a,he()({},["character","poses"])),v=I()(W.a,Me.a,oe()(m)),g={className:j()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":Pe.a.isMobile,"scenario-block--sidebar-open":i,"scenario-block--loading":p(o)&&!h(o)}),ref:"scenario",style:window.innerWidth<480?{height:window.innerHeight}:null,tabIndex:Re.a},y=ye()(V.a,he()(null,["background","media","image"]),qe(Le.c)),b=P()([[ne.a,this.renderEnd],[Ee()("type","dialogue"),this.renderDialogues],[Ee()("type","text"),this.renderText],[Ae.a,w()(null)]]),_=d&&"text"===d.type&&!d.hasCharacter,E=j()("scenario-block__character",{"scenario-block__character--hidden":_});return e.createElement("div",null,e.createElement("div",g,e.createElement("div",{className:"scenario-block__spinner"}),e.createElement("div",{className:"scenario-block__background-wrapper"},We(o)&&s()(o).call(o,this.renderBackground)),e.createElement("img",{alt:"",onLoad:this.onInit,src:y(o)}),e.createElement("div",{className:"scenario-block__inner"},e.createElement("div",{className:E},h(o)&&s()(t=v(o)).call(t,this.renderPose)),e.createElement(D.TransitionGroup,null,We(o)&&b(d)))),r&&d&&this.renderDetails(d))}},{key:"renderBackground",value:function(t,n){var o=this.state.activeScene,i=t.id,a=he()(null,["background","media","image"],t),s={className:j()("scenario-block__background",Object(r.a)({},"scenario-block__background--active",o===n)),key:i,style:a&&{backgroundImage:"url(".concat(Object(Le.c)(a),")")}};return a&&e.createElement("div",s)}},{key:"renderButton",value:function(t){var n=this.props.labels,r=n.scenarioContinue,o=n.scenarioTryAgain,i=t.action,a=t.goTo,s=t.nextSlide,l="tryAgain"===i?e.createElement("span",null,o," ",e.createElement("i",{className:"icon icon-reload"})):e.createElement("span",null,r),c={className:"scenario-block__dialogue__button",key:"button",onClick:"tryAgain"===i?I()(this.onFocus,this.onTryAgainClick):I()(this.onFocus,de()(this.onClick,[a,s]))};return e.createElement(D.TransitionGroup,null,e.createElement(D.CSSTransition,{appear:!0,classNames:"scenario-block__dialogue__button-",timeout:{enter:1e3,exit:400}},e.createElement("button",c,l)))}},{key:"renderDetails",value:function(t){var n=this.props.items,r=this.state,o=r.activeScene,i=r.activeSlide,a=t.responses,l=t.type,u=function(t,n){return e.createElement("span",{key:t},t," ",e.createElement(De.h,null)," ",n)},f=ye()(Object(Ie.b)(n),function(e){var t,n=e.scene,r=e.slide;return c()(t="Scene ".concat(n+1," Slide ")).call(t,r+1)}),d=function(e,t){var n=t.goTo,r=t.nextSlide;return P()([[F()("next"),de()(u,[e,"Next Slide"])],[F()("end"),de()(u,[e,"End of Scenario"])],[Ae.a,de()(u,[e,f(r||{})])]])(n)},p="text"===l?d("Continue",t):s()(a).call(a,function(e,t){return d(t,e)});return e.createElement("div",{className:"scenario-block__pdf-details"},e.createElement("h3",null,"Scene ",o+1," Slide ",i+1),p)}},{key:"renderDialogue",value:function(t,n,o){var i,a=n.description,s=n.id,l=n.type,c=t.count,u=t.firstKey,f=t.hasFeedback,d=0===o?s:o,p=1===o?u:o-1,h=0===o&&1===c,m=o===c,v=this.refs["dialogue-".concat(d)],g=m&&this.refs["dialogue-".concat(p)],y=v&&v.offsetHeight,b=m&&g&&g.offsetHeight,_=f?30:0,E=window.innerWidth<480?20:30,x=2*E+60+b-_,k=E+60-_,S=le()(y+_-60),T=j()("scenario-block__dialogue",(i={},Object(r.a)(i,"scenario-block__dialogue--response",ne()(l)),Object(r.a)(i,"scenario-block__dialogue--faded",o<c-1),i)),C=P()([[w()(h),w()(null)],[F()(c),w()({top:"".concat(x,"px")})],[F()(c-1),w()({top:"".concat(k,"px")})],[F()(c-2),w()({top:"".concat(S,"px")})],[Ae.a,w()({top:"-".concat(y+30,"px")})]]),O={className:T,ref:"dialogue-".concat(d),style:C(o)},A={appear:!0,classNames:"scenario-block__dialogue-",key:o,timeout:{enter:700,exit:400}},N=e.createElement("div",{className:"scenario-block__dialogue__bubble brand--body"},e.createElement(Fe.a,{value:a}));return e.createElement(D.CSSTransition,A,e.createElement("div",null,e.createElement("div",O,We(a)&&N)))}},{key:"renderDialogues",value:function(t){var n,r,o=this.state,i=o.activeScene,a=o.activeSlide,l=o.slides,u=t.id,d=t.responses,p=l[c()(n="".concat(i,".")).call(n,a)]||{},h=I()(W.a,Ie.a,ae()(p))(t),m=p.hasFeedback,v=p.response,g=(d[v]||{}).feedback,y=ne()(v)&&ze(d),b=m?h.length-1:h.length,_=(1===b&&ee()(d)||2===b&&ze(d))&&m,w={count:b,firstKey:he()(null,[0,"id"],h),hasFeedback:m&&We(g)},E={classNames:"scenario-block__content-",key:u,timeout:400},x=e.createElement("div",{className:"scenario-block__dialogues__bottom"},e.createElement("div",{className:"scenario-block__dialogues__bottom__inner"},e.createElement("div",{className:"scenario-block__dialogues__responses"},e.createElement(D.TransitionGroup,null,s()(d).call(d,this.renderResponse)))));return e.createElement(D.CSSTransition,E,e.createElement("div",{className:"scenario-block__dialogues scenario-block__content"},e.createElement("div",{className:"scenario-block__dialogues__inner"},e.createElement("div",{className:"scenario-block__dialogues__top"},e.createElement("div",{className:"scenario-block__dialogues__top__inner"},e.createElement(D.TransitionGroup,null,s()(h).call(h,f()(r=this.renderDialogue).call(r,this,w))))),y&&x,_&&this.renderButton(h[b-1]))))}},{key:"renderEnd",value:function(){var t=this.props.labels,n=t.scenarioComplete,r=t.scenarioStartOver,o=I()(this.onFocus,de()(this.onClick,["end",null])),i=j()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),a={className:"scenario-block__text__end",onClick:o,onKeyDown:Object(Ue.a)(o),role:"button",tabIndex:Re.a};return e.createElement(D.CSSTransition,{classNames:"scenario-block__content-",key:"end",timeout:400},e.createElement("div",{className:i,key:"end"},e.createElement("div",{className:"scenario-block__text__inner"},e.createElement("div",{className:"scenario-block__text__title brand--head"},e.createElement("h2",null,n)),e.createElement("div",a,e.createElement("span",null,r),e.createElement("i",{className:"icon icon-reload"})))))}},{key:"renderPose",value:function(t){var n,r=this.getCharacterPose().pose,o=t.filters,i=t.id,a=t&&Object(Le.a)(t),s=C()(Ee()("name","style")),l=s(Ee()("value","left_aligned")),u=s(Ee()("value","right_aligned")),f=j()("scenario-block__character__inner",{"scenario-block__character__inner--active":r===a,"scenario-block__character__inner--right":z()(u,o),"scenario-block__character__inner--left":z()(l,o)});return e.createElement("div",{className:f,key:c()(n="".concat(i,"-")).call(n,Math.random())},e.createElement("img",{alt:"",src:a}))}},{key:"renderResponse",value:function(t,n){var r=t.description,o=this.props.isPDF?w()():I()(this.onFocus,de()(this.onResponseClick,[n])),i={className:j()(["scenario-block__response","scenario-block__response--".concat(n),"brand--body"]),onClick:o,onKeyDown:Object(Ue.a)(o),role:"button",tabIndex:Re.a},a={appear:!0,classNames:"scenario-block__response-",key:n,timeout:{enter:1600,exit:400}};return e.createElement(D.CSSTransition,a,e.createElement("div",i,e.createElement("div",{className:"scenario-block__response__inner"},e.createElement("div",{className:"scenario-block__response__number"},n+1),e.createElement(Fe.a,{value:r}))))}},{key:"renderText",value:function(t){var n=t.description,r=t.goTo,o=t.hasCharacter,i=t.id,a=t.nextSlide,s=t.title,l=this.props.labels,c=l.scenarioContinue,u=l.scenarioStartOver,f=!n&&(s||"").length<22,d=j()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!o,"scenario-block__text--short":f}),p={classNames:"scenario-block__content-",key:i,timeout:400},h=e.createElement("div",{className:"scenario-block__text__title brand--head"},e.createElement("h2",null,e.createElement(Fe.a,{value:s}))),m=e.createElement("div",{className:"scenario-block__text__description brand--body"},e.createElement(Fe.a,{value:n})),v=I()(this.onFocus,de()(this.onClick,[r,a])),g={className:"scenario-block__text__continue brand--background",onClick:v,onKeyDown:Object(Ue.a)(v),role:"button",tabIndex:Re.a},y={className:"scenario-block__text__end",onClick:v,onKeyDown:Object(Ue.a)(v),role:"button",tabIndex:Re.a},b=e.createElement("button",g,e.createElement("span",null,c)),_=e.createElement("div",y,e.createElement("span",null,u),e.createElement("i",{className:"icon icon-reload"}));return e.createElement(D.CSSTransition,p,e.createElement("div",{className:d,key:i},e.createElement("div",{className:"scenario-block__text__inner"},s&&h,n&&m,"end"===r?_:b)))}},{key:"resetSlide",value:function(e,t){var n,r=this.state.slides,o=c()(n="".concat(e,".")).call(n,t);this.setState({slides:S()(o,{hasFeedback:!1,response:null},r)})}},{key:"resetSlides",value:function(){var e=this.props.items;this.setState({slides:$e(function(e,t,n){return ye()(_e()("slides"),$e((r=n,function(e,t,n){var o;return S()(c()(o="".concat(r,".")).call(o,n),{hasFeedback:!1,response:null},e)}),{}),x()(e))(t);var r},{},e)})}},{key:"setNextSlide",value:function(){var e,t=this.props.items,n=this.state,o=n.activeScene,i=n.activeSlide,a=n.slides,s=t[o].slides[i]||{},l=s.responses,u=void 0===l?[]:l,f=s.type,d=c()(e="".concat(o,".")).call(e,i),p=S()("hasFeedback",!0),h=U()(Object(r.a)({},d,p));"dialogue"===f&&ee()(u)&&this.setState({slides:h(a)})}},{key:"shouldComponentUpdate",value:function(e,t){return e.items!==this.props.items||e.menuOpen!==this.props.menuOpen||t.activeScene!==this.state.activeScene||t.activeSlide!==this.state.activeSlide||t.initiated!==this.state.initiated||t.resizes!==this.state.resizes||t.slides!==this.state.slides}}],[{key:"propTypes",get:function(){return{items:Te.a.array.isRequired,labels:Te.a.object.isRequired,menuOpen:Te.a.bool,onItemUpdate:Te.a.func.isRequired,onStep:Te.a.func}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2077);var r=n(29),o=n.n(r),i=n(12),a=n.n(i),s=n(39),l=n(380),c=n(389),u=n(55),f=n(597),d=n(280),p=function(e){var t=e.blockId,n=e.lessonId;return function(e){var r=e.itemId,o=e.isCorrect;return Object(s.a)(Object(d.d)({itemId:r,lessonId:n,blockId:t,isCorrect:o}))}},h=function(e){var t=e.blockId,n=e.lessonId;return function(){return Object(s.a)(Object(d.b)({lessonId:n,blockId:t}))}};t.a=function(t){var n=t.animateBlockEntrance,r=t.blockId,i=t.items,s=t.labels,d=t.piles,m=t.progress,v=t.settings,g=a()("backgroundColor",v),y=Object(l.a)(g);return e.createElement(c.a,{settings:v,type:"sorting-activity"},e.createElement(u.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:!0},e.createElement(f.a,{hasDarkBackground:y,id:r,items:i,labels:s,onCardDrop:p(t),onReplay:h(t),piles:d,progress:o()({},["items",r],m)})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return C});var r=n(17),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=n(4),f=n.n(u),d=(n(2080),n(2)),p=n.n(d),h=n(76),m=n.n(h),v=n(127),g=n.n(v),y=n(16),b=n.n(y),_=n(51),w=n.n(_),E=n(598),x=n(390),k=function(e){return p()("deck",{"deck--complete":b()("percentViewed",100,e)})},S=function(e){var t=e.item,n=e.progress;return b()("lastIncorrectCardId",String(t.id),n)},T=b()("percentViewed",100),C=function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).cardRefs=[],t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"startKeyDrop",value:function(){var e=m()(this.cardRefs);e&&e.onStartSortAttempt()}},{key:"endKeyDrop",value:function(){var e=m()(this.cardRefs);e&&e.onEndSortAttempt()}},{key:"render",value:function(){var t=this,n=this.props,r=n.count,i=n.items,a=n.labels,s=n.id,l=n.progress,c=n.onReplay,u=T(l);return e.createElement("div",{className:k(l)},e.createElement("div",{className:"deck__spacer"}),e.createElement("div",{"aria-hidden":!u,className:"deck__cardholder"},e.createElement("div",{className:"deck__title brand--ui"},function(e){var t,n=e.progress,r=e.count;return f()(t="".concat(w()(0,"correctlyAnswered",n),"/")).call(t,r)}({progress:l,count:r})," ",a.sortingCardsCorrect),e.createElement(x.a,{allowTabNavigation:u,onClick:g()(c,[s]),text:a.sortingReplay})),e.createElement("div",{className:"deck__content"},o()(i).call(i,function(n,r){return e.createElement(E.a,{id:n.id,isDeckTopCard:t.cardRefs[r]===m()(t.cardRefs),isIncorrect:S({item:n,progress:l}),key:n.id,ref:function(e){t.cardRefs[r]=e},title:n.title})})))}}]),n}(e.Component);C.defaultProps={onReplay:Function.prototype}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var r=n(34),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(10),c=n(8),u=n(15),f=n(7),d=n(11),p=(n(2083),n(2)),h=n.n(p),m=n(41),v=n.n(m),g=n(227),y=n(0),b=n.n(y),_=n(22),w=n(598),E=n(42),x=n(24),k=n(78),S=function(t){function n(e){var t,r,o,i,f;return Object(s.a)(this,n),(f=Object(l.a)(this,Object(c.a)(n).call(this,e))).state={isSuccess:!1,showFocusOutline:!0},f.handleDragEnter=a()(t=f.handleDragEnter).call(t,Object(u.a)(f)),f.handleDragLeave=a()(r=f.handleDragLeave).call(r,Object(u.a)(f)),f.handleMouseDrop=a()(o=f.handleMouseDrop).call(o,Object(u.a)(f)),f.handleKeyboardDrop=a()(i=f.handleKeyboardDrop).call(i,Object(u.a)(f)),f}return Object(d.a)(n,t),Object(f.a)(n,null,[{key:"propTypes",get:function(){return{id:b.a.any.isRequired,lessonId:b.a.any.isRequired,onCardDrop:b.a.func.isRequired,title:b.a.string}}},{key:"defaultProps",get:function(){return{onCardDrop:Function.prototype}}}]),Object(f.a)(n,[{key:"focus",value:function(){this.pileContent.focus()}},{key:"componentDidMount",value:function(){Object(g.a)(this.pile).dropzone({overlap:"pointer"}).on("dragenter",this.handleDragEnter).on("dragleave",this.handleDragLeave).on("drop",this.handleMouseDrop)}},{key:"componentWillUnmount",value:function(){Object(g.a)(this.pile).off("dragenter",this.handleDragEnter).off("dragleave",this.handleDragLeave).off("drop",this.handleMouseDrop),clearTimeout(this.successTimer),clearTimeout(this.focusOutlineTimer)}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.onNavigateToNext,r=t.onNavigateToPrevious,o=Object(k.a)(this.handleKeyboardDrop),i=Object(k.a)(r),a=Object(k.a)(n);v()([[x.d,o],[x.f,i],[x.h,a]])(e)}},{key:"onKeyUp",value:function(e){Object(x.d)(e)&&this.props.onKeyDropEnd()}},{key:"handleDragEnter",value:function(e){var t=g.a.getElementRect(e.target),n={x:t.left+t.width/2,y:t.top+t.height/2};e.draggable.draggable({snap:{targets:[n]}})}},{key:"handleDragLeave",value:function(e){e.draggable.draggable({snap:{targets:[function(e,t){return{x:e,y:t}}]}})}},{key:"handleMouseDrop",value:function(e){e.draggable.draggable({snap:{targets:[function(e,t){return{x:e,y:t}}]}}),this.handleDrop()}},{key:"handleKeyboardDrop",value:function(){var e=this.props,t=e.deckTopCard,n=e.onKeyDropStart;t&&(n(),this.handleDrop())}},{key:"handleDrop",value:function(){var e,t,n=this.props,r=n.lessonId,i=n.id,s=n.deckTopCard,l=n.onCardDrop,c=s.id.toString(),u=s.pileId===i;(l({id:r,itemId:c,isCorrect:u}),u)&&(this.setState({activeCard:s,isSuccess:!0,showFocusOutline:!1}),this.successTimer=o()(a()(e=function(){this.setState({activeCard:null,isSuccess:!1})}).call(e,this),1500),this.focusOutlineTimer=o()(a()(t=function(){this.setState({showFocusOutline:!0})}).call(t,this),1300))}},{key:"render",value:function(){var t,n,r=this,o=this.props.title,i=this.state,s=i.activeCard,l=i.isSuccess,c=i.showFocusOutline,u=h()("pile",{"drop-success":l}),f=h()("pile__content",{"drop-animating":!c});return e.createElement("div",{className:u,ref:function(e){return r.pile=e}},e.createElement("div",{className:"pile__wrapwrap"},e.createElement("div",{className:"pile__wrap"},e.createElement("div",{className:"pile__message"},e.createElement(E.a,{className:"pile__title brand--head",value:o})),e.createElement("div",{className:f,onKeyDown:a()(t=this.onKeyDown).call(t,this),onKeyUp:a()(n=this.onKeyUp).call(n,this),ref:function(e){return r.pileContent=e},tabIndex:_.a},s&&e.createElement(w.a,{id:s.id,title:s.title})),e.createElement("div",{className:"pile__background"}))))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2084);var r=n(29),o=n.n(r),i=n(12),a=n.n(i),s=n(380),l=n(389),c=n(55),u=n(599),f=function(t){var n=t.animateBlockEntrance,r=t.blockId,i=t.isLearner,f=t.items,d=t.labels,p=t.progress,h=t.settings,m=a()("backgroundColor",h),v=Object(s.a)(m);return e.createElement(l.a,{settings:h,type:"timeline"},e.createElement(c.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:!0},e.createElement(u.a,{hasDarkBackground:v,id:r,isBlock:!0,isLearner:i,items:f,labels:d,progress:o()({},["items",r],p)})))};f.defaultProps={isLearner:!0},t.a=f}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2088),n(19)),c=n.n(l),u=n(2),f=n.n(u),d=n(102),p=n.n(d),h=n(49),m=n.n(h),v=n(51),g=n.n(v),y=n(0),b=n.n(y),_=n(22),w=n(226),E=n(63),x=n(475),k=n(42),S=n(175),T=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"renderMedia",value:function(t,n){if(Object(x.a)(t)){var r=t.embed?Object(w.b)(t.embed):void 0,o=f()({"timeline-card__audio":t.audio,"timeline-card__visual":t.image||t.video,"timeline-card__linkEmbed":"link"===r,"timeline-card__videoEmbed":"video"===r}),i=p()(c()("pause",!0),t);return e.createElement("div",{className:o},e.createElement(S.a,{index:"".concat(this.props.item.id),labels:this.props.labels,opts:n,media:i}))}}},{key:"render",value:function(){var t=this.props,n=t.item,r=t.isActive,o=t.labels,i=t.loadMedia,a=t.onFocus,s=n.id,l=n.settings,c=g()({},"media",n),u=m()(["audio"],c),d=m()(["embed"],c),p=m()(["image","video"],c),h=f()("timeline-card",{"timeline-card--active":r});return e.createElement("div",{className:h,"data-id":s,ref:this.props.innerRef},e.createElement("div",{"aria-label":C(n,o),className:"timeline-card__body brand--beforeBackground",onFocus:a,role:E.a,tabIndex:_.a},e.createElement("div",{className:"timeline-card__main-wrap"},e.createElement("div",{className:"timeline-card__main"},e.createElement("div",{className:"timeline-card__date brand--color brand--body"},e.createElement("h1",null,n.date)),e.createElement("div",{className:"timeline-card__title brand--head"},e.createElement("h2",null,e.createElement(k.a,{value:n.title}))),i?this.renderMedia(u,l):null,i?this.renderMedia(d,l):null,e.createElement(k.a,{className:"timeline-card__description brand--body brand--linkColor",value:n.description}),i?this.renderMedia(p):null))))}}],[{key:"propTypes",get:function(){return{isActive:b.a.bool.isRequired,item:b.a.object.isRequired,labels:b.a.object.isRequired,loadMedia:b.a.bool.isRequired,onFocus:b.a.func.isRequired}}}]),n}(e.Component),C=function(e,t){var n=t.timelineCardGroupPrefix;return e.title||e.date?n+" - "+(e.date||e.title):n}}).call(this,n(1))},function(e,t,n){var r=n(2227),o=n(2229)(function(e,t,n){r(e,n,t)});e.exports=o},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(259)},function(e,t,n){var r=n(373),o=n(2242),i=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,a=RegExp(i.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(i,o):e||"(?:)"}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=[],o=0;return n.replace(e,function(){var e=Array.prototype.slice.call(arguments),n=e.length,i=e[0],a=e[n-1],s=e[n-2],l=a.slice(o,s),c="function"==typeof t?t.apply(null,e):t;r.push(l,c),o=s+i.length}),r.push(n.slice(o)),r}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=n(0),f=n.n(u),d=n(605),p=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t;return e.createElement(d.a,{onViewed:o()(t=this.handleViewed).call(t,this,this.props.children.props),isFirstLesson:this.props.isFirstLesson},this.modifiedChildren())}},{key:"modifiedChildren",value:function(){var t;return e.cloneElement(e.Children.only(this.props.children),{onStep:o()(t=this.handleStep).call(t,this)})}},{key:"handleStep",value:function(e){var t=e.id;e.isDone||this.props.onStep(t)}},{key:"handleViewed",value:function(e){e.requiresInteraction?(/tabs|carousel/.test(e.variant)||/gallery/.test(e.family))&&this.handleStep(e.items[0]):this.props.onViewed()}}]),n}(e.Component);f.a.arrayOf,f.a.func,f.a.node,f.a.oneOfType}).call(this,n(1))},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(u){var d=c(n);d&&d!==u&&e(t,d,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var h=0;h<p.length;++h){var m=p[h];if(!(r[m]||o[m]||f&&f[m])){var v=l(n,m);try{i(t,m,v)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";(function(e){var r=n(1219),o=n(92);t.a=function(t){var n=t.data,i=n.id,a=n.items,s=n.type,l=t.labels,c=t.lessonHeader,u=t.lessonProgress,f=t.menuButtons,d=t.nextComponent,p=t.previousComponent;return e.createElement(o.c,{type:s},p,e.createElement(o.b,{type:s},f,c,e.createElement(o.a,null,e.createElement(r.a,{id:i,items:a,labels:l,lessonProgress:u}))),d)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(34),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2255),n(25)),f=n.n(u),d=n(0),p=n.n(d),h=n(39),m=n(226),v=n(470),g=n(386),y=function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).type=Object(m.a)(e.items),t.state={isLoaded:"video"!==t.type},t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.id;"video"===this.type&&o()(function(){e.setState({isLoaded:!0})},800),Object(h.a)(Object(v.c)(t))}},{key:"render",value:function(){if(!this.state.isLoaded)return null;var t=this.props,n=t.id,r=t.items,o=t.labels,i=f()([0,"media","embed"],r),a=f()([0,"settings","showMetaData"],r),s=o.urlEmbedLandmark;return e.createElement("section",{"aria-label":s,className:"embed-lesson"},e.createElement("div",{className:"embed-lesson__item",key:n},e.createElement("div",{className:"embed-lesson__row"},e.createElement("div",{className:"embed-lesson__main"},e.createElement(g.a,{data:i,isLesson:!0,labels:o,showMetaData:a})))))}}]),n}(e.Component);p.a.any,p.a.array,p.a.object}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=n(17),c=n.n(l),u=(n(2256),n(0)),f=n.n(u),d=n(81),p=n(243),h=n(42),m=n(317),v=function(t){var n,r=t.authorName,o=t.avatar,i=t.children,a=t.description,s=t.labels,l=t.lessonNumber,u=t.showLessonCount,f=t.title,m=t.totalLessons,v=s.lessonName,g=s.lessonPreposition,y=u&&e.createElement("div",{className:"lesson-header__count"},v," ",l," ",g," ",m);return e.createElement("div",{className:"lesson-header"},e.createElement("div",{className:"lesson-header__top-wrap brand--afterBackground"},e.createElement("div",{className:"lesson-header__counter brand--body brand--linkColor"},y),e.createElement(h.a,{className:"lesson-header__title brand--lhead",value:f}),o&&r?e.createElement("div",{className:"lesson-header__author brand--ui"},e.createElement("img",{src:Object(d.l)("".concat(o)),alt:""}),r):null),c()(n=e.Children).call(n,i,function(t){return t&&t.type===p.a?e.createElement("div",{className:"lesson-header__audio"},t):null}),e.createElement(h.a,{className:"lesson-header__description brand--lbody brand--linkColor",value:a}))},g=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t,n=this.props,r=n.children,o=n.labels.lessonHeaderLandmark;return e.createElement("section",{className:"page__header","aria-label":o},e.createElement("div",{className:"page__header-limit"},e.createElement("div",{className:"page__header-container"},e.createElement("div",{className:"lesson-header__row"},e.createElement("div",{className:"lesson-header__main"},e.createElement(v,this.props)))),c()(t=e.Children).call(t,r,function(e){return e&&e.type!==m.a?null:e})))}}],[{key:"propTypes",get:function(){return{authorName:f.a.string,avatar:f.a.string,description:f.a.string,showLessonCount:f.a.bool,steps:f.a.number,title:f.a.string.isRequired,type:f.a.string.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(1222),o=n(92);t.a=function(t){var n=t.labels,i=t.lessonHeader,a=t.lessonProgress,s=t.menuButtons,l=t.nextComponent,c=t.previousComponent,u=t.data,f=u.id,d=u.items,p=u.media,h=u.type;return e.createElement(o.c,{type:h},c,e.createElement(o.b,{type:h},s,i,e.createElement(o.a,null,e.createElement(r.a,{id:f,items:d,labels:n,lessonProgress:a,image:p.image}))),l)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(3),o=n.n(r),i=n(9),a=n(10),s=n(8),l=n(15),c=n(7),u=n(11),f=(n(2258),n(2)),d=n.n(f),p=n(39),h=n(0),m=n.n(h),v=n(595),g=n(471),y=function(t){function n(e){var t,r;return Object(i.a)(this,n),(r=Object(a.a)(this,Object(s.a)(n).call(this,e))).onItemSelected=o()(t=r.onItemSelected).call(t,Object(l.a)(r)),r}return Object(u.a)(n,t),Object(c.a)(n,null,[{key:"propTypes",get:function(){return{id:m.a.any.isRequired,image:m.a.object,items:m.a.array.isRequired,labels:m.a.object,lessonProgress:m.a.object,readOnly:m.a.bool}}}]),Object(c.a)(n,[{key:"render",value:function(){var t=this.props,n=t.id,r=t.image,o=void 0===r?{}:r,i=t.items,a=t.isPreview,s=t.labels,l=t.lessonProgress,c=t.readOnly,u=s.labeledGraphicLandmark,f=d()("page__content-container","labeled-graphic-lesson-content-container"),p={animateBlockEntrance:!1,editable:!1,items:i,isPreview:a,isLearner:!0,labels:s,media:{image:o},onItemSelected:c?void 0:this.onItemSelected,parentId:n,progress:l};return e.createElement("section",{"aria-label":u,className:"page__content"},e.createElement("div",{className:f},e.createElement(v.a,p)))}},{key:"onItemSelected",value:function(e){var t=this.props.id;Object(p.a)(Object(g.a)({id:t,itemId:e}))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(92),o=n(1224),i=n(317),a=n(606),s=Object(a.a)(o.a);t.a=function(t){var n=t.authorName,o=t.avatar,a=t.data,l=a.description,c=a.id,u=a.items,f=a.title,d=a.type,p=t.labels,h=t.lessonNumber,m=t.lessonProgress,v=t.loadMedia,g=t.menuButtons,y=t.menuOpen,b=t.mobileMenuOpen,_=t.nextComponent,w=t.prefersKeyboardNavigation,E=t.previousComponent,x=t.showLessonCount,k=t.totalLessons;return e.createElement(r.c,{type:d},E,e.createElement(r.b,{type:d},g,e.createElement(r.a,{type:d,items:u},e.createElement(i.a,{id:c,items:u,lessonProgress:m,menuOpen:y,mobileMenuOpen:b,type:"process"}),e.createElement(s,{authorName:n,avatar:o,description:l,id:c,items:u,labels:p,loadMedia:v,lessonNumber:h,lessonProgress:m,menuOpen:y,mobileMenuOpen:b,nextComponent:_,prefersKeyboardNavigation:w,previousComponent:E,showLessonCount:x,title:f,totalLessons:k,type:d}))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return oe});var r=n(34),o=n.n(r),i=n(17),a=n.n(i),s=n(3),l=n.n(s),c=n(9),u=n(7),f=n(10),d=n(8),p=n(15),h=n(11),m=(n(2261),n(2)),v=n.n(m),g=n(41),y=n.n(g),b=n(149),_=n.n(b),w=n(80),E=n.n(w),x=n(87),k=n.n(x),S=n(25),T=n.n(S),C=n(29),O=n.n(C),j=n(315),A=n.n(j),N=n(12),M=n.n(N),I=n(16),L=n.n(I),P=n(51),D=n.n(P),R=n(79),F=n.n(R),B=n(0),U=n.n(B),q=n(139),z=n.n(q),H=n(39),W=n(205),$=n(24),Y=n(22),K=n(75),V=n(767),G=n(40),X=n(1225),Z=n(1226),Q=n(1227),J=n(388),ee=n(352),te=Object(W.a)(".next-lesson__link"),ne=Object(W.a)(".restart-button"),re=O()(0,["lessonProgress","activeIndex"]),oe=function(t){function n(e){var t,r,o,i,a,s,u,h,m,v;return Object(c.a)(this,n),(v=Object(f.a)(this,Object(d.a)(n).call(this,e))).state={xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null,resetContentFocus:!1,isTransitioning:!1},v.handleKeyDown=l()(t=v.handleKeyDown).call(t,Object(p.a)(v)),v.handleReplay=l()(r=v.handleReplay).call(r,Object(p.a)(v)),v.handleScroll=l()(o=v.handleScroll).call(o,Object(p.a)(v)),v.leftSwipe=l()(i=v.nextSlide).call(i,Object(p.a)(v)),v.nextSlide=l()(a=v.nextSlide).call(a,Object(p.a)(v)),v.previousSlide=l()(s=v.previousSlide).call(s,Object(p.a)(v)),v.renderItem=l()(u=v.renderItem).call(u,Object(p.a)(v)),v.rightSwipe=l()(h=v.previousSlide).call(h,Object(p.a)(v)),v.handleAnimationEnd=l()(m=v.handleAnimationEnd).call(m,Object(p.a)(v)),v}return Object(h.a)(n,t),Object(u.a)(n,[{key:"handleScroll",value:function(){var e=window.pageYOffset,t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(window.matchMedia("(min-width: 768px)").matches){var n=t/2+e-50;this.previousContainer.style.transform="translate3d(-50px, ".concat(n,"px, 0)"),this.nextContainer.style.transform="translate3d(50px, ".concat(n,"px, 0)")}else{this.previousContainer.style.transform="none",this.nextContainer.style.transform="none";var r=t+e-(K.a.isIphoneSafari?94:50);this.controls.style.transform="translate3d(0, ".concat(r,"px, 0)")}}},{key:"componentDidMount",value:function(){var e=this.controlsContainer;this.swipeEvents=Object(J.a)(e,this,this.leftSwipe,this.rightSwipe),this.swipeEvents.addListeners(),document.addEventListener("keydown",this.handleKeyDown),K.a.isSafari9&&(this.scrollRef=z()(this.handleScroll,10),window.addEventListener("scroll",this.scrollRef),this.handleScroll()),this.preventFocusOnOverflowElements(),this.controlsContainer.addEventListener("animationend",this.handleAnimationEnd)}},{key:"componentWillUnmount",value:function(){this.swipeEvents.removeListeners(),document.removeEventListener("keydown",this.handleKeyDown),K.a.isSafari9&&window.removeEventListener("scroll",this.scrollRef),this.controlsContainer.removeEventListener("animationend",this.handleAnimationEnd)}},{key:"componentDidUpdate",value:function(e){this.handleSlideScroll(e)}},{key:"render",value:function(){var t,n=this,r=this.isAtStart(),o=this.isAtEnd(),i=this.props.labels.processLandmark;return e.createElement("section",{"aria-label":i,className:this.getClassName({isAtStart:r,isAtEnd:o}),ref:function(e){n.controlsContainer=e}},this.renderControls({isAtStart:r,isAtEnd:o}),e.createElement("div",{className:"process__wrap"},this.renderStart(),a()(t=this.props.items).call(t,this.renderItem),this.renderEnd()))}},{key:"renderControls",value:function(t){var n=this,r=t.isAtStart,o=t.isAtEnd,i=this.props,a=i.applySafariLandscapeHack,s=i.labels,l=i.safariLandscapeHackOffset,c=this.getControlsClassName({isAtStart:r,isAtEnd:o}),u=a?{bottom:l}:{},f=this.state.isTransitioning;return e.createElement(A.a,null,e.createElement("div",{className:this.getMenuClassName()},e.createElement("div",{ref:function(e){n.controls=e},className:c,style:u},e.createElement("div",{ref:function(e){n.nextContainer=e}},e.createElement(V.a,{allowTabNavigation:!o,atStart:r,labels:s,onClick:this.nextSlide,ref:function(e){n.nextControl=e},isTransitioning:f,type:"next"})),e.createElement("div",{ref:function(e){n.previousContainer=e}},e.createElement(V.a,{allowTabNavigation:!r,atStart:r,labels:s,onClick:this.previousSlide,ref:function(e){n.previousControl=e},isTransitioning:f,type:"previous"})))))}},{key:"renderStart",value:function(){var t=this,n=this.props,r=n.authorName,o=n.avatar,i=n.description,a=n.items,s=n.labels,l=n.lessonNumber,c=n.showLessonCount,u=n.title,f=n.totalLessons,d=n.type,p=this.isAtStart();return e.createElement("div",{"aria-hidden":!p,className:this.getItemClassName(0),ref:function(e){t["item-".concat(0)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(Q.a,{allowTabNavigation:p,authorName:r,avatar:o,description:i,labels:s,lessonNumber:l,onFullScreenChange:this.handleFullScreenChange,showLessonCount:c,steps:a.length,title:u,totalLessons:f,type:d})))}},{key:"renderItem",value:function(t,n){var r=this,o=this.props,i=o.items,a=o.labels,s=o.loadMedia,l=o.lessonNumber,c=E()(n),u=re(this.props),f=c===u;return e.createElement("div",{"aria-hidden":!f,className:this.getItemClassName(c),key:"item-".concat(t.id),ref:function(e){r["item-".concat(c)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(X.a,{allowTabNavigation:f,description:t.description,id:t.id,index:c,key:t.id,labels:a,lessonNumber:l,loadMedia:s,media:t.media,onFullScreenChange:this.handleFullScreenChange,settings:t.settings,steps:i.length,title:t.title})))}},{key:"renderEnd",value:function(){var t=this,n=this.props,r=n.applySafariLandscapeHack,o=n.items,i=n.labels,a=n.lessonNumber,s=n.nextComponent,l=E()(o.length);return e.createElement("div",{"aria-hidden":!this.isAtEnd(),className:this.getItemClassName(l),ref:function(e){t["item-".concat(l)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(Z.a,{applySafariLandscapeHack:r,current:a,labels:i,onReplay:this.handleReplay},s)))}},{key:"preventFocusOnOverflowElements",value:function(){var e=Object(Y.l)(this.isAtEnd());Object(Y.i)(te(),e),Object(Y.i)(ne(),e)}},{key:"focusNextElement",value:function(){var e=this.nextControl,t=this.previousControl;if(this.isAtEnd()){var n=te();n?n.focus():t.focus()}else this.isAtStart()&&e.focus()}},{key:"updateFocusForActiveCard",value:function(){!Object(Y.c)(this["item-".concat(re(this.props))])&&this.isAtStart()&&this.focusNextElement()}},{key:"handleAnimationEnd",value:function(e){var t=e.animationName,n=F()(t,["showcard","showcardUp"]);(this.state.isTransitioning&&this.setState({isTransitioning:!1}),n&&this.state.resetContentFocus)?(this.props.prefersKeyboardNavigation&&this.updateFocusForActiveCard(),this.setState({resetContentFocus:!1})):"showFoot"===t&&this.focusNextElement()}},{key:"getClassName",value:function(e){var t=e.isAtStart,n=e.isAtEnd;return v()("process",{"process--reverse-animation":"backwards"===this.props.lessonProgress.direction,"process--at-start":t,"process--at-end":n})}},{key:"getControlsClassName",value:function(e){var t=e.isAtStart,n=e.isAtEnd;return v()("process__controls",{"process__controls--at-start":t,"process__controls--at-end":n})}},{key:"getItemClassName",value:function(e){var t=re(this.props);return v()("process__item",{"process__item--active":e===t,"process__item--done":e<t,"process__item--next":_()(e)===t})}},{key:"getMenuClassName",value:function(){var e=this.props,t=e.menuOpen,n=e.mobileMenuOpen,r=!!document.querySelector(".lesson--preview");return v()("lesson-controls-wrapper",{"lesson--open":t&&!r,"lesson--open-mobile":n&&!r})}},{key:"previousSlide",value:function(){if(!this.isAtStart()){this.slidePrep();var e=this.props,t=e.id,n=e.lessonProgress,r=Math.max(0,_()(D()(0,"activeIndex",n)));this.setState({resetContentFocus:!0}),Object(H.a)(Object(ee.e)({activeIndex:r,id:t}))}}},{key:"nextSlide",value:function(){if(!this.isAtEnd()){this.isAtStart()&&this.setState({isTransitioning:!0}),this.slidePrep();var e=this.props,t=e.id,n=e.items,r=e.lessonProgress,o=Math.max(0,E()(D()(0,"activeIndex",r))),i=T()([_()(o),"id"],n);this.setState({resetContentFocus:!0}),Object(H.a)(Object(ee.d)({activeIndex:o,id:t,itemId:i}))}}},{key:"handleKeyDown",value:function(e){y()([[$.f,this.previousSlide],[$.h,this.nextSlide]])(e)}},{key:"slidePrep",value:function(){G.a.pause(),this.setState({xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null})}},{key:"handleReplay",value:function(){Object(H.a)(Object(ee.b)({id:this.props.id}))}},{key:"handleFullScreenChange",value:function(){var e=document.querySelector(".process__item--active");document.webkitFullscreenElement?e.style.animationDuration="0s":o()(function(){e.style.animationDuration=""},750)}},{key:"handleSlideScroll",value:function(e){var t=O()(0,["lessonProgress","activeIndex"],e);if(t!==O()(0,["lessonProgress","activeIndex"],this.props)){var n=document.querySelector(".page-wrap"),r=n.scrollTop,o=this.props.previousComponent?70:0;this["item-".concat(t)].scrollTop=r-o,n.scrollTop=o,this.preventFocusOnOverflowElements()}}},{key:"isAtStart",value:function(){return k()(M()("activeIndex",this.props.lessonProgress))}},{key:"isAtEnd",value:function(){var e=this.props,t=e.items,n=e.lessonProgress;return L()("activeIndex",E()(t.length),n)}}],[{key:"propTypes",get:function(){return{authorName:U.a.string.isRequired,avatar:U.a.string.isRequired,description:U.a.string.isRequired,id:U.a.any.isRequired,items:U.a.array.isRequired,labels:U.a.object.isRequired,lessonNumber:U.a.number.isRequired,lessonProgress:U.a.object.isRequired,loadMedia:U.a.bool.isRequired,menuOpen:U.a.bool.isRequired,mobileMenuOpen:U.a.bool.isRequired,nextComponent:U.a.object,previousComponent:U.a.object,title:U.a.string.isRequired,totalLessons:U.a.number.isRequired,type:U.a.string.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2262),n(0)),c=n.n(l),u=n(175),f=n(42),d=function(t){var n=t.processStepName,r=t.index,o=t.processStepPreposition,i=t.steps;return e.createElement("div",{className:"card__side"},e.createElement("div",{className:"card__step-label brand--background brand--body"},n," ",r," ",o," ",i))},p=function(t){var n=t.allowTabNavigation,r=t.description,o=t.index,i=t.labels,a=t.loadMedia,s=t.media,l=t.onFullScreenChange,c=t.settings,d=t.title,p=t.lessonNumber;return e.createElement("div",{className:"card__main"},e.createElement(f.a,{className:"card__title brand-afterBackground brand--lhead",value:d}),e.createElement("div",{className:"card__media"},a?e.createElement(u.a,{index:"".concat(o),labels:i,media:s,opts:c,onFullScreenChange:l,allowTabNavigation:n,lessonNumber:p}):null),e.createElement(f.a,{className:"card__description brand--lbody brand--linkColor",value:r,allowTabNavigation:n}))},h=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props,n=t.index,r=t.labels,o=t.steps,i=r.processStepName,a=r.processStepPreposition;return e.createElement("div",{className:"card"},e.createElement("div",{className:"card__container"},e.createElement("div",{className:"card__row"},e.createElement(d,{processStepName:i,index:n,processStepPreposition:a,steps:o}),e.createElement(p,this.props))))}}],[{key:"defaultProps",get:function(){return{settings:{}}}},{key:"propTypes",get:function(){return{onClick:c.a.func,mediaSrc:c.a.string,mediaType:c.a.string,index:c.a.number.isRequired,title:c.a.string,description:c.a.string,loadMedia:c.a.bool.isRequired,allowTabNavigation:c.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(4),o=n.n(r),i=(n(2263),n(390)),a=n(2),s=n.n(a),l=function(e){var t,n,r=e.current,i=e.labels,a=i.processComplete,s=i.processLessonName;return o()(t=o()(n="".concat(s," ")).call(n,r," ")).call(t,a)};t.a=function(t){var n=t.applySafariLandscapeHack,r=t.children,o=t.current,a=t.labels,c=t.onReplay,u=s()("process-end__footer",{"process-end__footer--mobile-safari-landscape":n});return e.createElement("div",{className:"process-end"},e.createElement("div",{className:"process-end__container"},e.createElement("div",{className:"process-end__message"},e.createElement("div",{className:"process-end__text brand--ui"},l({current:o,labels:a})))),e.createElement(i.a,{onClick:c,text:a.processStartAgain}),e.createElement("div",{className:u},r))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m});var r=n(17),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2264),n(0)),f=n.n(u),d=n(81),p=n(243),h=n(42),m=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t,n=this.props,r=n.allowTabNavigation,i=n.authorName,a=n.avatar,s=n.children,l=n.description,c=n.labels,u=n.lessonNumber,f=n.showLessonCount,m=n.title,v=n.totalLessons,g=c.lessonName,y=c.lessonPreposition;return e.createElement("div",{className:"process-header"},e.createElement("div",{className:"process-header__container"},e.createElement("div",{className:"process-header__limit"},e.createElement("div",{className:"process-header__row"},e.createElement("div",{className:"process-header__main"},e.createElement("div",{className:"process-header__top-wrap brand--afterBackground"},f&&function(t){var n=t.lessonName,r=t.lessonNumber,o=t.lessonPreposition,i=t.totalLessons;return e.createElement("div",{className:"process-header__counter brand--body"},e.createElement("div",{className:"process-header__count"},n," ",r," ",o," ",i))}({lessonName:g,lessonNumber:u,lessonPreposition:y,totalLessons:v}),e.createElement(h.a,{className:"process-header__title brand--lhead",value:m}),a&&i?e.createElement("div",{className:"process-header__author brand--ui"},e.createElement("img",{src:Object(d.l)("".concat(a)),alt:""}),i):null),o()(t=e.Children).call(t,s,function(t){return t&&t.type===p.a?e.createElement("div",{className:"process-header__audio"},t):null}),e.createElement(h.a,{className:"process-header__description brand--lbody editor-text brand--linkColor",value:l,allowTabNavigation:r}))),s)))}}],[{key:"propTypes",get:function(){return{steps:f.a.number,avatar:f.a.string,authorName:f.a.string,title:f.a.string.isRequired,type:f.a.string.isRequired,description:f.a.string,allowTabNavigation:f.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(92),o=n(317),i=n(1229);t.a=function(t){var n=t.authorName,a=t.avatar,s=t.color,l=t.continueComponent,c=t.data,u=c.description,f=c.id,d=c.items,p=c.settings,h=c.title,m=c.type,v=t.isLesson,g=t.labels,y=t.lessonNumber,b=t.lessonProgress,_=t.menuButtons,w=t.menuOpen,E=t.mobileMenuOpen,x=t.nextComponent,k=t.prefersKeyboardNavigation,S=t.previousComponent,T=t.showLessonCount,C=t.totalLessons;return e.createElement(r.c,{type:m},S,e.createElement(r.b,{type:m},_,e.createElement(r.a,{type:m,items:d},e.createElement(o.a,{id:f,lessonProgress:b,menuOpen:w,mobileMenuOpen:E,type:"quiz"}),e.createElement(i.a,{authorName:n,avatar:a,color:s,description:u,id:f,isLesson:v,items:d,labels:g,lessonNumber:y,lessonProgress:b,menuOpen:w,mobileMenuOpen:E,nextComponent:l||x,prefersKeyboardNavigation:k,previousComponent:S,settings:p,showLessonCount:T,title:h,totalLessons:C}))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return xe});var r=n(4),o=n.n(r),i=n(32),a=n(17),s=n.n(a),l=n(33),c=n.n(l),u=n(9),f=n(7),d=n(10),p=n(8),h=n(11),m=(n(2265),n(19)),v=n.n(m),g=n(117),y=n.n(g),b=n(247),_=n.n(b),w=n(2),E=n.n(w),x=n(5),k=n.n(x),S=n(131),T=n.n(S),C=n(35),O=n.n(C),j=n(30),A=n.n(j),N=n(476),M=n.n(N),I=n(36),L=n.n(I),P=n(768),D=n.n(P),R=n(468),F=n.n(R),B=n(80),U=n.n(B),q=n(27),z=n.n(q),H=n(14),W=n.n(H),$=n(354),Y=n.n($),K=n(87),V=n.n(K),G=n(1230),X=n.n(G),Z=n(25),Q=n.n(Z),J=n(29),ee=n.n(J),te=n(12),ne=n.n(te),re=n(16),oe=n.n(re),ie=n(51),ae=n.n(ie),se=n(283),le=n.n(se),ce=n(31),ue=n.n(ce),fe=n(72),de=n(114),pe=n(1231),he=n(1234),me=n(1235),ve=de.a.MATCHING,ge=ee()(0,["lessonProgress","activeIndex"]),ye=function(e,t){return k()(O()(e),ge)(t)},be=ee()(0,["lessonProgress","retryAttempts"]),_e=T()(function(e){return M()(function(e){return k()(D()(L.a,e),oe()("id"),ne()("id"))}(e),F.a)}),we=k()(X()("answers"),Y()(T()(function(e){return z()(function(e){return k()(Y()(y.a),_e(e))}(e))})),_()(ne()("answers"),ne()("answers"))),Ee=D()(function(e){return z()((t=e,k()(Y()(y.a),M()(we,Y()(y.a)),_e(t))));var t}),xe=function(t){function n(e){var t;return Object(u.a)(this,n),(t=Object(d.a)(this,Object(p.a)(n).call(this,e))).state={items:Me(e)},t}return Object(h.a)(n,t),Object(f.a)(n,[{key:"componentWillReceiveProps",value:function(e){if(be(this.props)!==be(e))this.setState({items:Me(e)});else{var t=Ee(this.state.items,e.items);this.setState({items:t})}}},{key:"render",value:function(){var t=this.state.items,n=ge(this.props),r=Ce(n),o=W()(this.props,{getClassName:r}),i=function(e){return{start:e<2?0:e-2,end:e+2}}(n),a=i.start,l=i.end,u=c()(t).call(t,a,l),f=Se(o,a),d=this.props.labels.quizLandmark;return e.createElement("section",{"aria-label":d,className:"quiz","data-quiz":!0},e.createElement("div",{className:"quiz__wrap"},n<2?ke(o):null,s()(u).call(u,f),Te(o)))}}]),n}(e.Component),ke=function(t){var n=t.authorName,r=t.avatar,o=t.description,i=t.getClassName,a=t.id,s=t.isLesson,l=t.items,c=t.labels,u=t.lessonNumber,f=t.lessonProgress,d=t.showLessonCount,p=t.title,h=t.totalLessons;return e.createElement("div",{className:i(0)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(he.a,{allowTabNavigation:ye(0,{lessonProgress:f}),authorName:n,avatar:r,description:o,id:a,isLesson:s,items:l,labels:c,lessonNumber:u,lessonProgress:f,showLessonCount:d,title:p,totalLessons:h})))},Se=function(t,n){return function(r,o){return e.createElement(me.a,Object(i.a)({index:o+n,item:r,key:"item-".concat(r.id),retryAttempts:be({lessonProgress:t.lessonProgress})},t))}},Te=function(t){var n=t.color,r=t.id,o=t.getClassName,i=t.items,a=t.labels,s=t.lessonNumber,l=t.lessonProgress,c=t.nextComponent,u=t.settings,f=u.passingScore,d=u.retryCount,p=U()(i.length),h=ye(p,{lessonProgress:l});return e.createElement("div",{className:o(p)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(pe.a,{allowTabNavigation:h,color:n,current:s,id:r,isAtEnd:h,labels:a,length:i.length,lessonProgress:l,passingScore:f,nextComponent:c,retryAttempts:be({lessonProgress:l}),retryCount:Number(d)})))},Ce=function(e){return function(t){return E()("quiz__item",{"quiz__item--active":t===e,"quiz__item--done":t<e,"quiz__item--next":t===e+1,"quiz__item--penultimate":t===e+2,"quiz__item--future":t>e+2})}},Oe=oe()("type",ve),je=function(e){return function(t){return Oe(t)?function(e){var t=Object(fe.i)(ae()([],"answers",e));return W()(e,{titleIndices:le()(t),matchIndices:t})}(t):e?A()({answers:le.a},t):t}},Ae=ee()(!1,["settings","shuffleAnswerChoices"]),Ne=ee()(!1,["settings","randomizeQuestionOrder"]),Me=k()(ne()("items"),function(e){var t=Ae(e),n=je(t);return A()({items:z()(n)},e)},ue()(Ne,function(e){var t,n,r=ne()("items",e),i=Q()(["lessonProgress","items"],e),a=k()(String,ne()("id")),s=Object(fe.d)(i,ne()("isComplete")),l=Object(fe.c)(a,s)(r),c=Object(fe.d)(i,k()(V.a,ne()("isComplete"))),u=Object(fe.c)(a,c)(r),f=o()(t=o()(n=[]).call(n,l)).call(t,le()(u));return v()("items",f,e)}))}).call(this,n(1))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(120),o=n(369);e.exports=r(function(e,t){if(!e||!o(e))throw new TypeError("objOf: Non-empty String required for first argument");return(n={})[e]=t,n;var n})},function(e,t,n){"use strict";(function(e){var r=n(156),o=(n(2266),n(1232));t.a=function(t){var n=t.nextComponent,i=Object(r.a)(t,["nextComponent"]);return e.createElement("div",{"aria-hidden":!i.allowTabNavigation,className:"quiz-end"},e.createElement("div",{className:"quiz-end__container"},e.createElement(o.a,i)),e.createElement("div",{className:"quiz-end__footer"},i.isAtEnd&&n))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(9),o=n(7),i=n(10),a=n(8),s=n(11),l=(n(2267),n(2)),c=n.n(l),u=n(39),f=n(320),d=n(1233),p=n(390),h=function(t){function n(){return Object(r.a)(this,n),Object(i.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.color,o=t.id,i=t.isAtEnd,a=t.labels,s=a.quizPassing,l=a.quizResults,c=a.quizScore,u=a.quizTakeAgain,f=t.lessonProgress,p=f.reportResults,h=f.score,v=t.passingScore,g=t.retryAttempts,b=t.retryCount;return e.createElement("div",{className:m({isAtEnd:i})},e.createElement("div",{className:"quiz-results__header"},e.createElement("div",{className:"quiz-results__label"},l),e.createElement("div",{className:"quiz-results__passing"},e.createElement("div",{className:"odometer__passlabel brand--ui"},s),e.createElement("div",{className:"odometer__passpercent brand--ui"},"".concat(v,"%")))),e.createElement("div",{className:"quiz-results__results"},e.createElement(d.a,{quizScore:c,quizPassing:s,color:r,score:h,isPass:h>=v,passingScore:v,atEnd:i,complete:p})),y({allowTabNavigation:n,id:o,isAtEnd:i,quizTakeAgain:u,retryAttempts:g,retryCount:b}))}}]),n}(e.Component),m=function(e){var t=e.isAtEnd;return c()("quiz-results",{"quiz-results--active":t})},v=function(e){var t=e.isAtEnd;return c()("quiz-results__footer",{"quiz-results__footer--active":t})},g=function(e){var t=e.id;return function(){return Object(u.a)(Object(f.a)({id:t}))}},y=function(t){var n=t.allowTabNavigation,r=t.id,o=t.isAtEnd,i=t.quizTakeAgain,a=t.retryAttempts,s=t.retryCount;if(-1===s||a<s)return e.createElement("div",{className:v({isAtEnd:o})},e.createElement(p.a,{allowTabNavigation:n,onClick:g({id:r}),text:i}))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m});var r=n(481),o=n.n(r),i=n(34),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(11),d=(n(2273),n(190)),p=n(2),h=n.n(p),m=function(t){function n(e){var t;return Object(s.a)(this,n),(t=Object(c.a)(this,Object(u.a)(n).call(this,e))).state={animated:!1,counted:!1},t}return Object(f.a)(n,t),Object(l.a)(n,[{key:"componentWillUnmount",value:function(){this.resetCanvas()}},{key:"componentWillReceiveProps",value:function(e,t){e.atEnd&&!t.animated&&this.setState({animated:!0}),this.props.atEnd&&!e.atEnd&&(this.resetCanvas(),this.setState({counted:!1,pass:null}))}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.atEnd!==e.atEnd||this.state.counted!==t.counted||!this.state.animated}},{key:"componentDidUpdate",value:function(){var e=this;this.props.atEnd&&(!this.state.counted&&this.props.complete?(this.odo(),a()(function(){e.setState({counted:!0,pass:e.props.isPass})},4e3)):this.state.counted&&this.props.isPass?this.pass():this.state.counted&&!this.props.isPass&&this.fail())}},{key:"render",value:function(){var t=this,n=this.props,r=n.score,o=n.canvasWidth,i=n.canvasHeight,a=n.passingScore,s=n.quizScore,l=n.quizPassing,c=this.state,u=c.pass,f=c.counted,d=h()("odometer__score brand--ui",{"odometer__score--pass":u,"odometer__score--fail":!1===u}),p=h()("odometer__score-percent",{"odometer__score-percent--hidden":f});return e.createElement("div",{className:"odometer"},e.createElement("canvas",{className:"odometer__canvas",id:"odometer",width:o,height:i}),e.createElement("canvas",{className:"odometer__fail",id:"fail",width:"170",height:"170"}),e.createElement("canvas",{className:"odometer__pass",id:"pass",width:"170",height:"170"}),e.createElement("div",{className:d},e.createElement("div",{className:"odometer__score-label"},s),e.createElement("div",{className:"odometer__pass-label brand--color"},s," ",r,"%"),e.createElement("div",{className:"odometer__fail-label"},s," ",r,"%"),e.createElement("div",{ref:function(e){t.scorePercent=e},className:p})),e.createElement("div",{ref:function(e){t.passmark=e},className:"odometer__passmark"},e.createElement("div",{className:"odometer__passlabel brand--ui"},l),e.createElement("div",{className:"odometer__passpercent brand--ui"},"".concat(a,"%"))))}},{key:"resetCanvas",value:function(){var e=document.getElementById("pass"),t=document.getElementById("fail");e&&t&&(e.getContext("2d").clearRect(0,0,170,170),t.getContext("2d").clearRect(0,0,170,170))}},{key:"odo",value:function(){var e=this,t=this.props,r=t.passingScore,i=t.atEnd,s=t.canvasWidth,l=t.canvasHeight,c=t.color,u=document.getElementById("odometer").getContext("2d"),f=new Image,d=Math.PI/.8,p=.25*Math.PI;f.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDFBQzM3NTBGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDFBQzM3NTFGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMUFDMzc0RUYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMUFDMzc0RkYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq3YZDIAAAA6SURBVHjaYjQ0NVdiYGC4D8T/GRCAEYgVmXBJADEzEy4JIL7DhEsCpIkJlwRIkAmXBEwSqwQIAAQYABZQDs+U1J1TAAAAAElFTkSuQmCC";var h=null,m=function t(a){return function(m){!h&&a&&(h=m);var v,g,y,b,_,w,E,x,k,S,T,C=a?(m-h)/2e3:0;v=C,g=e.props.score/100,y=n.easeInOutCubic(Math.min(v,1)),b=(225+y*g*270-90)*Math.PI/180,_=.5*s+210*Math.cos(b),w=.5*l+210*Math.sin(b),E=(225+r/100*270-90)*Math.PI/180,x=.5*s+210*Math.cos(E),k=.5*l+210*Math.sin(E),S=x+3,T=k+3,e.passmark&&(e.passmark.style.left="".concat(x/s*100,"%"),e.passmark.style.top="".concat(k/l*100,"%")),u.clearRect(0,0,s,l),u.beginPath(),u.arc(s/2,l/2,219,p,1.52*Math.PI*(r/100-.03)-d,!0),u.lineWidth=16,u.strokeStyle=u.createPattern(f,"repeat"),u.stroke(),u.closePath(),u.beginPath(),u.moveTo(S,T),u.lineTo(S+38,T-38),u.lineTo(S-38,T-38),u.lineTo(S-38,T+38),u.fillStyle="#f5f5f5",o()(u).call(u),u.closePath(),u.beginPath(),u.moveTo(x,k),u.lineTo(x+35,k-35),u.strokeStyle="#c2c3c4",u.lineWidth=1,u.stroke(),u.closePath(),u.beginPath(),u.moveTo(x+35,k-35),u.lineTo(x+70,k-35),u.strokeStyle="#c2c3c4",u.lineWidth=1,u.stroke(),u.closePath(),u.beginPath(),u.strokeStyle="#dcdcdc",u.arc(s/2,l/2,210,-d,1.5*Math.PI-d,!1),u.lineWidth=3,u.stroke(),u.closePath(),i&&(u.beginPath(),u.arc(s/2,l/2,210,-d,1.5*Math.PI*y*g-d,!1),u.lineWidth=3,u.strokeStyle="#313537",Math.floor(y*g*100)>=r&&(u.strokeStyle=c),u.stroke(),u.closePath(),u.beginPath(),u.arc(_,w,6,0,2*Math.PI,!1),u.fillStyle="#313537",Math.floor(y*g*100)>=r&&(u.fillStyle=c),o()(u).call(u),u.closePath()),C<1&&a&&window.requestAnimationFrame(t(!0))}};window.requestAnimationFrame(m(!1)),a()(function(){window.requestAnimationFrame(m(!0)),e.score()},1e3)}},{key:"score",value:function(){var e=this,t=null,r=function r(o){t||(t=o);var i=(o-t)/2e3;!function(t,r){var o=n.easeInOutQuad(Math.min(t,1)),i=Math.round(o*r*100)+"";if(e.scorePercent){for(;i.length<2;)i="0"+i;e.scorePercent.innerHTML="".concat(i,"%")}}(i,e.props.score/100),i<1&&window.requestAnimationFrame(r)};t=null,window.requestAnimationFrame(r)}},{key:"pass",value:function(){var e=this,t=this.props.color,r=document.getElementById("pass").getContext("2d"),o=null,i=function i(a){o||(o=a);var s,l,c=(a-o)/750;s=c,e.props.score,l=n.easeInOutCubic(Math.min(s,1)),r.clearRect(0,0,170,170),r.beginPath(),r.moveTo(30,70),r.lineTo(30+40*Math.min(l,.5)*2,70+45*Math.min(l,.5)*2),l>=.5&&r.lineTo(70+90*(l-.5)*2,110-85*(l-.5)*2),r.strokeStyle=t,r.lineWidth=20,r.stroke(),r.closePath(),c<1?window.requestAnimationFrame(i):Object(d.c)()};o=null,window.requestAnimationFrame(i)}},{key:"fail",value:function(){var e=this,t=document.getElementById("pass").getContext("2d"),r=null,o=function o(i){r||(r=i);var a,s,l=(i-r)/750;a=l,e.props.score,s=n.easeInOutCubic(Math.min(a,1)),t.clearRect(0,0,170,170),t.beginPath(),t.moveTo(40,30),t.lineTo(40+90*Math.min(s,.5)*2,30+90*Math.min(s,.5)*2),t.strokeStyle="#313537",t.lineWidth=20,t.stroke(),t.closePath(),s>=.5&&(t.beginPath(),t.moveTo(130,30),t.lineTo(130-90*(s-.5)*2,30+90*(s-.5)*2),t.strokeStyle="#313537",t.lineWidth=20,t.stroke(),t.closePath()),l<1&&window.requestAnimationFrame(o)};r=null,window.requestAnimationFrame(o)}}],[{key:"easeInOutCubic",value:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},{key:"easeInOutQuad",value:function(e){return e<.5?2*e*e:(4-2*e)*e-1}},{key:"defaultProps",get:function(){return{canvasWidth:590,canvasHeight:500,score:0}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(2274);var r=n(80),o=n.n(r),i=n(51),a=n.n(i),s=n(39),l=n(81),c=n(320),u=n(42),f=n(111),d=n(22),p=function(e){var t=e.lessonProgress,n=e.quizStart,r=e.quizTakeAgain;return a()(0,"retryAttempts",t)>0?r:n},h=function(t){var n=t.lessonName,r=t.lessonNumber,o=t.lessonPreposition,i=t.totalLessons;return e.createElement("div",{className:"quiz-header__count"},n," ",r," ",o," ",i)},m=function(e){var t=e.id,n=e.lessonProgress;return function(){return Object(s.a)(Object(c.b)({activeIndex:Math.max(0,o()(a()(0,"activeIndex",n))),id:t}))}};t.a=function(t){var n=t.allowTabNavigation,r=t.authorName,o=t.avatar,i=t.description,a=t.id,s=t.isLesson,c=t.labels,v=c.lessonName,g=c.lessonPreposition,y=c.quizStart,b=c.quizTakeAgain,_=t.lessonNumber,w=t.lessonProgress,E=t.showLessonCount,x=t.title,k=t.totalLessons;return e.createElement("div",{"aria-hidden":!n,className:"quiz-header"},e.createElement("div",{className:"quiz-header__container"},e.createElement("div",{className:"quiz-header__limit"},e.createElement("div",{className:"quiz-header__row"},e.createElement("div",{className:"quiz-header__main"},e.createElement("div",{className:"quiz-header__top-wrap brand--afterBackground"},e.createElement("div",{className:"quiz-header__counter brand--body"},s&&E&&h({lessonName:v,lessonNumber:_,lessonPreposition:g,totalLessons:k})),e.createElement(u.a,{className:"quiz-header__title brand--lhead",value:Object(f.a)(x)}),o&&r?e.createElement("div",{className:"quiz-header__author brand--ui"},e.createElement("img",{src:Object(l.l)("".concat(o)),alt:""}),r):null),e.createElement(u.a,{className:"quiz-header__description brand--lbody brand--linkColor",value:i,allowTabNavigation:n}),e.createElement("button",{className:"quiz-header__start-quiz brand--color",onClick:n?m({id:a,lessonProgress:w}):Function.prototype,tabIndex:Object(d.l)(n)},e.createElement("span",{className:"brand--ui"},p({lessonProgress:w,quizStart:y,quizTakeAgain:b})),e.createElement("i",{className:"icon icon-chevron-right"})))))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return je});var r=n(34),o=n.n(r),i=n(4),a=n.n(i),s=n(3),l=n.n(s),c=n(319),u=n.n(c),f=n(9),d=n(7),p=n(10),h=n(8),m=n(15),v=n(11),g=n(467),y=n.n(g),b=n(5),_=n.n(b),w=n(79),E=n.n(w),x=n(35),k=n.n(x),S=n(97),T=n.n(S),C=n(28),O=n.n(C),j=n(50),A=n.n(j),N=n(80),M=n.n(N),I=n(95),L=n.n(I),P=n(43),D=n.n(P),R=n(27),F=n.n(R),B=n(25),U=n.n(B),q=n(29),z=n.n(q),H=n(18),W=n.n(H),$=n(12),Y=n.n($),K=n(16),V=n.n(K),G=n(51),X=n.n(G),Z=n(277),Q=n.n(Z),J=n(217),ee=n.n(J),te=n(224),ne=n.n(te),re=n(72),oe=n(39),ie=n(150),ae=n(1236),se=n(1237),le=n(320),ce=n(1238),ue=n(1239),fe=n(81),de=n(42),pe=n(40),he=n(151),me=n.n(he),ve=n(253),ge=n(176),ye=n(163),be=n(114),_e=be.a.FILL_IN_THE_BLANK,we=be.a.MATCHING,Ee=be.a.MULTIPLE_CHOICE,xe=be.a.MULTIPLE_RESPONSE,ke=ye.a.ANY,Se=ye.a.CHOICE,Te=ye.a.CORRECT_INCORRECT,Ce=function(e){return e?73:3},Oe=z()(0,["lessonProgress","activeIndex"]),je=function(t){function n(e){var t,r,o,i,a,s,c;return Object(f.a)(this,n),(c=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={startTime:u()()},c.handleChoiceSelect=l()(t=c.handleChoiceSelect).call(t,Object(m.a)(c)),c.handleFillIn=l()(r=c.handleFillIn).call(r,Object(m.a)(c)),c.handleMatch=l()(o=c.handleMatch).call(o,Object(m.a)(c)),c.handleNext=l()(i=c.handleNext).call(i,Object(m.a)(c)),c.handleResponseToggle=l()(a=c.handleResponseToggle).call(a,Object(m.a)(c)),c.handleSubmit=l()(s=c.handleSubmit).call(s,Object(m.a)(c)),c}return Object(v.a)(n,t),Object(d.a)(n,[{key:"componentDidUpdate",value:function(e){this.isNewlyActive({prevProps:e})&&(this.scrollTopIfNewlyActive(),this.setState({startTime:u()()})),this.scrollActionsIfComplete({prevProps:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.getClassName,o=n.item,i=n.items,a=n.labels,s=n.settings,l=a.quizAcceptableResponses,c=a.quizAnswerPlaceholder,u=a.quizCorrect,f=a.quizIncorrect,d=a.quizNext,p=a.quizQuestion,h=a.quizSubmit,m=o.media,v=o.title,g=Oe(this.props),y=this.getStepIndex(),b=y===g,_=this.getItemProgress({props:this.props})||{},w=this.getIsComplete({itemProgress:_}),E=this.getIsCorrect({itemProgress:_}),x=X()(!1,"revealAnswers",s),k=w&&X()(!1,"revealAnswers",s),S=!w&&this.getCanSubmit({itemProgress:_}),T=this.handleSubmit({isCorrect:E,canSubmit:S,itemProgress:_}),C=Y()("selectedIndex",_),O=this.getFeedback({isCorrect:E,selectedIndex:C});return e.createElement("div",{"aria-hidden":!b,className:r(y)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(ge.b,{isActive:b,isComplete:w},e.createElement(ge.f,{num:y,quizQuestion:p,total:D()(i)}),e.createElement(ge.g,{value:v,allowTabNavigation:b}),e.createElement(ge.e,{allowTabNavigation:b,index:String(y),labels:a,media:m,opts:s}),e.createElement(ge.d,{hasNoBorder:this.hasNoBorder(),isComplete:w},this.renderType({canSubmit:S,isActive:b,isComplete:w,isCorrect:E,itemProgress:_,onSubmit:T,revealAnswers:x,quizAcceptableResponses:l,quizAnswerPlaceholder:c})),e.createElement(ge.a,{allowTabNavigation:b,canProceed:k,canSubmit:S,onSubmit:T,quizSubmit:h}),e.createElement(ge.c,{allowTabNavigation:b,canProceed:k,feedbackRef:function(e){t.feedback=e},hasFeedback:!!O,isCorrect:E,labels:a,onNext:b?function(){return t.handleNext()}:Function.prototype,quizCorrect:u,quizIncorrect:f,quizNext:d,renderText:function(){return e.createElement(de.a,{className:"quiz-card__feedback-text brand--body brand--linkColor",allowTabNavigation:w&&b,value:O})}}))))}},{key:"getStepIndex",value:function(){return M()(this.props.index)}},{key:"getIsCorrect",value:function(e){var t=e.itemProgress,n=this.props.item;switch(n.type){case _e:return Ie({item:n,itemProgress:t});case we:return Object(re.b)(Le(t));case xe:return Ne({item:n,itemProgress:t});case Ee:default:return k()(Y()("selectedIndex",t),T()(V()("id",n.correct),n.answers))}}},{key:"getFeedback",value:function(e){var t=e.isCorrect,n=e.selectedIndex,r=this.props.item,o=r.answers,i=r.feedback,a=r.feedbackCorrect,s=r.feedbackIncorrect;switch(r.feedbackType){case Se:return z()("",[n,"feedback"],o);case Te:return t?a:s;case ke:default:return i}}},{key:"hasNoBorder",value:function(){return E()(this.props.item.type,[_e,we])}},{key:"getCanSubmit",value:function(e){var t=e.itemProgress,n=this.props.item;switch(n.type){case _e:return Object(ie.b)(Y()("text",t));case we:return Pe(t)===D()(Y()("answers",n));case xe:return Object(ie.b)(Y()("selectedIndices",t));case Ee:default:return Object(ie.b)(Y()("selectedIndex",t))}}},{key:"getIsComplete",value:function(e){var t=e.itemProgress;return X()(!1,"isComplete",t)}},{key:"getItemProgress",value:function(e){var t=e.props,n=t.item,r=t.lessonProgress;return U()(["items",n.id],r)}},{key:"handleSubmit",value:function(e){var t=this,n=e.isCorrect,r=e.canSubmit,o=e.itemProgress;return function(){if(r){var e=t.state.startTime,i=t.props,a=i.id,s=i.item,c=i.retryAttempts,f=i.title,d=i.settings,p=d.passingScore,h=d.revealAnswers,m=void 0!==h&&h,v=d.passToContinue,g=s.id,y=l()(le.c).call(le.c,null,{id:a,isCorrect:n,itemId:g,passingScore:p,revealAnswers:m,passToContinue:v});if(Object(fe.k)({duration:{startTime:e,stopTime:u()()},id:a,isCorrect:n,item:s,itemProgress:o,retryAttempts:c,title:f}),m)return Object(oe.a)(y());t.handleNext(y)}}}},{key:"handleNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return[]},t=this.props,n=t.id,r=t.previousComponent,o=Oe(this.props),i=Ce(r);pe.a.pause(),he.Events.scrollEvent.register("end",function(){var t,r;he.Events.scrollEvent.remove("end"),Object(oe.a)(a()(t=a()(r=[]).call(r,e())).call(t,Object(le.b)({activeIndex:M()(o),id:n})))}),me.a.animateScroll.scrollTo(i,{containerId:"page-wrap",duration:500,smooth:!0})}},{key:"isNewlyActive",value:function(e){var t=e.prevProps,n=Oe(t),r=Oe(this.props),o=this.getStepIndex();return n!==r&&o===r}},{key:"renderType",value:function(t){var n=t.canSubmit,r=t.isActive,o=t.isComplete,i=t.isCorrect,a=t.itemProgress,s=t.onSubmit,l=t.revealAnswers,c=t.quizAcceptableResponses,u=t.quizAnswerPlaceholder,f=this.props,d=f.item,p=f.prefersKeyboardNavigation,h=r&&!o;switch(d.type){case _e:return e.createElement(ve.a,{allowTabNavigation:h,isComplete:o,isCorrect:i,onChange:this.handleFillIn,onEnterToSubmit:s,options:d.answers,revealAnswers:l,quizAcceptableResponses:c,quizAnswerPlaceholder:u,value:X()("","text",a)});case we:return e.createElement(ve.b,{allowTabNavigation:h,answers:d.answers,canSubmit:n,isActive:r,isComplete:o,matchIndices:d.matchIndices,matches:Le(a),onEnterToSubmit:s,onMatch:this.handleMatch,prefersKeyboardNavigation:p,revealAnswers:l,titleIndices:d.titleIndices});case xe:return e.createElement(ve.d,{allowTabNavigation:h,correctIds:d.corrects,isComplete:o,onChange:this.handleResponseToggle,onEnterToSubmit:s,options:d.answers,renderOptionText:function(t){var n=t.title;return e.createElement(de.a,{className:"quiz-multiple-choice-option__label brand--body",value:n,allowTabNavigation:r})},revealAnswers:l,selectedIndices:Y()("selectedIndices",a),uniqueId:d.id});case Ee:default:return e.createElement(ve.c,{allowTabNavigation:h,correctId:d.correct,isComplete:o,onChange:this.handleChoiceSelect({selectedIndex:Y()("selectedIndex",a)}),onEnterToSubmit:s,options:d.answers,renderOptionText:function(t){var n=t.title;return e.createElement(de.a,{className:"quiz-multiple-choice-option__label brand--body",value:n,allowTabNavigation:r})},selectedIndex:Y()("selectedIndex",a),title:d.title,uniqueId:d.id})}}},{key:"handleChoiceSelect",value:function(e){var t=this,n=e.selectedIndex;return function(e){var r=e.optionIndex,o=t.props,i=o.id,a=o.item.id;r!==n&&Object(oe.a)(Object(ce.a)({id:i,itemId:a,selectedIndex:r}))}}},{key:"handleResponseToggle",value:function(e){var t=e.optionIndex,n=this.props,r=n.id,o=n.item.id;Object(oe.a)(Object(ue.a)({id:r,itemId:o,selectedIndex:t}))}},{key:"handleFillIn",value:function(e){var t=this.props,n=t.id,r=t.item.id;Object(oe.a)(Object(ae.a)({id:n,itemId:r,text:e}))}},{key:"handleMatch",value:function(e){var t=e.dragIndex,n=e.dropZoneIndex,r=this.props,o=r.id,i=r.item.id;Object(oe.a)(Object(se.a)({id:o,itemId:i,dragIndex:t,dropZoneIndex:n}))}},{key:"scrollTopIfNewlyActive",value:function(){var e=this.props.previousComponent,t=Ce(e);me.a.animateScroll.scrollTo(t,{containerId:"page-wrap",smooth:!0})}},{key:"scrollActionsIfComplete",value:function(e){var t=this,n=e.prevProps,r=this.props.settings,i=Oe(this.props),a=this.getStepIndex()===i,s=X()(!1,"revealAnswers",r);if(a&&s){var l=this.getItemProgress({props:n}),c=this.getIsComplete({itemProgress:l}),u=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:u});!c&&f&&o()(function(){var e=t.feedback,n=e.offsetHeight,r=e.offsetTop;me.a.animateScroll.scrollTo(n+r,{containerId:"page-wrap",smooth:!0})},750)}}}]),n}(e.Component),Ae=y()(A.a),Ne=function(e){var t=e.item,n=e.itemProgress;return Y()("selectedIndices",n)&&k()(Q()(Ae,X()([],"selectedIndices",n)),_()(Q()(Ae),F()(_()(O()(T.a)(X()([],"answers",t)),V()("id"))))(X()([],"corrects",t)))},Me=_()(ne.a,ee.a),Ie=function(e){var t=e.item,n=e.itemProgress,r=t.settings,o=(void 0===r?{}:r).isCaseSensitive,i=void 0!==o&&o?ne.a:Me;return Y()("text",n)&&W()(F()(Y()("title")),F()(i),E()(i(Y()("text",n))))(X()([],"answers",t))},Le=X()({},"matches"),Pe=_()(D.a,L.a,Le)}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(19),o=n.n(r),i=n(90),a=n.n(i),s=n(67),l=n.n(s),c=n(74),u=n.n(c),f=n(54),d=n.n(f),p=n(47),h=n.n(p),m=n(127),v=n.n(m),g=n(65),y=function(e){var t=e.id,n=e.itemId,r=e.text;return function(e){return e(Object(g.f)({id:t,updateFn:b({itemId:n,text:r})}))}},b=function(e){var t=e.itemId,n=e.text;return h()(u()(["items",t]),a()(v()(l.a,[n]),d()(["text"]),o()("text",n)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(19),o=n.n(r),i=n(5),a=n.n(i),s=n(35),l=n.n(s),c=n(74),u=n.n(c),f=n(47),d=n.n(f),p=n(105),h=n.n(p),m=n(65),v=n(150),g=function(e){var t=e.id,n=e.itemId,r=e.dragIndex,o=e.dropZoneIndex;return function(e){return e(Object(m.f)({id:t,updateFn:y({itemId:n,dragIndex:r,dropZoneIndex:o})}))}},y=function(e){var t=e.itemId,n=e.dragIndex,r=e.dropZoneIndex;return d()(u()(["items",t,"matches"]),a()(o()(n,r),h()(l()(r)),v.d))}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(19),o=n.n(r),i=n(74),a=n.n(i),s=n(47),l=n.n(s),c=n(65),u=function(e){var t=e.id,n=e.itemId,r=e.selectedIndex;return function(e){return e(Object(c.f)({id:t,updateFn:f({itemId:n,selectedIndex:r})}))}},f=function(e){var t=e.itemId,n=e.selectedIndex;return l()(a()(["items",t]),o()("selectedIndex",n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return M});var r=n(100),o=n.n(r),i=n(5),a=n.n(i),s=n(79),l=n.n(s),c=n(90),u=n.n(c),f=n(67),d=n.n(f),p=n(38),h=n.n(p),m=n(74),v=n.n(m),g=n(58),y=n.n(g),b=n(311),_=n.n(b),w=n(54),E=n.n(w),x=n(47),k=n.n(x),S=n(466),T=n.n(S),C=n(31),O=n.n(C),j=n(172),A=n.n(j),N=n(65),M=function(e){var t=e.id,n=e.itemId,r=e.selectedIndex;return function(e){return e(Object(N.f)({id:t,updateFn:P({itemId:n,selectedIndex:r})}))}},I=function(e){return v()(["items",e])},L=function(e){return a()(I(e),y()("selectedIndices"))},P=function(e){var t,n=e.itemId,r=e.selectedIndex;return a()(O()((t=n,a()(d.a,T()(L(t)))),function(e){return k()(I(e),E()(["selectedIndices"]))}(n)),function(e){var t=e.itemId,n=e.selectedIndex;return k()(L(t),a()(u()(l()(n),A()(_()(n)),o()(n)),O()(h.a,function(){return[]})))}({itemId:n,selectedIndex:r}))}},function(e,t,n){var r=n(2275),o=n(2277)(r);e.exports=o},function(e,t,n){"use strict";(function(e){var r=n(12),o=n.n(r),i=n(92),a=n(1242);t.a=function(t){var n=t.data,r=n.id,s=n.items,l=n.piles,c=n.type,u=t.labels,f=t.lessonHeader,d=t.lessonProgress,p=t.menuButtons,h=t.nextComponent,m=t.previousComponent;return e.createElement(i.c,{type:c},m,e.createElement(i.b,{type:c},p,f,e.createElement(i.a,{type:c},e.createElement(a.a,{id:r,items:s,labels:u,progress:d,piles:l}))),o()("isComplete",d)?h:null)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(32),o=(n(2295),n(5)),i=n.n(o),a=n(39),s=n(398),l=n(597);t.a=function(t){return e.createElement("div",{className:"sorting-lesson"},e.createElement(l.a,Object(r.a)({},t,{onCardDrop:i()(a.a,s.d),onReplay:i()(a.a,s.b)})))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(92),o=n(1244);t.a=function(t){var n=t.data,i=n.id,a=n.items,s=n.type,l=t.labels,c=t.lessonHeader,u=t.lessonProgress,f=t.loadMedia,d=t.menuButtons,p=t.nextComponent,h=t.previousComponent;return e.createElement(r.c,{type:s},h,e.createElement(r.b,{type:s},d,c,e.createElement(r.a,{type:s},e.createElement(o.a,{id:i,items:a,labels:l,lessonProgress:u,loadMedia:f}))),p)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(32),o=n(9),i=n(7),a=n(10),s=n(8),l=n(11),c=n(604),u=n.n(c),f=(n(2296),n(5)),d=n.n(f),p=n(25),h=n.n(p),m=n(18),v=n.n(m),g=n(12),y=n.n(g),b=n(463),_=n.n(b),w=n(401),E=n(39),x=n(599),k=v()(y()("linePosition"),u.a),S=_()(k),T=d()(E.a,w.a),C=d()(E.a,w.a),O=function(t){function n(){return Object(o.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.items,n=e.id,r=h()([0,"id"],t);T({id:n,payload:{activeIndex:0,itemId:r}})}},{key:"render",value:function(){var t=this.props.items;return e.createElement("div",{className:"timeline-lesson"},e.createElement(x.a,Object(r.a)({},this.props,{isLearner:!0,items:S(t),progress:y()("lessonProgress",this.props),onEnter:T,onLeave:C})))}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(92),o=n(1246);t.a=function(t){var n=t.data,i=t.labels,a=t.lessonHeader,s=t.lessonProgress,l=t.menuButtons,c=t.nextComponent,u=t.prefersKeyboardNavigation,f=t.previousComponent;return e.createElement(r.c,{type:n.type},f,e.createElement(r.b,{type:n.type},l,a,e.createElement(r.a,null,e.createElement(o.a,{data:n,labels:i,lessonProgress:s,prefersKeyboardNavigation:u}))),c)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return x});var r=n(34),o=n.n(r),i=n(9),a=n(10),s=n(8),l=n(7),c=n(11),u=(n(2297),n(2)),f=n.n(u),d=n(57),p=n.n(d),h=n(25),m=n.n(h),v=n(12),g=n.n(v),y=n(0),b=n.n(y),_=n(39),w=n(472),E=n(387),x=function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(a.a)(this,Object(s.a)(n).call(this,e))).state={load:!1},t}return Object(c.a)(n,t),Object(l.a)(n,null,[{key:"propTypes",get:function(){return{id:b.a.any,labels:b.a.object,lessonProgress:b.a.object.isRequired,media:b.a.object}}}]),Object(l.a)(n,[{key:"componentDidMount",value:function(){var e=this;o()(function(){e.setState({load:!0})},800)}},{key:"render",value:function(){var t=this.props,n=t.labels,r=t.lessonProgress,o=t.prefersKeyboardNavigation,i=this.props.data,a=i.id,s=i.media,l=i.settings,c=g()("currentTime",r),u=m()(["video","key"],s),d=m()(["lessonProgress","percentComplete"],r),p=m()(["video","poster"],s),h=f()("video-lesson",{"video-lesson--visible":this.state.load});return e.createElement("div",null,e.createElement("div",{className:"page__content-container"},e.createElement("div",{className:h},this.state.load?e.createElement("div",{className:"video-lesson__item"},e.createElement(E.a,{canRestrictSeek:l.forwardSeekRestricted,currentTime:c,labels:n,percentComplete:d,poster:p,prefersKeyboardNavigation:o,progressChanged:k(a),src:u})):null)))}}],[{key:"defaultProps",get:function(){return{lessonProgress:{currentTime:0,percentComplete:0}}}}]),n}(e.Component),k=p()(2,function(e,t){var n=t.currentTime,r=t.percentComplete;return Object(_.a)(Object(w.c)({id:e,currentTime:n,percentComplete:r}))})}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(17),o=n.n(r),i=(n(2298),n(82)),a=n(63),s=function(t){var n=t.childElements,r=t.labels,s=t.search,l=s.activeLessons,c=s.term,u=r.noResults;return e.createElement(i.CSSTransition,{classNames:"lesson-lists__list",key:"results",timeout:600},c&&0===l.length?function(t){var n=t.noResults,r=t.searchTerm;return e.createElement("li",{className:"lesson-lists__item",key:"no-results",role:a.c},e.createElement("span",{className:"lesson-lists__no-results"},n,' "',r,'"'))}({noResults:u,searchTerm:c}):function(t){var n=t.activeLessons,r=t.childElements,s=o()(r).call(r,function(t){return e.createElement(i.CSSTransition,{classNames:"lesson-lists__item",exit:!1,key:t.key,timeout:100*n.length+300},t)});return e.createElement(i.TransitionGroup,{className:"lesson-lists__list lesson-lists__list--results",key:"results",role:a.d},s)}({activeLessons:l,childElements:n}))},l=function(t){var n=t.children,r=t.index,o=t.role;return e.createElement("li",{className:"lesson-lists__item",role:o,style:{transitionDelay:"".concat(.1*r,"s")}},n)};t.a=function(t){var n,r=t.allowTabNavigation,c=t.children,u=t.labels,f=t.search,d=f.active,p=o()(n=e.Children).call(n,c,function(t,n){return e.createElement(l,{role:a.c,index:n},t)});return e.createElement(i.TransitionGroup,{"aria-hidden":!r,className:"lesson-lists",component:"nav"},d?s({childElements:p,labels:u,search:f}):function(t){return e.createElement(i.CSSTransition,{classNames:"lesson-lists__list",key:"list",timeout:600},e.createElement("ul",{className:"lesson-lists__list",key:"list",role:a.d},t))}(p))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return w});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(15),u=n(11),f=(n(2299),n(1262)),d=n(2),p=n.n(d),h=n(0),m=n.n(h),v=n(316),g=n.n(v),y=n(42),b=n(394),_=n(22),w=function(t){function n(e){var t,r;return Object(i.a)(this,n),(r=Object(s.a)(this,Object(l.a)(n).call(this,e))).onClick=o()(t=r.onClick).call(t,Object(c.a)(r)),r}return Object(u.a)(n,t),Object(a.a)(n,[{key:"isActive",value:function(){return this.context.router.route.match.url==="/lessons/".concat(this.props.id)}},{key:"componentWillMount",value:function(){var e=this.isActive();this.setState({visited:e})}},{key:"onClick",value:function(e){var t=this.props,n=t.focusLessonContent,r=t.id,o=t.onClick,i=t.onMobileActiveClick;if(this.isActive()){if(e.preventDefault(),!i)return n(),!1;i()}this.setState({visited:!0}),o(r)}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.icon,o=t.labels,i=t.resultsCount,a=t.title,s=o.result,l=o.results,c=p()("lesson-link","lesson-search-link",{"lesson-link--visited lesson-search-link--visited":this.state.visited}),u=1===i?s:l,d=[e.createElement("div",{className:"lesson-link__icon lesson-search-link__icon",key:"icon-".concat(n)},e.createElement(b.a,{icon:r})),e.createElement("div",{className:"lesson-link__name lesson-search-link__name brand--ui",key:"name-".concat(n)},e.createElement(y.a,{value:g()(a,{length:60})}),e.createElement("span",{className:"lesson-search-link__results"},i," ",u))],h=this.props.allowTabNavigation,m=Object(_.l)(h);return e.createElement(f.a,{activeClassName:"lesson-link--active lesson-search-link--active brand--beforeBackground","aria-hidden":!h,className:c,onClick:this.onClick,tabIndex:m,to:"/lessons/"+encodeURIComponent(n)},d)}}],[{key:"contextTypes",get:function(){return{router:m.a.object.isRequired}}},{key:"propTypes",get:function(){return{focusLessonContent:m.a.func.isRequired,icon:m.a.string.isRequired,id:m.a.any.isRequired,onClick:m.a.func.isRequired,resultsCount:m.a.number.isRequired,title:m.a.string.isRequired,type:m.a.string.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var r=n(17),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2303),n(2)),f=n.n(u),d=n(63),p=function(t){function n(){return Object(i.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t,n=this,r=this.props,i=r.isActive,a=r.children,s=f()("section-lists",{"section-lists__closed":!i}),l=this.ul?this.ul.offsetHeight:null;return e.createElement("div",{className:s,style:{maxHeight:l}},e.createElement("ul",{ref:function(e){return n.ul=e},role:d.d},o()(t=e.Children).call(t,a,function(t){return e.createElement("li",{className:"lesson-lists__item",role:d.c},t)})))}}]),n}(e.Component);t.a=p}).call(this,n(1))},function(e,t,n){"use strict";var r=n(32),o=n(4),i=n.n(o),a=n(1),s=n.n(a),l=(n(2308),n(44)),c=n(230),u=Object(c.omit)(["dispatch","first_name","id","last_name","size","avatars","t"]),f=Object(c.pathSatisfies)(c.isNil),d=Object(c.cond)(Object(c.map)(Object(c.over)(Object(c.lensIndex)(1),c.always),[[f(["avatars","medium"]),function(e){var t,n=e.first_name||e.last_name?i()(t="".concat(e.first_name," ")).call(t,e.last_name):"Unknown User";return s.a.createElement(l.z,{title:n,height:e.size,width:e.size})}],[c.T,function(e){var t,n=e.first_name,o=e.last_name,a=e.size,l=e.avatars;return s.a.createElement("img",Object(r.a)({className:"user-avatar",src:l.medium,alt:i()(t="".concat(n," ")).call(t,o),style:{width:a,height:a}},u(e)))}]])),p=Object(c.pick)(["avatars","email","first_name","last_name","size","user_id"]);t.a=function(e){var t=d(e);return s.a.createElement(t,p(e))}},function(e,t,n){"use strict";var r=n(20),o=n.n(r),i=n(173),a=o()(null);t.a=function(e){return function(t){return Object(i.a)(e)?t:a}}},function(e,t,n){"use strict";(function(e){var r=n(34),o=n.n(r),i=n(3),a=n.n(i),s=n(9),l=n(7),c=n(10),u=n(8),f=n(15),d=n(11),p=(n(2411),n(246)),h=n(31),m=n.n(h),v=n(190),g=n(56),y=n(24),b="".concat(Object(g.b)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/loading_spinner.svg"),_="".concat(Object(g.b)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/error_x.svg"),w=function(t){function n(e){var t,r,o,i,l;return Object(s.a)(this,n),(l=Object(c.a)(this,Object(u.a)(n).call(this,e))).downloadClick=a()(t=l.downloadClick).call(t,Object(f.a)(l)),l.renderDefault=a()(r=l.renderDefault).call(r,Object(f.a)(l)),l.renderError=a()(o=l.renderError).call(o,Object(f.a)(l)),l.renderLoading=a()(i=l.renderLoading).call(i,Object(f.a)(l)),l.state={error:!1,loading:!1},l}return Object(d.a)(n,t),Object(l.a)(n,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),Object(v.b)()}},{key:"downloadClick",value:function(){var e=this;this.state.loading||(clearTimeout(this.timeout),this.setState({error:!1,loading:!0}),Object(v.a)().then(function(){e.setState({error:!1,loading:!1})}).catch(function(t){var n;Object(p.isCancel)(t)||(e.timeout=o()(a()(n=e.setState).call(n,e,{error:!1,loading:!1}),1e4),e.setState({error:!0,loading:!1}))}))}},{key:"renderDefault",value:function(){return e.createElement("div",{role:"button",className:"certificateDownload__link",onKeyDown:m()(y.d,this.downloadClick),onClick:this.downloadClick,tabIndex:0},"Download certificate")}},{key:"renderError",value:function(){return e.createElement("div",{className:"certificateDownload__error"},e.createElement("img",{className:"certificateDownload__error-icon",src:_,"aria-hidden":"true",alt:""}),e.createElement("span",{className:"certificateDownload__error-text"},"Error "),e.createElement("div",{className:"certificateDownload__link",role:"button",onKeyDown:m()(y.d,this.downloadClick),onClick:this.downloadClick,tabIndex:0},"Try Again?"))}},{key:"renderLoading",value:function(){return e.createElement("div",{className:"certificateDownload__loading"},e.createElement("img",{className:"certificateDownload__loading-spinner",src:b,"aria-hidden":"true",alt:""}),"Downloading...")}},{key:"render",value:function(){var e=this.state,t=e.error,n=e.loading;return t?this.renderError():n?this.renderLoading():this.renderDefault()}}]),n}(e.Component);t.a=w}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(3),o=n.n(r),i=n(9),a=n(7),s=n(10),l=n(8),c=n(11),u=(n(2414),n(2)),f=n.n(u),d=n(0),p=n.n(d),h=function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={failAttempt:!1,shouldShake:!1},t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"componentDidMount",value:function(){var e;this.dialog.addEventListener("animationend",o()(e=this.handleRemoveAnimationEnd).call(e,this))}},{key:"componentWillReceiveProps",value:function(e){var t=e.failAttempt,n=this.state.shouldShake;this.setState({failAttempt:t&&n})}},{key:"componentWillUnmount",value:function(){var e;this.dialog.removeEventListener("animationend",o()(e=this.handleRemoveAnimationEnd).call(e,this))}},{key:"handleRemoveAnimationEnd",value:function(){this.setState({failAttempt:!1,shouldShake:!1})}},{key:"onSubmitPassword",value:function(e){var t=this;e.preventDefault();var n=this.props.onSubmit;this.setState({shouldShake:!0},function(){n(t.refs.password)})}},{key:"render",value:function(){var t,n=this,r=this.state.failAttempt,i=f()("brand--border","share-password-dialog",{"fail-password":r});return e.createElement("div",{className:i,ref:function(e){n.dialog=e}},e.createElement("h1",{className:"heading"},"Enter Password"),e.createElement("p",{className:"instructions"},"You need a password to view this course. If you don’t know it, ask the person who shared this with you."),e.createElement("form",{onSubmit:o()(t=this.onSubmitPassword).call(t,this)},e.createElement("label",{htmlFor:"share-password",className:"label"},"password"),e.createElement("input",{id:"share-password",ref:"password",type:"password",className:"input"}),e.createElement("div",{className:"dialog__toolbar"},e.createElement("input",{type:"submit",className:"button brand--background",value:"View"}))))}}],[{key:"propTypes",get:function(){return{onSubmit:p.a.func.isRequired,failAttempt:p.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(1))},function(e,t,n){"use strict";e.exports=n(2415)},function(e,t,n){t.hot=function(e){return e}},function(e,t,n){"use strict";var r=n(6),o=n(5),i=n.n(o),a=n(26),s=n.n(a),l=n(271),c=n.n(l),u=n(30),f=n.n(u),d=n(218),p=n.n(d),h=n(27),m=n.n(h),v=n(14),g=n.n(v),y=n(70),b=n.n(y),_=n(18),w=n.n(_),E=n(730),x=n.n(E),k=n(463),S=n.n(k),T=n(217),C=n.n(T),O=n(224),j=n.n(O),A=n(69),N=n.n(A),M=n(13),I=n(384),L=n.n(I),P=n(1165),D=n.n(P),R=n(12),F=n.n(R),B=n(731),U=n.n(B),q=n(589);function z(e){var t=e.uri;return{send:U()(2,function(e){return w()(L()({data:Object(M.a)(e),method:"POST",url:t}),q.a,D()(Object(M.c)(e),F()("data")))})}}var H,W,$,Y,K,V,G,X,Z=n(84),Q="".concat(Object(Z.d)("RISE_ACCOUNTS_URI"),"/api/ducks"),J=z({uri:Q}),ee=n(591),te=n.n(ee),ne=n(383),re=n.n(ne),oe=s()("rise-com-accounts/people/"),ie=oe("SEARCH_USERS"),ae=S()(w()(x()(["last_name","first_name"]),p()(" "),C.a,j.a)),se=i()(m()(b()("profile")),ae,N.a),le=Object(M.g)(function(e,t){var n=t.role,o=t.data;return g()(e,Object(r.a)({},n,se(o)))}),ce=Object(M.f)({admin:[],author:[]},Object(r.a)({},ie,le)),ue=c()(te()(function(e){return f()({payload:i()(g()(e),b()("data"))})}),[re.a.of,J.send(ie)]),fe=(w()(g()({role:"admin"}),ue),w()(g()({role:"author"}),ue),n(100)),de=n.n(fe),pe=n(19),he=n.n(pe),me=n(79),ve=n.n(me),ge=n(89),ye=n.n(ge),be=n(90),_e=n.n(be),we=n(58),Ee=n.n(we),xe=n(47),ke=n.n(xe),Se=n(172),Te=n.n(Se),Ce=n(399),Oe=s()("rise/blockTemplateUI/"),je=Oe("SHOW_EDIT_BLOCK_TEMPLATE_DIALOG"),Ae=Oe("HIDE_EDIT_BLOCK_TEMPLATE_DIALOG"),Ne=Oe("SET_SELECTED_INDEX"),Me=Oe("SET_SORT_TYPE"),Ie=Oe("SET_QUERY"),Le=Oe("SET_AUTHOR_QUERY"),Pe=Oe("SET_SELECTED_AUTHOR"),De=Oe("RESET_STATE"),Re=Oe("SHOW_DELETE_BLOCK_TEMPLATE_DIALOG"),Fe=Oe("HIDE_DELETE_BLOCK_TEMPLATE_DIALOG"),Be=Oe("SHOW_BLOCK_SELECTION_UI"),Ue=Oe("HIDE_BLOCK_SELECTION_UI"),qe=Oe("TOGGLE_BLOCK_SELECTED"),ze={selectedIndex:-1,query:"",authorQuery:"",selectedAuthorId:null,selectedAuthorName:null,editBlockTemplate:null},He=g()({showEditDialog:!1,showDeleteDialog:!1,showBlockSelection:!1,selectedBlockIds:[],sortType:Object(Ce.a)("blockTemplateSortPreference")||"Recent"},ze),We=ye()(function(e,t,n){return he()(e,n,t)}),$e=Object(M.f)(He,(H={},Object(r.a)(H,je,function(e,t){return g()(e,{showEditDialog:!0,editBlockTemplate:t})}),Object(r.a)(H,Ae,function(e){return g()(e,{showEditDialog:!1,showBlockSelection:!1})}),Object(r.a)(H,Re,function(e,t){return g()(e,{showDeleteDialog:!0,editBlockTemplate:t})}),Object(r.a)(H,Fe,function(e){return g()(e,{showDeleteDialog:!1})}),Object(r.a)(H,Ne,We("selectedIndex")),Object(r.a)(H,Me,function(e,t){var n;return n=t,Object(Ce.b)("blockTemplateSortPreference",n),We("sortType",e,t)}),Object(r.a)(H,Ie,We("query")),Object(r.a)(H,Le,We("authorQuery")),Object(r.a)(H,Pe,function(e,t){var n=t.selectedAuthorId,r=t.selectedAuthorName;return g()(e,{selectedAuthorId:n,selectedAuthorName:r})}),Object(r.a)(H,De,function(e){return g()(e,ze)}),Object(r.a)(H,Be,function(e){return g()(e,{showBlockSelection:!0,selectedBlockIds:[]})}),Object(r.a)(H,Ue,function(e){return g()(e,{showBlockSelection:!1})}),Object(r.a)(H,qe,function(e,t){return ke()(Ee()("selectedBlockIds"),_e()(ve()(t),Te()([t]),de()(t)),e)}),H)),Ye=(Object(M.a)(je),Object(M.a)(Ae),Object(M.a)(Re),Object(M.a)(Fe),Object(M.a)(Ne),Object(M.a)(Me),Object(M.a)(Ie),Object(M.a)(Le),Object(M.a)(Pe),Object(M.a)(De),Object(M.a)(Be),Object(M.a)(Ue),Object(M.a)(qe),n(28)),Ke=n.n(Ye),Ve=n(113),Ge=n.n(Ve),Xe=n(16),Ze=n.n(Xe),Qe=n(105),Je=n.n(Qe),et=n(31),tt=n.n(et),nt=n(45),rt=s()("rise/blockTemplates/"),ot=rt("CREATE_BLOCK_TEMPLATE"),it=rt("CREATE_BLOCK_TEMPLATE_SUCCESS"),at=rt("FETCH_BLOCK_TEMPLATES"),st=rt("UPDATE_BLOCK_TEMPLATE"),lt=rt("DELETE_BLOCK_TEMPLATE"),ct=rt("PROCESS_BLOCK_TEMPLATE"),ut=function(e,t){return ke()(Ee()("templates"),m()(tt()(Ze()("id",F()("id",t)),Ke()(g.a)(t))),e)},ft=Object(M.f)({templates:null},(W={},Object(r.a)(W,ot,Object(M.g)(function(e){return e})),Object(r.a)(W,it,Object(M.g)(ut)),Object(r.a)(W,at,Object(M.g)(function(e,t){return g()(e,{templates:t})})),Object(r.a)(W,st,Object(M.g)(ut)),Object(r.a)(W,lt,Object(M.g)(function(e,t){return ke()(Ee()("templates"),Je()(Ze()("id",t)),e)})),Object(r.a)(W,ct,Object(M.g)(ut)),W)),dt=(nt.a.send(ot),nt.a.send(at),nt.a.send(ct),Ge()([Object(M.a)(st),nt.a.send(st)]),Object(M.a)(st),Ge()([Object(M.a)(lt),nt.a.send(lt)]),n(348)),pt=n(20),ht=n.n(pt),mt=s()("rise/collaboratorsUI/"),vt=mt("CHOOSE_AUTHOR"),gt=mt("PENDING"),yt=mt("SET_EMAIL"),bt=mt("SHOW_CONFIRM"),_t=mt("SHOW_TRANSFER"),wt=Object(M.g)(he()("showConfirmId",null)),Et=Object(M.f)({email:"",error:"",pending:!1,showConfirmId:null,showTransfer:!1,transferAuthor:null},($={},Object(r.a)($,vt,Ke()(he()("transferAuthor"))),Object(r.a)($,dt.a,function(e,t,n){return g()(e,n?{error:409===t.status?"This user is already a collaborator.":"This user does not have a Team Account.",pending:!1}:{email:"",error:"",pending:!1})}),Object(r.a)($,dt.b,wt),Object(r.a)($,gt,he()("pending",!0)),Object(r.a)($,yt,function(e,t){return g()(e,{email:t,error:""})}),Object(r.a)($,bt,Ke()(he()("showConfirmId"))),Object(r.a)($,_t,Ke()(he()("showTransfer"))),$)),xt=(Object(M.a)(vt),ht()(Object(M.a)(gt,null)),Object(M.a)(yt),Object(M.a)(bt),Object(M.a)(_t),s()("rise/connection/")),kt=xt("SET_STATUS"),St=Object(M.f)({status:null},Object(r.a)({},kt,Object(M.g)(g.a))),Tt=(Object(M.a)(kt),n(4)),Ct=n.n(Tt),Ot=n(191),jt=n.n(Ot),At=n(247),Nt=n.n(At),Mt=n(54),It=n.n(Mt),Lt=n(25),Pt=n.n(Lt),Dt=n(142),Rt=n.n(Dt),Ft=n(164),Bt=n(46),Ut=n(76),qt=n.n(Ut),zt=n(460),Ht=n.n(zt),Wt=n(49),$t=n.n(Wt),Yt=n(206),Kt=n.n(Yt),Vt=n(342),Gt=n.n(Vt),Xt=n(355),Zt=(n(748),n(103)),Qt=n.n(Zt),Jt=n(462),en=n.n(Jt),tn=n(41),nn=n.n(tn),rn=n(171),on=n.n(rn),an=n(312),sn=n.n(an),ln=n(202),cn=n.n(ln),un=n(272),fn=n.n(un),dn=n(91),pn=n.n(dn),hn=n(56),mn={width:150,height:150},vn={width:280,height:140},gn={width:440,height:80},yn={width:140,height:200},bn=mn,_n=vn,wn=gn,En=yn,xn=on()(.8),kn=en()(fn()(.8),sn()(1.2)),Sn=en()(cn()(1.2),sn()(3.5)),Tn=(nn()([[xn,ht()(En)],[kn,ht()(bn)],[Sn,ht()(_n)],[pn.a,ht()(wn)]]),s()("".concat(Object(hn.b)("IMAGES_URI"),"/"))),Cn=Ht()(function(e){return!!e}),On=["courseId","dimensions","original","quality"],jn=function(e){return function(){return Object(Ft.h)(Object(Xt.d)("an image"))(e)}},An=function(e){return{id:e.data.id,key:e.action.key}},Nn=function(e){var t=e.opts,n=e.data;return w()($t()(On),he()("original",n.key))(t)},Mn=w()(It()(["cancelSource","courseId","done","existingMediaType","hasRemovableMedia","jobId","lessonId","refs","state","uploadId","url"]),Kt()("original","originalUrl")),In=f()({type:i()(qt.a,Gt()("/"))}),Ln=function(e){var t=e.data,n=e.action.key,r=Pt()(["store","dispatch"],t);tt()(Cn(["data","refs"]),w()(function(e){return w()(F()("data"),In,he()("key",e),he()("src",Tn(e)),jt()("asset",Mn))}(n),Bt.i,r))(t)},Pn=(Ge()([Ft.d,function(e){return w()(Nn,Ft.a,Nt()(jn(e),function(e){return function(t){return w()(Rt()(Ln),i()(Ft.c,An))({data:e,action:t})}}(e)))(e)}]),n(140)),Dn=s()("rise/contentLibrary/"),Rn=Dn("CLOSE_LIBRARY"),Fn=Dn("OPEN_LIBRARY"),Bn=It()(["asset","cancelSource","courseId","done","downloadPingbackPath","jobId","lessonId","refs","state","uploadId","url"]),Un=Pt()(["opts","asset","download_pingback_path"]),qn=w()(F()("downloadPingbackPath"),function(e){var t;return Ct()(t="".concat(Object(Z.d)("CONTENT_LIBRARY_IMAGES_URI"),"/")).call(t,e)},function(e){return Object(Pn.b)({method:"GET",url:e,headers:{"content-type":"application/json","x-articulate-client":"rise-frontend"},jwt:!0})}),zn=function(e){return w()(function(e){return function(t){var n=t.key;return w()(F()("opts"),g()({downloadPingbackPath:Un(e),key:n,src:Tn(n),originalUrl:"stock-image.jpg",type:"image"}),jt()("asset",Bn))(e)}}(e),Rt()(qn),Bt.i)},Hn=Ge()([Ft.d,function(e){return w()(F()("opts"),function(e){return{url:e.asset.download_url,courseId:e.courseId}},Ft.f,Nt()(jn,function(e){return Ge()([i()(Ft.c,he()("id",e.id)),zn(e)])}(e)))(e)}]),Wn=Object(M.f)({blockId:"",existingMediaType:"",isVisible:!1,itemId:"",lessonId:"",refs:""},(Y={},Object(r.a)(Y,Rn,he()("isVisible",!1)),Object(r.a)(Y,Fn,g.a),Y)),$n=(ht()(Object(M.a)(Rn,null)),i()(Object(M.a)(Fn),he()("isVisible",!0)),Ge()([Ft.g,Hn]),n(110)),Yn=n.n($n),Kn=s()("rise/copyLessonUI/"),Vn=Kn("SHOW_COPY_LESSON_DIALOG"),Gn=Kn("HIDE_COPY_LESSON_DIALOG"),Xn=Kn("SET_SEARCH_QUERY"),Zn=Kn("SET_SELECTED_FOLDER"),Qn=Kn("CLEAR_SELECTED_FOLDER"),Jn=Kn("SET_FOLDER_MENU_VISIBLE"),er=Kn("SET_SELECTED_COURSE_INDEX"),tr={show:!1,query:"",selectedCourseIndex:0,selectedUsingKeyboard:!1},nr=Object(M.f)(tr,(K={},Object(r.a)(K,Vn,function(e,t){return g()(e,{show:!0,lesson:t})}),Object(r.a)(K,Gn,function(){return tr}),Object(r.a)(K,Xn,function(e,t){return g()(e,{query:t,selectedCourseIndex:0,selectedUsingKeyboard:!1})}),Object(r.a)(K,Zn,function(e,t){return g()(e,{folder:t})}),Object(r.a)(K,Qn,function(e){return Yn()("folder",e)}),Object(r.a)(K,Jn,function(e,t){return g()(e,{folderMenuVisible:t})}),Object(r.a)(K,er,function(e,t){return g()(e,{selectedCourseIndex:t.selectedCourseIndex,selectedUsingKeyboard:t.selectedUsingKeyboard})}),K)),rr=(Object(M.a)(Vn),Object(M.a)(Gn),Object(M.a)(Xn),Object(M.a)(Zn),Object(M.a)(Qn),Object(M.a)(Jn),Object(M.a)(er),n(223)),or=s()("rise/courseCopies/")("FETCH_COURSE_COPIES"),ir=Object(M.f)({loaded:!1,courses:{}},Object(r.a)({},or,Object(M.g)(function(e,t){return g()(e,{courses:t,loaded:!0})}))),ar=(nt.a.send(or),s()("rise/courseTheme/")("SET_CANCEL")),sr={cancel:Function.prototype},lr=Object(M.f)(sr,Object(r.a)({},ar,Ke()(he()("cancel")))),cr=(Object(M.a)(ar),n(155)),ur=n.n(cr),fr=n(169),dr=n.n(fr),pr=n(38),hr=n.n(pr),mr=n(385),vr=n.n(mr),gr=n(732),yr=n.n(gr),br=n(117),_r=n.n(br),wr=n(1166),Er=n.n(wr),xr=n(476),kr=n.n(xr),Sr=n(353),Tr=n.n(Sr),Cr=n(354),Or=n.n(Cr),jr=n(1167),Ar=n.n(jr),Nr=z({uri:"".concat(Object(Z.d)("RISE_API_URI"),"/api/ducks")}),Mr=s()("rise-api/courses/"),Ir=Mr("GET_PUBLISH_SETTINGS"),Lr=Mr("SUBMIT_COURSE"),Pr=Mr("SUBMIT_COURSE_ERROR"),Dr=Mr("SUBMIT_COURSE_SUCCESS"),Rr=Mr("SUBMIT_COURSE_UPDATE"),Fr=Mr("UPDATE_VERSION"),Br=(Nr.send(Ir),w()(Kt()("externalId","courseId"),nt.a.send("rise/courses/GET_COURSE_VERSION"),Tr()(F()("payload")))),Ur=Nr.send(Fr),qr=F()("payload"),zr=function(e){return w()(kr()($t()(["userIdToNotify"]),It()(["userIdToNotify"])),Nt()(re.a.of,Ar()(function(e){return w()(Kt()("courseId","externalId"),Nr.send(e),Tr()(F()("payload")))}(e),Br)),Or()(te()(_r.a)),Er()(Ur),Nt()(qr,qr),Nt()(Object(M.c)(Pr),Object(M.a)(Dr)))},Hr=(zr(Lr),zr(Rr),s()("rise/courseUI/")),Wr=Hr("HIDE_ALT_DIALOG"),$r=Hr("SHOW_ALT_DIALOG"),Yr=Hr("SET_ADD_CONTENT_DIALOG"),Kr=Hr("SET_LESSON_OPTIONS_MENU"),Vr=Hr("SUBMIT_COURSE_PROCESSING"),Gr=Hr("SUBMIT_COURSE_EDITING"),Xr=Hr("TOGGLE_CUSTOM_FONTS_DIALOG"),Zr=Hr("TOGGLE_TAKE_CONTROL_DIALOG"),Qr=Hr("UPDATE_ALT_DIALOG"),Jr=Hr("UPDATE_CUSTOM_FONTS_DIALOG"),eo=Hr("UPDATE_SUBMIT_COURSE_DIALOG"),to=Hr("SET_COMPLETION_PERCENTAGE"),no=Hr("SET_QUIZ_RESULT"),ro="editing",oo="submitting",io="success",ao="error",so={altDialog:{show:!1,blockId:null,itemId:null,lessonId:null,text:"",type:null},customFontsDialog:{show:!1,uploadView:!1},overview:{optionsId:null,addContentId:null},takeControlDialog:{show:!1,lessonId:null},submitCourse:(V={status:ro,loading:!0,newSubmission:!1,completion:!1,quizResult:!1,admin:null},Object(r.a)(V,"trackingQuizId",null),Object(r.a)(V,"trackingCompletionPercentage",null),V)},lo=Ke()(ur()(["overview","addContentId"])),co=Ke()(ur()(["overview","optionsId"])),uo=function(e){return f()({submitCourse:{status:ht()(e)}})},fo=ye()(function(e,t,n){var r;return ke()(Ee()(Ct()(r=[]).call(r,t)),dr()(e),n)}),po=function(e){return function(t){return null!==t[e]&&void 0!==t[e]}},ho=_e()(hr.a,ht()((G={newSubmission:!0},Object(r.a)(G,"trackingCompletionPercentage",80),Object(r.a)(G,"completion",!0),G)),i()(fo(null,"trackingQuizId"),fo(80,"trackingCompletionPercentage"),tt()(po("trackingCompletionPercentage"),he()("completion",!0)),tt()(po("trackingQuizId"),he()("quizResult",!0)))),mo=f()({submitCourse:{status:ht()(io),newSubmission:yr.a}}),vo=Object(M.f)(so,(X={},Object(r.a)(X,Ir,Object(M.g)(function(e,t){return w()(ho,g()({loading:!1}),b()("submitCourse"),vr()(e))(t)})),Object(r.a)(X,Wr,function(e){return g()(e,{altDialog:{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null}})}),Object(r.a)(X,Yr,lo),Object(r.a)(X,Kr,co),Object(r.a)(X,to,function(e,t){return f()({submitCourse:Object(r.a)({},"trackingCompletionPercentage",ht()(t))},e)}),Object(r.a)(X,no,function(e,t){return f()({submitCourse:Object(r.a)({},"trackingQuizId",ht()(t))},e)}),Object(r.a)(X,$r,function(e,t){return g()(e,{altDialog:g()(t,{show:!0})})}),Object(r.a)(X,Dr,mo),Object(r.a)(X,Vr,uo(oo)),Object(r.a)(X,Gr,uo(ro)),Object(r.a)(X,Pr,uo(ao)),Object(r.a)(X,Xr,function(e,t){return g()(e,{customFontsDialog:g()(t,{show:!e.customFontsDialog.show})})}),Object(r.a)(X,Zr,function(e,t){return g()(e,{takeControlDialog:g()(t,{show:!e.takeControlDialog.show})})}),Object(r.a)(X,Qr,function(e,t){return g()(e,{altDialog:g()(e.altDialog,t)})}),Object(r.a)(X,Jr,function(e,t){return g()(e,{customFontsDialog:g()(e.customFontsDialog,t)})}),Object(r.a)(X,eo,function(e,t){return vr()(e,{submitCourse:t})}),X)),go=(Object(M.a)(to),Object(M.a)(no),Object(M.a)(Vr),Object(M.a)(Gr),Object(M.a)(Wr),Object(M.a)(Yr),Object(M.a)(Kr),Object(M.a)($r),Object(M.a)(Jr),ht()(Object(M.a)(Xr,null)),Object(M.a)(Zr),Object(M.a)(Qr),Object(M.a)(eo),n(219),n(1168)),yo=n.n(go),bo=n(1169),_o=n.n(bo),wo=n(733),Eo=n.n(wo),xo=n(57),ko=n.n(xo),So=(n(35),n(37)),To=n.n(So),Co=n(138),Oo=n.n(Co),jo=n(204),Ao=n.n(jo),No=(n(734),n(162)),Mo=n(122),Io=n(33),Lo=n.n(Io),Po=n(571),Do=n.n(Po),Ro=n(727),Fo=n.n(Ro),Bo=n(735),Uo=n.n(Bo),qo=n(1170),zo=n.n(qo),Ho=n(244),Wo=n.n(Ho),$o=Wo.a.parse(Object(Z.d)("REVIEW_SOCKET_URI")||""),Yo=Wo.a.format(zo()($o,["protocol","slashes","host"])),Ko={autoConnect:!1,path:$o.pathname},Vo=Fo()(Yo,Ko),Go=Vo.emit;Vo.emit=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Uo()(t);return"function"==typeof r?t=Lo()(t).call(t,0,-1):r=Do.a,new Qt.a(function(e){Go.apply(Vo,Ct()(t).call(t,e))}).then(r)};var Xo,Zo,Qo,Jo,ei,ti,ni=s()("rise/externalItems/"),ri={peek:"video",preso:"video",replay:"video",video:"video",rise:"rise",storyline:"storyline"},oi=ni("FETCH_EXTERNAL_ITEMS"),ii=ni("REMOVE_EXTERNAL_ITEM"),ai=ni("UPDATE_EXTERNAL_ITEM"),si=Object(M.f)({fetched:!1,video:[],rise:[],storyline:[]},(Xo={},Object(r.a)(Xo,oi,Object(M.g)(function(e,t){return Ao()([e,{fetched:!0},t])})),Object(r.a)(Xo,ii,Object(M.g)(function(e,t){var n=t.type,r=t.itemId;return i()(g()(e),b()(n),Object(Mo.b)(r))(e[n])})),Object(r.a)(Xo,ai,Object(M.g)(function(e,t){var n,o=_o()(n=e[ri[t.product]]).call(n,0),i=yo()(o).call(o,function(e){return e.id===t.id});return-1===i?o.unshift(t):o[i]=t,g()(e,Object(r.a)({},ri[t.product],o))})),Xo)),li=i()(hr.a,F()("archivedAt")),ci=ko()(2,function(e,t){return i()(Ke()(ve.a)(e),C.a,F()("product"))(t)}),ui=i()(Ze()("state","ready"),Oo.a,F()("versions")),fi=(ko()(2,function(e,t){return To()(function(t){return Eo()([li,ci(e),ui])(t)})(t)}),n(73)),di=n.n(fi),pi=s()("rise/labelSets/"),hi=pi("CREATE_LABEL_SET"),mi=pi("DELETE_LABEL_SET"),vi=pi("IMPORT_LABEL_SET"),gi=pi("UPDATE_LABEL_SET"),yi=function(e,t){return bi(e,t)},bi=function(e,t){return he()(t.id,t,e)},_i=Object(M.f)({},(Zo={},Object(r.a)(Zo,hi,Object(M.g)(yi)),Object(r.a)(Zo,mi,Object(M.g)(function(e,t){return Yn()(t.id,e)})),Object(r.a)(Zo,rr.a,Object(M.g)(function(e,t){var n=t.labelSets;return di()(bi,{},n)})),Object(r.a)(Zo,vi,Object(M.g)(yi)),Object(r.a)(Zo,gi,Object(M.g)(function(e,t){return f()(Object(r.a)({},t.id,Ke()(g.a)(t)),e)})),Zo)),wi=(nt.a.send(hi),nt.a.send(mi),nt.a.send(vi),nt.a.debounce(500,gi),n(17),n(225)),Ei=s()("rise/locks/"),xi=Ei("DEL_LOCK"),ki=Ei("PUT_LOCK"),Si=$t()(["id","author","courseId","session","ttl","updatedAt"]),Ti=function(e,t){return he()(t.id,Si(t),e)},Ci=Object(M.f)({},(Qo={},Object(r.a)(Qo,xi,Object(M.g)(function(e,t){return Yn()(t.id,e)})),Object(r.a)(Qo,"rise/courses/GET_COURSE",Object(M.g)(function(e,t){var n=t.locks;return di()(Ti,{},n)})),Object(r.a)(Qo,wi.a,Object(M.g)(Ti)),Object(r.a)(Qo,wi.b,Object(M.g)(Ti)),Object(r.a)(Qo,ki,Object(M.g)(Ti)),Qo)),Oi=$t()(["id","courseId"]),ji=(i()(nt.a.send(xi),Oi),i()(nt.a.send(ki),Oi),n(132)),Ai=s()("rise/media/")("CREATE_MEDIA"),Ni=function(e,t){return he()(t.id,t,e)},Mi=Object(ji.handle)({},(Jo={},Object(r.a)(Jo,Ai,Object(ji.onSuccess)(Ni)),Object(r.a)(Jo,"rise/courses/GET_COURSE",Object(ji.onSuccess)(function(e,t){var n=t.media;return di()(Ni,{},n)})),Jo)),Ii=(nt.a.send(Ai),n(146)),Li=n(477),Pi=n(319),Di=n.n(Pi),Ri=s()("rise/time/")("SYNC_CLOCK"),Fi=Object(M.f)({delta:0},Object(r.a)({},Ri,function(e,t){return he()("delta",t-Di()()+2e3,e)})),Bi=n(590),Ui=s()("rise/typefaces/"),qi=Ui("CREATE_TYPEFACE"),zi=Ui("DELETE_TYPEFACE"),Hi=Ui("FETCH_TYPEFACES"),Wi=Ui("UPDATE_TYPEFACE"),$i=function(e,t){return he()(t.id,f()({fonts:di()(Yi,{})},t),e)},Yi=function(e,t){return he()(t.id,t,e)},Ki=Object(M.f)({},(ei={},Object(r.a)(ei,qi,Object(M.g)($i)),Object(r.a)(ei,zi,Object(M.g)(function(e,t){return Yn()(t.id,e)})),Object(r.a)(ei,Hi,Object(M.g)(function(e,t){var n=t.typefaces;return di()($i,{},n)})),Object(r.a)(ei,Wi,Object(M.g)($i)),ei)),Vi=(nt.a.send(qi),nt.a.send(zi),ht()(nt.a.send(Hi,null)),nt.a.send(Wi),s()("rise/user/")),Gi=Vi("GET_SESSION"),Xi=Vi("GET_STATUS"),Zi={author:Object(No.a)(),session:null},Qi=Object(M.f)(Zi,(ti={},Object(r.a)(ti,Gi,function(e,t){return he()("session",t.session,e)}),Object(r.a)(ti,Xi,Object(M.g)(g.a)),ti));ht()(Object(M.a)(Gi,nt.a)),ht()(nt.a.send(Xi,null)),t.a={accounts:ce,blockTemplateUI:$e,blockTemplates:ft,collaborators:dt.d,collaboratorsUI:Et,connection:St,contentLibrary:Wn,copyLessonUI:nr,course:rr.c,courseCopies:ir,courseTheme:lr,courseUI:vo,externalItems:si,labelSets:_i,lessons:Bt.g,locks:Ci,media:Mi,notification:Ii.a,storyline:Li.b,time:Fi,track:Bi.a,typefaces:Ki,uploads:Ft.b,user:Qi}},function(e,t,n){"use strict";var r=n(203),o=n(6),i=n(14),a=n.n(i),s=n(13),l=Object(s.f)({},Object(o.a)({},r.a,function(e,t){var n=t.labelSet;return a()(e,n)})),c=n(65),u=n(26),f=n.n(u),d=n(142),p=n.n(d),h=n(5),m=n.n(h),v=n(28),g=n.n(v),y=n(27),b=n.n(y),_=n(12),w=n.n(_),E=n(458),x=n.n(E),k=n(1146),S=n.n(k),T=b()(g()(f.a)(":".concat("n3,n4,i4,n7,n9"))),C=n(276),O=n(39),j=(f()("rise/fonts/")("LOAD_FONTS"),Object(s.f)({},Object(o.a)({},r.a,function(e,t){var n=t.fonts;return a()(e,p()(A)(n))}))),A=function(e){return function(e,t){var n=m()(T,x.a,b()(w()("name")))(e);S.a.load({active:t,inactive:t,timeout:5e3,custom:{families:n}})}(e,function(){return Object(O.a)(Object(C.e)(!0))})},N=n(19),M=n.n(N),I=n(132),L=n(73),P=n.n(L),D=function(e,t){return M()(t.id,t,e)},R=Object(I.handle)({},Object(o.a)({},r.a,function(e,t){var n=t.media;return P()(D,{},n)})),F=n(284),B=n(187);t.a={course:r.b,courseLabels:l,courseProgress:c.c,fonts:j,media:R,search:F.a,sessionPreferences:B.a,status:C.a}},function(e,t,n){"use strict";var r=n(37),o=n.n(r),i=n(67),a=n.n(i),s=n(27),l=n.n(s),c=n(18),u=n.n(c),f=n(79),d=n.n(f),p=n(245),h=n(102),m=n.n(h),v=n(273),g=n.n(v),y=n(69),b=n.n(y),_=n(584),w=n(306),E=n.n(w),x=n(38),k=n.n(x),S=E.a,T=function(e){return!k()(e)&&"object"===Object(_.a)(e)},C=function(e){return"string"==typeof e},O=function(e,t){return function(n){return u()(m.a,b.a,d()(!0))(function(e,t){return function(n,r){var o=d()(r,e);return T(n)?O(e,t)(n):!(!o||!C(n)||a()(g()(t,Object(p.htmlDecode)(n))))}}(e,t),n)}},j=O,A=n(305),N=n.n(A),M=n(19),I=n.n(M),L=n(186),P=n.n(L),D=n(43),R=n.n(D),F=n(73),B=n.n(F),U=function(e,t){return function(n){return m()(function(e,t){return function(n,r){var o=d()(r,e);return S(n)?b()(U(e,t)(n)):T(n)?U(e,t)(n):o&&C(n)?R()(g()(t,Object(p.htmlDecode)(n))):0}}(e,t),n)}},q=function e(t){return S(t)?l()(e,t):T(t)?e(b()(t)):function(e){return"number"==typeof e}(t)?t:void 0},z=function(e,t){return function(n){return u()(U(e,t),b.a,l()(q),P.a,B()(N.a,0),function(e){return I()("results",e,n)})(n)}},H=n(185),W=n.n(H),$=function(e,t,n){return function(r){return m()(function(e,t,n){return function(r,o){var i=d()(o,e);return S(r)?b()($(e,t,n)(r)):T(r)?$(e,t,n)(r):i&&C(r)?W()(t,n,Object(p.htmlDecode)(r)):r}}(e,t,n),r)}},Y=$;t.a=function(e,t,n){var r=["caption","code","description","heading","message","name","paragraph","title","type"];if(a()(e))return!1;var i=e.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),s=new RegExp("(".concat(i,")(?![^<]*>)"),"ig"),c=Y(r,s,function(e){return"<mark>".concat(e,"</mark>")}),f=l()(c,t),d=j(r,s),p=z(r,s);n(e,u()(o()(d),l()(p))(t),f)}},function(e,t,n){"use strict";var r=n(9),o=n(7),i=n(10),a=n(8),s=n(588),l=n.n(s),c=n(750),u=n.n(c);function f(e,t,n){return(f="undefined"!=typeof Reflect&&u.a?u.a:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(a.a)(e)););return e}(e,t);if(r){var o=l()(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var d=n(11),p=n(738),h=function(e){function t(e,n){var o;Object(r.a)(this,t),o=Object(i.a)(this,Object(a.a)(t).call(this,e,[]));var s=n.showRestrictSeekTooltip,l=n.getMaxTime;return o.showRestrictSeekTooltip=s,o.getMaxTime=l,o}return Object(d.a)(t,e),Object(o.a)(t,[{key:"handleMouseMove",value:function(e){var t=this.player(),n=this.calculateDistance(e)*t.duration(),r=this.getMaxTime();n>r?(this.showRestrictSeekTooltip(!0),n=r):this.showRestrictSeekTooltip(!1),n===t.duration()&&(n-=.1),t.currentTime(n)}},{key:"handleMouseUp",value:function(e){f(Object(a.a)(t.prototype),"handleMouseUp",this).call(this,e),this.showRestrictSeekTooltip(!1)}}]),t}(n.n(p).a.getComponent("SeekBar"));t.a=h},function(e,t,n){"use strict";var r=n(33),o=n.n(r),i=n(582),a=n(592),s=n(583);var l=n(17),c=n.n(l),u=n(170),f=n.n(u),d=(n(2412),n(1)),p=n.n(d),h=n(2),m=n.n(h),v=n(29),g=n.n(v),y=n(173),b=n(106),_=n(3),w=n.n(_),E=n(4),x=n.n(E),k=n(9),S=n(10),T=n(8),C=n(15),O=n(7),j=n(11),A=(n(2413),n(0)),N=n.n(A),M=n(151),I=n.n(M),L=n(39),P=n(187),D=n(394),R=n(207),F=n(611),B=function(e){function t(){var e,n,r,o,i;Object(k.a)(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(i=Object(S.a)(this,(e=Object(T.a)(t)).call.apply(e,x()(n=[this]).call(n,s)))).handleClick=w()(r=i.handleClick).call(r,Object(C.a)(i)),i.handleRestrictedClick=w()(o=i.handleRestrictedClick).call(o,Object(C.a)(i)),i}return Object(j.a)(t,e),Object(O.a)(t,null,[{key:"contextTypes",get:function(){return{router:N.a.object.isRequired}}}]),Object(O.a)(t,[{key:"handleClick",value:function(e){var t=this.context.router,n=e.currentTarget.hash;e.preventDefault(),I.a.Events.scrollEvent.register("end",function(){t.history.push(o()(n).call(n,1)),I.a.Events.scrollEvent.remove("end")}),I.a.animateScroll.scrollTo(0,{containerId:"overview"}),Object(L.a)(Object(P.d)(!0))}},{key:"handleRestrictedClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e,t=this.props,n=t.isRestricted,r=t.lesson,o=r.icon,i=r.id,a=r.title,s=t.percentComplete,l=t.restrictedText,c="#/lessons/".concat(i),u=p.a.createElement(d.Fragment,null,p.a.createElement("div",{className:"overview-list-item__icon","aria-hidden":"true"},p.a.createElement(D.a,{icon:o})),p.a.createElement("div",{className:"overview-list-item__title brand--ui"},a),p.a.createElement("div",{className:"overview-list-item__pie"},p.a.createElement(F.a,{percentComplete:s})));return n?p.a.createElement("li",{className:"overview-list-item overview-list-item--restricted"},p.a.createElement(R.a,{className:"runtime-tooltip"},p.a.createElement("a",{"aria-disabled":"true","aria-label":x()(e="The ".concat(a," lesson is currently unavailable: ")).call(e,l,"."),className:"overview-list-item__link",disabled:!0,href:c,onClick:this.handleRestrictedClick},u,p.a.createElement(R.b,{"aria-hidden":"true",side:"top"},l)))):p.a.createElement("li",{className:"overview-list-item"},p.a.createElement("a",{className:"overview-list-item__link",href:c,onClick:this.handleClick},u))}}]),t}(d.PureComponent),U=Object(y.a)("modernOverview");t.a=Object(d.memo)(function(e){var t=e.course,n=e.courseProgress,r=e.labels,l=e.lessons,u=e.restrictingQuiz,d=function(e){return f()(e).call(e,function(e,t){return"section"===t.type?e.push([t]):e[e.length-1].push(t),e},[[]])}(l),h=m()("overview-list",{"overview-list--modern":U});return p.a.createElement("nav",{className:h},c()(d).call(d,function(e,l){var f,d=(f=e,Object(i.a)(f)||Object(a.a)(f)||Object(s.a)()),h=d[0],m=void 0===h?{}:h,v=o()(d).call(d,1),y=m.title,_="section"===m.type,w=_?v:e;return p.a.createElement("section",{key:l},_&&y&&p.a.createElement("h3",{className:"overview-list__section-title brand--ui"},y),p.a.createElement("ol",{className:"overview-list__list"},c()(w).call(w,function(e){var o=Object(b.b)({course:t,courseProgress:n,lesson:e,restrictingQuiz:u}),i=Object(b.a)({labels:r,restrictions:o}),a=g()(0,["lessons",e.id,"percentComplete"],n);return p.a.createElement(B,{isRestricted:o.isRestricted,key:e.id,lesson:e,percentComplete:a,restrictedText:i})})))}))})},function(e,t,n){"use strict";n(17);var r=n(132),o=(n(100),n(155),n(191)),i=n.n(o),a=n(5),s=n.n(a),l=n(26),c=n.n(l),u=n(79),f=n.n(u),d=n(30),p=n.n(d),h=(n(50),n(113)),m=n.n(h),v=n(27),g=n.n(v),y=n(14),b=n.n(y),_=n(54),w=n.n(_),E=n(25),x=n.n(E),k=n(49),S=n.n(k),T=n(18),C=n.n(T),O=n(12),j=n.n(O),A=n(16),N=n.n(A),M=n(206),I=n.n(M),L=n(31),P=n.n(L),D=n(172),R=n.n(D),F=n(164),B=n(84),U=function(e){var t=e.item;return e.locks[t.id]},q=n(46),z=n(45),H=n(223);n.d(t,"a",function(){return ae});var W=c()("rise/uploads/"),$=W("CANCEL_JOB"),Y=W("CANCEL_UPLOAD"),K=W("CHECK_STATUS"),V=W("RESOLVE_ASSET"),G=(W("TRANSCODE_ASSET"),"".concat(Object(B.d)("IMAGES_URI"),"/f:png,w:1920,s:cover,q:65/")),X="".concat(Object(B.d)("IMAGES_URI"),"/f:jpg,b:fff,w:100,h:100,s:cover/"),Z=s()(z.a.send($),S()(["courseId","jobId"])),Q=function(e){return function(t,n){var r=n().course,o=C()(S()(["id","jobs"]),p()({jobs:R()([e.jobId])}));t(Object(H.d)(o(r)))}},J=(m()([Object(r.action)(Y),Q,Z]),s()(c()(G),j()("thumbnail"))),ee=s()(c()(X),j()("thumbnail")),te=P()(N()("mediaType","video"),C()(i()("poster",J),i()("thumbnail",ee))),ne=w()(["courseId","done","jobId","lessonId","refs","state","uploadId"]),re=C()(te,I()("mediaType","type"),i()("asset",ne)),oe=function(e){return function(t,n){var r,o=e.courseId,i=e.done,a=e.jobId,s=e.lessonId,l=e.uploadId,c=n().course.jobs,u={id:s||o};i&&f()(a,c)&&(r=b()(n(),{item:u}),!(U(r)&&U(r).session!==r.user.session))&&t([Object(q.i)(re(e)),Q(e),Object(F.c)({id:l})])}},ie=N()("type",V),ae=P()(ie,s()(oe,j()("payload")));C()(x()(["payload","course"]),S()(["id","jobs"]),I()("id","courseId"),z.a.send(K),g()(j()("payload")),g()(m()([F.e,g()(oe)])))},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(115),a=n.n(i),s=n(746),l=n(287),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},u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var f=function(e){var t=e.to,n=e.exact,r=e.strict,i=e.location,a=e.activeClassName,f=e.className,d=e.activeStyle,p=e.style,h=e.isActive,m=e["aria-current"],v=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),g="object"===(void 0===t?"undefined":u(t))?t.pathname:t,y=g&&g.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1");return o.a.createElement(s.a,{path:y,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(h?h(r,n):r);return o.a.createElement(l.a,c({to:t,className:i?[f,a].filter(function(e){return e}).join(" "):f,style:i?c({},p,d):p,"aria-current":i&&m||null},v))}})};f.propTypes={to:l.a.propTypes.to,exact:a.a.bool,strict:a.a.bool,location:a.a.object,activeClassName:a.a.string,className:a.a.string,activeStyle:a.a.object,style:a.a.object,isActive:a.a.func,"aria-current":a.a.oneOf(["page","step","location","date","time","true"])},f.defaultProps={activeClassName:"active","aria-current":"page"},t.a=f},function(e,t,n){"use strict";var r=n(66),o=n(134),i=n(107),a=n(322),s=n(23),l=n(178),c=n(409),u=n(61),f=n(407),d=n(233),p=n(408),h=n(98),m=n(780),v=n(179),g=n(1264),y=n(358),b=n(93),_=n(85),w=n(177),E=n(232),x=n(323),k=n(325),S=n(783),T=n(166),C=n(118),O=n(406),j=n(158),A=n(357),N=n(490)("hidden"),M=n(193),I=M.set,L=M.getterFor("Symbol"),P=T.f,D=C.f,R=S.f,F=r.Symbol,B=r.JSON,U=B&&B.stringify,q=h("toPrimitive"),z=O.f,H=f("symbol-registry"),W=f("symbols"),$=f("op-symbols"),Y=f("wks"),K=Object.prototype,V=r.QObject,G=n(779),X=!V||!V.prototype||!V.prototype.findChild,Z=i&&u(function(){return 7!=k(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(K,t);r&&delete K[t],D(e,t,n),r&&e!==K&&D(K,t,r)}:D,Q=function(e,t){var n=W[e]=k(F.prototype);return I(n,{type:"Symbol",tag:e,description:t}),i||(n.description=t),n},J=G&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof F},ee=function(e,t,n){return e===K&&ee($,t,n),b(e),t=E(t,!0),b(n),o(W,t)?(n.enumerable?(o(e,N)&&e[N][t]&&(e[N][t]=!1),n=k(n,{enumerable:x(0,!1)})):(o(e,N)||D(e,N,x(1,{})),e[N][t]=!0),Z(e,t,n)):D(e,t,n)},te=function(e,t){b(e);for(var n,r=g(t=w(t)),o=0,i=r.length;i>o;)ee(e,n=r[o++],t[n]);return e},ne=function(e){var t=z.call(this,e=E(e,!0));return!(this===K&&o(W,e)&&!o($,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,N)&&this[N][e])||t)},re=function(e,t){if(e=w(e),t=E(t,!0),e!==K||!o(W,t)||o($,t)){var n=P(e,t);return!n||!o(W,t)||o(e,N)&&e[N][t]||(n.enumerable=!0),n}},oe=function(e){for(var t,n=R(w(e)),r=[],i=0;n.length>i;)o(W,t=n[i++])||o(c,t)||r.push(t);return r},ie=function(e){for(var t,n=e===K,r=R(n?$:w(e)),i=[],a=0;r.length>a;)!o(W,t=r[a++])||n&&!o(K,t)||i.push(W[t]);return i};G||(l((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=p(e),n=function(e){this===K&&n.call($,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),Z(this,t,x(1,e))};return i&&X&&Z(K,t,{configurable:!0,set:n}),Q(t,e)}).prototype,"toString",function(){return L(this).tag}),O.f=ne,C.f=ee,T.f=re,n(324).f=S.f=oe,n(492).f=ie,i&&(D(F.prototype,"description",{configurable:!0,get:function(){return L(this).description}}),a||l(K,"propertyIsEnumerable",ne,{unsafe:!0})),m.f=function(e){return Q(h(e),e)}),s({global:!0,wrap:!0,forced:!G,sham:!G},{Symbol:F});for(var ae=A(Y),se=0;ae.length>se;)v(ae[se++]);s({target:"Symbol",stat:!0,forced:!G},{for:function(e){return o(H,e+="")?H[e]:H[e]=F(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol");for(var t in H)if(H[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s({target:"Object",stat:!0,forced:!G,sham:!i},{create:function(e,t){return void 0===t?k(e):te(k(e),t)},defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:oe,getOwnPropertySymbols:ie}),B&&s({target:"JSON",stat:!0,forced:!G||u(function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))})},{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(_(t)||void 0!==e)&&!J(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,U.apply(B,r)}}),F.prototype[q]||j(F.prototype,q,F.prototype.valueOf),d(F,"Symbol"),c[N]=!0},function(e,t,n){var r=n(357),o=n(492),i=n(406);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){"use strict";var r=n(107),o=n(134),i=n(85),a=n(118).f,s=n(777),l=n(66).Symbol;if(r&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var c={},u=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof u?new l(e):void 0===e?l():l(e);return""===e&&(c[t]=!0),t};s(u,l);var f=u.prototype=l.prototype;f.constructor=u;var d=f.toString,p="Symbol(test)"==String(l("test")),h=/^Symbol\((.*)\)[^)]+$/;a(f,"description",{configurable:!0,get:function(){var e=i(this)?this.valueOf():this,t=d.call(e);if(o(c,e))return"";var n=p?t.slice(7,-1):t.replace(h,"$1");return""===n?void 0:n}}),n(23)({global:!0,forced:!0},{Symbol:u})}},function(e,t,n){n(179)("asyncIterator")},function(e,t,n){n(179)("hasInstance")},function(e,t,n){n(179)("isConcatSpreadable")},function(e,t,n){n(179)("iterator")},function(e,t,n){n(179)("match")},function(e,t,n){n(179)("replace")},function(e,t,n){n(179)("search")},function(e,t,n){n(179)("species")},function(e,t,n){n(179)("split")},function(e,t,n){n(179)("toPrimitive")},function(e,t,n){n(179)("toStringTag")},function(e,t,n){n(179)("unscopables")},function(e,t,n){"use strict";var r=n(358),o=n(85),i=n(135),a=n(104),s=n(326),l=n(411),c=n(98)("isConcatSpreadable"),u=!n(61)(function(){var e=[];return e[c]=!1,e.concat()[0]!==e}),f=n(412)("concat"),d=function(e){if(!o(e))return!1;var t=e[c];return void 0!==t?!!t:r(e)},p=!u||!f;n(23)({target:"Array",proto:!0,forced:p},{concat:function(e){var t,n,r,o,c,u=i(this),f=l(u,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(c=-1===t?u:arguments[t],d(c)){if(p+(o=a(c.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in c&&s(f,p,c[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,c)}return f.length=p,f}})},function(e,t,n){n(23)({target:"Array",proto:!0},{copyWithin:n(784)}),n(289)("copyWithin")},function(e,t,n){n(23)({target:"Array",proto:!0},{fill:n(622)}),n(289)("fill")},function(e,t,n){"use strict";var r=n(167)(2),o=n(412)("filter");n(23)({target:"Array",proto:!0,forced:!o},{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(167)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(23)({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(289)("find")},function(e,t,n){"use strict";var r=n(167)(6),o=!0;"findIndex"in[]&&Array(1).findIndex(function(){o=!1}),n(23)({target:"Array",proto:!0,forced:o},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(289)("findIndex")},function(e,t,n){"use strict";var r=n(785),o=n(135),i=n(104),a=n(194),s=n(411);n(23)({target:"Array",proto:!0},{flat:function(){var e=arguments[0],t=o(this),n=i(t.length),l=s(t,0);return l.length=r(l,t,t,n,0,void 0===e?1:a(e)),l}})},function(e,t,n){"use strict";var r=n(785),o=n(135),i=n(104),a=n(211),s=n(411);n(23)({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),l=i(n.length);return a(e),(t=s(n,0)).length=r(t,n,n,l,0,1,e,arguments[1]),t}})},function(e,t,n){var r=!n(493)(function(e){Array.from(e)});n(23)({target:"Array",stat:!0,forced:r},{from:n(786)})},function(e,t,n){"use strict";var r=n(491)(!0);n(23)({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(289)("includes")},function(e,t,n){"use strict";var r=n(177),o=[].join,i=n(489)!=Object,a=n(496)("join",",");n(23)({target:"Array",proto:!0,forced:i||a},{join:function(e){return o.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(167)(1),o=n(412)("map");n(23)({target:"Array",proto:!0,forced:!o},{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(326),o=n(61)(function(){function e(){}return!(Array.of.call(e)instanceof e)});n(23)({target:"Array",stat:!0,forced:o},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(358),o=[].reverse,i=[1,2];n(23)({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),o.call(this)}})},function(e,t,n){"use strict";var r=n(85),o=n(358),i=n(288),a=n(104),s=n(177),l=n(326),c=n(98)("species"),u=[].slice,f=Math.max,d=n(412)("slice");n(23)({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,d,p,h=s(this),m=a(h.length),v=i(e,m),g=i(void 0===t?m:t,m);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[c])&&(n=void 0):n=void 0,n===Array||void 0===n))return u.call(h,v,g);for(d=new(void 0===n?Array:n)(f(g-v,0)),p=0;v<g;v++,p++)v in h&&l(d,p,h[v]);return d.length=p,d}})},function(e,t,n){"use strict";var r=n(211),o=n(135),i=n(61),a=[].sort,s=[1,2,3],l=i(function(){s.sort(void 0)}),c=i(function(){s.sort(null)}),u=n(496)("sort"),f=l||!c||u;n(23)({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),r(e))}})},function(e,t,n){n(359)("Array")},function(e,t,n){"use strict";var r=n(288),o=n(194),i=n(104),a=n(135),s=n(411),l=n(326),c=Math.max,u=Math.min,f=n(412)("splice");n(23)({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,f,d,p,h,m,v=a(this),g=i(v.length),y=r(e,g),b=arguments.length;if(0===b?n=f=0:1===b?(n=0,f=g-y):(n=b-2,f=u(c(o(t),0),g-y)),g+n-f>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=s(v,f),p=0;p<f;p++)(h=y+p)in v&&l(d,p,v[h]);if(d.length=f,n<f){for(p=y;p<g-f;p++)m=p+n,(h=p+f)in v?v[m]=v[h]:delete v[m];for(p=g;p>g-f+n;p--)delete v[p-1]}else if(n>f)for(p=g-f;p>y;p--)m=p+n-1,(h=p+f-1)in v?v[m]=v[h]:delete v[m];for(p=0;p<n;p++)v[p+y]=arguments[p+2];return v.length=g-f+n,d}})},function(e,t,n){n(289)("flat")},function(e,t,n){n(289)("flatMap")},function(e,t,n){"use strict";var r=n(627).ArrayBuffer,o=n(66).ArrayBuffer;n(23)({global:!0,forced:o!==r},{ArrayBuffer:r}),n(359)("ArrayBuffer")},function(e,t,n){"use strict";var r=n(627),o=n(93),i=n(288),a=n(104),s=n(292),l=r.ArrayBuffer,c=r.DataView,u=l.prototype.slice,f=n(61)(function(){return!new l(2).slice(1,void 0).byteLength});n(23)({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:f},{slice:function(e,t){if(void 0!==u&&void 0===t)return u.call(o(this),e);for(var n=o(this).byteLength,r=i(e,n),f=i(void 0===t?n:t,n),d=new(s(this,l))(a(f-r)),p=new c(this),h=new c(d),m=0;r<f;)h.setUint8(m++,p.getUint8(r++));return d}})},function(e,t,n){var r=n(158),o=n(98)("toPrimitive"),i=n(1301),a=Date.prototype;o in a||r(a,o,i)},function(e,t,n){"use strict";var r=n(93),o=n(232);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},function(e,t,n){"use strict";var r=n(85),o=n(118),i=n(234),a=n(98)("hasInstance"),s=Function.prototype;a in s||o.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(107),o=n(118).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/;!r||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){n(233)(n(66).JSON,"JSON",!0)},function(e,t,n){"use strict";e.exports=n(497)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(792),!0)},function(e,t,n){var r=n(793),o=Math.acosh,i=Math.log,a=Math.sqrt,s=Math.LN2,l=!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0;n(23)({target:"Math",stat:!0,forced:l},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?i(e)+s:r(e-1+a(e-1)*a(e+1))}})},function(e,t,n){var r=Math.asinh,o=Math.log,i=Math.sqrt;n(23)({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):o(t+i(t*t+1)):t}})},function(e,t,n){var r=Math.atanh,o=Math.log;n(23)({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:o((1+e)/(1-e))/2}})},function(e,t,n){var r=n(629),o=Math.abs,i=Math.pow;n(23)({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*i(o(e),1/3)}})},function(e,t,n){var r=Math.floor,o=Math.log,i=Math.LOG2E;n(23)({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(o(e+.5)*i):32}})},function(e,t,n){var r=n(498),o=Math.cosh,i=Math.abs,a=Math.E;n(23)({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=r(i(e)-1)+1;return(t+1/(t*a*a))*(a/2)}})},function(e,t,n){var r=n(498);n(23)({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){n(23)({target:"Math",stat:!0},{fround:n(1314)})},function(e,t,n){var r=n(629),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),l=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=r(e);return o<l?c*(o/l/a+1/i-1/i)*l*a:(n=(t=(1+a/i)*o)-(t-o))>s||n!=n?c*(1/0):c*n}},function(e,t,n){var r=Math.abs,o=Math.sqrt;n(23)({target:"Math",stat:!0},{hypot:function(e,t){for(var n,i,a=0,s=0,l=arguments.length,c=0;s<l;)c<(n=r(arguments[s++]))?(a=a*(i=c/n)*i+1,c=n):a+=n>0?(i=n/c)*i:n;return c===1/0?1/0:c*o(a)}})},function(e,t,n){var r=Math.imul,o=n(61)(function(){return-5!=r(4294967295,5)||2!=r.length});n(23)({target:"Math",stat:!0,forced:o},{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=Math.log,o=Math.LOG10E;n(23)({target:"Math",stat:!0},{log10:function(e){return r(e)*o}})},function(e,t,n){n(23)({target:"Math",stat:!0},{log1p:n(793)})},function(e,t,n){var r=Math.log,o=Math.LN2;n(23)({target:"Math",stat:!0},{log2:function(e){return r(e)/o}})},function(e,t,n){n(23)({target:"Math",stat:!0},{sign:n(629)})},function(e,t,n){var r=n(498),o=Math.abs,i=Math.exp,a=Math.E,s=n(61)(function(){return-2e-17!=Math.sinh(-2e-17)});n(23)({target:"Math",stat:!0,forced:s},{sinh:function(e){return o(e=+e)<1?(r(e)-r(-e))/2:(i(e-1)-i(-e-1))*(a/2)}})},function(e,t,n){var r=n(498),o=Math.exp;n(23)({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){n(233)(Math,"Math",!0)},function(e,t,n){var r=Math.ceil,o=Math.floor;n(23)({target:"Math",stat:!0},{trunc:function(e){return(e>0?o:r)(e)}})},function(e,t,n){"use strict";var r=n(66),o=n(410),i=n(134),a=n(210),s=n(628),l=n(232),c=n(61),u=n(324).f,f=n(166).f,d=n(118).f,p=n(361),h=r.Number,m=h.prototype,v="Number"==a(n(325)(m)),g="trim"in String.prototype,y=function(e){var t,n,r,o,i,a,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=g?u.trim():p(u,3)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=u.slice(2)).length,s=0;s<a;s++)if((c=i.charCodeAt(s))<48||c>o)return NaN;return parseInt(i,r)}return+u};if(o("Number",!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var b,_=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof _&&(v?c(function(){m.valueOf.call(n)}):"Number"!=a(n))?s(new h(y(t)),n,_):y(t)},w=n(107)?u(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;w.length>E;E++)i(h,b=w[E])&&!i(_,b)&&d(_,b,f(h,b));_.prototype=m,m.constructor=_,n(178)(r,"Number",_)}},function(e,t,n){n(23)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(23)({target:"Number",stat:!0},{isFinite:n(1328)})},function(e,t,n){var r=n(66).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(23)({target:"Number",stat:!0},{isInteger:n(794)})},function(e,t,n){n(23)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(794),o=Math.abs;n(23)({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&o(e)<=9007199254740991}})},function(e,t,n){n(23)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(23)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(1335);n(23)({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){var r=n(66).parseFloat,o=n(361),i=n(499),a=1/r(i+"-0")!=-1/0;e.exports=a?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(1337);n(23)({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){var r=n(66).parseInt,o=n(361),i=n(499),a=/^[-+]?0[xX]/,s=8!==r(i+"08")||22!==r(i+"0x16");e.exports=s?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){"use strict";var r=n(194),o=n(1339),i=n(630),a=1..toFixed,s=Math.floor,l=[0,0,0,0,0,0],c=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*l[n],l[n]=r%1e7,r=s(r/1e7)},u=function(e){for(var t=6,n=0;--t>=0;)n+=l[t],l[t]=s(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var n=String(l[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t},d=function(e,t,n){return 0===t?n:t%2==1?d(e,t-1,n*e):d(e*e,t/2,n)};n(23)({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(61)(function(){a.call({})})},{toFixed:function(e){var t,n,a,s,l=o(this),p=r(e),h="",m="0";if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*d(2,69,1))-69)<0?l*d(2,-t,1):l/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(c(0,n),a=p;a>=7;)c(1e7,0),a-=7;for(c(d(10,a,1),0),a=t-1;a>=23;)u(1<<23),a-=23;u(1<<a),c(1,1),u(2),m=f()}else c(0,n),c(1<<-t,0),m=f()+i.call("0",p);return m=p>0?h+((s=m.length)<=p?"0."+i.call("0",p-s)+m:m.slice(0,s-p)+"."+m.slice(s-p)):h+m}})},function(e,t,n){var r=n(210);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){var r=n(795);n(23)({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var r=n(135),o=n(211),i=n(118),a=n(500);n(107)&&n(23)({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){i.f(r(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(135),o=n(211),i=n(118),a=n(500);n(107)&&n(23)({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){i.f(r(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(796);n(23)({target:"Object",stat:!0},{entries:function(e){return r(e,!0)}})},function(e,t,n){var r=n(85),o=n(327).onFreeze,i=Object.freeze,a=n(416),s=n(61)(function(){i(1)});n(23)({target:"Object",stat:!0,forced:s,sham:!a},{freeze:function(e){return i&&r(e)?i(o(e)):e}})},function(e,t,n){var r=n(417),o=n(326);n(23)({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,function(e,n){o(t,e,n)},void 0,!0),t}})},function(e,t,n){var r=n(177),o=n(166).f,i=n(107),a=n(61)(function(){o(1)}),s=!i||a;n(23)({target:"Object",stat:!0,forced:s,sham:!i},{getOwnPropertyDescriptor:function(e,t){return o(r(e),t)}})},function(e,t,n){var r=n(107),o=n(619),i=n(177),a=n(166),s=n(326);n(23)({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),l=a.f,c=o(r),u={},f=0;c.length>f;)void 0!==(n=l(r,t=c[f++]))&&s(u,t,n);return u}})},function(e,t,n){var r=n(783).f,o=n(61)(function(){Object.getOwnPropertyNames(1)});n(23)({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:r})},function(e,t,n){var r=n(135),o=n(234),i=n(625),a=n(61)(function(){o(1)});n(23)({target:"Object",stat:!0,forced:a,sham:!i},{getPrototypeOf:function(e){return o(r(e))}})},function(e,t,n){n(23)({target:"Object",stat:!0},{is:n(797)})},function(e,t,n){var r=n(85),o=Object.isExtensible,i=n(61)(function(){o(1)});n(23)({target:"Object",stat:!0,forced:i},{isExtensible:function(e){return!!r(e)&&(!o||o(e))}})},function(e,t,n){var r=n(85),o=Object.isFrozen,i=n(61)(function(){o(1)});n(23)({target:"Object",stat:!0,forced:i},{isFrozen:function(e){return!r(e)||!!o&&o(e)}})},function(e,t,n){var r=n(85),o=Object.isSealed,i=n(61)(function(){o(1)});n(23)({target:"Object",stat:!0,forced:i},{isSealed:function(e){return!r(e)||!!o&&o(e)}})},function(e,t,n){var r=n(135),o=n(357),i=n(61)(function(){o(1)});n(23)({target:"Object",stat:!0,forced:i},{keys:function(e){return o(r(e))}})},function(e,t,n){"use strict";var r=n(135),o=n(232),i=n(234),a=n(166).f,s=n(500);n(107)&&n(23)({target:"Object",proto:!0,forced:s},{__lookupGetter__:function(e){var t,n=r(this),s=o(e,!0);do{if(t=a(n,s))return t.get}while(n=i(n))}})},function(e,t,n){"use strict";var r=n(135),o=n(232),i=n(234),a=n(166).f,s=n(500);n(107)&&n(23)({target:"Object",proto:!0,forced:s},{__lookupSetter__:function(e){var t,n=r(this),s=o(e,!0);do{if(t=a(n,s))return t.set}while(n=i(n))}})},function(e,t,n){var r=n(85),o=n(327).onFreeze,i=Object.preventExtensions,a=n(416),s=n(61)(function(){i(1)});n(23)({target:"Object",stat:!0,forced:s,sham:!a},{preventExtensions:function(e){return i&&r(e)?i(o(e)):e}})},function(e,t,n){var r=n(85),o=n(327).onFreeze,i=Object.seal,a=n(416),s=n(61)(function(){i(1)});n(23)({target:"Object",stat:!0,forced:s,sham:!a},{seal:function(e){return i&&r(e)?i(o(e)):e}})},function(e,t,n){var r=n(1360),o=Object.prototype;r!==o.toString&&n(178)(o,"toString",r,{unsafe:!0})},function(e,t,n){"use strict";var r=n(494),o={};o[n(98)("toStringTag")]="z",e.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(e,t,n){var r=n(796);n(23)({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){"use strict";var r,o,i,a="Promise",s=n(322),l=n(66),c=n(23),u=n(85),f=n(211),d=n(291),p=n(210),h=n(417),m=n(493),v=n(292),g=n(631).set,y=n(798),b=n(799),_=n(1363),w=n(800),E=n(1364),x=n(632),k=n(98)("species"),S=n(193),T=n(410),C=S.get,O=S.set,j=S.getterFor(a),A=l.Promise,N=l.TypeError,M=l.document,I=l.process,L=l.fetch,P=I&&I.versions,D=P&&P.v8||"",R=w.f,F=R,B="process"==p(I),U=!!(M&&M.createEvent&&l.dispatchEvent),q=T(a,function(){var e=A.resolve(1),t=function(){},n=(e.constructor={})[k]=function(e){e(t,t)};return!((B||"function"==typeof PromiseRejectionEvent)&&(!s||e.finally)&&e.then(t)instanceof n&&0!==D.indexOf("6.6")&&-1===x.indexOf("Chrome/66"))}),z=q||!m(function(e){A.all(e).catch(function(){})}),H=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},W=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;y(function(){for(var o=t.value,i=1==t.state,a=0,s=function(n){var r,a,s,l=i?n.ok:n.fail,c=n.resolve,u=n.reject,f=n.domain;try{l?(i||(2===t.rejection&&V(e,t),t.rejection=1),!0===l?r=o:(f&&f.enter(),r=l(o),f&&(f.exit(),s=!0)),r===n.promise?u(N("Promise-chain cycle")):(a=H(r))?a.call(r,c,u):c(r)):u(o)}catch(e){f&&!s&&f.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&Y(e,t)})}},$=function(e,t,n){var r,o;U?((r=M.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):"unhandledrejection"===e&&_("Unhandled promise rejection",n)},Y=function(e,t){g.call(l,function(){var n,r=t.value;if(K(t)&&(n=E(function(){B?I.emit("unhandledRejection",r,e):$("unhandledrejection",e,r)}),t.rejection=B||K(t)?2:1,n.error))throw n.value})},K=function(e){return 1!==e.rejection&&!e.parent},V=function(e,t){g.call(l,function(){B?I.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)})},G=function(e,t,n,r){return function(o){e(t,n,o,r)}},X=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,W(e,t,!0))},Z=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw N("Promise can't be resolved itself");var o=H(n);o?y(function(){var r={done:!1};try{o.call(n,G(Z,e,r,t),G(X,e,r,t))}catch(n){X(e,r,n,t)}}):(t.value=n,t.state=1,W(e,t,!1))}catch(n){X(e,{done:!1},n,t)}}};q&&(A=function(e){d(this,A,a),f(e),r.call(this);var t=C(this);try{e(G(Z,this,t),G(X,this,t))}catch(e){X(this,t,e)}},(r=function(e){O(this,{type:a,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n(360)(A.prototype,{then:function(e,t){var n=j(this),r=R(v(this,A));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=B?I.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&W(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=C(e);this.promise=e,this.resolve=G(Z,e,t),this.reject=G(X,e,t)},w.f=R=function(e){return e===A||e===i?new o(e):F(e)},s||"function"!=typeof L||c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return b(A,L.apply(l,arguments))}})),c({global:!0,wrap:!0,forced:q},{Promise:A}),n(233)(A,a,!1,!0),n(359)(a),i=n(621).Promise,c({target:a,stat:!0,forced:q},{reject:function(e){var t=R(this);return t.reject.call(void 0,e),t.promise}}),c({target:a,stat:!0,forced:s||q},{resolve:function(e){return b(s&&this===i?A:this,e)}}),c({target:a,stat:!0,forced:z},{all:function(e){var t=this,n=R(t),r=n.resolve,o=n.reject,i=E(function(){var n=[],i=0,a=1;h(e,function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,o=E(function(){h(e,function(e){t.resolve(e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},function(e,t,n){var r=n(66);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(626),o=n(292),i=n(799);n(23)({target:"Promise",proto:!0,real:!0},{finally:function(e){var t=o(this,r("Promise")),n="function"==typeof e;return this.then(n?function(n){return i(t,e()).then(function(){return n})}:e,n?function(n){return i(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(211),o=n(93),i=(n(66).Reflect||{}).apply,a=Function.apply,s=!n(61)(function(){i(function(){})});n(23)({target:"Reflect",stat:!0,forced:s},{apply:function(e,t,n){return r(e),o(n),i?i(e,t,n):a.call(e,t,n)}})},function(e,t,n){var r=n(325),o=n(211),i=n(93),a=n(85),s=n(61),l=n(1368),c=(n(66).Reflect||{}).construct,u=s(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),f=!s(function(){c(function(){})}),d=u||f;n(23)({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(e,t){o(e),i(t);var n=arguments.length<3?e:o(arguments[2]);if(f&&!u)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var s=[null];return s.push.apply(s,t),new(l.apply(e,s))}var d=n.prototype,p=r(a(d)?d:Object.prototype),h=Function.apply.call(e,p,t);return a(h)?h:p}})},function(e,t,n){"use strict";var r=n(211),o=n(85),i=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(118),o=n(93),i=n(232),a=n(107),s=n(61)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})});n(23)({target:"Reflect",stat:!0,forced:s,sham:!a},{defineProperty:function(e,t,n){o(e),t=i(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(166).f,o=n(93);n(23)({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=r(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){var r=n(166),o=n(234),i=n(134),a=n(85),s=n(93);n(23)({target:"Reflect",stat:!0},{get:function e(t,n){var l,c,u=arguments.length<3?t:arguments[2];return s(t)===u?t[n]:(l=r.f(t,n))?i(l,"value")?l.value:void 0===l.get?void 0:l.get.call(u):a(c=o(t))?e(c,n,u):void 0}})},function(e,t,n){var r=n(166),o=n(93),i=n(107);n(23)({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(234),o=n(93),i=n(625);n(23)({target:"Reflect",stat:!0,sham:!i},{getPrototypeOf:function(e){return r(o(e))}})},function(e,t,n){n(23)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){var r=n(93),o=Object.isExtensible;n(23)({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!o||o(e)}})},function(e,t,n){n(23)({target:"Reflect",stat:!0},{ownKeys:n(619)})},function(e,t,n){var r=n(626),o=n(93),i=n(416);n(23)({target:"Reflect",stat:!0,sham:!i},{preventExtensions:function(e){o(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(118),o=n(166),i=n(234),a=n(134),s=n(323),l=n(93),c=n(85);n(23)({target:"Reflect",stat:!0},{set:function e(t,n,u){var f,d,p=arguments.length<4?t:arguments[3],h=o.f(l(t),n);if(!h){if(c(d=i(t)))return e(d,n,u,p);h=s(0)}if(a(h,"value")){if(!1===h.writable||!c(p))return!1;if(f=o.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=u,r.f(p,n,f)}else r.f(p,n,s(0,u));return!0}return void 0!==h.set&&(h.set.call(p,u),!0)}})},function(e,t,n){var r=n(415),o=n(790);r&&n(23)({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e,t);try{return r(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(107),o=n(98)("match"),i=n(66),a=n(410),s=n(628),l=n(118).f,c=n(324).f,u=n(633),f=n(501),d=n(178),p=n(61),h=i.RegExp,m=h.prototype,v=/a/g,g=/a/g,y=new h(v)!==v;if(a("RegExp",r&&(!y||p(function(){return g[o]=!1,h(v)!=v||h(g)==g||"/a/i"!=h(v,"i")})))){for(var b=function(e,t){var n=this instanceof b,r=u(e),o=void 0===t;return!n&&r&&e.constructor===b&&o?e:s(y?new h(r&&!o?e.source:e,t):h((r=e instanceof b)?e.source:e,r&&o?f.call(e):t),n?this:m,b)},_=function(e){e in b||l(b,e,{configurable:!0,get:function(){return h[e]},set:function(t){h[e]=t}})},w=c(h),E=0;E<w.length;)_(w[E++]);m.constructor=b,b.prototype=m,d(i,"RegExp",b)}n(359)("RegExp")},function(e,t,n){n(107)&&"g"!=/./g.flags&&n(118).f(RegExp.prototype,"flags",{configurable:!0,get:n(501)})},function(e,t,n){"use strict";var r=n(93),o=n(61),i=n(501),a=n(107),s=/./.toString,l=o(function(){return"/a/b"!=s.call({source:"a",flags:"b"})}),c="toString"!=s.name;(l||c)&&n(178)(RegExp.prototype,"toString",function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)},{unsafe:!0})},function(e,t,n){"use strict";e.exports=n(497)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(792))},function(e,t,n){"use strict";var r=n(502);n(23)({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var r=n(104),o=n(634),i="".endsWith,a=Math.min,s=n(635)("endsWith");n(23)({target:"String",proto:!0,forced:!s},{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,s=r(t.length),l=void 0===n?s:a(r(n),s),c=String(e);return i?i.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,n){var r=n(288),o=String.fromCharCode,i=String.fromCodePoint,a=!!i&&1!=i.length;n(23)({target:"String",stat:!0,forced:a},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,a=0;i>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(634),o=n(635)("includes");n(23)({target:"String",proto:!0,forced:!o},{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(93),o=n(104),i=n(192),a=n(636),s=n(503);n(504)("match",1,function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var l=r(e),c=String(this);if(!l.global)return s(l,c);var u=l.unicode;l.lastIndex=0;for(var f,d=[],p=0;null!==(f=s(l,c));){var h=String(f[0]);d[p]=h,""===h&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:d}]})},function(e,t,n){"use strict";var r=n(802),o=n(803);n(23)({target:"String",proto:!0,forced:o},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(802),o=n(803);n(23)({target:"String",proto:!0,forced:o},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(177),o=n(104);n(23)({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=o(t.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){n(23)({target:"String",proto:!0},{repeat:n(630)})},function(e,t,n){"use strict";var r=n(93),o=n(135),i=n(104),a=n(194),s=n(192),l=n(636),c=n(503),u=Math.max,f=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(504)("replace",2,function(e,t,n){return[function(n,r){var o=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,o){var s=n(t,e,this,o);if(s.done)return s.value;var d=r(e),p=String(this),h="function"==typeof o;h||(o=String(o));var v=d.global;if(v){var g=d.unicode;d.lastIndex=0}for(var y=[];;){var b=c(d,p);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(d.lastIndex=l(p,i(d.lastIndex),g))}for(var _,w="",E=0,x=0;x<y.length;x++){b=y[x];for(var k=String(b[0]),S=u(f(a(b.index),p.length),0),T=[],C=1;C<b.length;C++)T.push(void 0===(_=b[C])?_:String(_));var O=b.groups;if(h){var j=[k].concat(T,S,p);void 0!==O&&j.push(O);var A=String(o.apply(void 0,j))}else A=m(k,p,S,T,O,o);S>=E&&(w+=p.slice(E,S)+A,E=S+k.length)}return w+p.slice(E)}];function m(e,n,r,i,a,s){var l=r+e.length,c=i.length,u=h;return void 0!==a&&(a=o(a),u=p),t.call(s,u,function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var f=d(u/10);return 0===f?t:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[u-1]}return void 0===s?"":s})}})},function(e,t,n){"use strict";var r=n(93),o=n(192),i=n(797),a=n(503);n(504)("search",1,function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var s=r(e),l=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var u=a(s,l);return i(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},function(e,t,n){"use strict";var r=n(633),o=n(93),i=n(192),a=n(292),s=n(636),l=n(104),c=n(503),u=n(637),f=n(61),d=[].push,p=Math.min,h=!f(function(){return!RegExp(4294967295,"y")});n(504)("split",2,function(e,t,n){var f;return f="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=String(i(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!r(e))return t.call(o,e,a);for(var s,l,c,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,p+"g");(s=u.call(m,o))&&!((l=m.lastIndex)>h&&(f.push(o.slice(h,s.index)),s.length>1&&s.index<o.length&&d.apply(f,s.slice(1)),c=s[0].length,h=l,f.length>=a));)m.lastIndex===s.index&&m.lastIndex++;return h===o.length?!c&&m.test("")||f.push(""):f.push(o.slice(h)),f.length>a?f.slice(0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=i(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,r,n):f.call(String(r),t,n)},function(e,r){var i=n(f,e,this,r,f!==t);if(i.done)return i.value;var u=o(e),d=String(this),m=a(u,RegExp),v=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),y=new m(h?u:"^(?:"+u.source+")",g),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===d.length)return null===c(y,d)?[d]:[];for(var _=0,w=0,E=[];w<d.length;){y.lastIndex=h?w:0;var x,k=c(y,h?d:d.slice(w));if(null===k||(x=p(l(y.lastIndex+(h?0:w)),d.length))===_)w=s(d,w,v);else{if(E.push(d.slice(_,w)),E.length===b)return E;for(var S=1;S<=k.length-1;S++)if(E.push(k[S]),E.length===b)return E;w=_=x}}return E.push(d.slice(_)),E}]},!h)},function(e,t,n){"use strict";var r=n(104),o=n(634),i=n(635)("startsWith"),a="".startsWith;n(23)({target:"String",proto:!0,forced:!i},{startsWith:function(e){var t=o(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){"use strict";var r=n(361),o=n(638)("trim");n(23)({target:"String",proto:!0,forced:o},{trim:function(){return r(this,3)}})},function(e,t,n){"use strict";var r=n(361),o=n(638)("trimEnd"),i=o?function(){return r(this,2)}:"".trimEnd;n(23)({target:"String",proto:!0,forced:o},{trimEnd:i,trimRight:i})},function(e,t,n){"use strict";var r=n(361),o=n(638)("trimStart"),i=o?function(){return r(this,1)}:"".trimStart;n(23)({target:"String",proto:!0,forced:o},{trimStart:i,trimLeft:i})},function(e,t,n){"use strict";var r=n(180),o=n(181)("anchor");n(23)({target:"String",proto:!0,forced:o},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("big");n(23)({target:"String",proto:!0,forced:o},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("blink");n(23)({target:"String",proto:!0,forced:o},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("bold");n(23)({target:"String",proto:!0,forced:o},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("fixed");n(23)({target:"String",proto:!0,forced:o},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("fontcolor");n(23)({target:"String",proto:!0,forced:o},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("fontsize");n(23)({target:"String",proto:!0,forced:o},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("italics");n(23)({target:"String",proto:!0,forced:o},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("link");n(23)({target:"String",proto:!0,forced:o},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("small");n(23)({target:"String",proto:!0,forced:o},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("strike");n(23)({target:"String",proto:!0,forced:o},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("sub");n(23)({target:"String",proto:!0,forced:o},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(180),o=n(181)("sup");n(23)({target:"String",proto:!0,forced:o},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){n(255)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(255)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(255)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";var r=n(784),o=n(99),i=o.aTypedArray;o.exportProto("copyWithin",function(e,t){return r.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)})},function(e,t,n){"use strict";var r=n(167)(4),o=n(99),i=o.aTypedArray;o.exportProto("every",function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(622),o=n(99),i=o.aTypedArray;o.exportProto("fill",function(e){return r.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(292),o=n(99),i=n(167)(2),a=o.aTypedArray,s=o.aTypedArrayConstructor;o.exportProto("filter",function(e){for(var t=i(a(this),e,arguments.length>1?arguments[1]:void 0),n=r(this,this.constructor),o=0,l=t.length,c=new(s(n))(l);l>o;)c[o]=t[o++];return c})},function(e,t,n){"use strict";var r=n(167)(5),o=n(99),i=o.aTypedArray;o.exportProto("find",function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(167)(6),o=n(99),i=o.aTypedArray;o.exportProto("findIndex",function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(167)(0),o=n(99),i=o.aTypedArray;o.exportProto("forEach",function(e){r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(639),o=n(99),i=n(805);o.exportStatic("from",i,r)},function(e,t,n){"use strict";var r=n(491)(!0),o=n(99),i=o.aTypedArray;o.exportProto("includes",function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(491)(!1),o=n(99),i=o.aTypedArray;o.exportProto("indexOf",function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(495),o=n(66).Uint8Array,i=n(99),a=n(98)("iterator"),s=r.values,l=r.keys,c=r.entries,u=i.aTypedArray,f=i.exportProto,d=o&&o.prototype[a],p=!!d&&("values"==d.name||null==d.name),h=function(){return s.call(u(this))};f("entries",function(){return c.call(u(this))}),f("keys",function(){return l.call(u(this))}),f("values",h,!p),f(a,h,!p)},function(e,t,n){"use strict";var r=n(99),o=r.aTypedArray,i=[].join;r.exportProto("join",function(e){return i.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(1435),o=n(99),i=o.aTypedArray;o.exportProto("lastIndexOf",function(e){return r.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(177),o=n(194),i=n(104),a=[].lastIndexOf,s=!!a&&1/[1].lastIndexOf(1,-0)<0,l=n(496)("lastIndexOf");e.exports=s||l?function(e){if(s)return a.apply(this,arguments)||0;var t=r(this),n=i(t.length),l=n-1;for(arguments.length>1&&(l=Math.min(l,o(arguments[1]))),l<0&&(l=n+l);l>=0;l--)if(l in t&&t[l]===e)return l||0;return-1}:a},function(e,t,n){"use strict";var r=n(292),o=n(99),i=o.aTypedArray,a=o.aTypedArrayConstructor,s=n(167)(1,function(e,t){return new(a(r(e,e.constructor)))(t)});o.exportProto("map",function(e){return s(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(639),o=n(99),i=o.aTypedArrayConstructor;o.exportStatic("of",function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n},r)},function(e,t,n){"use strict";var r=n(99),o=r.aTypedArray,i=[].reduce;r.exportProto("reduce",function(e){return i.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(99),o=r.aTypedArray,i=[].reduceRight;r.exportProto("reduceRight",function(e){return i.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(99),o=r.aTypedArray;r.exportProto("reverse",function(){for(var e,t=o(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this})},function(e,t,n){"use strict";var r=n(104),o=n(804),i=n(135),a=n(99),s=a.aTypedArray,l=n(61)(function(){new Int8Array(1).set({})});a.exportProto("set",function(e){s(this);var t=o(arguments[1],1),n=this.length,a=i(e),l=r(a.length),c=0;if(l+t>n)throw RangeError("Wrong length");for(;c<l;)this[t+c]=a[c++]},l)},function(e,t,n){"use strict";var r=n(292),o=n(99),i=o.aTypedArray,a=o.aTypedArrayConstructor,s=[].slice,l=n(61)(function(){new Int8Array(1).slice()});o.exportProto("slice",function(e,t){for(var n=s.call(i(this),e,t),o=r(this,this.constructor),l=0,c=n.length,u=new(a(o))(c);c>l;)u[l]=n[l++];return u},l)},function(e,t,n){"use strict";var r=n(167)(3),o=n(99),i=o.aTypedArray;o.exportProto("some",function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(99),o=r.aTypedArray,i=[].sort;r.exportProto("sort",function(e){return i.call(o(this),e)})},function(e,t,n){"use strict";var r=n(104),o=n(288),i=n(292),a=n(99),s=a.aTypedArray;a.exportProto("subarray",function(e,t){var n=s(this),a=n.length,l=o(e,a);return new(i(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===t?a:o(t,a))-l))})},function(e,t,n){"use strict";var r=n(66).Int8Array,o=n(61),i=n(99),a=i.aTypedArray,s=[].toLocaleString,l=[].slice,c=!!r&&o(function(){s.call(new r(1))}),u=o(function(){return[1,2].toLocaleString()!=new r([1,2]).toLocaleString()})||!o(function(){r.prototype.toLocaleString.call([1,2])});i.exportProto("toLocaleString",function(){return s.apply(c?l.call(a(this)):a(this),arguments)},u)},function(e,t,n){"use strict";var r=n(66).Uint8Array,o=r&&r.prototype,i=n(99),a=[].toString,s=[].join;n(61)(function(){a.call({})})&&(a=function(){return s.call(this)}),i.exportProto("toString",a,(o||{}).toString!=a)},function(e,t,n){"use strict";var r,o=n(66),i=n(360),a=n(327),s=n(806),l=n(85),c=n(193).enforce,u=n(776),f=!o.ActiveXObject&&"ActiveXObject"in o,d=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},h=e.exports=n(497)("WeakMap",p,s,!0,!0);if(u&&f){r=s.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=h.prototype,v=m.delete,g=m.has,y=m.get,b=m.set;i(m,{delete:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.delete(e)}return v.call(this,e)},has:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.has(e)}return g.call(this,e)},get:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!d(e)){var n=c(this);n.frozen||(n.frozen=new r),g.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(497)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(806),!1,!0)},function(e,t,n){var r=n(807),o=n(1451),i=n(158),a=n(66);for(var s in r){var l=a[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{i(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){"use strict";var r=[].forEach,o=n(167)(0),i=n(496)("forEach");e.exports=i?function(e){return o(this,e,arguments[1])}:r},function(e,t,n){var r=n(807),o=n(495),i=n(66),a=n(158),s=n(98),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var f in r){var d=i[f],p=d&&d.prototype;if(p){if(p[l]!==u)try{a(p,l,u)}catch(e){p[l]=u}if(p[c]||a(p,c,f),r[f])for(var h in o)if(p[h]!==o[h])try{a(p,h,o[h])}catch(e){p[h]=o[h]}}}},function(e,t,n){var r=n(66),o=n(631),i=!r.setImmediate||!r.clearImmediate;n(23)({global:!0,bind:!0,enumerable:!0,forced:i},{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){var r=n(798),o=n(66).process,i="process"==n(210)(o);n(23)({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=i&&o.domain;r(t?t.bind(e):e)}})},function(e,t,n){"use strict";n(801);var r,o=n(107),i=n(808),a=n(66).URL,s=n(781),l=n(178),c=n(291),u=n(134),f=n(795),d=n(786),p=n(502),h=n(1456),m=n(809),v=m.URLSearchParams,g=m.getState,y=n(193),b=y.set,_=y.getterFor("URL"),w=Math.pow,E=/[a-zA-Z]/,x=/[a-zA-Z0-9+\-.]/,k=/\d/,S=/^(0x|0X)/,T=/^[0-7]+$/,C=/^\d+$/,O=/^[0-9A-Fa-f]+$/,j=/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/,A=/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/,N=/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,M=/\u0009|\u000A|\u000D/g,I=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=P(t.slice(1,-1))))return"Invalid host";e.host=n}else if(H(e)){if(t=h(t),j.test(t))return"Invalid host";if(null===(n=L(t)))return"Invalid host";e.host=n}else{if(A.test(t))return"Invalid host";for(n="",r=d(t),o=0;o<r.length;o++)n+=q(r[o],R);e.host=n}},L=function(e){var t,n,r,o,i,a,s,l=e.split(".");if(""==l[l.length-1]&&l.length&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=l[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=S.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?C:8==i?T:O).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=w(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*w(256,3-r);return s},P=function(e){var t,n,r,o,i,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,u=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&O.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!k.test(d()))return;for(;k.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},D=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Math.floor(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},R={},F=f({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),B=f({},F,{"#":1,"?":1,"{":1,"}":1}),U=f({},B,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(e,t){var n=p(e,0);return n>32&&n<127&&!u(t,e)?e:encodeURIComponent(e)},z={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},H=function(e){return u(z,e.scheme)},W=function(e){return""!=e.username||""!=e.password},$=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&E.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},K=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},V=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},G=function(e){return"."===e||"%2e"===e.toLowerCase()},X={},Z={},Q={},J={},ee={},te={},ne={},re={},oe={},ie={},ae={},se={},le={},ce={},ue={},fe={},de={},pe={},he={},me={},ve={},ge=function(e,t,n,o){var i,a,s,l,c,f=n||X,p=0,h="",m=!1,v=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(N,"")),t=t.replace(M,""),i=d(t);p<=i.length;){switch(a=i[p],f){case X:if(!a||!E.test(a)){if(n)return"Invalid scheme";f=Q;continue}h+=a.toLowerCase(),f=Z;break;case Z:if(a&&(x.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";h="",f=Q,p=0;continue}if(n&&(H(e)!=u(z,h)||"file"==h&&(W(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(H(e)&&z[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?f=ce:H(e)&&o&&o.scheme==e.scheme?f=J:H(e)?f=re:"/"==i[p+1]?(f=ee,p++):(e.cannotBeABaseURL=!0,e.path.push(""),f=he)}break;case Q:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,f=ve;break}f="file"==o.scheme?ce:te;continue;case J:if("/"!=a||"/"!=i[p+1]){f=te;continue}f=oe,p++;break;case ee:if("/"==a){f=ie;break}f=pe;continue;case te:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&H(e))f=ne;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",f=me;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),f=pe;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",f=ve}break;case ne:if(!H(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,f=pe;continue}f=ie}else f=oe;break;case re:if(f=oe,"/"!=a||"/"!=h.charAt(p+1))continue;p++;break;case oe:if("/"!=a&&"\\"!=a){f=ie;continue}break;case ie:if("@"==a){m&&(h="%40"+h),m=!0,s=d(h);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var _=q(b,U);g?e.password+=_:e.username+=_}else g=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(m&&""==h)return"Invalid authority";p-=d(h).length+1,h="",f=ae}else h+=a;break;case ae:case se:if(n&&"file"==e.scheme){f=fe;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(H(e)&&""==h)return"Invalid host";if(n&&""==h&&(W(e)||null!==e.port))return;if(l=I(e,h))return l;if(h="",f=de,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),h+=a}else{if(""==h)return"Invalid host";if(l=I(e,h))return l;if(h="",f=le,n==se)return}break;case le:if(!k.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return"Invalid port";e.port=H(e)&&w===z[e.scheme]?null:w,h=""}if(n)return;f=de;continue}return"Invalid port"}h+=a;break;case ce:if(e.scheme="file","/"==a||"\\"==a)f=ue;else{if(!o||"file"!=o.scheme){f=pe;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",f=me;else{if("#"!=a){K(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),V(e)),f=pe;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",f=ve}}break;case ue:if("/"==a||"\\"==a){f=fe;break}o&&"file"==o.scheme&&!K(i.slice(p).join(""))&&(Y(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),f=pe;continue;case fe:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Y(h))f=pe;else if(""==h){if(e.host="",n)return;f=de}else{if(l=I(e,h))return l;if("localhost"==e.host&&(e.host=""),n)return;h="",f=de}continue}h+=a;break;case de:if(H(e)){if(f=pe,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(f=pe,"/"!=a))continue}else e.fragment="",f=ve;else e.query="",f=me;break;case pe:if(a==r||"/"==a||"\\"==a&&H(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(V(e),"/"==a||"\\"==a&&H(e)||e.path.push("")):G(h)?"/"==a||"\\"==a&&H(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",f=me):"#"==a&&(e.fragment="",f=ve)}else h+=q(a,B);break;case he:"?"==a?(e.query="",f=me):"#"==a?(e.fragment="",f=ve):a!=r&&(e.path[0]+=q(a,R));break;case me:n||"#"!=a?a!=r&&("'"==a&&H(e)?e.query+="%27":e.query+="#"==a?"%23":q(a,R)):(e.fragment="",f=ve);break;case ve:a!=r&&(e.fragment+=q(a,F))}p++}},ye=function(e){var t,n,r=c(this,ye,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=b(r,{type:"URL"});if(void 0!==i)if(i instanceof ye)t=_(i);else if(n=ge(t={},String(i)))throw TypeError(n);if(n=ge(s,a,null,t))throw TypeError(n);var l=s.searchParams=new v,u=g(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},o||(r.href=_e.call(r),r.origin=we.call(r),r.protocol=Ee.call(r),r.username=xe.call(r),r.password=ke.call(r),r.host=Se.call(r),r.hostname=Te.call(r),r.port=Ce.call(r),r.pathname=Oe.call(r),r.search=je.call(r),r.searchParams=Ae.call(r),r.hash=Ne.call(r))},be=ye.prototype,_e=function(){var e=_(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",W(e)&&(c+=n+(r?":"+r:"")+"@"),c+=D(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},we=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&H(e)?t+"://"+D(e.host)+(null!==n?":"+n:""):"null"},Ee=function(){return _(this).scheme+":"},xe=function(){return _(this).username},ke=function(){return _(this).password},Se=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?D(t):D(t)+":"+n},Te=function(){var e=_(this).host;return null===e?"":D(e)},Ce=function(){var e=_(this).port;return null===e?"":String(e)},Oe=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},je=function(){var e=_(this).query;return e?"?"+e:""},Ae=function(){return _(this).searchParams},Ne=function(){var e=_(this).fragment;return e?"#"+e:""},Me=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&s(be,{href:Me(_e,function(e){var t=_(this),n=String(e),r=ge(t,n);if(r)throw TypeError(r);g(t.searchParams).updateSearchParams(t.query)}),origin:Me(we),protocol:Me(Ee,function(e){var t=_(this);ge(t,String(e)+":",X)}),username:Me(xe,function(e){var t=_(this),n=d(String(e));if(!$(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=q(n[r],U)}}),password:Me(ke,function(e){var t=_(this),n=d(String(e));if(!$(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=q(n[r],U)}}),host:Me(Se,function(e){var t=_(this);t.cannotBeABaseURL||ge(t,String(e),ae)}),hostname:Me(Te,function(e){var t=_(this);t.cannotBeABaseURL||ge(t,String(e),se)}),port:Me(Ce,function(e){var t=_(this);$(t)||(""==(e=String(e))?t.port=null:ge(t,e,le))}),pathname:Me(Oe,function(e){var t=_(this);t.cannotBeABaseURL||(t.path=[],ge(t,e+"",de))}),search:Me(je,function(e){var t=_(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ge(t,e,me)),g(t.searchParams).updateSearchParams(t.query)}),searchParams:Me(Ae),hash:Me(Ne,function(e){var t=_(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ge(t,e,ve)):t.fragment=null})}),l(be,"toJSON",function(){return _e.call(this)},{enumerable:!0}),l(be,"toString",function(){return _e.call(this)},{enumerable:!0}),a){var Ie=a.createObjectURL,Le=a.revokeObjectURL;Ie&&l(ye,"createObjectURL",function(e){return Ie.apply(a,arguments)}),Le&&l(ye,"revokeObjectURL",function(e){return Le.apply(a,arguments)})}n(233)(ye,"URL"),n(23)({global:!0,forced:!i,sham:!o},{URL:ye})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,o=/[\u002E\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,l=function(e){return e+22+75*(e<26)},c=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},u=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,u=128,f=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var p=r.length,h=p;for(p&&r.push("-");h<o;){var m=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=u&&n<m&&(m=n);var v=h+1;if(m-u>a((2147483647-f)/v))throw RangeError(i);for(f+=(m-u)*v,u=m,t=0;t<e.length;t++){if((n=e[t])<u&&++f>2147483647)throw RangeError(i);if(n==u){for(var g=f,y=36;;y+=36){var b=y<=d?1:y>=d+26?26:y-d;if(g<b)break;var _=g-b,w=36-b;r.push(s(l(b+_%w))),g=a(_/w)}r.push(s(l(g))),d=c(f,v,h==p),f=0,++h}}++f,++u}return r.join("")};e.exports=function(e){var t,n,i=[],a=e.toLowerCase().replace(o,".").split(".");for(t=0;t<a.length;t++)n=a[t],i.push(r.test(n)?"xn--"+u(n):n);return i.join(".")}},function(e,t,n){var r=n(93),o=n(414);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n(23)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r=u;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function m(){}function v(){}function g(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(O([])));_&&_!==n&&r.call(_,i)&&(y=_);var w=g.prototype=m.prototype=Object.create(y);function E(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(n,o){function i(){return new Promise(function(t,i){!function t(n,o,i,a){var s=c(e[n],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){l.value=e,i(l)},function(e){return t("throw",e,i,a)})}a(s.arg)}(n,o,t,i)})}return t=t?t.then(i,i):i()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=w.constructor=g,g.constructor=v,g[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),x.prototype[a]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,o){var i=new x(l(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},E(w),w[s]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(810),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(e=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function w(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}function E(){}function x(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var k=x.prototype=new E;k.constructor=x,r(k,w.prototype),k.isPureReactComponent=!0;var S={current:null},T={current:null},C=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var r=void 0,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:T.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var N=/\/+/g,M=[];function I(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function P(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+D(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+D(s=t[c],c);l+=e(s,u,r,o)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+D(s,c++),r,o);else"object"===s&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return l}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),P(e,F,t=I(t,i,r,o)),L(t)}function U(){var e=S.current;return null===e&&y("321"),e}var q={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;P(e,R,t=I(null,null,t,n)),L(t)},count:function(e){return P(e,function(){return null},null)},toArray:function(e){var t=[];return B(e,t,null,function(e){return e}),t},only:function(e){return A(e)||y("143"),e}},createRef:function(){return{current:null}},Component:w,PureComponent:x,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:s,StrictMode:l,Suspense:h,createElement:j,cloneElement:function(e,t,n){null==e&&y("267",e);var o=void 0,a=r({},e.props),s=e.key,l=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,c=T.current),void 0!==t.key&&(s=""+t.key);var u=void 0;for(o in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)C.call(t,o)&&!O.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==u?u[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){u=Array(o);for(var f=0;f<o;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:s,ref:l,props:a,_owner:c}},createFactory:function(e){var t=j.bind(null,e);return t.type=e,t},isValidElement:A,version:"16.8.6",unstable_ConcurrentMode:d,unstable_Profiler:c,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:S,ReactCurrentOwner:T,assign:r}},z={default:q},H=z&&q||z;e.exports=H.default||H},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(1),o=n(810),i=n(1462);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(e=Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var s=!1,l=null,c=!1,u=null,f={onError:function(e){s=!0,l=e}};function d(e,t,n,r,o,i,a,c,u){s=!1,l=null,function(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(f,arguments)}var p=null,h={};function m(){if(p)for(var e in h){var t=h[e],n=p.indexOf(e);if(-1<n||a("96",e),!g[n])for(var r in t.extractEvents||a("97",e),g[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;y.hasOwnProperty(l)&&a("99",l),y[l]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&v(c[o],s,l);o=!0}else i.registrationName?(v(i.registrationName,s,l),o=!0):o=!1;o||a("98",r,e)}}}function v(e,t,n){b[e]&&a("100",e),b[e]=t,_[e]=t.eventTypes[n].dependencies}var g=[],y={},b={},_={},w=null,E=null,x=null;function k(e,t,n){var r=e.type||"unknown-event";e.currentTarget=x(n),function(e,t,n,r,o,i,f,p,h){if(d.apply(this,arguments),s){if(s){var m=l;s=!1,l=null}else a("198"),m=void 0;c||(c=!0,u=m)}}(r,t,void 0,e),e.currentTarget=null}function S(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var C=null;function O(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)k(e,t[r],n[r]);else t&&k(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var j={injectEventPluginOrder:function(e){p&&a("101"),p=Array.prototype.slice.call(e),m()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&m()}};function A(e,t){var n=e.stateNode;if(!n)return null;var r=w(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function N(e){if(null!==e&&(C=S(C,e)),e=C,C=null,e&&(T(e,O),C&&a("95"),c))throw e=u,c=!1,u=null,e}var M=Math.random().toString(36).slice(2),I="__reactInternalInstance$"+M,L="__reactEventHandlers$"+M;function P(e){if(e[I])return e[I];for(;!e[I];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[I]).tag||6===e.tag?e:null}function D(e){return!(e=e[I])||5!==e.tag&&6!==e.tag?null:e}function R(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function F(e){return e[L]||null}function B(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function U(e,t,n){(t=A(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function q(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=B(t);for(t=n.length;0<t--;)U(n[t],"captured",e);for(t=0;t<n.length;t++)U(n[t],"bubbled",e)}}function z(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=A(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function H(e){e&&e.dispatchConfig.registrationName&&z(e._targetInst,null,e)}function W(e){T(e,q)}var $=!("undefined"==typeof window||!window.document||!window.document.createElement);function Y(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var K={animationend:Y("Animation","AnimationEnd"),animationiteration:Y("Animation","AnimationIteration"),animationstart:Y("Animation","AnimationStart"),transitionend:Y("Transition","TransitionEnd")},V={},G={};function X(e){if(V[e])return V[e];if(!K[e])return e;var t,n=K[e];for(t in n)if(n.hasOwnProperty(t)&&t in G)return V[e]=n[t];return e}$&&(G=document.createElement("div").style,"AnimationEvent"in window||(delete K.animationend.animation,delete K.animationiteration.animation,delete K.animationstart.animation),"TransitionEvent"in window||delete K.transitionend.transition);var Z=X("animationend"),Q=X("animationiteration"),J=X("animationstart"),ee=X("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,oe=null;function ie(){if(oe)return oe;var e,t,n=re,r=n.length,o="value"in ne?ne.value:ne.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return oe=o.slice(e,1<t?1-t:void 0)}function ae(){return!0}function se(){return!1}function le(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:se,this.isPropagationStopped=se,this}function ce(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function ue(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=ue}o(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(le);var de=le.extend({data:null}),pe=le.extend({data:null}),he=[9,13,27,32],me=$&&"CompositionEvent"in window,ve=null;$&&"documentMode"in document&&(ve=document.documentMode);var ge=$&&"TextEvent"in window&&!ve,ye=$&&(!me||ve&&8<ve&&11>=ve),be=String.fromCharCode(32),_e={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function Ee(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ke=!1;var Se={eventTypes:_e,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(me)e:{switch(e){case"compositionstart":o=_e.compositionStart;break e;case"compositionend":o=_e.compositionEnd;break e;case"compositionupdate":o=_e.compositionUpdate;break e}o=void 0}else ke?Ee(e,n)&&(o=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=_e.compositionStart);return o?(ye&&"ko"!==n.locale&&(ke||o!==_e.compositionStart?o===_e.compositionEnd&&ke&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,ke=!0)),o=de.getPooled(o,t,n,r),i?o.data=i:null!==(i=xe(n))&&(o.data=i),W(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return xe(t);case"keypress":return 32!==t.which?null:(we=!0,be);case"textInput":return(e=t.data)===be&&we?null:e;default:return null}}(e,n):function(e,t){if(ke)return"compositionend"===e||!me&&Ee(e,t)?(e=ie(),oe=re=ne=null,ke=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=pe.getPooled(_e.beforeInput,t,n,r)).data=e,W(t)):t=null,null===i?t:null===t?i:[i,t]}},Te=null,Ce=null,Oe=null;function je(e){if(e=E(e)){"function"!=typeof Te&&a("280");var t=w(e.stateNode);Te(e.stateNode,e.type,t)}}function Ae(e){Ce?Oe?Oe.push(e):Oe=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,t=Oe;if(Oe=Ce=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Me(e,t){return e(t)}function Ie(e,t,n){return e(t,n)}function Le(){}var Pe=!1;function De(e,t){if(Pe)return e(t);Pe=!0;try{return Me(e,t)}finally{Pe=!1,(null!==Ce||null!==Oe)&&(Le(),Ne())}}var Re={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Re[e.type]:"textarea"===t}function Be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ue(e){if(!$)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function qe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ze(e){e._valueTracker||(e._valueTracker=function(e){var t=qe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var We=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;We.hasOwnProperty("ReactCurrentDispatcher")||(We.ReactCurrentDispatcher={current:null});var $e=/^(.*)[\\\/]/,Ye="function"==typeof Symbol&&Symbol.for,Ke=Ye?Symbol.for("react.element"):60103,Ve=Ye?Symbol.for("react.portal"):60106,Ge=Ye?Symbol.for("react.fragment"):60107,Xe=Ye?Symbol.for("react.strict_mode"):60108,Ze=Ye?Symbol.for("react.profiler"):60114,Qe=Ye?Symbol.for("react.provider"):60109,Je=Ye?Symbol.for("react.context"):60110,et=Ye?Symbol.for("react.concurrent_mode"):60111,tt=Ye?Symbol.for("react.forward_ref"):60112,nt=Ye?Symbol.for("react.suspense"):60113,rt=Ye?Symbol.for("react.memo"):60115,ot=Ye?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function st(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case Ge:return"Fragment";case Ve:return"Portal";case Ze:return"Profiler";case Xe:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Je:return"Context.Consumer";case Qe:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return st(e.type);case ot:if(e=1===e._status?e._result:null)return st(e)}return null}function lt(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=st(e.type);n=null,r&&(n=st(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace($e,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ct=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ut=Object.prototype.hasOwnProperty,ft={},dt={};function pt(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new pt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new pt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new pt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new pt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new pt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new pt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new pt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new pt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new pt(e,5,!1,e.toLowerCase(),null)});var mt=/[\-:]([a-z])/g;function vt(e){return e[1].toUpperCase()}function gt(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ut.call(dt,e)||!ut.call(ft,e)&&(ct.test(e)?dt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _t(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=yt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function wt(e,t){null!=(t=t.checked)&&gt(e,"checked",t,!1)}function Et(e,t){wt(e,t);var n=yt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?kt(e,t.type,n):t.hasOwnProperty("defaultValue")&&kt(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function kt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mt,vt);ht[t]=new pt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,vt);ht[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,vt);ht[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new pt(e,1,!1,e.toLowerCase(),null)});var St={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Tt(e,t,n){return(e=le.getPooled(St.change,e,t,n)).type="change",Ae(n),W(e),e}var Ct=null,Ot=null;function jt(e){N(e)}function At(e){if(He(R(e)))return e}function Nt(e,t){if("change"===e)return t}var Mt=!1;function It(){Ct&&(Ct.detachEvent("onpropertychange",Lt),Ot=Ct=null)}function Lt(e){"value"===e.propertyName&&At(Ot)&&De(jt,e=Tt(Ot,e,Be(e)))}function Pt(e,t,n){"focus"===e?(It(),Ot=n,(Ct=t).attachEvent("onpropertychange",Lt)):"blur"===e&&It()}function Dt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return At(Ot)}function Rt(e,t){if("click"===e)return At(t)}function Ft(e,t){if("input"===e||"change"===e)return At(t)}$&&(Mt=Ue("input")&&(!document.documentMode||9<document.documentMode));var Bt={eventTypes:St,_isInputEventSupported:Mt,extractEvents:function(e,t,n,r){var o=t?R(t):window,i=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?i=Nt:Fe(o)?Mt?i=Ft:(i=Dt,a=Pt):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Rt),i&&(i=i(e,t)))return Tt(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&kt(o,"number",o.value)}},Ut=le.extend({view:null,detail:null}),qt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=qt[e])&&!!t[e]}function Ht(){return zt}var Wt=0,$t=0,Yt=!1,Kt=!1,Vt=Ut.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ht,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Wt;return Wt=e.screenX,Yt?"mousemove"===e.type?e.screenX-t:0:(Yt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=$t;return $t=e.screenY,Kt?"mousemove"===e.type?e.screenY-t:0:(Kt=!0,0)}}),Gt=Vt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Zt={eventTypes:Xt,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?P(t):null):i=null,i===t)return null;var a=void 0,s=void 0,l=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(a=Vt,s=Xt.mouseLeave,l=Xt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Gt,s=Xt.pointerLeave,l=Xt.pointerEnter,c="pointer");var u=null==i?o:R(i);if(o=null==t?o:R(t),(e=a.getPooled(s,i,n,r)).type=c+"leave",e.target=u,e.relatedTarget=o,(n=a.getPooled(l,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=u,r=t,i&&r)e:{for(o=r,c=0,a=t=i;a;a=B(a))c++;for(a=0,l=o;l;l=B(l))a++;for(;0<c-a;)t=B(t),c--;for(;0<a-c;)o=B(o),a--;for(;c--;){if(t===o||t===o.alternate)break e;t=B(t),o=B(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(c=i.alternate)||c!==o);)t.push(i),i=B(i);for(i=[];r&&r!==o&&(null===(c=r.alternate)||c!==o);)i.push(r),r=B(r);for(r=0;r<t.length;r++)z(t[r],"bubbled",e);for(r=i.length;0<r--;)z(i[r],"captured",n);return[e,n]}};function Qt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Jt=Object.prototype.hasOwnProperty;function en(e,t){if(Qt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Jt.call(t,n[r])||!Qt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var s=o.child;s;){if(s===n)return nn(o),e;if(s===r)return nn(o),t;s=s.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{s=!1;for(var l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}s||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=le.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=le.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sn=Ut.extend({relatedTarget:null});function ln(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},un={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Ut.extend({key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ln(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?un[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ht,charCode:function(e){return"keypress"===e.type?ln(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ln(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),dn=Vt.extend({dataTransfer:null}),pn=Ut.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ht}),hn=le.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=Vt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),vn=[["abort","abort"],[Z,"animationEnd"],[Q,"animationIteration"],[J,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],gn={},yn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},gn[e]=t,yn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),vn.forEach(function(e){bn(e,!1)});var _n={eventTypes:gn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=yn[e];if(!o)return null;switch(e){case"keypress":if(0===ln(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=sn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Vt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=pn;break;case Z:case Q:case J:e=on;break;case ee:e=hn;break;case"scroll":e=Ut;break;case"wheel":e=mn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Gt;break;default:e=le}return W(t=e.getPooled(o,t,n,r)),t}},wn=_n.isInteractiveTopLevelEventType,En=[];function xn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=P(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Be(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<g.length;s++){var l=g[s];l&&(l=l.extractEvents(r,t,i,o))&&(a=S(a,l))}N(a)}}var kn=!0;function Sn(e,t){if(!t)return null;var n=(wn(e)?Cn:On).bind(null,e);t.addEventListener(e,n,!1)}function Tn(e,t){if(!t)return null;var n=(wn(e)?Cn:On).bind(null,e);t.addEventListener(e,n,!0)}function Cn(e,t){Ie(On,e,t)}function On(e,t){if(kn){var n=Be(t);if(null===(n=P(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),En.length){var r=En.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{De(xn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>En.length&&En.push(e)}}}var jn={},An=0,Nn="_reactListenersID"+(""+Math.random()).slice(2);function Mn(e){return Object.prototype.hasOwnProperty.call(e,Nn)||(e[Nn]=An++,jn[e[Nn]]={}),jn[e[Nn]]}function In(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pn(e,t){var n,r=Ln(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ln(r)}}function Dn(){for(var e=window,t=In();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=In((e=t.contentWindow).document)}return t}function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Fn(e){var t=Dn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&Rn(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Pn(n,i);var a=Pn(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bn=$&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qn=null,zn=null,Hn=null,Wn=!1;function $n(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wn||null==qn||qn!==In(n)?null:("selectionStart"in(n=qn)&&Rn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hn&&en(Hn,n)?null:(Hn=n,(e=le.getPooled(Un.select,zn,e,t)).type="select",e.target=qn,W(e),e))}var Yn={eventTypes:Un,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Mn(i),o=_.onSelect;for(var a=0;a<o.length;a++){var s=o[a];if(!i.hasOwnProperty(s)||!i[s]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?R(t):window,e){case"focus":(Fe(i)||"true"===i.contentEditable)&&(qn=i,zn=t,Hn=null);break;case"blur":Hn=zn=qn=null;break;case"mousedown":Wn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wn=!1,$n(n,r);case"selectionchange":if(Bn)break;case"keydown":case"keyup":return $n(n,r)}return null}};function Kn(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Vn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Gn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function Zn(e,t){var n=yt(t.value),r=yt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Qn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}j.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=F,E=D,x=R,j.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:Zt,ChangeEventPlugin:Bt,SelectEventPlugin:Yn,BeforeInputEventPlugin:Se});var Jn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function er(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?er(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var nr,rr=void 0,or=(nr=function(e,t){if(e.namespaceURI!==Jn.svg||"innerHTML"in e)e.innerHTML=t;else{for((rr=rr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=rr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return nr(e,t)})}:nr);function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ar={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sr=["Webkit","ms","Moz","O"];function lr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ar.hasOwnProperty(e)&&ar[e]?(""+t).trim():t+"px"}function cr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ar).forEach(function(e){sr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ar[t]=ar[e]})});var ur=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fr(e,t){t&&(ur[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function dr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function pr(e,t){var n=Mn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=_[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":Tn("scroll",e);break;case"focus":case"blur":Tn("focus",e),Tn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Ue(o)&&Tn(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(o)&&Sn(o,e)}n[o]=!0}}}function hr(){}var mr=null,vr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var br="function"==typeof setTimeout?setTimeout:void 0,_r="function"==typeof clearTimeout?clearTimeout:void 0,wr=i.unstable_scheduleCallback,Er=i.unstable_cancelCallback;function xr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function kr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Sr=[],Tr=-1;function Cr(e){0>Tr||(e.current=Sr[Tr],Sr[Tr]=null,Tr--)}function Or(e,t){Sr[++Tr]=e.current,e.current=t}var jr={},Ar={current:jr},Nr={current:!1},Mr=jr;function Ir(e,t){var n=e.type.contextTypes;if(!n)return jr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lr(e){return null!=(e=e.childContextTypes)}function Pr(e){Cr(Nr),Cr(Ar)}function Dr(e){Cr(Nr),Cr(Ar)}function Rr(e,t,n){Ar.current!==jr&&a("168"),Or(Ar,t),Or(Nr,n)}function Fr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||a("108",st(t)||"Unknown",i);return o({},n,r)}function Br(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||jr,Mr=Ar.current,Or(Ar,t),Or(Nr,Nr.current),!0}function Ur(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Fr(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=t,Cr(Nr),Cr(Ar),Or(Ar,t)):Cr(Nr),Or(Nr,n)}var qr=null,zr=null;function Hr(e){return function(t){try{return e(t)}catch(e){}}}function Wr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function $r(e,t,n,r){return new Wr(e,t,n,r)}function Yr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kr(e,t){var n=e.alternate;return null===n?((n=$r(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vr(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Yr(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Ge:return Gr(n.children,o,i,t);case et:return Xr(n,3|o,i,t);case Xe:return Xr(n,2|o,i,t);case Ze:return(e=$r(12,n,t,4|o)).elementType=Ze,e.type=Ze,e.expirationTime=i,e;case nt:return(e=$r(13,n,t,o)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Qe:s=10;break e;case Je:s=9;break e;case tt:s=11;break e;case rt:s=14;break e;case ot:s=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=$r(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Gr(e,t,n,r){return(e=$r(7,e,r,t)).expirationTime=n,e}function Xr(e,t,n,r){return e=$r(8,e,r,t),t=0==(1&t)?Xe:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Zr(e,t,n){return(e=$r(6,e,null,t)).expirationTime=n,e}function Qr(e,t,n){return(t=$r(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),no(t,e)}function eo(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),no(t,e)}function to(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function no(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;0===(o=0!==o?o:i)&&(0===e||r<e)&&(o=r),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}function ro(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var oo=(new r.Component).refs;function io(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ao={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Es(),o=Xi(r=Ga(r,e));o.payload=t,null!=n&&(o.callback=n),Ha(),Qi(e,o),Qa(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Es(),o=Xi(r=Ga(r,e));o.tag=Wi,o.payload=t,null!=n&&(o.callback=n),Ha(),Qi(e,o),Qa(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Es(),r=Xi(n=Ga(n,e));r.tag=$i,null!=t&&(r.callback=t),Ha(),Qi(e,r),Qa(e,n)}};function so(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(o,i))}function lo(e,t,n){var r=!1,o=jr,i=t.contextType;return"object"==typeof i&&null!==i?i=zi(i):(o=Lr(t)?Mr:Ar.current,i=(r=null!=(r=t.contextTypes))?Ir(e,o):jr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ao,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function co(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ao.enqueueReplaceState(t,t.state,null)}function uo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=oo;var i=t.contextType;"object"==typeof i&&null!==i?o.context=zi(i):(i=Lr(t)?Mr:Ar.current,o.context=Ir(e,i)),null!==(i=e.updateQueue)&&(na(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(io(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ao.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(na(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var fo=Array.isArray;function po(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("309"),r=n.stateNode),r||a("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===oo&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function ho(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function mo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=Kr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Zr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=po(e,t,n),r.return=e,r):((r=Vr(n.type,n.key,n.props,null,e.mode,r)).ref=po(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Gr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Zr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ke:return(n=Vr(t.type,t.key,t.props,null,e.mode,n)).ref=po(e,null,t),n.return=e,n;case Ve:return(t=Qr(t,e.mode,n)).return=e,t}if(fo(t)||at(t))return(t=Gr(t,e.mode,n,null)).return=e,t;ho(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ke:return n.key===o?n.type===Ge?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case Ve:return n.key===o?u(e,t,n,r):null}if(fo(n)||at(n))return null!==o?null:f(e,t,n,r,null);ho(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ke:return e=e.get(null===r.key?n:r.key)||null,r.type===Ge?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case Ve:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(fo(r)||at(r))return f(t,e=e.get(n)||null,r,o,null);ho(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(o,f,s[m],l);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g,f=v}if(m===s.length)return n(o,f),c;if(null===f){for(;m<s.length;m++)(f=d(o,s[m],l))&&(a=i(f,a,m),null===u?c=f:u.sibling=f,u=f);return c}for(f=r(o,f);m<s.length;m++)(v=h(f,o,m,s[m],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&f.forEach(function(e){return t(o,e)}),c}function v(o,s,l,c){var u=at(l);"function"!=typeof u&&a("150"),null==(l=u.call(l))&&a("151");for(var f=u=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,c);if(null===b){m||(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,v),null===f?u=b:f.sibling=b,f=b,m=g}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=d(o,y.value,c))&&(s=i(y,s,v),null===f?u=y:f.sibling=y,f=y);return u}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===f?u=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(o,e)}),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===Ge&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Ke:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?i.type===Ge:c.elementType===i.type){n(e,c.sibling),(r=o(c,i.type===Ge?i.props.children:i.props)).ref=po(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===Ge?((r=Gr(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Vr(i.type,i.key,i.props,null,e.mode,l)).ref=po(e,r,i),l.return=e,e=l)}return s(e);case Ve:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qr(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Zr(i,e.mode,l)).return=e,e=r),s(e);if(fo(i))return m(e,r,i,l);if(at(i))return v(e,r,i,l);if(u&&ho(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:a("152",(l=e.type).displayName||l.name||"Component")}return n(e,r)}}var vo=mo(!0),go=mo(!1),yo={},bo={current:yo},_o={current:yo},wo={current:yo};function Eo(e){return e===yo&&a("174"),e}function xo(e,t){Or(wo,t),Or(_o,e),Or(bo,yo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tr(null,"");break;default:t=tr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Cr(bo),Or(bo,t)}function ko(e){Cr(bo),Cr(_o),Cr(wo)}function So(e){Eo(wo.current);var t=Eo(bo.current),n=tr(t,e.type);t!==n&&(Or(_o,e),Or(bo,n))}function To(e){_o.current===e&&(Cr(bo),Cr(_o))}var Co=0,Oo=2,jo=4,Ao=8,No=16,Mo=32,Io=64,Lo=128,Po=We.ReactCurrentDispatcher,Do=0,Ro=null,Fo=null,Bo=null,Uo=null,qo=null,zo=null,Ho=0,Wo=null,$o=0,Yo=!1,Ko=null,Vo=0;function Go(){a("321")}function Xo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,o,i){if(Do=i,Ro=t,Bo=null!==e?e.memoizedState:null,Po.current=null===Bo?ui:fi,t=n(r,o),Yo){do{Yo=!1,Vo+=1,Bo=null!==e?e.memoizedState:null,zo=Uo,Wo=qo=Fo=null,Po.current=fi,t=n(r,o)}while(Yo);Ko=null,Vo=0}return Po.current=ci,(e=Ro).memoizedState=Uo,e.expirationTime=Ho,e.updateQueue=Wo,e.effectTag|=$o,e=null!==Fo&&null!==Fo.next,Do=0,zo=qo=Uo=Bo=Fo=Ro=null,Ho=0,Wo=null,$o=0,e&&a("300"),t}function Qo(){Po.current=ci,Do=0,zo=qo=Uo=Bo=Fo=Ro=null,Ho=0,Wo=null,$o=0,Yo=!1,Ko=null,Vo=0}function Jo(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===qo?Uo=qo=e:qo=qo.next=e,qo}function ei(){if(null!==zo)zo=(qo=zo).next,Bo=null!==(Fo=Bo)?Fo.next:null;else{null===Bo&&a("310");var e={memoizedState:(Fo=Bo).memoizedState,baseState:Fo.baseState,queue:Fo.queue,baseUpdate:Fo.baseUpdate,next:null};qo=null===qo?Uo=e:qo.next=e,Bo=Fo.next}return qo}function ti(e,t){return"function"==typeof t?t(e):t}function ni(e){var t=ei(),n=t.queue;if(null===n&&a("311"),n.lastRenderedReducer=e,0<Vo){var r=n.dispatch;if(null!==Ko){var o=Ko.get(n);if(void 0!==o){Ko.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return Qt(i,t.memoizedState)||(Ei=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var s=t.baseUpdate;if(i=t.baseState,null!==s?(null!==r&&(r.next=null),r=s.next):r=null!==r?r.next:null,null!==r){var l=o=null,c=r,u=!1;do{var f=c.expirationTime;f<Do?(u||(u=!0,l=s,o=i),f>Ho&&(Ho=f)):i=c.eagerReducer===e?c.eagerState:e(i,c.action),s=c,c=c.next}while(null!==c&&c!==r);u||(l=s,o=i),Qt(i,t.memoizedState)||(Ei=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function ri(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Wo?(Wo={lastEffect:null}).lastEffect=e.next=e:null===(t=Wo.lastEffect)?Wo.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Wo.lastEffect=e),e}function oi(e,t,n,r){var o=Jo();$o|=e,o.memoizedState=ri(t,n,void 0,void 0===r?null:r)}function ii(e,t,n,r){var o=ei();r=void 0===r?null:r;var i=void 0;if(null!==Fo){var a=Fo.memoizedState;if(i=a.destroy,null!==r&&Xo(r,a.deps))return void ri(Co,n,i,r)}$o|=e,o.memoizedState=ri(t,n,i,r)}function ai(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function si(){}function li(e,t,n){25>Vo||a("301");var r=e.alternate;if(e===Ro||null!==r&&r===Ro)if(Yo=!0,e={expirationTime:Do,action:n,eagerReducer:null,eagerState:null,next:null},null===Ko&&(Ko=new Map),void 0===(n=Ko.get(t)))Ko.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Ha();var o=Es(),i={expirationTime:o=Ga(o,e),action:n,eagerReducer:null,eagerState:null,next:null},s=t.last;if(null===s)i.next=i;else{var l=s.next;null!==l&&(i.next=l),s.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,u=r(c,n);if(i.eagerReducer=r,i.eagerState=u,Qt(u,c))return}catch(e){}Qa(e,o)}}var ci={readContext:zi,useCallback:Go,useContext:Go,useEffect:Go,useImperativeHandle:Go,useLayoutEffect:Go,useMemo:Go,useReducer:Go,useRef:Go,useState:Go,useDebugValue:Go},ui={readContext:zi,useCallback:function(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e},useContext:zi,useEffect:function(e,t){return oi(516,Lo|Io,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,jo|Mo,ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4,jo|Mo,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=li.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:function(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e}).dispatch=li.bind(null,Ro,e),[t.memoizedState,e]},useDebugValue:si},fi={readContext:zi,useCallback:function(e,t){var n=ei();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:zi,useEffect:function(e,t){return ii(516,Lo|Io,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ii(4,jo|Mo,ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ii(4,jo|Mo,e,t)},useMemo:function(e,t){var n=ei();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ni,useRef:function(){return ei().memoizedState},useState:function(e){return ni(ti)},useDebugValue:si},di=null,pi=null,hi=!1;function mi(e,t){var n=$r(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function vi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function gi(e){if(hi){var t=pi;if(t){var n=t;if(!vi(e,t)){if(!(t=xr(n))||!vi(e,t))return e.effectTag|=2,hi=!1,void(di=e);mi(di,n)}di=e,pi=kr(t)}else e.effectTag|=2,hi=!1,di=e}}function yi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;di=e}function bi(e){if(e!==di)return!1;if(!hi)return yi(e),hi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yr(t,e.memoizedProps))for(t=pi;t;)mi(e,t),t=xr(t);return yi(e),pi=di?xr(e.stateNode):null,!0}function _i(){pi=di=null,hi=!1}var wi=We.ReactCurrentOwner,Ei=!1;function xi(e,t,n,r){t.child=null===e?go(t,null,n,r):vo(t,e.child,n,r)}function ki(e,t,n,r,o){n=n.render;var i=t.ref;return qi(t,o),r=Zo(e,t,n,r,i,o),null===e||Ei?(t.effectTag|=1,xi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ii(e,t,o))}function Si(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Yr(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ti(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(o,r)&&e.ref===t.ref)?Ii(e,t,i):(t.effectTag|=1,(e=Kr(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ti(e,t,n,r,o,i){return null!==e&&en(e.memoizedProps,r)&&e.ref===t.ref&&(Ei=!1,o<i)?Ii(e,t,i):Oi(e,t,n,r,i)}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Oi(e,t,n,r,o){var i=Lr(n)?Mr:Ar.current;return i=Ir(t,i),qi(t,o),n=Zo(e,t,n,r,i,o),null===e||Ei?(t.effectTag|=1,xi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ii(e,t,o))}function ji(e,t,n,r,o){if(Lr(n)){var i=!0;Br(t)}else i=!1;if(qi(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),lo(t,n,r),uo(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=zi(c):c=Ir(t,c=Lr(n)?Mr:Ar.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&co(t,a,r,c),Ki=!1;var d=t.memoizedState;l=a.state=d;var p=t.updateQueue;null!==p&&(na(t,p,r,a,o),l=t.memoizedState),s!==r||d!==l||Nr.current||Ki?("function"==typeof u&&(io(t,n,u,r),l=t.memoizedState),(s=Ki||so(t,n,s,r,d,l,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:ro(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=zi(c):c=Ir(t,c=Lr(n)?Mr:Ar.current),(f="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&co(t,a,r,c),Ki=!1,l=t.memoizedState,d=a.state=l,null!==(p=t.updateQueue)&&(na(t,p,r,a,o),d=t.memoizedState),s!==r||l!==d||Nr.current||Ki?("function"==typeof u&&(io(t,n,u,r),d=t.memoizedState),(u=Ki||so(t,n,s,r,l,d,c))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ai(e,t,n,r,i,o)}function Ai(e,t,n,r,o,i){Ci(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Ur(t,n,!1),Ii(e,t,i);r=t.stateNode,wi.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=vo(t,e.child,null,i),t.child=vo(t,null,s,i)):xi(e,t,s,i),t.memoizedState=r.state,o&&Ur(t,n,!0),t.child}function Ni(e){var t=e.stateNode;t.pendingContext?Rr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Rr(0,t.context,!1),xo(e,t.containerInfo)}function Mi(e,t,n){var r=t.mode,o=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=o.fallback;e=Gr(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=Gr(s,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=go(t,null,o.children,n);else null!==e.memoizedState?(s=(r=e.child).sibling,a?(n=o.fallback,o=Kr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(o.child=a)),r=o.sibling=Kr(s,n,s.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=t):n=r=vo(t,r.child,o.children,n)):(s=e.child,a?(a=o.fallback,(o=Gr(null,r,0,null)).child=s,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(r=o.sibling=Gr(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=t):r=n=vo(t,s,o.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,r}function Ii(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Kr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Li(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Nr.current)Ei=!0;else if(r<n){switch(Ei=!1,t.tag){case 3:Ni(t),_i();break;case 5:So(t);break;case 1:Lr(t.type)&&Br(t);break;case 4:xo(t,t.stateNode.containerInfo);break;case 10:Bi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Mi(e,t,n):null!==(t=Ii(e,t,n))?t.sibling:null}return Ii(e,t,n)}}else Ei=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=Ir(t,Ar.current);if(qi(t,n),o=Zo(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Qo(),Lr(r)){var i=!0;Br(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&io(t,r,s,e),o.updater=ao,t.stateNode=o,o._reactInternalFiber=t,uo(t,r,e,n),t=Ai(null,t,r,!0,i,n)}else t.tag=0,xi(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=e,o=t.tag=function(e){if("function"==typeof e)return Yr(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),i=ro(e,i),s=void 0,o){case 0:s=Oi(null,t,e,i,n);break;case 1:s=ji(null,t,e,i,n);break;case 11:s=ki(null,t,e,i,n);break;case 14:s=Si(null,t,e,ro(e.type,i),r,n);break;default:a("306",e,"")}return s;case 0:return r=t.type,o=t.pendingProps,Oi(e,t,r,o=t.elementType===r?o:ro(r,o),n);case 1:return r=t.type,o=t.pendingProps,ji(e,t,r,o=t.elementType===r?o:ro(r,o),n);case 3:return Ni(t),null===(r=t.updateQueue)&&a("282"),o=null!==(o=t.memoizedState)?o.element:null,na(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(_i(),t=Ii(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(pi=kr(t.stateNode.containerInfo),di=t,o=hi=!0),o?(t.effectTag|=2,t.child=go(t,null,r,n)):(xi(e,t,r,n),_i()),t=t.child),t;case 5:return So(t),null===e&&gi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,yr(r,o)?s=null:null!==i&&yr(r,i)&&(t.effectTag|=16),Ci(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(xi(e,t,s,n),t=t.child),t;case 6:return null===e&&gi(t),null;case 13:return Mi(e,t,n);case 4:return xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=vo(t,null,r,n):xi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ki(e,t,r,o=t.elementType===r?o:ro(r,o),n);case 7:return xi(e,t,t.pendingProps,n),t.child;case 8:case 12:return xi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,Bi(t,i=o.value),null!==s){var l=s.value;if(0===(i=Qt(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!Nr.current){t=Ii(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.contextDependencies;if(null!==c){s=l.child;for(var u=c.first;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=Xi(n)).tag=$i,Qi(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var f=l.return;null!==f;){var d=f.alternate;if(f.childExpirationTime<u)f.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}f=f.return}c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}xi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,qi(t,n),r=r(o=zi(o,i.unstable_observedBits)),t.effectTag|=1,xi(e,t,r,n),t.child;case 14:return i=ro(o=t.type,t.pendingProps),Si(e,t,o,i=ro(o.type,i),r,n);case 15:return Ti(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ro(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Lr(r)?(e=!0,Br(t)):e=!1,qi(t,n),lo(t,r,o),uo(t,r,o,n),Ai(null,t,r,!0,e,n)}a("156")}var Pi={current:null},Di=null,Ri=null,Fi=null;function Bi(e,t){var n=e.type._context;Or(Pi,n._currentValue),n._currentValue=t}function Ui(e){var t=Pi.current;Cr(Pi),e.type._context._currentValue=t}function qi(e,t){Di=e,Fi=Ri=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(Ei=!0),e.contextDependencies=null}function zi(e,t){return Fi!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Fi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ri?(null===Di&&a("308"),Ri=t,Di.contextDependencies={first:t,expirationTime:0}):Ri=Ri.next=t),e._currentValue}var Hi=0,Wi=1,$i=2,Yi=3,Ki=!1;function Vi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Gi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xi(e){return{expirationTime:e,tag:Hi,payload:null,callback:null,next:null,nextEffect:null}}function Zi(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Qi(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Vi(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Vi(e.memoizedState),o=n.updateQueue=Vi(n.memoizedState)):r=e.updateQueue=Gi(o):null===o&&(o=n.updateQueue=Gi(r));null===o||r===o?Zi(r,t):null===r.lastUpdate||null===o.lastUpdate?(Zi(r,t),Zi(o,t)):(Zi(r,t),o.lastUpdate=t)}function Ji(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Vi(e.memoizedState):ea(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ea(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Gi(t)),t}function ta(e,t,n,r,i,a){switch(n.tag){case Wi:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case Yi:e.effectTag=-2049&e.effectTag|64;case Hi:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case $i:Ki=!0}return r}function na(e,t,n,r,o){Ki=!1;for(var i=(t=ea(e,t)).baseState,a=null,s=0,l=t.firstUpdate,c=i;null!==l;){var u=l.expirationTime;u<o?(null===a&&(a=l,i=c),s<u&&(s=u)):(c=ta(e,0,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(u=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<o?(null===u&&(u=l,null===a&&(i=c)),s<f&&(s=f)):(c=ta(e,0,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===u&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=u,e.expirationTime=s,e.memoizedState=c}function ra(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),oa(t.firstEffect,n),t.firstEffect=t.lastEffect=null,oa(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function oa(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function ia(e,t){return{value:e,source:t,stack:lt(t)}}function aa(e){e.effectTag|=4}var sa=void 0,la=void 0,ca=void 0,ua=void 0;sa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},la=function(){},ca=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s=t.stateNode;switch(Eo(bo.current),e=null,n){case"input":a=bt(s,a),r=bt(s,r),e=[];break;case"option":a=Kn(s,a),r=Kn(s,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Gn(s,a),r=Gn(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=hr)}fr(n,r),s=n=void 0;var l=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var c=a[n];for(s in c)c.hasOwnProperty(s)&&(l||(l={}),l[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(c=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&u!==c&&(null!=u||null!=c))if("style"===n)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(l||(l={}),l[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(l||(l={}),l[s]=u[s])}else l||(e||(e=[]),e.push(n,l)),l=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(n,""+u)):"children"===n?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=u&&pr(i,n),e||c===u||(e=[])):(e=e||[]).push(n,u))}l&&(e=e||[]).push("style",l),i=e,(t.updateQueue=i)&&aa(t)}},ua=function(e,t,n,r){n!==r&&aa(t)};var fa="function"==typeof WeakSet?WeakSet:Set;function da(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=lt(n)),null!==n&&st(n.type),t=t.value,null!==e&&1===e.tag&&st(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function pa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Va(e,t)}else t.current=null}function ha(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==Co){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==Co&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function ma(e){switch("function"==typeof zr&&zr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var o=e;try{r()}catch(e){Va(o,e)}}n=n.next}while(n!==t)}break;case 1:if(pa(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Va(e,t)}break;case 5:pa(e);break;case 4:ya(e)}}function va(e){return 5===e.tag||3===e.tag||4===e.tag}function ga(e){e:{for(var t=e.return;null!==t;){if(va(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(ir(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||va(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,s=o.stateNode,l=n;8===i.nodeType?i.parentNode.insertBefore(s,l):i.insertBefore(s,l)}else t.insertBefore(o.stateNode,n);else r?(s=t,l=o.stateNode,8===s.nodeType?(i=s.parentNode).insertBefore(l,s):(i=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=hr)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function ya(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,s=i;;)if(ma(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}o?(i=r,s=t.stateNode,8===i.nodeType?i.parentNode.removeChild(s):i.removeChild(s)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,o=!0,t.child.return=t,t=t.child;continue}}else if(ma(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function ba(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ha(jo,Ao,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,r,o){e[L]=o,"input"===n&&"radio"===o.type&&null!=o.name&&wt(e,o),dr(n,r),r=dr(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],s=t[i+1];"style"===a?cr(e,s):"dangerouslySetInnerHTML"===a?or(e,s):"children"===a?ir(e,s):gt(e,a,s,r)}switch(n){case"input":Et(e,o);break;case"textarea":Zn(e,o);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?Vn(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?Vn(e,!!o.multiple,o.defaultValue,!0):Vn(e,!!o.multiple,o.multiple?[]:"",!1))}}(n,i,o,e,r)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Es())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=lr("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var s=t.stateNode;null===s&&(s=t.stateNode=new fa),n.forEach(function(e){var n=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=Ga(t=Es(),e),null!==(e=Za(e,t))&&(Jr(e,t),0!==(t=e.expirationTime)&&xs(e,t))}.bind(null,t,e);s.has(e)||(s.add(e),e.then(n,n))})}break;case 17:break;default:a("163")}}var _a="function"==typeof WeakMap?WeakMap:Map;function wa(e,t,n){(n=Xi(n)).tag=Yi,n.payload={element:null};var r=t.value;return n.callback=function(){Ms(r),da(e,t)},n}function Ea(e,t,n){(n=Xi(n)).tag=Yi;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Fa?Fa=new Set([this]):Fa.add(this));var n=t.value,o=t.stack;da(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function xa(e){switch(e.tag){case 1:Lr(e.type)&&Pr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return ko(),Dr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return To(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return ko(),null;case 10:return Ui(e),null;default:return null}}var ka=We.ReactCurrentDispatcher,Sa=We.ReactCurrentOwner,Ta=1073741822,Ca=!1,Oa=null,ja=null,Aa=0,Na=-1,Ma=!1,Ia=null,La=!1,Pa=null,Da=null,Ra=null,Fa=null;function Ba(){if(null!==Oa)for(var e=Oa.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Pr();break;case 3:ko(),Dr();break;case 5:To(t);break;case 4:ko();break;case 10:Ui(t)}e=e.return}ja=null,Aa=0,Na=-1,Ma=!1,Oa=null}function Ua(){for(;null!==Ia;){var e=Ia.effectTag;if(16&e&&ir(Ia.stateNode,""),128&e){var t=Ia.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ga(Ia),Ia.effectTag&=-3;break;case 6:ga(Ia),Ia.effectTag&=-3,ba(Ia.alternate,Ia);break;case 4:ba(Ia.alternate,Ia);break;case 8:ya(e=Ia),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Ia=Ia.nextEffect}}function qa(){for(;null!==Ia;){if(256&Ia.effectTag)e:{var e=Ia.alternate,t=Ia;switch(t.tag){case 0:case 11:case 15:ha(Oo,Co,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ro(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Ia=Ia.nextEffect}}function za(e,t){for(;null!==Ia;){var n=Ia.effectTag;if(36&n){var r=Ia.alternate,o=Ia,i=t;switch(o.tag){case 0:case 11:case 15:ha(No,Mo,o);break;case 1:var s=o.stateNode;if(4&o.effectTag)if(null===r)s.componentDidMount();else{var l=o.elementType===o.type?r.memoizedProps:ro(o.type,r.memoizedProps);s.componentDidUpdate(l,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}null!==(r=o.updateQueue)&&ra(0,r,s);break;case 3:if(null!==(r=o.updateQueue)){if(s=null,null!==o.child)switch(o.child.tag){case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}ra(0,r,s)}break;case 5:i=o.stateNode,null===r&&4&o.effectTag&&gr(o.type,o.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(o=Ia.ref)&&(i=Ia.stateNode,"function"==typeof o?o(i):o.current=i)),512&n&&(Pa=e),Ia=Ia.nextEffect}}function Ha(){null!==Da&&Er(Da),null!==Ra&&Ra()}function Wa(e,t){La=Ca=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,o=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?Jr(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Jr(e,t)):t>n&&Jr(e,t)}no(0,e)}(e,o>r?o:r),Sa.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,mr=kn,vr=function(){var e=Dn();if(Rn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(e){t=null;break e}var i=0,a=-1,s=-1,l=0,c=0,u=e,f=null;t:for(;;){for(var d;u!==t||0!==r&&3!==u.nodeType||(a=i+r),u!==o||0!==n&&3!==u.nodeType||(s=i+n),3===u.nodeType&&(i+=u.nodeValue.length),null!==(d=u.firstChild);)f=u,u=d;for(;;){if(u===e)break t;if(f===t&&++l===r&&(a=i),f===o&&++c===n&&(s=i),null!==(d=u.nextSibling))break;f=(u=f).parentNode}u=d}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),kn=!1,Ia=r;null!==Ia;){o=!1;var s=void 0;try{qa()}catch(e){o=!0,s=e}o&&(null===Ia&&a("178"),Va(Ia,s),null!==Ia&&(Ia=Ia.nextEffect))}for(Ia=r;null!==Ia;){o=!1,s=void 0;try{Ua()}catch(e){o=!0,s=e}o&&(null===Ia&&a("178"),Va(Ia,s),null!==Ia&&(Ia=Ia.nextEffect))}for(Fn(vr),vr=null,kn=!!mr,mr=null,e.current=t,Ia=r;null!==Ia;){o=!1,s=void 0;try{za(e,n)}catch(e){o=!0,s=e}o&&(null===Ia&&a("178"),Va(Ia,s),null!==Ia&&(Ia=Ia.nextEffect))}if(null!==r&&null!==Pa){var l=function(e,t){Ra=Da=Pa=null;var n=os;os=!0;do{if(512&t.effectTag){var r=!1,o=void 0;try{var i=t;ha(Lo,Co,i),ha(Co,Io,i)}catch(e){r=!0,o=e}r&&Va(t,o)}t=t.nextEffect}while(null!==t);os=n,0!==(n=e.expirationTime)&&xs(e,n),us||os||Os(1073741823,!1)}.bind(null,e,r);Da=i.unstable_runWithPriority(i.unstable_NormalPriority,function(){return wr(l)}),Ra=l}Ca=La=!1,"function"==typeof qr&&qr(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Fa=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function $a(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Oa=e;e:{var i=t,s=Aa,l=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Lr(t.type)&&Pr();break;case 3:ko(),Dr(),(l=t.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==i&&null!==i.child||(bi(t),t.effectTag&=-3),la(t);break;case 5:To(t);var c=Eo(wo.current);if(s=t.type,null!==i&&null!=t.stateNode)ca(i,t,s,l,c),i.ref!==t.ref&&(t.effectTag|=128);else if(l){var u=Eo(bo.current);if(bi(t)){i=(l=t).stateNode;var f=l.type,d=l.memoizedProps,p=c;switch(i[I]=l,i[L]=d,s=void 0,c=f){case"iframe":case"object":Sn("load",i);break;case"video":case"audio":for(f=0;f<te.length;f++)Sn(te[f],i);break;case"source":Sn("error",i);break;case"img":case"image":case"link":Sn("error",i),Sn("load",i);break;case"form":Sn("reset",i),Sn("submit",i);break;case"details":Sn("toggle",i);break;case"input":_t(i,d),Sn("invalid",i),pr(p,"onChange");break;case"select":i._wrapperState={wasMultiple:!!d.multiple},Sn("invalid",i),pr(p,"onChange");break;case"textarea":Xn(i,d),Sn("invalid",i),pr(p,"onChange")}for(s in fr(c,d),f=null,d)d.hasOwnProperty(s)&&(u=d[s],"children"===s?"string"==typeof u?i.textContent!==u&&(f=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(f=["children",""+u]):b.hasOwnProperty(s)&&null!=u&&pr(p,s));switch(c){case"input":ze(i),xt(i,d,!0);break;case"textarea":ze(i),Qn(i);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(i.onclick=hr)}s=f,l.updateQueue=s,(l=null!==s)&&aa(t)}else{d=t,p=s,i=l,f=9===c.nodeType?c:c.ownerDocument,u===Jn.html&&(u=er(p)),u===Jn.html?"script"===p?((i=f.createElement("div")).innerHTML="<script><\/script>",f=i.removeChild(i.firstChild)):"string"==typeof i.is?f=f.createElement(p,{is:i.is}):(f=f.createElement(p),"select"===p&&(p=f,i.multiple?p.multiple=!0:i.size&&(p.size=i.size))):f=f.createElementNS(u,p),(i=f)[I]=d,i[L]=l,sa(i,t,!1,!1),p=i;var h=c,m=dr(f=s,d=l);switch(f){case"iframe":case"object":Sn("load",p),c=d;break;case"video":case"audio":for(c=0;c<te.length;c++)Sn(te[c],p);c=d;break;case"source":Sn("error",p),c=d;break;case"img":case"image":case"link":Sn("error",p),Sn("load",p),c=d;break;case"form":Sn("reset",p),Sn("submit",p),c=d;break;case"details":Sn("toggle",p),c=d;break;case"input":_t(p,d),c=bt(p,d),Sn("invalid",p),pr(h,"onChange");break;case"option":c=Kn(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},c=o({},d,{value:void 0}),Sn("invalid",p),pr(h,"onChange");break;case"textarea":Xn(p,d),c=Gn(p,d),Sn("invalid",p),pr(h,"onChange");break;default:c=d}fr(f,c),u=void 0;var v=f,g=p,y=c;for(u in y)if(y.hasOwnProperty(u)){var _=y[u];"style"===u?cr(g,_):"dangerouslySetInnerHTML"===u?null!=(_=_?_.__html:void 0)&&or(g,_):"children"===u?"string"==typeof _?("textarea"!==v||""!==_)&&ir(g,_):"number"==typeof _&&ir(g,""+_):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(b.hasOwnProperty(u)?null!=_&&pr(h,u):null!=_&&gt(g,u,_,m))}switch(f){case"input":ze(p),xt(p,d,!1);break;case"textarea":ze(p),Qn(p);break;case"option":null!=d.value&&p.setAttribute("value",""+yt(d.value));break;case"select":(c=p).multiple=!!d.multiple,null!=(p=d.value)?Vn(c,!!d.multiple,p,!1):null!=d.defaultValue&&Vn(c,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof c.onClick&&(p.onclick=hr)}(l=gr(s,l))&&aa(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?ua(i,t,i.memoizedProps,l):("string"!=typeof l&&(null===t.stateNode&&a("166")),i=Eo(wo.current),Eo(bo.current),bi(t)?(s=(l=t).stateNode,i=l.memoizedProps,s[I]=l,(l=s.nodeValue!==i)&&aa(t)):(s=t,(l=(9===i.nodeType?i:i.ownerDocument).createTextNode(l))[I]=t,s.stateNode=l));break;case 11:break;case 13:if(l=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=s,Oa=t;break e}l=null!==l,s=null!==i&&null!==i.memoizedState,null!==i&&!l&&s&&(null!==(i=i.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=i,i.nextEffect=c):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(l||s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:ko(),la(t);break;case 10:Ui(t);break;case 9:case 14:break;case 17:Lr(t.type)&&Pr();break;case 18:break;default:a("156")}Oa=null}if(t=e,1===Aa||1!==t.childExpirationTime){for(l=0,s=t.child;null!==s;)(i=s.expirationTime)>l&&(l=i),(c=s.childExpirationTime)>l&&(l=c),s=s.sibling;t.childExpirationTime=l}if(null!==Oa)return Oa;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=xa(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function Ya(e){var t=Li(e.alternate,e,Aa);return e.memoizedProps=e.pendingProps,null===t&&(t=$a(e)),Sa.current=null,t}function Ka(e,t){Ca&&a("243"),Ha(),Ca=!0;var n=ka.current;ka.current=ci;var r=e.nextExpirationTimeToWorkOn;r===Aa&&e===ja&&null!==Oa||(Ba(),Aa=r,Oa=Kr((ja=e).current,null),e.pendingCommitExpirationTime=0);for(var o=!1;;){try{if(t)for(;null!==Oa&&!Ts();)Oa=Ya(Oa);else for(;null!==Oa;)Oa=Ya(Oa)}catch(t){if(Fi=Ri=Di=null,Qo(),null===Oa)o=!0,Ms(t);else{null===Oa&&a("271");var i=Oa,s=i.return;if(null!==s){e:{var l=e,c=s,u=i,f=t;if(s=Aa,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var d=f;f=c;var p=-1,h=-1;do{if(13===f.tag){var m=f.alternate;if(null!==m&&null!==(m=m.memoizedState)){h=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=f.pendingProps.maxDuration)&&(0>=m?p=0:(-1===p||m<p)&&(p=m))}f=f.return}while(null!==f);f=c;do{if((m=13===f.tag)&&(m=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),m){if(null===(c=f.updateQueue)?((c=new Set).add(d),f.updateQueue=c):c.add(d),0==(1&f.mode)){f.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((s=Xi(1073741823)).tag=$i,Qi(u,s))),u.expirationTime=1073741823;break e}c=s;var v=(u=l).pingCache;null===v?(v=u.pingCache=new _a,m=new Set,v.set(d,m)):void 0===(m=v.get(d))&&(m=new Set,v.set(d,m)),m.has(c)||(m.add(c),u=Xa.bind(null,u,d,c),d.then(u,u)),-1===p?l=1073741823:(-1===h&&(h=10*(1073741822-to(l,s))-5e3),l=h+p),0<=l&&Na<l&&(Na=l),f.effectTag|=2048,f.expirationTime=s;break e}f=f.return}while(null!==f);f=Error((st(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+lt(u))}Ma=!0,f=ia(f,u),l=c;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=s,Ji(l,s=wa(l,f,s));break e;case 1:if(p=f,h=l.type,u=l.stateNode,0==(64&l.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===Fa||!Fa.has(u)))){l.effectTag|=2048,l.expirationTime=s,Ji(l,s=Ea(l,p,s));break e}}l=l.return}while(null!==l)}Oa=$a(i);continue}o=!0,Ms(t)}}break}if(Ca=!1,ka.current=n,Fi=Ri=Di=null,Qo(),o)ja=null,e.finishedWork=null;else if(null!==Oa)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),ja=null,Ma){if(o=e.latestPendingTime,i=e.latestSuspendedTime,s=e.latestPingedTime,0!==o&&o<r||0!==i&&i<r||0!==s&&s<r)return eo(e,r),void ws(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void ws(e,n,r,t,-1)}t&&-1!==Na?(eo(e,r),(t=10*(1073741822-to(e,r)))<Na&&(Na=t),t=10*(1073741822-Es()),t=Na-t,ws(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Va(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Fa||!Fa.has(r)))return Qi(n,e=Ea(n,e=ia(t,e),1073741823)),void Qa(n,1073741823);break;case 3:return Qi(n,e=wa(n,e=ia(t,e),1073741823)),void Qa(n,1073741823)}n=n.return}3===e.tag&&(Qi(e,n=wa(e,n=ia(t,e),1073741823)),Qa(e,1073741823))}function Ga(e,t){var n=i.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(Ca&&!La)r=Aa;else{switch(n){case i.unstable_ImmediatePriority:r=1073741823;break;case i.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:r=1;break;default:a("313")}null!==ja&&r===Aa&&--r}return n===i.unstable_UserBlockingPriority&&(0===ss||r<ss)&&(ss=r),r}function Xa(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==ja&&Aa===n?ja=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),no(n,e),0!==(n=e.expirationTime)&&xs(e,n)))}function Za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return o}function Qa(e,t){null!==(e=Za(e,t))&&(!Ca&&0!==Aa&&t>Aa&&Ba(),Jr(e,t),Ca&&!La&&ja===e||xs(e,e.expirationTime),gs>vs&&(gs=0,a("185")))}function Ja(e,t,n,r,o){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){return e(t,n,r,o)})}var es=null,ts=null,ns=0,rs=void 0,os=!1,is=null,as=0,ss=0,ls=!1,cs=null,us=!1,fs=!1,ds=null,ps=i.unstable_now(),hs=1073741822-(ps/10|0),ms=hs,vs=50,gs=0,ys=null;function bs(){hs=1073741822-((i.unstable_now()-ps)/10|0)}function _s(e,t){if(0!==ns){if(t<ns)return;null!==rs&&i.unstable_cancelCallback(rs)}ns=t,e=i.unstable_now()-ps,rs=i.unstable_scheduleCallback(Cs,{timeout:10*(1073741822-t)-e})}function ws(e,t,n,r,o){e.expirationTime=r,0!==o||Ts()?0<o&&(e.timeoutHandle=br(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,bs(),ms=hs,js(e,n)}.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Es(){return os?ms:(ks(),0!==as&&1!==as||(bs(),ms=hs),ms)}function xs(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===ts?(es=ts=e,e.nextScheduledRoot=e):(ts=ts.nextScheduledRoot=e).nextScheduledRoot=es):t>e.expirationTime&&(e.expirationTime=t),os||(us?fs&&(is=e,as=1073741823,As(e,1073741823,!1)):1073741823===t?Os(1073741823,!1):_s(e,t))}function ks(){var e=0,t=null;if(null!==ts)for(var n=ts,r=es;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===ts)&&a("244"),r===r.nextScheduledRoot){es=ts=r.nextScheduledRoot=null;break}if(r===es)es=o=r.nextScheduledRoot,ts.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===ts){(ts=n).nextScheduledRoot=es,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===ts)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}is=t,as=e}var Ss=!1;function Ts(){return!!Ss||!!i.unstable_shouldYield()&&(Ss=!0)}function Cs(){try{if(!Ts()&&null!==es){bs();var e=es;do{var t=e.expirationTime;0!==t&&hs<=t&&(e.nextExpirationTimeToWorkOn=hs),e=e.nextScheduledRoot}while(e!==es)}Os(0,!0)}finally{Ss=!1}}function Os(e,t){if(ks(),t)for(bs(),ms=hs;null!==is&&0!==as&&e<=as&&!(Ss&&hs>as);)As(is,as,hs>as),ks(),bs(),ms=hs;else for(;null!==is&&0!==as&&e<=as;)As(is,as,!1),ks();if(t&&(ns=0,rs=null),0!==as&&_s(is,as),gs=0,ys=null,null!==ds)for(e=ds,ds=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ls||(ls=!0,cs=e)}}if(ls)throw e=cs,cs=null,ls=!1,e}function js(e,t){os&&a("253"),is=e,as=t,As(e,t,!1),Os(1073741823,!1)}function As(e,t,n){if(os&&a("245"),os=!0,n){var r=e.finishedWork;null!==r?Ns(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,_r(r)),Ka(e,n),null!==(r=e.finishedWork)&&(Ts()?e.finishedWork=r:Ns(e,r,t)))}else null!==(r=e.finishedWork)?Ns(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,_r(r)),Ka(e,n),null!==(r=e.finishedWork)&&Ns(e,r,t));os=!1}function Ns(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===ds?ds=[r]:ds.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ys?gs++:(ys=e,gs=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){Wa(e,t)})}function Ms(e){null===is&&a("246"),is.expirationTime=0,ls||(ls=!0,cs=e)}function Is(e,t){var n=us;us=!0;try{return e(t)}finally{(us=n)||os||Os(1073741823,!1)}}function Ls(e,t){if(us&&!fs){fs=!0;try{return e(t)}finally{fs=!1}}return e(t)}function Ps(e,t,n){us||os||0===ss||(Os(ss,!1),ss=0);var r=us;us=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(us=r)||os||Os(1073741823,!1)}}function Ds(e,t,n,r,o){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Lr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var l=n.type;if(Lr(l)){n=Fr(n,l,s);break e}}n=s}else n=jr;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Xi(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Ha(),Qi(i,o),Qa(i,r),r}function Rs(e,t,n,r){var o=t.current;return Ds(e,t,n,o=Ga(Es(),o),r)}function Fs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Bs(e){var t=1073741822-25*(1+((1073741822-Es()+500)/25|0));t>=Ta&&(t=Ta-1),this._expirationTime=Ta=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Us(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function qs(e,t,n){e={current:t=$r(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hs(e,t,n,r,o){var i=n._reactRootContainer;if(i){if("function"==typeof o){var a=o;o=function(){var e=Fs(i._internalRoot);a.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new qs(e,!1,t)}(n,r),"function"==typeof o){var s=o;o=function(){var e=Fs(i._internalRoot);s.call(e)}}Ls(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return Fs(i._internalRoot)}function Ws(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return zs(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ve,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Te=function(e,t,n){switch(t){case"input":if(Et(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=F(r);o||a("90"),He(r),Et(r,o)}}}break;case"textarea":Zn(e,n);break;case"select":null!=(t=n.value)&&Vn(e,!!n.multiple,t,!1)}},Bs.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Us;return Ds(e,t,null,n,r._onCommit),r},Bs.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Bs.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,js(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Bs.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Us.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Us.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},qs.prototype.render=function(e,t){var n=this._internalRoot,r=new Us;return null!==(t=void 0===t?null:t)&&r.then(t),Rs(e,n,null,r._onCommit),r},qs.prototype.unmount=function(e){var t=this._internalRoot,n=new Us;return null!==(e=void 0===e?null:e)&&n.then(e),Rs(null,t,null,n._onCommit),n},qs.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new Us;return null!==(n=void 0===n?null:n)&&o.then(n),Rs(t,r,e,o._onCommit),o},qs.prototype.createBatch=function(){var e=new Bs(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Me=Is,Ie=Ps,Le=function(){os||0===ss||(Os(ss,!1),ss=0)};var $s={createPortal:Ws,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return zs(t)||a("200"),Hs(null,e,t,!0,n)},render:function(e,t,n){return zs(t)||a("200"),Hs(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return zs(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),Hs(e,t,n,!1,r)},unmountComponentAtNode:function(e){return zs(e)||a("40"),!!e._reactRootContainer&&(Ls(function(){Hs(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ws.apply(void 0,arguments)},unstable_batchedUpdates:Is,unstable_interactiveUpdates:Ps,flushSync:function(e,t){os&&a("187");var n=us;us=!0;try{return Ja(e,t)}finally{us=n,Os(1073741823,!1)}},unstable_createRoot:function(e,t){return zs(e)||a("299","unstable_createRoot"),new qs(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=us;us=!0;try{Ja(e)}finally{(us=t)||os||Os(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[D,R,F,j.injectEventPluginsByName,y,W,function(e){T(e,H)},Ae,Ne,On,N]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);qr=Hr(function(e){return t.onCommitFiberRoot(n,e)}),zr=Hr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(o({},e,{overrideProps:null,currentDispatcherRef:We.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:P,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var Ys={default:$s},Ks=Ys&&$s||Ys;e.exports=Ks.default||Ks},function(e,t,n){"use strict";e.exports=n(1463)},function(e,t,n){"use strict";(function(e){
/** @license React v0.13.6
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,o=3,i=-1,a=-1,s=!1,l=!1;function c(){if(!s){var e=n.expirationTime;l?x():l=!0,E(d,e)}}function u(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=o,s=a;o=e,a=t;try{var l=r()}finally{o=i,a=s}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=l.next=l.previous=l;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=l,c()),(t=r.previous).next=r.previous=l,l.next=r,l.previous=t}}function f(){if(-1===i&&null!==n&&1===n.priorityLevel){s=!0;try{do{u()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?c():l=!1}}}function d(e){s=!0;var o=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{u()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{u()}while(null!==n&&!k())}finally{s=!1,r=o,null!==n?c():l=!1,f()}}var p,h,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){p=y(function(t){g(h),e(t)}),h=v(function(){b(p),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var w=performance;t.unstable_now=function(){return w.now()}}else t.unstable_now=function(){return m.now()};var E,x,k,S=null;if("undefined"!=typeof window?S=window:void 0!==e&&(S=e),S&&S._schedMock){var T=S._schedMock;E=T[0],x=T[1],k=T[2],t.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var C=null,O=function(e){if(null!==C)try{C(e)}finally{C=null}};E=function(e){null!==C?setTimeout(E,0,e):(C=e,setTimeout(O,0,!1))},x=function(){C=null},k=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var j=null,A=!1,N=-1,M=!1,I=!1,L=0,P=33,D=33;k=function(){return L<=t.unstable_now()};var R=new MessageChannel,F=R.port2;R.port1.onmessage=function(){A=!1;var e=j,n=N;j=null,N=-1;var r=t.unstable_now(),o=!1;if(0>=L-r){if(!(-1!==n&&n<=r))return M||(M=!0,_(B)),j=e,void(N=n);o=!0}if(null!==e){I=!0;try{e(o)}finally{I=!1}}};var B=function(e){if(null!==j){_(B);var t=e-L+D;t<D&&P<D?(8>t&&(t=8),D=t<P?P:t):P=t,L=e+D,A||(A=!0,F.postMessage(void 0))}else M=!1};E=function(e,t){j=e,N=t,I||0>t?F.postMessage(void 0):M||(M=!0,_(B))},x=function(){j=null,A=!1,N=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,a=i;o=e,i=t.unstable_now();try{return n()}finally{o=r,i=a,f()}},t.unstable_next=function(e){switch(o){case 1:case 2:case 3:var n=3;break;default:n=o}var r=o,a=i;o=n,i=t.unstable_now();try{return e()}finally{o=r,i=a,f()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(o){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{a=null;var s=n;do{if(s.expirationTime>r){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,c()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=o;return function(){var r=o,a=i;o=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{o=r,i=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return o},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||k())},t.unstable_continueExecution=function(){null!==n&&c()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(71))},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(1465);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(1467),s=(o=a)&&o.__esModule?o:{default:o};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var l=(0,s.default)(i);t.default=l}).call(this,n(71),n(256)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){},function(e,t,n){e.exports=n(1470)},function(e,t,n){var r=n(1471),o=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===o||e instanceof String&&t===o.startsWith?r:t}},function(e,t,n){n(1472),e.exports=n(136)("String").startsWith},function(e,t,n){"use strict";var r=n(195),o=n(640),i=n(643)("startsWith"),a="".startsWith;n(68)({target:"String",proto:!0,forced:!i},{startsWith:function(e){var t=o(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){var r=n(159),o=n(330),i=n(119)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(128),o=n(235);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){e.exports=n(1476),n(1487),n(1488),n(1489),n(1490)},function(e,t,n){n(814),n(365),n(332),n(1482),n(1486),e.exports=n(116).Promise},function(e,t,n){var r=n(1478),o=n(128).WeakMap;e.exports="function"==typeof o&&/native code/.test(r.call(o))},function(e,t,n){e.exports=n(505)("native-function-to-string",Function.toString)},function(e,t,n){"use strict";var r=n(367),o={};o[n(119)("toStringTag")]="z",e.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(e,t,n){var r=n(159),o=n(196);e.exports=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r,o,i,a="Promise",s=n(362),l=n(128),c=n(68),u=n(159),f=n(364),d=n(647),p=n(330),h=n(514),m=n(825),v=n(826),g=n(827).set,y=n(1483),b=n(828),_=n(1484),w=n(426),E=n(516),x=n(648),k=n(119)("species"),S=n(366),T=n(813),C=S.get,O=S.set,j=S.getterFor(a),A=l.Promise,N=l.TypeError,M=l.document,I=l.process,L=l.fetch,P=I&&I.versions,D=P&&P.v8||"",R=w.f,F=R,B="process"==p(I),U=!!(M&&M.createEvent&&l.dispatchEvent),q=T(a,function(){var e=A.resolve(1),t=function(){},n=(e.constructor={})[k]=function(e){e(t,t)};return!((B||"function"==typeof PromiseRejectionEvent)&&(!s||e.finally)&&e.then(t)instanceof n&&0!==D.indexOf("6.6")&&-1===x.indexOf("Chrome/66"))}),z=q||!m(function(e){A.all(e).catch(function(){})}),H=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},W=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;y(function(){for(var o=t.value,i=1==t.state,a=0,s=function(n){var r,a,s,l=i?n.ok:n.fail,c=n.resolve,u=n.reject,f=n.domain;try{l?(i||(2===t.rejection&&V(e,t),t.rejection=1),!0===l?r=o:(f&&f.enter(),r=l(o),f&&(f.exit(),s=!0)),r===n.promise?u(N("Promise-chain cycle")):(a=H(r))?a.call(r,c,u):c(r)):u(o)}catch(e){f&&!s&&f.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&Y(e,t)})}},$=function(e,t,n){var r,o;U?((r=M.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):"unhandledrejection"===e&&_("Unhandled promise rejection",n)},Y=function(e,t){g.call(l,function(){var n,r=t.value;if(K(t)&&(n=E(function(){B?I.emit("unhandledRejection",r,e):$("unhandledrejection",e,r)}),t.rejection=B||K(t)?2:1,n.error))throw n.value})},K=function(e){return 1!==e.rejection&&!e.parent},V=function(e,t){g.call(l,function(){B?I.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)})},G=function(e,t,n,r){return function(o){e(t,n,o,r)}},X=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,W(e,t,!0))},Z=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw N("Promise can't be resolved itself");var o=H(n);o?y(function(){var r={done:!1};try{o.call(n,G(Z,e,r,t),G(X,e,r,t))}catch(n){X(e,r,n,t)}}):(t.value=n,t.state=1,W(e,t,!1))}catch(n){X(e,{done:!1},n,t)}}};q&&(A=function(e){d(this,A,a),f(e),r.call(this);var t=C(this);try{e(G(Z,this,t),G(X,this,t))}catch(e){X(this,t,e)}},(r=function(e){O(this,{type:a,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n(829)(A.prototype,{then:function(e,t){var n=j(this),r=R(v(this,A));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=B?I.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&W(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=C(e);this.promise=e,this.resolve=G(Z,e,t),this.reject=G(X,e,t)},w.f=R=function(e){return e===A||e===i?new o(e):F(e)},s||"function"!=typeof L||c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return b(A,L.apply(l,arguments))}})),c({global:!0,wrap:!0,forced:q},{Promise:A}),n(294)(A,a,!1,!0),n(1485)(a),i=n(116).Promise,c({target:a,stat:!0,forced:q},{reject:function(e){var t=R(this);return t.reject.call(void 0,e),t.promise}}),c({target:a,stat:!0,forced:s||q},{resolve:function(e){return b(s&&this===i?A:this,e)}}),c({target:a,stat:!0,forced:z},{all:function(e){var t=this,n=R(t),r=n.resolve,o=n.reject,i=E(function(){var n=[],i=0,a=1;h(e,function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,o=E(function(){h(e,function(e){t.resolve(e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},function(e,t,n){var r,o,i,a,s,l,c,u=n(128),f=n(421).f,d=n(330),p=n(827).set,h=n(648),m=u.MutationObserver||u.WebKitMutationObserver,v=u.process,g=u.Promise,y="process"==d(v),b=f(u,"queueMicrotask"),_=b&&b.value;_||(r=function(){var e,t;for(y&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:m&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(h)?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):g&&g.resolve?(c=g.resolve(void 0),a=function(){c.then(r)}):a=function(){p.call(u,r)}),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(128);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var r=n(649),o=n(293),i=n(212),a=n(119)("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(649),o=n(826),i=n(828);n(68)({target:"Promise",proto:!0,real:!0},{finally:function(e){var t=o(this,r("Promise")),n="function"==typeof e;return this.then(n?function(n){return i(t,e()).then(function(){return n})}:e,n?function(n){return i(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(422),o=n(646),i=n(511),a=n(514),s=n(235),l=function(e,t){var n=this;if(!(n instanceof l))return new l(e,t);o&&(n=o(new Error(t),r(n)));var i=[];return a(e,i.push,i),n.errors=i,void 0!==t&&s(n,"message",String(t)),n};l.prototype=i(Error.prototype,{constructor:{value:l,configurable:!0,writable:!0},name:{value:"AggregateError",configurable:!0,writable:!0}}),n(68)({global:!0},{AggregateError:l})},function(e,t,n){"use strict";var r=n(426),o=n(516),i=n(514);n(68)({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=r.f(t),a=n.resolve,s=n.reject,l=o(function(){var n=[],r=0,o=1;i(e,function(e){var i=r++,s=!1;n.push(void 0),o++,t.resolve(e).then(function(e){s||(s=!0,n[i]={status:"fulfilled",value:e},--o||a(n))},function(e){s||(s=!0,n[i]={status:"rejected",reason:e},--o||a(n))})}),--o||a(n)});return l.error&&s(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(426),o=n(516);n(68)({target:"Promise",stat:!0},{try:function(e){var t=r.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},function(e,t,n){"use strict";var r=n(649),o=n(426),i=n(516),a=n(514);n(68)({target:"Promise",stat:!0},{any:function(e){var t=this,n=o.f(t),s=n.resolve,l=n.reject,c=i(function(){var n=[],o=0,i=1,c=!1;a(e,function(e){var a=o++,u=!1;n.push(void 0),i++,t.resolve(e).then(function(e){u||c||(c=!0,s(e))},function(e){u||c||(u=!0,n[a]=e,--i||l(new(r("AggregateError"))(n,"No one promise resolved")))})}),--i||l(new(r("AggregateError"))(n,"No one promise resolved"))});return c.error&&l(c.value),n.promise}})},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,n){var r=n(428),o=/\s+/g,i=n(834),a=n(1493);function s(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=l),this._callback=e,this._options=t||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var n in t="tag"===e.type?Object.create(a):Object.create(i),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var n={type:"script"===e?r.Script:"style"===e?r.Style:r.Tag,name:e,attribs:t,children:[]},o=this._createDomElement(n);this._addDomElement(o),this._tagStack.push(o)},s.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===r.Text)n?t.data=(t.data+e).replace(o," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===r.Text)n?t.data=(t.data+e).replace(o," "):t.data+=e;else{n&&(e=e.replace(o," "));var i=this._createDomElement({data:e,type:r.Text});this._addDomElement(i)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)t.data+=e;else{var n={data:e,type:r.Comment},o=this._createDomElement(n);this._addDomElement(o),this._tagStack.push(o)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:r.Text}],type:r.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var n=this._createDomElement({name:e,data:t,type:r.Directive});this._addDomElement(n)},e.exports=s},function(e,t,n){var r=n(834),o=e.exports=Object.create(r),i={tagName:"name"};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(o,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){var r=n(427),o=r.DomHandler,i=r.DomUtils;function a(e,t){this.init(e,t)}function s(e,t){return i.getElementsByTagName(e,t,!0)}function l(e,t){return i.getElementsByTagName(e,t,!0,1)[0]}function c(e,t,n){return i.getText(i.getElementsByTagName(e,t,n,1)).trim()}function u(e,t,n,r,o){var i=c(n,r,o);i&&(e[t]=i)}n(238)(a,o),a.prototype.init=o;var f=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};a.prototype.onend=function(){var e,t,n={},r=l(f,this.dom);r&&("feed"===r.name?(t=r.children,n.type="atom",u(n,"id","id",t),u(n,"title","title",t),(e=l("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),u(n,"description","subtitle",t),(e=c("updated",t))&&(n.updated=new Date(e)),u(n,"author","email",t,!0),n.items=s("entry",t).map(function(e){var t,n={};return u(n,"id","id",e=e.children),u(n,"title","title",e),(t=l("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=c("summary",e)||c("content",e))&&(n.description=t),(t=c("updated",e))&&(n.pubDate=new Date(t)),n})):(t=l("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t),(e=c("lastBuildDate",t))&&(n.updated=new Date(e)),u(n,"author","managingEditor",t,!0),n.items=s("item",r.children).map(function(e){var t,n={};return u(n,"id","guid",e=e.children),u(n,"title","title",e),u(n,"link","link",e),u(n,"description","description",e),(t=c("pubDate",e))&&(n.pubDate=new Date(t)),n}))),this.dom=n,o.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},e.exports=a},function(e,t,n){e.exports=o;var r=n(835);function o(e){r.call(this,new i(this),e)}function i(e){this.scope=e}n(238)(o,r),o.prototype.readable=!0;var a=n(427).EVENTS;Object.keys(a).forEach(function(e){if(0===a[e])i.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===a[e])i.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==a[e])throw Error("wrong number of arguments!");i.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}})},function(e,t,n){e.exports=o;var r=n(377).EventEmitter;function o(){r.call(this)}n(238)(o,r),o.Readable=n(653),o.Writable=n(1505),o.Duplex=n(1506),o.Transform=n(1507),o.PassThrough=n(1508),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-c(e)},t.toByteArray=function(e){var t,n,r,a,s,l=e.length;a=c(e),s=new i(3*l/4-a),n=a>0?l-4:l;var u=0;for(t=0;t<n;t+=4)r=o[e.charCodeAt(t)]<<18|o[e.charCodeAt(t+1)]<<12|o[e.charCodeAt(t+2)]<<6|o[e.charCodeAt(t+3)],s[u++]=r>>16&255,s[u++]=r>>8&255,s[u++]=255&r;2===a?(r=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,s[u++]=255&r):1===a&&(r=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,s[u++]=r>>8&255,s[u++]=255&r);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i="",a=[],s=0,l=n-o;s<l;s+=16383)a.push(u(e,s,s+16383>l?l:s+16383));1===o?(t=e[n-1],i+=r[t>>2],i+=r[t<<4&63],i+="=="):2===o&&(t=(e[n-2]<<8)+e[n-1],i+=r[t>>10],i+=r[t>>4&63],i+=r[t<<2&63],i+="=");return a.push(i),a.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function u(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16)+(e[s+1]<<8)+e[s+2],a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(520).Buffer;e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,o=s,t.copy(n,o),s+=a.data.length,a=a.next;return i},e}()},function(e,t,n){var r=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(1502),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,l=1,c={},u=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return c[l]=o,r(l),l++},d.clearImmediate=p}function p(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(71),n(258))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(71))},function(e,t,n){"use strict";e.exports=i;var r=n(840),o=n(429);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=n(238),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(654)},function(e,t,n){e.exports=n(333)},function(e,t,n){e.exports=n(653).Transform},function(e,t,n){e.exports=n(653).PassThrough},function(e,t){},function(e,t,n){function r(e){this._cbs=e||{}}e.exports=r;var o=n(427).EVENTS;Object.keys(o).forEach(function(e){if(0===o[e])e="on"+e,r.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===o[e])e="on"+e,r.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else{if(2!==o[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this._cbs[e]&&this._cbs[e](t,n)}}})},function(e,t,n){var r=e.exports;[n(1512),n(1518),n(1519),n(1520),n(1521),n(1522)].forEach(function(e){Object.keys(e).forEach(function(t){r[t]=e[t].bind(r)})})},function(e,t,n){var r=n(428),o=n(1513),i=r.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map(function(e){return o(e,t)}).join(""):""},getOuterHTML:o,getText:function e(t){if(Array.isArray(t))return t.map(e).join("");if(i(t))return"br"===t.name?"\n":e(t.children);if(t.type===r.CDATA)return e(t.children);if(t.type===r.Text)return t.data;return""}}},function(e,t,n){var r=n(1514),o=n(1515),i={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",o=0;o<e.length;o++){var i=e[o];"root"===i.type?n+=l(i.children,t):r.isTag(i)?n+=c(i,t):i.type===r.Directive?n+=u(i):i.type===r.Comment?n+=p(i):i.type===r.CDATA?n+=d(i):n+=f(i,t)}return n};function c(e,t){"svg"===e.name&&(t={decodeEntities:t.decodeEntities,xmlMode:!0});var n="<"+e.name,r=function(e,t){if(e){var n,r="";for(var a in e)r&&(r+=" "),!(n=e[a])&&i[a]?r+=a:r+=a+'="'+(t.decodeEntities?o.encodeXML(n):n)+'"';return r}}(e.attribs,t);return r&&(n+=" "+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=l(e.children,t)),s[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function u(e){return"<"+e.data+">"}function f(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in a||(n=o.encodeXML(n)),n}function d(e){return"<![CDATA["+e.children[0].data+"]]>"}function p(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,n){var r=n(1516),o=n(1517);t.decode=function(e,t){return(!t||t<=0?o.XML:o.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?o.XML:o.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)},t.encodeXML=r.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=r.HTML,t.decodeXML=t.decodeXMLStrict=o.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=o.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=o.HTMLStrict,t.escape=r.escape},function(e,t,n){var r=s(n(652)),o=l(r);t.XML=p(r,o);var i=s(n(651)),a=l(i);function s(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function l(e){var t=[],n=[];return Object.keys(e).forEach(function(e){1===e.length?t.push("\\"+e):n.push(e)}),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.HTML=p(i,a);var c=/[^\0-\x7F]/g,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function f(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function d(e){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function p(e,t){function n(t){return e[t]}return function(e){return e.replace(t,n).replace(u,d).replace(c,f)}}var h=l(r);t.escape=function(e){return e.replace(h,f).replace(u,d).replace(c,f)}},function(e,t,n){var r=n(651),o=n(833),i=n(652),a=n(832),s=c(i),l=c(r);function c(e){var t=Object.keys(e).join("|"),n=d(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}var u=function(){for(var e=Object.keys(o).sort(f),t=Object.keys(r).sort(f),n=0,i=0;n<t.length;n++)e[i]===t[n]?(t[n]+=";?",i++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=d(r);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,l)}}();function f(e,t){return e<t?1:-1}function d(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?a(parseInt(t.substr(3),16)):a(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}e.exports={XML:s,HTML:u,HTMLStrict:l}},function(e,t){var n=t.getChildren=function(e){return e.children},r=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=r(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){var r=n(428).isTag;function o(e,t,n,r){for(var i,a=[],s=0,l=t.length;s<l&&!(e(t[s])&&(a.push(t[s]),--r<=0))&&(i=t[s].children,!(n&&i&&i.length>0&&(i=o(e,i,n,r),a=a.concat(i),(r-=i.length)<=0)));s++);return a}e.exports={filter:function(e,t,n,r){Array.isArray(t)||(t=[t]);"number"==typeof r&&isFinite(r)||(r=1/0);return o(e,t,!1!==n,r)},find:o,findOneChild:function(e,t){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){var o=null;for(var i=0,a=n.length;i<a&&!o;i++)r(n[i])&&(t(n[i])?o=n[i]:n[i].children.length>0&&(o=e(t,n[i].children)));return o},existsOne:function e(t,n){for(var o=0,i=n.length;o<i;o++)if(r(n[o])&&(t(n[o])||n[o].children.length>0&&e(t,n[o].children)))return!0;return!1},findAll:function(e,t){var n=[],o=[t];for(;o.length;){for(var i=o.pop(),a=0,s=i.length;a<s;a++)r(i[a])&&e(i[a])&&n.push(i[a]);for(;s-- >0;)i[s].children&&i[s].children.length>0&&o.push(i[s].children)}return n}}},function(e,t,n){var r=n(428),o=t.isTag=r.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!o(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(o(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var i={tag_name:function(e){return"function"==typeof e?function(t){return o(t)&&e(t.name)}:"*"===e?o:function(t){return o(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!o(t)&&e(t.data)}:function(t){return!o(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,r){var o=Object.keys(e).map(function(t){var n=e[t];return t in i?i[t](n):a(t,n)});return 0===o.length?[]:this.filter(o.reduce(s),t,n,r)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,r){return this.filter(i.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return this.filter(i.tag_type(e),t,n,r)}},function(e,t){t.removeSubsets=function(e){for(var t,n,r,o=e.length;--o>-1;){for(t=n=e[o],e[o]=null,r=!0;n;){if(e.indexOf(n)>-1){r=!1,e.splice(o,1);break}n=n.parent}r&&(e[o]=t)}return e};var n=1,r=2,o=4,i=8,a=16,s=t.compareDocumentPosition=function(e,t){var s,l,c,u,f,d,p=[],h=[];if(e===t)return 0;for(s=e;s;)p.unshift(s),s=s.parent;for(s=t;s;)h.unshift(s),s=s.parent;for(d=0;p[d]===h[d];)d++;return 0===d?n:(c=(l=p[d-1]).children,u=p[d],f=h[d],c.indexOf(u)>c.indexOf(f)?l===t?o|a:o:l===e?r|i:r)};t.uniqueSort=function(e){var t,n,i=e.length;for(e=e.slice();--i>-1;)t=e[i],(n=e.indexOf(t))>-1&&n<i&&e.splice(i,1);return e.sort(function(e,t){var n=s(e,t);return n&r?-1:n&o?1:0}),e}},function(e,t,n){function r(e){this._cbs=e||{},this.events=[]}e.exports=r;var o=n(427).EVENTS;Object.keys(o).forEach(function(e){if(0===o[e])e="on"+e,r.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===o[e])e="on"+e,r.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==o[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}}),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var n=this.events[e].length;1===n?this._cbs[this.events[e][0]]():2===n?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},function(e,t,n){(function(t){var n=1/0,r="[object Symbol]",o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source),a="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),c=Object.prototype.toString,u=l.Symbol,f=u?u.prototype:void 0,d=f?f.toString:void 0;function p(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&c.call(e)==r}(e))return d?d.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}e.exports=function(e){var t;return(e=null==(t=e)?"":p(t))&&i.test(e)?e.replace(o,"\\$&"):e}}).call(this,n(71))},function(e,t,n){(function(e,n){var r=200,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Boolean]",l="[object Date]",c="[object Function]",u="[object GeneratorFunction]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",C="[object Uint16Array]",O="[object Uint32Array]",j=/\w*$/,A=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,M={};M[a]=M["[object Array]"]=M[y]=M[b]=M[s]=M[l]=M[_]=M[w]=M[E]=M[x]=M[k]=M[f]=M[d]=M[p]=M[h]=M[m]=M[v]=M[g]=M[S]=M[T]=M[C]=M[O]=!0,M["[object Error]"]=M[c]=M["[object WeakMap]"]=!1;var I="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,P=I||L||Function("return this")(),D=t&&!t.nodeType&&t,R=D&&"object"==typeof n&&n&&!n.nodeType&&n,F=R&&R.exports===D;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function q(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Y,K=Array.prototype,V=Function.prototype,G=Object.prototype,X=P["__core-js_shared__"],Z=(Y=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Q=V.toString,J=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+Q.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=F?P.Buffer:void 0,re=P.Symbol,oe=P.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,se=G.propertyIsEnumerable,le=K.splice,ce=Object.getOwnPropertySymbols,ue=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Re(P,"DataView"),pe=Re(P,"Map"),he=Re(P,"Promise"),me=Re(P,"Set"),ve=Re(P,"WeakMap"),ge=Re(Object,"create"),ye=ze(de),be=ze(pe),_e=ze(he),we=ze(me),Ee=ze(ve),xe=re?re.prototype:void 0,ke=xe?xe.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Te(e)}function je(e,t){var n=We(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&$e(e)}(e)&&J.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==a)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!J.call(e,i)||o&&("length"==i||Ue(i,r))||n.push(i);return n}function Ae(e,t,n){var r=e[t];J.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ne(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Me(e,t,n,r,o,i,A){var N;if(r&&(N=i?r(e,o,i,A):r(e)),void 0!==N)return N;if(!Ve(e))return e;var I=We(e);if(I){if(N=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&J.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,N)}else{var L=Be(e),P=L==c||L==u;if(Ye(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==p||L==a||P&&!i){if(z(e))return i?e:{};if(N=function(e){return"function"!=typeof e.constructor||qe(e)?{}:(t=ie(e),Ve(t)?ae(t):{});var t}(P?{}:e),!t)return function(e,t){return Pe(e,Fe(e),t)}(e,function(e,t){return e&&Pe(t,Ge(t),e)}(N,e))}else{if(!M[L])return i?e:{};N=function(e,t,n,r){var o=e.constructor;switch(t){case y:return Le(e);case s:case l:return new o(+e);case b:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case _:case w:case E:case x:case k:case S:case T:case C:case O:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case f:return function(e,t,n){return q(t?n(H(e),!0):H(e),B,new e.constructor)}(e,r,n);case d:case v:return new o(e);case h:return(c=new(a=e).constructor(a.source,j.exec(a))).lastIndex=a.lastIndex,c;case m:return function(e,t,n){return q(t?n($(e),!0):$(e),U,new e.constructor)}(e,r,n);case g:return i=e,ke?Object(ke.call(i)):{}}var i;var a,c}(e,L,Me,t)}}A||(A=new Oe);var D=A.get(e);if(D)return D;if(A.set(e,N),!I)var R=n?function(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,Fe)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,function(o,i){R&&(o=e[i=o]),Ae(N,i,Me(o,t,n,r,i,e,A))}),N}function Ie(e){return!(!Ve(e)||(t=e,Z&&Z in t))&&(Ke(e)||z(e)?te:A).test(ze(e));var t}function Le(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=r?r(n[a],e[a],a,n,e):void 0;Ae(n,a,void 0===s?e[a]:s)}return n}function De(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Se.prototype.clear=function(){this.__data__=ge?ge(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===o?void 0:n}return J.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:J.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?o:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},Te.prototype.get=function(e){var t=this.__data__,n=Ne(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Ne(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Ne(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Se,map:new(pe||Te),string:new Se}},Ce.prototype.delete=function(e){return De(this,e).delete(e)},Ce.prototype.get=function(e){return De(this,e).get(e)},Ce.prototype.has=function(e){return De(this,e).has(e)},Ce.prototype.set=function(e,t){return De(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Te},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var o=n.__data__;if(!pe||o.length<r-1)return o.push([e,t]),this;n=this.__data__=new Ce(o)}return n.set(e,t),this};var Fe=ce?W(ce,Object):function(){return[]},Be=function(e){return ee.call(e)};function Ue(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function ze(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(de&&Be(new de(new ArrayBuffer(1)))!=b||pe&&Be(new pe)!=f||he&&"[object Promise]"!=Be(he.resolve())||me&&Be(new me)!=m||ve&&"[object WeakMap]"!=Be(new ve))&&(Be=function(e){var t=ee.call(e),n=t==p?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case ye:return b;case be:return f;case _e:return"[object Promise]";case we:return m;case Ee:return"[object WeakMap]"}return t});var We=Array.isArray;function $e(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!Ke(e)}var Ye=ue||function(){return!1};function Ke(e){var t=Ve(e)?ee.call(e):"";return t==c||t==u}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return $e(e)?je(e):function(e){if(!qe(e))return fe(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return Me(e,!0,!0)}}).call(this,n(71),n(256)(e))},function(e,t,n){(function(e,n){var r=200,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Boolean]",l="[object Date]",c="[object Function]",u="[object GeneratorFunction]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",C="[object Uint8ClampedArray]",O="[object Uint16Array]",j="[object Uint32Array]",A=/\w*$/,N=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,I={};I[w]=I[E]=I[x]=I[k]=I[S]=I[T]=I[C]=I[O]=I[j]=!0,I[a]=I["[object Array]"]=I[b]=I[s]=I[_]=I[l]=I["[object Error]"]=I[c]=I[f]=I[d]=I[p]=I[h]=I[m]=I[v]=I[y]=!1;var L={};L[a]=L["[object Array]"]=L[b]=L[_]=L[s]=L[l]=L[w]=L[E]=L[x]=L[k]=L[S]=L[f]=L[d]=L[p]=L[h]=L[m]=L[v]=L[g]=L[T]=L[C]=L[O]=L[j]=!0,L["[object Error]"]=L[c]=L[y]=!1;var P="object"==typeof e&&e&&e.Object===Object&&e,D="object"==typeof self&&self&&self.Object===Object&&self,R=P||D||Function("return this")(),F=t&&!t.nodeType&&t,B=F&&"object"==typeof n&&n&&!n.nodeType&&n,U=B&&B.exports===F,q=U&&P.process,z=function(){try{return q&&q.binding("util")}catch(e){}}(),H=z&&z.isTypedArray;function W(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function Y(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}function K(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function G(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function X(e,t){return function(n){return e(t(n))}}function Z(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Q,J=Array.prototype,ee=Function.prototype,te=Object.prototype,ne=R["__core-js_shared__"],re=(Q=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",oe=ee.toString,ie=te.hasOwnProperty,ae=oe.call(Object),se=te.toString,le=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=U?R.Buffer:void 0,ue=R.Symbol,fe=R.Uint8Array,de=X(Object.getPrototypeOf,Object),pe=Object.create,he=te.propertyIsEnumerable,me=J.splice,ve=Object.getOwnPropertySymbols,ge=ce?ce.isBuffer:void 0,ye=X(Object.keys,Object),be=Math.max,_e=Ge(R,"DataView"),we=Ge(R,"Map"),Ee=Ge(R,"Promise"),xe=Ge(R,"Set"),ke=Ge(R,"WeakMap"),Se=Ge(Object,"create"),Te=et(_e),Ce=et(we),Oe=et(Ee),je=et(xe),Ae=et(ke),Ne=ue?ue.prototype:void 0,Me=Ne?Ne.valueOf:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function De(e){this.__data__=new Le(e)}function Re(e,t){var n=rt(e)||nt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!ie.call(e,i)||o&&("length"==i||Qe(i,r))||n.push(i);return n}function Fe(e,t,n){(void 0===n||tt(e[t],n))&&("number"!=typeof t||void 0!==n||t in e)||(e[t]=n)}function Be(e,t,n){var r=e[t];ie.call(e,t)&&tt(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ue(e,t){for(var n=e.length;n--;)if(tt(e[n][0],t))return n;return-1}function qe(e,t,n,r,o,i,y){var N;if(r&&(N=i?r(e,o,i,y):r(e)),void 0!==N)return N;if(!ct(e))return e;var M=rt(e);if(M){if(N=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return Ye(e,N)}else{var I=Ze(e),P=I==c||I==u;if(at(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(I==p||I==a||P&&!i){if(V(e))return i?e:{};if(N=function(e){return"function"!=typeof e.constructor||Je(e)?{}:(t=de(e),ct(t)?pe(t):{});var t}(P?{}:e),!t)return function(e,t){return Ke(e,Xe(e),t)}(e,function(e,t){return e&&Ke(t,pt(t),e)}(N,e))}else{if(!L[I])return i?e:{};N=function(e,t,n,r){var o=e.constructor;switch(t){case b:return $e(e);case s:case l:return new o(+e);case _:return function(e,t){var n=t?$e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case E:case x:case k:case S:case T:case C:case O:case j:return function(e,t){var n=t?$e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case f:return function(e,t,n){return K(t?n(G(e),!0):G(e),W,new e.constructor)}(e,r,n);case d:case v:return new o(e);case h:return(c=new(a=e).constructor(a.source,A.exec(a))).lastIndex=a.lastIndex,c;case m:return function(e,t,n){return K(t?n(Z(e),!0):Z(e),$,new e.constructor)}(e,r,n);case g:return i=e,Me?Object(Me.call(i)):{}}var i;var a,c}(e,I,qe,t)}}y||(y=new De);var D=y.get(e);if(D)return D;if(y.set(e,N),!M)var R=n?function(e){return function(e,t,n){var r=t(e);return rt(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,pt,Xe)}(e):pt(e);return Y(R||e,function(o,i){R&&(o=e[i=o]),Be(N,i,qe(o,t,n,r,i,e,y))}),N}function ze(e){return!(!ct(e)||(t=e,re&&re in t))&&(st(e)||V(e)?le:N).test(et(e));var t}function He(e){if(!ct(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Je(e),n=[];for(var r in e)("constructor"!=r||!t&&ie.call(e,r))&&n.push(r);return n}function We(e,t,n,r,o){if(e!==t){if(!rt(t)&&!dt(t))var i=He(t);Y(i||t,function(a,s){if(i&&(a=t[s=a]),ct(a))o||(o=new De),function(e,t,n,r,o,i,a){var s=e[n],l=t[n],c=a.get(l);if(c)return void Fe(e,n,c);var u=i?i(s,l,n+"",e,t,a):void 0,f=void 0===u;f&&(u=l,rt(l)||dt(l)?rt(s)?u=s:it(s)?u=Ye(s):(f=!1,u=qe(l,!0)):function(e){if(!ut(e)||se.call(e)!=p||V(e))return!1;var t=de(e);if(null===t)return!0;var n=ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oe.call(n)==ae}(l)||nt(l)?nt(s)?u=function(e){return Ke(e,(t=e,ot(t)?Re(t,!0):He(t)));var t}(s):!ct(s)||r&&st(s)?(f=!1,u=qe(l,!0)):u=s:f=!1);f&&(a.set(l,u),o(u,l,r,i,a),a.delete(l));Fe(e,n,u)}(e,t,s,n,We,r,o);else{var l=r?r(e[s],a,s+"",e,t,o):void 0;void 0===l&&(l=a),Fe(e,s,l)}})}}function $e(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}function Ye(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Ke(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===s?e[a]:s)}return n}function Ve(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ge(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ze(n)?n:void 0}Ie.prototype.clear=function(){this.__data__=Se?Se(null):{}},Ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ie.prototype.get=function(e){var t=this.__data__;if(Se){var n=t[e];return n===o?void 0:n}return ie.call(t,e)?t[e]:void 0},Ie.prototype.has=function(e){var t=this.__data__;return Se?void 0!==t[e]:ie.call(t,e)},Ie.prototype.set=function(e,t){return this.__data__[e]=Se&&void 0===t?o:t,this},Le.prototype.clear=function(){this.__data__=[]},Le.prototype.delete=function(e){var t=this.__data__,n=Ue(t,e);return!(n<0||(n==t.length-1?t.pop():me.call(t,n,1),0))},Le.prototype.get=function(e){var t=this.__data__,n=Ue(t,e);return n<0?void 0:t[n][1]},Le.prototype.has=function(e){return Ue(this.__data__,e)>-1},Le.prototype.set=function(e,t){var n=this.__data__,r=Ue(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ie,map:new(we||Le),string:new Ie}},Pe.prototype.delete=function(e){return Ve(this,e).delete(e)},Pe.prototype.get=function(e){return Ve(this,e).get(e)},Pe.prototype.has=function(e){return Ve(this,e).has(e)},Pe.prototype.set=function(e,t){return Ve(this,e).set(e,t),this},De.prototype.clear=function(){this.__data__=new Le},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Le){var o=n.__data__;if(!we||o.length<r-1)return o.push([e,t]),this;n=this.__data__=new Pe(o)}return n.set(e,t),this};var Xe=ve?X(ve,Object):function(){return[]},Ze=function(e){return se.call(e)};function Qe(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function Je(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||te)}function et(e){if(null!=e){try{return oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tt(e,t){return e===t||e!=e&&t!=t}function nt(e){return it(e)&&ie.call(e,"callee")&&(!he.call(e,"callee")||se.call(e)==a)}(_e&&Ze(new _e(new ArrayBuffer(1)))!=_||we&&Ze(new we)!=f||Ee&&"[object Promise]"!=Ze(Ee.resolve())||xe&&Ze(new xe)!=m||ke&&Ze(new ke)!=y)&&(Ze=function(e){var t=se.call(e),n=t==p?e.constructor:void 0,r=n?et(n):void 0;if(r)switch(r){case Te:return _;case Ce:return f;case Oe:return"[object Promise]";case je:return m;case Ae:return y}return t});var rt=Array.isArray;function ot(e){return null!=e&&lt(e.length)&&!st(e)}function it(e){return ut(e)&&ot(e)}var at=ge||function(){return!1};function st(e){var t=ct(e)?se.call(e):"";return t==c||t==u}function lt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function ct(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}var ft,dt=H?(ft=H,function(e){return ft(e)}):function(e){return ut(e)&&lt(e.length)&&!!I[se.call(e)]};function pt(e){return ot(e)?Re(e):function(e){if(!Je(e))return ye(e);var t=[];for(var n in Object(e))ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var ht=function(e){return t=function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&function(e,t,n){if(!ct(n))return!1;var r=typeof t;return!!("number"==r?ot(n)&&Qe(t,n.length):"string"==r&&t in n)&&tt(n[t],e)}(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t},n=be(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,o=be(e.length-n,0),i=Array(o);++r<o;)i[r]=e[n+r];r=-1;for(var a=Array(n+1);++r<n;)a[r]=e[r];return a[n]=i,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(t,this,a)};var t,n}(function(e,t,n,r){We(e,t,n,r)});n.exports=ht}).call(this,n(71),n(256)(e))},function(e,t,n){"use strict";var r=n(1528),o=n(1529),i=/^\d+$/;t.parse=function(e){return(t=e.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){if(0===n)return t.url=e;var o=e.substring(0,e.length-1),a=e[e.length-1],s=parseInt(o,10),l=parseFloat(o);if("w"===a&&i.test(o))t.width=s;else if("h"===a&&i.test(o))t.height=s;else{if("x"!==a||r(l))throw new Error("Invalid srcset descriptor: "+e+".");t.density=l}}),t})).sort().filter(function(e,n){return JSON.stringify(e)!==JSON.stringify(t[n-1])});var t},t.stringify=function(e){return o(e.map(function(e){if(!e.url)throw new Error("URL is required.");var t=[e.url];return e.width&&t.push(e.width+"w"),e.height&&t.push(e.height+"h"),e.density&&t.push(e.density+"x"),t.join(" ")})).join(", ")}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";(function(t){var n;"Set"in t?"function"==typeof Set.prototype.forEach&&(n=!1,new Set([!0]).forEach(function(e){n=e}),!0===n)?e.exports=function(e){var t=[];return new Set(e).forEach(function(e){t.push(e)}),t}:e.exports=function(e){var t=new Set;return e.filter(function(e){return!t.has(e)&&(t.add(e),!0)})}:e.exports=function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}}).call(this,n(71))},function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(656)),o=p(n(852)),i=p(n(658)),a=p(n(660)),s=p(n(521)),l=p(n(1545)),c=p(n(659)),u=p(n(854)),f=p(n(522)),d=p(n(662));function p(e){return e&&e.__esModule?e:{default:e}}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}h.plugin=function(e,t){var n=function(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n},r=void 0;return Object.defineProperty(n,"postcss",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return h([n(r)]).process(e,t)},n},h.stringify=i.default,h.parse=c.default,h.vendor=l.default,h.list=u.default,h.comment=function(e){return new a.default(e)},h.atRule=function(e){return new s.default(e)},h.decl=function(e){return new r.default(e)},h.rule=function(e){return new f.default(e)},h.root=function(e){return new d.default(e)},t.default=h,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(843)),o=a(n(844)),i=a(n(845));function a(e){return e&&e.__esModule?e:{default:e}}var s={brackets:r.default.cyan,"at-word":r.default.cyan,call:r.default.cyan,comment:r.default.gray,string:r.default.green,class:r.default.yellow,hash:r.default.magenta,"(":r.default.cyan,")":r.default.cyan,"{":r.default.yellow,"}":r.default.yellow,"[":r.default.yellow,"]":r.default.yellow,":":r.default.yellow,";":r.default.yellow};t.default=function(e){for(var t=(0,o.default)(new i.default(e),{ignoreErrors:!0}),n="",r=function(){var e=t.nextToken(),r=s[function(e,t){var n=e[0],r=e[1];if("word"===n){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!t.endOfFile()){var o=t.nextToken();if(t.back(o),"brackets"===o[0]||"("===o[0])return"call"}return n}(e,t)];n+=r?e[1].split(/\r?\n/).map(function(e){return r(e)}).join("\n"):e[1]};!t.endOfFile();)r();return n},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=l(n(846)),a=l(n(269)),s=l(n(1540));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=n.map?n.map.prev:void 0,o=this.loadMap(n.from,r);o&&(this.text=o)}return e.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new i.default.SourceMapConsumer(this.text)),this.consumerCache},e.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json,";if(this.startWith(e,t))return decodeURIComponent(e.substr(t.length));if(/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),r?r.from&&r.from!==Uint8Array.from?r.from(n,"base64").toString():new r(n,"base64").toString():window.atob(n);var n,o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+n.toString())}if(t instanceof i.default.SourceMapConsumer)return i.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof i.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=a.default.join(a.default.dirname(e),r)),this.root=a.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":o(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();t.default=c,e.exports=t.default}).call(this,n(368).Buffer)},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(430);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,a,s;t=this._last,n=e,o=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,i>o||i==o&&s>=a||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(430),o=n(1537),i=n(849).ArraySet,a=n(848),s=n(1538).quickSort;function l(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new f(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),f=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);l&&(l=r.normalize(l)),a=a.map(String).map(r.normalize).map(function(e){return l&&r.isAbsolute(l)&&r.isAbsolute(e)?r.relative(l,e):e}),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return r.computeSourceURL(l,e,t)}),this.sourceRoot=l,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=f}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function f(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),i=r.getArg(n,"column");if(o<s.line||o===s.line&&i<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new l(r.getArg(e,"map"),t)}})}l.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:o=this._generatedMappings;break;case l.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var l=s.originalLine;s&&s.originalLine===l;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var c=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==c;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},t.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(e){return r.computeSourceURL(n.sourceRoot,e,t)});for(var l=e._mappings.toArray().slice(),f=n.__generatedMappings=[],d=n.__originalMappings=[],p=0,h=l.length;p<h;p++){var m=l[p],v=new u;v.generatedLine=m.generatedLine,v.generatedColumn=m.generatedColumn,m.source&&(v.source=a.indexOf(m.source),v.originalLine=m.originalLine,v.originalColumn=m.originalColumn,m.name&&(v.name=o.indexOf(m.name)),d.push(v)),f.push(v)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,l,c,f=1,d=0,p=0,h=0,m=0,v=0,g=e.length,y=0,b={},_={},w=[],E=[];y<g;)if(";"===e.charAt(y))f++,y++,d=0;else if(","===e.charAt(y))y++;else{for((n=new u).generatedLine=f,l=y;l<g&&!this._charIsMappingSeparator(e,l);l++);if(i=b[o=e.slice(y,l)])y+=o.length;else{for(i=[];y<l;)a.decode(e,y,_),c=_.value,y=_.rest,i.push(c);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");b[o]=i}n.generatedColumn=d+i[0],d=n.generatedColumn,i.length>1&&(n.source=m+i[1],m+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=h+i[3],h=n.originalColumn,i.length>4&&(n.name=v+i[4],v+=i[4])),E.push(n),"number"==typeof n.originalLine&&w.push(n)}s(E,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,s(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,i,a)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=r.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,f.prototype=Object.create(l.prototype),f.prototype.constructor=l,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),f.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},f.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},f.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},f.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},f.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var l=i[a],c=o.consumer._sources.at(l.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=o.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var f={source:c,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(f),"number"==typeof f.originalLine&&this.__originalMappings.push(f)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=f},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,o){if(0===n.length)return-1;var i=function e(n,r,o,i,a,s){var l=Math.floor((r-n)/2)+n,c=a(o,i[l],!0);return 0===c?l:c>0?r-l>1?e(l,r,o,i,a,s):s==t.LEAST_UPPER_BOUND?r<i.length?r:-1:l:l-n>1?e(n,l,o,i,a,s):s==t.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,i){if(o<i){var a=o-1;n(e,(u=o,f=i,Math.round(u+Math.random()*(f-u))),i);for(var s=e[i],l=o;l<i;l++)t(e[l],s)<=0&&n(e,a+=1,l);n(e,a+1,l);var c=a+1;r(e,t,o,c-1),r(e,t,c+1,i)}var u,f}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(847).SourceMapGenerator,o=n(430),i=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,a=e.split(i),l=0,c=function(){return e()+(e()||"");function e(){return l<a.length?a[l++]:void 0}},u=1,f=0,d=null;return t.eachMapping(function(e){if(null!==d){if(!(u<e.generatedLine)){var t=(n=a[l]||"").substr(0,e.generatedColumn-f);return a[l]=n.substr(e.generatedColumn-f),f=e.generatedColumn,p(d,t),void(d=e)}p(d,c()),u++,f=0}for(;u<e.generatedLine;)r.add(c()),u++;if(f<e.generatedColumn){var n=a[l]||"";r.add(n.substr(0,e.generatedColumn)),a[l]=n.substr(e.generatedColumn),f=e.generatedColumn}d=e},this),l<a.length&&(d&&p(d,c()),r.add(a.splice(l).join(""))),t.sources.forEach(function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))}),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,i,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),o=!1,i=null,a=null,s=null,l=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&a===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,a=r.line,s=r.column,l=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=s},function(e,t){},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var o=a(n(846)),i=a(n(269));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}})),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}})},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var a=r,s=this.relative(a.file),l=a.root||i.default.dirname(a.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new o.default.SourceMapConsumer(a.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map(function(){return null})):c=a.consumer(),this.map.applySourceMap(c,s,this.relative(l))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},e.prototype.toBase64=function(e){return r?r.from&&r.from!==Uint8Array.from?r.from(e).toString("base64"):new r(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},e.prototype.addAnnotation=function(){var e=void 0;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),"\\"===i.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t=1,n=1,r=void 0,i=void 0;this.stringify(this.root,function(o,a,s){e.css+=o,a&&"end"!==s&&(a.source&&a.source.start?e.map.addMapping({source:e.sourcePath(a),generated:{line:t,column:n-1},original:{line:a.source.start.line,column:a.source.start.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}})),(r=o.match(/\n/g))?(t+=r.length,i=o.lastIndexOf("\n"),n=o.length-i):n+=o.length,a&&"start"!==s&&(a.source&&a.source.end?e.map.addMapping({source:e.sourcePath(a),generated:{line:t,column:n-1},original:{line:a.source.end.line,column:a.source.end.column}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}}))})},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},e}();t.default=s,e.exports=t.default}).call(this,n(368).Buffer)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1543),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}return e.prototype.toString=function(){return this.css},e.prototype.warn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new a.default(e,t);return this.messages.push(n),n},e.prototype.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},o(e,[{key:"content",get:function(){return this.css}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="warning",this.text=t,n.node&&n.node.source){var r=n.node.positionBy(n);this.line=r.line,this.column=r.column}for(var o in n)this[o]=n[o]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(656)),o=c(n(844)),i=c(n(660)),a=c(n(521)),s=c(n(662)),l=c(n(522));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.root=new s.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{line:1,column:1}}}return e.prototype.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},e.prototype.parse=function(){for(var e=void 0;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},e.prototype.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},e.prototype.emptyRule=function(e){var t=new l.default;this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t},e.prototype.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],a=[],s=e;s;){if(n=s[0],a.push(s),"("===n||"["===n)o||(o=s),i.push("("===n?")":"]");else if(0===i.length){if(";"===n){if(r)return void this.decl(a);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;a.length&&("space"===(s=a[a.length-1][0])||"comment"===s);)this.tokenizer.back(a.pop());this.decl(a)}else this.unknownWord(a)},e.prototype.rule=function(e){e.pop();var t=new l.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new r.default;this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;t.prop+=e.shift()[1]}t.raws.between="";for(var i=void 0;e.length;){if(":"===(i=e.shift())[0]){t.raws.between+=i[1];break}t.raws.between+=i[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var a=e.length-1;a>0;a--){if("!important"===(i=e[a])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,a);" !important"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if("important"===i[1].toLowerCase()){for(var l=e.slice(0),c="",u=a;u>0;u--){var f=l[u][0];if(0===c.trim().indexOf("!")&&"space"!==f)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(t.important=!0,t.raws.important=c,e=l)}if("space"!==i[0]&&"comment"!==i[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new a.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);for(var n=void 0,r=void 0,o=!1,i=!1,s=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){i=!0;break}if("}"===e[0]){if(s.length>0){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(t.source.end={line:n[4],column:n[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,"params",s),o&&(e=s[s.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),i&&(t.nodes=[],this.current=t)},e.prototype.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},e.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},e.prototype.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},e.prototype.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},e.prototype.raw=function(e,t,n){for(var r=void 0,o=void 0,i=n.length,a="",s=!0,l=0;l<i;l+=1)"comment"===(o=(r=n[l])[0])||"space"===o&&l===i-1?s=!1:a+=r[1];if(!s){var c=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={value:a,raw:c}}e[t]=a},e.prototype.spacesAndCommentsFromEnd=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},e.prototype.spacesAndCommentsFromStart=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},e.prototype.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},e.prototype.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},e.prototype.colon=function(e){for(var t=0,n=void 0,r=void 0,o=void 0,i=0;i<e.length;i++){if("("===(r=(n=e[i])[0]))t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(o){if("word"===o[0]&&"progid"===o[1])continue;return i}this.doubleColon(n)}o=n}return!1},e.prototype.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",e[2],e[3])},e.prototype.unknownWord=function(e){throw this.input.error("Unknown word",e[0][2],e[0][3])},e.prototype.unexpectedClose=function(e){throw this.input.error("Unexpected }",e[2],e[3])},e.prototype.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},e.prototype.doubleColon=function(e){throw this.input.error("Double colon",e[2],e[3])},e.prototype.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",t[2],t[3])},e.prototype.precheckMissedSemicolon=function(e){},e.prototype.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n=0,r=void 0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon",r[2],r[3])}},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;t.default={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}},e.exports=t.default},function(e,t,n){e.exports=n(1547)},function(e,t,n){n(1548);var r=n(116).Object,o=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(o.sham=!0)},function(e,t,n){var r=n(212);n(68)({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(293).f})},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(1551),o=n(1552),i=n(168),a=n(858),s=n(95),l=n(664);e.exports=function e(t,n,c,u){if(a(t,n))return!0;if(l(t)!==l(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(l(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===o(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(r(t.entries()),r(n.entries()),c,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=s(t);if(f.length!==s(n).length)return!1;for(var d=c.length-1;d>=0;){if(c[d]===t)return u[d]===n;d-=1}for(c.push(t),u.push(n),d=f.length-1;d>=0;){var p=f[d];if(!i(p,n)||!e(n[p],t[p],c,u))return!1;d-=1}return c.pop(),u.pop(),!0}},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(168);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n<o;){var i=arguments[n];if(null!=i)for(var a in i)r(a,i)&&(t[a]=i[a]);n+=1}return t}},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){e.exports=n(1557)},function(e,t,n){var r=n(1558),o=Array.prototype;e.exports=function(e){var t=e.concat;return e===o||e instanceof Array&&t===o.concat?r:t}},function(e,t,n){n(861),e.exports=n(136)("Array").concat},function(e,t,n){e.exports=n(1560)},function(e,t,n){var r=n(1561),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||e instanceof Function&&t===o.bind?r:t}},function(e,t,n){n(1562),e.exports=n(136)("Function").bind},function(e,t,n){n(68)({target:"Function",proto:!0},{bind:n(1563)})},function(e,t,n){"use strict";var r=n(364),o=n(159),i=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){e.exports=n(1565)},function(e,t,n){var r=n(116),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){e.exports=n(1567)},function(e,t,n){var r=n(1568),o=Array.prototype;e.exports=function(e){var t=e.reduce;return e===o||e instanceof Array&&t===o.reduce?r:t}},function(e,t,n){n(1569),e.exports=n(136)("Array").reduce},function(e,t,n){"use strict";var r=n(1570),o=n(528)("reduce");n(68)({target:"Array",proto:!0,forced:o},{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var r=n(364),o=n(236),i=n(508),a=n(195);e.exports=function(e,t,n,s,l){r(t);var c=o(e),u=i(c),f=a(c.length),d=l?f-1:0,p=l?-1:1;if(n<2)for(;;){if(d in u){s=u[d],d+=p;break}if(d+=p,l?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:f>d;d+=p)d in u&&(s=t(s,u[d],d,c));return s}},function(e,t,n){e.exports=n(1572)},function(e,t,n){var r=n(1573),o=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===o||e instanceof Array&&t===o.indexOf?r:t}},function(e,t,n){n(1574),e.exports=n(136)("Array").indexOf},function(e,t,n){"use strict";var r=n(644)(!1),o=[].indexOf,i=!!o&&1/[1].indexOf(1,-0)<0,a=n(528)("indexOf");n(68)({target:"Array",proto:!0,forced:i||a},{indexOf:function(e){return i?o.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){e.exports=n(1576)},function(e,t,n){var r=n(1577),o=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===o||e instanceof String&&t===o.trim?r:t}},function(e,t,n){n(1578),e.exports=n(136)("String").trim},function(e,t,n){"use strict";var r=n(669),o=n(1579)("trim");n(68)({target:"String",proto:!0,forced:o},{trim:function(){return r(this,3)}})},function(e,t,n){var r=n(152),o=n(529);e.exports=function(e){return r(function(){return!!o[e]()||"​᠎"!="​᠎"[e]()||o[e].name!==e})}},function(e,t,n){var r=n(334),o=n(526),i=n(1581),a=n(1582),s=n(95),l=n(105);e.exports=function e(t,n){var c=function(o){var i=n.concat([t]);return r(o,i)?"<Circular>":e(o,i)},u=function(e,t){return o(function(t){return i(t)+": "+c(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+o(c,t).join(", ")+"))";case"[object Array]":return"["+o(c,t).concat(u(t,l(function(e){return/^\d+$/.test(e)},s(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+c(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?c(NaN):i(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+c(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+c(t.valueOf())+")":i(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var f=t.toString();if("[object Object]"!==f)return f}return"{"+u(t,s(t)).join(", ")+"}"}}},function(e,t){e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(e,t){var n;e.exports=(n=function(e){return(e<10?"0":"")+e},"function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"})},function(e,t,n){e.exports=n(1584)},function(e,t,n){n(1585),e.exports=n(116).Object.assign},function(e,t,n){var r=n(863);n(68)({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){e.exports=n(1587)},function(e,t,n){n(1588),e.exports=n(116).setTimeout},function(e,t,n){var r=n(128),o=n(648),i=[].slice,a=/MSIE .\./.test(o),s=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};n(68)({global:!0,bind:!0,forced:a},{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){e.exports=n(1590)},function(e,t,n){n(1591),e.exports=n(116).Object.keys},function(e,t,n){var r=n(236),o=n(423),i=n(152)(function(){o(1)});n(68)({target:"Object",stat:!0,forced:i},{keys:function(e){return o(r(e))}})},function(e,t,n){var r=n(1593),o=n(865),i=n(1594),a="[object Object]";var s=Object.prototype,l=s.hasOwnProperty,c=s.toString;e.exports=function(e){var t,n;return!(!function(e){return!!e&&"object"==typeof e}(e)||c.call(e)!=a||o(e)||!(l.call(e,"constructor")||"function"!=typeof(t=e.constructor)||t instanceof t))&&(r(e,function(e,t){n=t},i),void 0===n||l.call(e,n))}},function(e,t){var n,r=function(e,t,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[n?s:++o];if(!1===t(i[l],l,i))break}return e};e.exports=r},function(e,t,n){var r=n(865),o=n(1595),i=/^\d+$/,a=Object.prototype.hasOwnProperty,s=9007199254740991;function l(e,t){return e="number"==typeof e||i.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e<t}e.exports=function(e){if(null==e)return[];var t,n;n=typeof(t=e),(!t||"object"!=n&&"function"!=n)&&(e=Object(e));var i=e.length;i=i&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}(i)&&(o(e)||r(e))&&i||0;for(var c=e.constructor,u=-1,f="function"==typeof c&&c.prototype===e,d=Array(i),p=i>0;++u<i;)d[u]=u+"";for(var h in e)p&&l(h,i)||"constructor"==h&&(f||!a.call(e,h))||d.push(h);return d}},function(e,t){var n="[object Function]",r=/^\[object .+?Constructor\]$/;function o(e){return!!e&&"object"==typeof e}var i,a,s,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,f=l.toString,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p=(i=Array,a="isArray",function(e){return null!=e&&(function(e){return function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)&&f.call(e)==n}(e)?d.test(c.call(e)):o(e)&&r.test(e))}(s=null==i?void 0:i[a])?s:void 0),h=9007199254740991;var m=p||function(e){return o(e)&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}(e.length)&&"[object Array]"==f.call(e)};e.exports=m},function(e,t,n){e.exports=n(1597)},function(e,t,n){var r=n(1598),o=Array.prototype;e.exports=function(e){var t=e.map;return e===o||e instanceof Array&&t===o.map?r:t}},function(e,t,n){n(1599),e.exports=n(136)("Array").map},function(e,t,n){"use strict";var r=n(439)(1),o=n(434)("map");n(68)({target:"Array",proto:!0,forced:!o},{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){e.exports=n(1601)},function(e,t,n){n(870),e.exports=n(116).Object.getOwnPropertySymbols},function(e,t,n){var r=n(423),o=n(672),i=n(507);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(257),o=n(871).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){e.exports=n(1605)},function(e,t,n){n(365),n(1606),e.exports=n(116).Array.from},function(e,t,n){var r=!n(825)(function(e){Array.from(e)});n(68)({target:"Array",stat:!0,forced:r},{from:n(872)})},function(e,t,n){n(332),n(365),e.exports=n(873)},function(e,t,n){e.exports=n(1609)},function(e,t,n){n(1610),e.exports=n(116).Array.isArray},function(e,t,n){n(68)({target:"Array",stat:!0},{isArray:n(433)})},function(e,t,n){var r=n(21),o=n(299),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=o(this.xf["@@transducer/step"](e,!1))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(334);e.exports=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function t(e,t,n){var o,i=typeof e;switch(i){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(o=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===o):n._nativeSet.has(e):i in n._items?e in n._items[i]||(t&&(n._items[i][e]=!0),!1):(t&&(n._items[i]={},n._items[i][e]=!0),!1);case"boolean":if(i in n._items){var a=e?1:0;return!!n._items[i][a]||(t&&(n._items[i][a]=!0),!1)}return t&&(n._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(o=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===o):n._nativeSet.has(e):i in n._items?!!r(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1);case"undefined":return!!n._items[i]||(t&&(n._items[i]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in n._items?!!r(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1)}}return e.prototype.add=function(e){return!t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}()},function(e,t,n){var r=n(131);e.exports=r(function(e,t){return[t,e]})},function(e,t,n){var r=n(131);e.exports=r(function(e,t){return{type:e,payload:t,error:!0}})},function(e,t,n){var r=n(131);e.exports=r(function(e,t){return function(n,r){void 0===n&&(n=e);var o=r.type,i=r.payload,a=r.error;return t[o]?t[o](n,i,a):n}})},function(e,t){e.exports=function(e,t,n){return n&&console.error(t),e}},function(e,t){e.exports=function(e){return function(t,n,r){return r?t:e(t,n)}}},function(e,t,n){var r=n(1619),o=n(722);e.exports=function(e){return o(e).map(r({type:"SIDE_EFFECT"}))}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(120);e.exports=r(n(676))},function(e,t,n){e.exports=n(1621)},function(e,t,n){n(877),n(365),n(332),e.exports=n(675).f("iterator")},function(e,t,n){e.exports=n(1623),n(1638),n(1639),n(1640)},function(e,t,n){n(861),n(814),n(870),n(1624),n(1625),n(1626),n(1627),n(877),n(1628),n(1629),n(1630),n(1631),n(1632),n(1633),n(1634),n(1635),n(1636),n(1637),e.exports=n(116).Symbol},function(e,t,n){n(153)("asyncIterator")},function(e,t){},function(e,t,n){n(153)("hasInstance")},function(e,t,n){n(153)("isConcatSpreadable")},function(e,t,n){n(153)("match")},function(e,t,n){n(153)("replace")},function(e,t,n){n(153)("search")},function(e,t,n){n(153)("species")},function(e,t,n){n(153)("split")},function(e,t,n){n(153)("toPrimitive")},function(e,t,n){n(153)("toStringTag")},function(e,t,n){n(153)("unscopables")},function(e,t,n){n(294)(Math,"Math",!0)},function(e,t,n){n(294)(n(128).JSON,"JSON",!0)},function(e,t,n){n(153)("dispose")},function(e,t,n){n(153)("observable")},function(e,t,n){n(153)("patternMatch")},function(e,t,n){e.exports=n(1642)},function(e,t,n){n(1643),e.exports=n(116).Object.getPrototypeOf},function(e,t,n){var r=n(236),o=n(422),i=n(819),a=n(152)(function(){o(1)});n(68)({target:"Object",stat:!0,forced:a,sham:!i},{getPrototypeOf:function(e){return o(r(e))}})},function(e,t,n){e.exports=n(1645)},function(e,t,n){n(1646),e.exports=n(116).Object.setPrototypeOf},function(e,t,n){n(68)({target:"Object",stat:!0},{setPrototypeOf:n(646)})},function(e,t,n){e.exports=n(1648)},function(e,t,n){n(1649);var r=n(116).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(68)({target:"Object",stat:!0,sham:!n(212)},{create:n(511)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(442));var r=s(n(1653)),o=s(n(1655)),i=s(n(1)),a=s(n(878));n(880);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=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}).apply(this,arguments)}var c=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},u=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,r),t.props.onEnter&&t.props.onEnter(e)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e)},t.onEntered=function(e,n){var r=t.getClassNames("enter").doneClassName;t.removeClasses(e,n?"appear":"enter"),c(e,r),t.props.onEntered&&t.props.onEntered(e)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"!=typeof n?n[e]:n+"-"+e;return{className:r,activeClassName:"string"!=typeof n?n[e+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[e+"Done"]:r+"-done"}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&u(e,r),o&&u(e,o),i&&u(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},o.render=function(){var e=l({},this.props);return delete e.classNames,i.default.createElement(a.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.propTypes={};var d=f;t.default=d,e.exports=t.default},function(e,t,n){"use strict";var r=n(1652);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}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,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r,o=n(1654),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(442));var r=a(n(1)),o=n(96),i=a(n(881));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var i,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(i=s.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],l=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=o(e.children),l=i(t,s);return Object.keys(l).forEach(function(o){var i=l[o];if((0,r.isValidElement)(i)){var c=o in t,u=o in s,f=t[o],d=(0,r.isValidElement)(f)&&!f.props.in;!u||c&&!d?u||!c||d?u&&c&&(0,r.isValidElement)(f)&&(l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):l[o]=(0,r.cloneElement)(i,{in:!1}):l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}}),l};var r=n(1);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){e.exports=n(1659)()},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(1660);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(1),o=s(r),i=s(n(1662)),a=s(n(1663));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(s){if("function"!=typeof s)throw new Error("Expected WrappedComponent to be a React component.");var l=[],c=void 0;function u(){c=e(l.map(function(e){return e.props})),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.peek=function(){return c},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,l=[],e},t.prototype.shouldComponentUpdate=function(e){return!(0,a.default)(e,this.props)},t.prototype.componentWillMount=function(){l.push(this),u()},t.prototype.componentDidUpdate=function(){u()},t.prototype.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),u()},t.prototype.render=function(){return o.default.createElement(s,this.props)},t}(r.Component);return f.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(s)+")",f.canUseDOM=i.default.canUseDOM,f}}},function(e,t,n){var r;
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],f=t[c];if(!1===(o=n?n.call(r,u,f,c):void 0)||void 0===o&&u!==f)return!1}return!0}},function(e,t,n){"use strict";var r=n(1665);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}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,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(1670)},function(e,t,n){var r=n(1671),o=n(1673),i=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===i||e instanceof Array&&t===i.includes?r:"string"==typeof e||e===a||e instanceof String&&t===a.includes?o:t}},function(e,t,n){n(1672),e.exports=n(136)("Array").includes},function(e,t,n){"use strict";var r=n(644)(!0);n(68)({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(425)("includes")},function(e,t,n){n(1674),e.exports=n(136)("String").includes},function(e,t,n){"use strict";var r=n(640),o=n(643)("includes");n(68)({target:"String",proto:!0,forced:!o},{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";
/*!
 * cookie
 * Copyright(c) 2012-2014 Roman Shtylman
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(i),l=o.decode||r,c=0;c<a.length;c++){var u=a[c],f=u.indexOf("=");if(!(f<0)){var d=u.substr(0,f).trim(),p=u.substr(++f,u.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[d]&&(n[d]=s(p,l))}}return n},t.serialize=function(e,t,n){var r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!a.test(s))throw new TypeError("argument val is invalid");var l=e+"="+s;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");l+="; Max-Age="+Math.floor(c)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");l+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(l+="; HttpOnly");r.secure&&(l+="; Secure");if(r.sameSite){var u="string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=decodeURIComponent,o=encodeURIComponent,i=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){var r=n(1677);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,s=0,l="";i=t.charAt(s++);~i&&(o=a%4?64*o+i:i,a++%4)?l+=String.fromCharCode(255&o>>(-2*a&6)):0)i=n.indexOf(i);return l}},function(e,t,n){e.exports=n(1679)},function(e,t,n){var r=n(1680),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||e instanceof Array&&t===o.filter?r:t}},function(e,t,n){n(1681),e.exports=n(136)("Array").filter},function(e,t,n){"use strict";var r=n(439)(2),o=n(434)("filter");n(68)({target:"Array",proto:!0,forced:!o},{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(1685);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(21),o=n(299),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=o(this.xf["@@transducer/step"](e,t))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(299),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=o(this.xf["@@transducer/step"](e,this.idx))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){e.exports=n(1689)},function(e,t,n){var r=n(1690),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?r:t}},function(e,t,n){n(1691),e.exports=n(136)("Array").slice},function(e,t,n){"use strict";var r=n(159),o=n(433),i=n(512),a=n(195),s=n(257),l=n(527),c=n(119)("species"),u=[].slice,f=Math.max,d=n(434)("slice");n(68)({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,d,p,h=s(this),m=a(h.length),v=i(e,m),g=i(void 0===t?m:t,m);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[c])&&(n=void 0):n=void 0,n===Array||void 0===n))return u.call(h,v,g);for(d=new(void 0===n?Array:n)(f(g-v,0)),p=0;v<g;v++,p++)v in h&&l(d,p,h[v]);return d.length=p,d}})},function(e,t,n){},function(e,t,n){e.exports=n(1694)},function(e,t,n){n(332);var r=n(1695),o=n(367),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.keys;return e===i||e instanceof Array&&t===i.keys||a.hasOwnProperty(o(e))?r:t}},function(e,t,n){e.exports=n(1696)},function(e,t,n){n(513),e.exports=n(136)("Array").keys},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e={KEY_CANCEL:3,KEY_HELP:6,KEY_BACK_SPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_RETURN:13,KEY_ENTER:14,KEY_SHIFT:16,KEY_CONTROL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_PRINTSCREEN:44,KEY_INSERT:45,KEY_DELETE:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_SEMICOLON:59,KEY_EQUALS:61,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,KEY_CONTEXT_MENU:93,KEY_NUMPAD0:96,KEY_NUMPAD1:97,KEY_NUMPAD2:98,KEY_NUMPAD3:99,KEY_NUMPAD4:100,KEY_NUMPAD5:101,KEY_NUMPAD6:102,KEY_NUMPAD7:103,KEY_NUMPAD8:104,KEY_NUMPAD9:105,KEY_MULTIPLY:106,KEY_ADD:107,KEY_SEPARATOR:108,KEY_SUBTRACT:109,KEY_DECIMAL:110,KEY_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_F16:127,KEY_F17:128,KEY_F18:129,KEY_F19:130,KEY_F20:131,KEY_F21:132,KEY_F22:133,KEY_F23:134,KEY_F24:135,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145,KEY_COMMA:188,KEY_PERIOD:190,KEY_SLASH:191,KEY_BACK_QUOTE:192,KEY_OPEN_BRACKET:219,KEY_BACK_SLASH:220,KEY_CLOSE_BRACKET:221,KEY_QUOTE:222,KEY_META:224};function t(){}return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}()},function(e,t,n){e.exports=n(1699)},function(e,t,n){n(332);var r=n(1700),o=n(367),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===i||e instanceof Array&&t===i.forEach||a.hasOwnProperty(o(e))?r:t}},function(e,t,n){e.exports=n(1701)},function(e,t,n){n(1702),e.exports=n(136)("Array").forEach},function(e,t,n){"use strict";var r=n(1703);n(68)({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";var r=[].forEach,o=n(439)(0),i=n(528)("forEach");e.exports=i?function(e){return o(this,e,arguments[1])}:r},function(e,t,n){e.exports=n(1705)},function(e,t,n){n(1706);var r=n(116).Object,o=e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},function(e,t,n){var r=n(257),o=n(421).f,i=n(212),a=n(152)(function(){o(1)}),s=!i||a;n(68)({target:"Object",stat:!0,forced:s,sham:!i},{getOwnPropertyDescriptor:function(e,t){return o(r(e),t)}})},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),o=i(n(677));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return n=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.render=function(){return r.default.createElement("a",o.props,o.props.children)},a(o,n)}return function(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,r.default.Component),t}();t.default=(0,o.default)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(679),o=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&o.forEach(function(t){return(0,r.addPassiveEventListener)(document,t,e)})}}},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(1712);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(1)),i=a(n(677));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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,o.default.Component),r(t,[{key:"render",value:function(){return o.default.createElement("input",this.props,this.props.children)}}]),t}();t.default=(0,i.default)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(1)),a=l(n(886)),s=l(n(534));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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,i.default.Component),o(t,[{key:"render",value:function(){var e=this,t=r({},this.props);return t.parentBindings&&delete t.parentBindings,i.default.createElement("div",r({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}();c.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(c)},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(1),c=(n(96),n(443),n(678)),u=n(533),f=n(534),d=n(885),p={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool},h={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||u,f=function(t){function u(e){i(this,u);var t=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return h.call(t),t.state={active:!1},t}return s(u,l.Component),o(u,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();c.isMounted(e)||c.mount(e),this.props.hashSpy&&(d.isMounted()||d.mount(n),d.mapContainer(this.props.to,e)),this.props.spy&&c.addStateHandler(this.stateHandler),c.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){c.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var o in p)n.hasOwnProperty(o)&&delete n[o];return n.className=t,n.onClick=this.handleClick,l.createElement(e,n)}}]),u}(),h=function(){var e=this;this.scrollTo=function(t,o){n.scrollTo(t,r({},e.state,o))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!d.isMounted()||d.isInitialized()){var o=e.props.to,i=null,a=0,s=0,l=0;if(r.getBoundingClientRect)l=r.getBoundingClientRect().top;if(!i||e.props.isDynamic){if(!(i=n.get(o)))return;var u=i.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var f=t-e.props.offset,p=f>=Math.floor(a)&&f<Math.floor(s),h=f<Math.floor(a)||f>=Math.floor(s),m=n.getActiveLink();return h?(o===m&&n.setActiveLink(void 0),e.props.hashSpy&&d.getHash()===o&&d.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),c.updateStates()):p&&m!==o?(n.setActiveLink(o),e.props.hashSpy&&d.changeHash(o),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(o)),c.updateStates()):void 0}}};return f.propTypes=p,f.defaultProps={offset:0},f},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){i(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return s(n,l.Component),o(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;u.unregister(this.props.name)}},{key:"registerElems",value:function(e){u.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:f.string,id:f.string},t}};e.exports=h},function(e,t,n){},function(e,t,n){var r=n(536),o=n(535);e.exports=function e(t,n,i){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!o(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,o(u)||(l-=1),c+=1}return l<=0?i.apply(this,a):r(l,e(t,a,i))}}},function(e,t,n){var r=n(182),o=n(537),i=n(895),a=r(function(e,t){return o(i(e),t)});e.exports=a},function(e,t,n){var r=n(891),o=n(1720);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),a=i.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,i);s+=1}if(o(a))return t.apply(null,i)(a)}return n.apply(this,arguments)}}},function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},function(e,t,n){var r=n(214),o=n(891),i=n(1722),a=r(function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=a},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(536),o=n(182)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=o},function(e,t,n){var r=n(182),o=n(1725),i=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),a=r(function(e,t){return new i(e,t)});e.exports=a},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){var r=n(894),o=Object.prototype.toString;e.exports=function(){return"[object Arguments]"===o.call(arguments)?function(e){return"[object Arguments]"===o.call(e)}:function(e){return r("callee",e)}}},function(e,t,n){var r=n(182)(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n});e.exports=r},function(e,t,n){var r=n(214)(n(1729));e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(182)(function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n});e.exports=r},function(e,t,n){var r=n(182)(function(e,t){return e in t});e.exports=r},function(e,t,n){var r=n(681)(function(e,t,n){return e(n)?t(n):n});e.exports=r},function(e,t,n){"use strict";var r=n(200),o=n(898),i=n(1735),a=n(683);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(a);l.Axios=i,l.create=function(e){return s(r.merge(a,e))},l.Cancel=n(902),l.CancelToken=n(1749),l.isCancel=n(901),l.all=function(e){return Promise.all(e)},l.spread=n(1750),e.exports=l,e.exports.default=l},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(683),o=n(200),i=n(1744),a=n(1745),s=n(1747),l=n(1748);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url));var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=c},function(e,t,n){"use strict";var r=n(200);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(900);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(200);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)&&(t+="[]"),r.isArray(e)||(e=[e]),r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(200);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t,n){"use strict";var r=n(200);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,i=String(e),a="",s=0,l=r;i.charAt(0|s)||(l="=",s%1);a+=l.charAt(63&t>>8-s%1*8)){if((n=i.charCodeAt(s+=.75))>255)throw new o;t=t<<8|n}return a}},function(e,t,n){"use strict";var r=n(200);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(200);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,n){"use strict";var r=n(200),o=n(1746),i=n(901),a=n(683);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(200);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(902);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(297);e.exports=function(e){return!!e&&r("map",e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(94);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return!!e&&e.toString&&"[object Object]"===e.toString()}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1758),o=n(686),i=n(260),a=function(e){return e},s=function(e){return function(t){return t.concat(e)}};function l(e,t){return function(n,o){var i=t(o);if(!r(n)||!r(i))throw new TypeError("Array."+e+": Must wrap Applicatives");return i.map(function(e){return s([e])}).ap(n)}}var c=function(e){return e.reduce(function(e,t){return e&&i(t)},!0)},u=function(e,t){return t.map(function(t){return e(t)})};e.exports={ap:function(e,t){if(!t.length||!c(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(u(n,e))},[])},chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!o(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},map:u,sequence:function(e,t){return t.reduce(l("sequence",a),e([]))},traverse:function(e,t,n){return n.reduce(l("traverse",t),e([]))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(539),o=n(1759);e.exports=function(e){return o(e)&&r("of",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(539),o=n(1760);e.exports=function(e){return o(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(539);e.exports=function(e){return!!e&&r("map",e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(539);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(260);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(260);function o(e,t){return r(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(o,t);return r(s)?e(s):s}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(260);e.exports=function(e){return e&&r(e.type)?e.type():{}.toString.call(e).slice(8,-1)}},function(e,t,n){var r=n(1768),o=n(1776);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,o(arguments))}},function(e,t,n){var r=n(540),o=n(1769),i=n(1770),a=n(1774);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,i(o,arguments[0],a(arguments)))}},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(910)(n(1771));e.exports=r},function(e,t,n){var r=n(1772),o=n(1773),i=n(909);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}var l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=o(e)),r(n))return function(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return s(e,t,n,"fantasy-land/reduce");if(null!=n[l])return a(e,t,n[l]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return s(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t,n){var r=n(337),o=n(911),i=n(912),a=r(function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=a},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(913),o=n(337)(r("tail",n(1775)(1,1/0)));e.exports=o},function(e,t,n){var r=n(913),o=n(910)(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));e.exports=o},function(e,t,n){var r=n(337),o=n(912),i=r(function(e){return o(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});e.exports=i},function(e,t,n){var r=n(540),o=n(337),i=n(336),a=n(1778),s=i(function(e,t){return 1===e?o(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){var r=n(540),o=n(541);e.exports=function e(t,n,i){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!o(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,o(u)||(l-=1),c+=1}return l<=0?i.apply(this,a):r(l,e(t,a,i))}}},function(e,t,n){var r=n(336)(function e(t,n){var r,o,i,a={};for(o in n)i=typeof(r=t[o]),a[o]="function"===i?r(n[o]):r&&"object"===i?e(r,n[o]):n[o];return a});e.exports=r},function(e,t,n){(function(t){var r=n(914),o=n(261)("socket.io-client:url");e.exports=function(e,n){var i=e;n=n||t.location,null==e&&(e=n.protocol+"//"+n.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),o("parse %s",e),i=r(e));i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443"));i.path=i.path||"/";var a=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port,i.href=i.protocol+"://"+a+(n&&n.port===i.port?"":":"+i.port),i}}).call(this,n(71))},function(e,t,n){var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=a[l];n=o.call(e,i),a.splice(l,1),l--}return n}),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1782),t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=365.25*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var l,c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?s(l=e,i,"day")||s(l,o,"hour")||s(l,r,"minute")||s(l,n,"second")||l+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(e){var r=n(1785),o=n(916),i=Object.prototype.toString,a="function"==typeof e.Blob||"[object BlobConstructor]"===i.call(e.Blob),s="function"==typeof e.File||"[object FileConstructor]"===i.call(e.File);t.deconstructPacket=function(e){var t=[],n=e.data,i=e;return i.data=function e(t,n){if(!t)return t;if(o(t)){var i={_placeholder:!0,num:n.length};return n.push(t),i}if(r(t)){for(var a=new Array(t.length),s=0;s<t.length;s++)a[s]=e(t[s],n);return a}if("object"==typeof t&&!(t instanceof Date)){var a={};for(var l in t)a[l]=e(t[l],n);return a}return t}(n,t),i.attachments=t.length,{packet:i,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(r(t))for(var o=0;o<t.length;o++)t[o]=e(t[o],n);else if("object"==typeof t)for(var i in t)t[i]=e(t[i],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,i=e;!function e(l,c,u){if(!l)return l;if(a&&l instanceof Blob||s&&l instanceof File){n++;var f=new FileReader;f.onload=function(){u?u[c]=this.result:i=this.result,--n||t(i)},f.readAsArrayBuffer(l)}else if(r(l))for(var d=0;d<l.length;d++)e(l[d],d,l);else if("object"==typeof l&&!o(l))for(var p in l)e(l[p],p,l)}(i),n||t(i)}}).call(this,n(71))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(1787),e.exports.parser=n(372)},function(e,t,n){(function(t){var r=n(918),o=n(371),i=n(261)("engine.io-client:socket"),a=n(921),s=n(372),l=n(914),c=n(542);function u(e,n){if(!(this instanceof u))return new u(e,n);n=n||{},e&&"object"==typeof e&&(n=e,e=null),e?(e=l(e),n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=l(n.host).host),this.secure=null!=n.secure?n.secure:t.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(t.location?location.hostname:"localhost"),this.port=n.port||(t.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var r="object"==typeof t&&t;r.global===r&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=u,u.priorWebsocketSuccess=!1,o(u.prototype),u.protocol=s.protocol,u.Socket=u,u.Transport=n(690),u.transports=n(918),u.parser=n(372),u.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},u.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),d(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())})}else{i('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}}))}function a(){n||(n=!0,d(),t.close(),t=null)}function s(n){var o=new Error("probe error: "+n);o.transport=t.name,a(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function l(){s("transport closed")}function c(){s("socket closed")}function f(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),a())}function d(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",l),r.removeListener("close",c),r.removeListener("upgrading",f)}u.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",l),this.once("close",c),this.once("upgrading",f),t.open()},u.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},u.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},u.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){i("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},u.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},u.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():t()}):this.upgrading?r():t()}function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},u.prototype.onError=function(e){i("socket error %j",e),u.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},u.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){i('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},u.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~a(this.transports,e[n])&&t.push(e[n]);return t}}).call(this,n(71))},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){(function(t){var r=n(689),o=n(919),i=n(371),a=n(543),s=n(261)("engine.io-client:polling-xhr");function l(){}function c(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,t.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=e.hostname!==t.location.hostname||r!==e.port,this.xs=e.secure!==n}}function u(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function f(){for(var e in u.requests)u.requests.hasOwnProperty(e)&&u.requests[e].abort()}e.exports=c,e.exports.Request=u,a(c,o),c.prototype.supportsBinary=!0,c.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new u(e)},c.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",function(e){o.onError("xhr post error",e)}),this.sendXhr=r},c.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},i(u.prototype),u.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new r(e),o=this;try{s("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}catch(e){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){o.onLoad()},n.onerror=function(){o.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState){var e;try{e=n.getResponseHeader("Content-Type")}catch(e){}"application/octet-stream"===e&&(n.responseType="arraybuffer")}4===n.readyState&&(200===n.status||1223===n.status?o.onLoad():setTimeout(function(){o.onError(n.status)},0))},s("xhr data %s",this.data),n.send(this.data)}catch(e){return void setTimeout(function(){o.onError(e)},0)}t.document&&(this.index=u.requestsCount++,u.requests[this.index]=this)},u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},u.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},u.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=l:this.xhr.onreadystatechange=l,e)try{this.xhr.abort()}catch(e){}t.document&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},u.prototype.hasXDR=function(){return void 0!==t.XDomainRequest&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},t.document&&(t.attachEvent?t.attachEvent("onunload",f):t.addEventListener&&t.addEventListener("beforeunload",f,!1))}).call(this,n(71))},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)i[s]=o[a];return i.buffer}},function(e,t){function n(){}e.exports=function(e,t,r){var o=!1;return r=r||n,i.count=e,0===e?t():i;function i(e,n){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,t(e),t=r):0!==i.count||o||t(null,n)}}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/utf8js v2.1.2 by @mathias */!function(i){var a=t,s=(e&&e.exports,"object"==typeof r&&r);s.global!==s&&s.window;var l,c,u,f=String.fromCharCode;function d(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function p(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function h(e,t){return f(e>>t&63|128)}function m(e,t){if(0==(4294967168&e))return f(e);var n="";return 0==(4294965248&e)?n=f(e>>6&31|192):0==(4294901760&e)?(p(e,t)||(e=65533),n=f(e>>12&15|224),n+=h(e,6)):0==(4292870144&e)&&(n=f(e>>18&7|240),n+=h(e,12),n+=h(e,6)),n+=f(63&e|128)}function v(){if(u>=c)throw Error("Invalid byte index");var e=255&l[u];if(u++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function g(e){var t,n;if(u>c)throw Error("Invalid byte index");if(u==c)return!1;if(t=255&l[u],u++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|v())>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|v()<<6|v())>=2048)return p(n,e)?n:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|v()<<12|v()<<6|v())>=65536&&n<=1114111)return n;throw Error("Invalid UTF-8 detected")}var y={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=d(e),o=r.length,i=-1,a="";++i<o;)a+=m(r[i],n);return a},decode:function(e,t){var n=!1!==(t=t||{}).strict;l=d(e),c=l.length,u=0;for(var r,o=[];!1!==(r=g(n));)o.push(r);return function(e){for(var t,n=e.length,r=-1,o="";++r<n;)(t=e[r])>65535&&(o+=f((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=f(t);return o}(o)}};void 0===(o=function(){return y}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(256)(e),n(71))},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<e.length;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,r,o,i,a,s=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),f=new Uint8Array(u);for(t=0;t<l;t+=4)r=n[e.charCodeAt(t)],o=n[e.charCodeAt(t+1)],i=n[e.charCodeAt(t+2)],a=n[e.charCodeAt(t+3)],f[c++]=r<<2|o>>4,f[c++]=(15&o)<<4|i>>2,f[c++]=(3&i)<<6|63&a;return u}}()},function(e,t,n){(function(t){var n=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),i=n&&n.prototype.append&&n.prototype.getBlob;function a(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var o=new Uint8Array(n.byteLength);o.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=o.buffer}e[t]=r}}}function s(e,t){t=t||{};var r=new n;a(e);for(var o=0;o<e.length;o++)r.append(e[o]);return t.type?r.getBlob(t.type):r.getBlob()}function l(e,t){return a(e),new Blob(e,t||{})}e.exports=r?o?t.Blob:l:i?s:void 0}).call(this,n(71))},function(e,t,n){(function(t){var r=n(919),o=n(543);e.exports=c;var i,a=/\n/g,s=/\\n/g;function l(){}function c(e){r.call(this,e),this.query=this.query||{},i||(t.___eio||(t.___eio=[]),i=t.___eio),this.index=i.length;var n=this;i.push(function(e){n.onData(e)}),this.query.j=this.index,t.document&&t.addEventListener&&t.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=l)},!1)}o(c,r),c.prototype.supportsBinary=!1,c.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},c.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},c.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),i=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=l,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function c(){u(),t()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),e=e.replace(s,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}}).call(this,n(71))},function(e,t,n){(function(t){var r,o=n(690),i=n(372),a=n(542),s=n(543),l=n(920),c=n(261)("engine.io-client:websocket"),u=t.WebSocket||t.MozWebSocket;if("undefined"==typeof window)try{r=n(1798)}catch(e){}var f=u;function d(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=u&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=r),o.call(this,e)}f||"undefined"!=typeof window||(f=r),e.exports=d,s(d,o),d.prototype.name="websocket",d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new f(e,t):new f(e):new f(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},d.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},d.prototype.write=function(e){var n=this;this.writable=!1;for(var r=e.length,o=0,a=r;o<a;o++)!function(e){i.encodePacket(e,n.supportsBinary,function(o){if(!n.usingBrowserWebSocket){var i={};if(e.options&&(i.compress=e.options.compress),n.perMessageDeflate)("string"==typeof o?t.Buffer.byteLength(o):o.length)<n.perMessageDeflate.threshold&&(i.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(o):n.ws.send(o,i)}catch(e){c("websocket closed before onclose event")}--r||s()})}(e[o]);function s(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}},d.prototype.onClose=function(){o.prototype.onClose.call(this)},d.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},d.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=l()),this.supportsBinary||(e.b64=1),(e=a.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},d.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===d.prototype.name)}}).call(this,n(71))},function(e,t){},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){var r=n(1802),o=n(336)(function(e,t){return r({},e,t)});e.exports=o},function(e,t,n){var r=n(1803);e.exports="function"==typeof Object.assign?Object.assign:r},function(e,t,n){var r=n(1804);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n<o;){var i=arguments[n];if(null!=i)for(var a in i)r(a,i)&&(t[a]=i[a]);n+=1}return t}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(336)(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n});e.exports=r},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,f=26,d=38,p=700,h=72,m=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,E=Math.floor,x=String.fromCharCode;function k(e){throw new RangeError(_[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(b,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function O(e){return S(e,function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?E(e/p):e>>1,e+=E(e/t);e>w*f>>1;r+=c)e=E(e/w);return E(r+(w+1)*e/(e+d))}function N(e){var t,n,r,o,i,a,s,d,p,g,y,b=[],_=e.length,w=0,x=m,S=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&k("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<_;){for(i=w,a=1,s=c;o>=_&&k("invalid-input"),((d=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||d>E((l-w)/a))&&k("overflow"),w+=d*a,!(d<(p=s<=S?u:s>=S+f?f:s-S));s+=c)a>E(l/(g=c-p))&&k("overflow"),a*=g;S=A(w-i,t=b.length+1,0==i),E(w/t)>l-x&&k("overflow"),x+=E(w/t),w%=t,b.splice(w++,0,x)}return O(b)}function M(e){var t,n,r,o,i,a,s,d,p,g,y,b,_,w,S,T=[];for(b=(e=C(e)).length,t=m,n=0,i=h,a=0;a<b;++a)(y=e[a])<128&&T.push(x(y));for(r=o=T.length,o&&T.push(v);r<b;){for(s=l,a=0;a<b;++a)(y=e[a])>=t&&y<s&&(s=y);for(s-t>E((l-n)/(_=r+1))&&k("overflow"),n+=(s-t)*_,t=s,a=0;a<b;++a)if((y=e[a])<t&&++n>l&&k("overflow"),y==t){for(d=n,p=c;!(d<(g=p<=i?u:p>=i+f?f:p-i));p+=c)S=d-g,w=c-g,T.push(x(j(g+S%w,0))),d=E(S/w);T.push(x(j(d,0))),i=A(n,_,r==o),n=0,++r}++n,++t}return T.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:O},decode:N,encode:M,toASCII:function(e){return T(e,function(e){return y.test(e)?"xn--"+M(e):e})},toUnicode:function(e){return T(e,function(e){return g.test(e)?N(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(256)(e),n(71))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(1809),t.encode=t.stringify=n(1810)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var f,d,p,h,m=e[u].replace(s,"%20"),v=m.indexOf(n);v>=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){var r=n(685),o=n(687),i=n(925);e.exports=o(function(e,t,n){var o={};return function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];return i(function(){var i=t.apply(null,a);return o[i]||(o[i]={},o[i].async=r(function(e,t){Object.assign(o[i],{reject:e,resolve:t})})),clearTimeout(o[i].timeout),o[i].timeout=setTimeout(function(){var e=o[i],t=e.reject,r=e.resolve;n.apply(null,a).fork(t,r),delete o[i]},e),o[i].async})}})},function(e,t,n){var r=n(685),o=n(687),i=n(925),a=n(1813);e.exports=o(function(e,t,n){var o={};return function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return i(function(){var i=t.apply(null,s);o[i]||(o[i]={},o[i].async=r(function(e,t){Object.assign(o[i],{reject:e,resolve:t})})),o[i].args=s;var l=Date.now()-(o[i].last||0);if(!o[i].timeout){var c=a(0,e-l);o[i].timeout=setTimeout(function(e){o[e].last=Date.now();var t=o[e],r=t.args,i=t.reject,a=t.resolve;n.apply(null,r).fork(i,a),delete o[e].args,delete o[e].timeout}.bind(null,i),c)}return o[i].async})}})},function(e,t,n){var r=n(336)(function(e,t){return t>e?t:e});e.exports=r},function(e,t){e.exports=function(e){var t=e.data,n=e.message,r=e.name,o=e.status,i=new Error(n);return i.data=t,i.name=r,i.status=o,i}},function(e,t,n){var r=n(1816),o=n(1818);e.exports=function(e){return function(t){for(var n=-1,i=o(r(t)),a=i.length,s="";++n<a;)s=e(s,i[n],n);return s}}},function(e,t,n){var r=n(373),o=n(1817),i=/[\u0300-\u036f\ufe20-\ufe23]/g,a=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;e.exports=function(e){return(e=r(e))&&e.replace(a,o).replace(i,"")}},function(e,t){var n={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"};e.exports=function(e){return n[e]}},function(e,t,n){var r,o,i=n(373),a=n(691),s=(r="[A-Z\\xc0-\\xd6\\xd8-\\xde]",o="[a-z\\xdf-\\xf6\\xf8-\\xff]+",RegExp(r+"+(?="+r+o+")|"+r+"?"+o+"|"+r+"+|[0-9]+","g"));e.exports=function(e,t,n){return n&&a(e,t,n)&&(t=void 0),(e=i(e)).match(t||s)||[]}},function(e,t,n){e.exports=n(1820)},function(e,t,n){var r=n(1821),o=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===o||e instanceof Array&&t===o.lastIndexOf?r:t}},function(e,t,n){n(1822),e.exports=n(136)("Array").lastIndexOf},function(e,t,n){var r=n(1823);n(68)({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var r=n(257),o=n(418),i=n(195),a=[].lastIndexOf,s=!!a&&1/[1].lastIndexOf(1,-0)<0,l=n(528)("lastIndexOf");e.exports=s||l?function(e){if(s)return a.apply(this,arguments)||0;var t=r(this),n=i(t.length),l=n-1;for(arguments.length>1&&(l=Math.min(l,o(arguments[1]))),l<0&&(l=n+l);l>=0;l--)if(l in t&&t[l]===e)return l||0;return-1}:a},function(e,t){e.exports=function(e){return[e]}},function(e,t,n){var r=n(927),o=n(1826),i=n(1827),a=n(929),s=n(1833),l=n(1834),c=n(1836),u=n(262),f=n(183),d="[object Arguments]",p="[object Function]",h="[object Object]",m={};m[d]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object Date]"]=m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Number]"]=m[h]=m["[object RegExp]"]=m["[object String]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Error]"]=m[p]=m["[object Map]"]=m["[object Set]"]=m["[object WeakMap]"]=!1;var v=Object.prototype.toString;e.exports=function e(t,n,g,y,b,_,w){var E;if(g&&(E=b?g(t,y,b):g(t)),void 0!==E)return E;if(!f(t))return t;var x=u(t);if(x){if(E=s(t),!n)return r(t,E)}else{var k=v.call(t),S=k==p;if(k!=h&&k!=d&&(!S||b))return m[k]?l(t,k,n):b?t:{};if(E=c(S?{}:t),!n)return i(E,t)}_||(_=[]),w||(w=[]);for(var T=_.length;T--;)if(_[T]==t)return w[T];return _.push(t),w.push(E),(x?o:a)(t,function(r,o){E[o]=e(r,n,g,o,t,_,w)}),E}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(1828),o=n(445);e.exports=function(e,t){return null==t?e:r(t,o(t),e)}},function(e,t){e.exports=function(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var i=t[r];n[i]=e[i]}return n}},function(e,t,n){var r=n(1830),o=n(374),i=/^\[object .+?Constructor\]$/,a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return null!=e&&(r(e)?c.test(s.call(e)):o(e)&&i.test(e))}},function(e,t,n){var r=n(183),o="[object Function]",i=Object.prototype.toString;e.exports=function(e){return r(e)&&i.call(e)==o}},function(e,t,n){var r=n(696),o=n(262),i=n(693),a=n(338),s=n(928),l=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=s(e),n=t.length,c=n&&e.length,u=!!c&&a(c)&&(o(e)||r(e)),f=-1,d=[];++f<n;){var p=t[f];(u&&i(p,c)||l.call(e,p))&&d.push(p)}return d}},function(e,t,n){var r=n(263);e.exports=function(e){return function(t,n,o){for(var i=r(t),a=o(t),s=a.length,l=e?s:-1;e?l--:++l<s;){var c=a[l];if(!1===n(i[c],c,i))break}return t}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(1835),o="[object Boolean]",i="[object Date]",a="[object Number]",s="[object RegExp]",l="[object String]",c="[object ArrayBuffer]",u="[object Float32Array]",f="[object Float64Array]",d="[object Int8Array]",p="[object Int16Array]",h="[object Int32Array]",m="[object Uint8Array]",v="[object Uint8ClampedArray]",g="[object Uint16Array]",y="[object Uint32Array]",b=/\w*$/;e.exports=function(e,t,n){var _=e.constructor;switch(t){case c:return r(e);case o:case i:return new _(+e);case u:case f:case d:case p:case h:case m:case v:case g:case y:var w=e.buffer;return new _(n?r(w):w,e.byteOffset,e.length);case a:case l:return new _(e);case s:var E=new _(e.source,b.exec(e));E.lastIndex=e.lastIndex}return E}},function(e,t,n){(function(t){var n=t.ArrayBuffer,r=t.Uint8Array;e.exports=function(e){var t=new n(e.byteLength);return new r(t).set(new r(e)),t}}).call(this,n(71))},function(e,t){e.exports=function(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Object),new t}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){var r=n(931),o=n(1839),i=n(1840),a=n(370),s=n(1841),l=n(537),c=n(1843),u=n(1844),f=n(1845),d=i(function(e,t){return typeof t===e}),p=function(e){return u(l(h),Math.max,0,f(e))},h=o([[d("object"),p],[d("function"),s],[c,r(0)]]);e.exports=i(function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var o=p(t),i=a(o+1,e);return 0===n.length?0===o?function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return i.apply(void 0,[t].concat(e))}:i(t):i.apply(void 0,[t].concat(n))})},function(e,t,n){var r=n(536),o=n(214),i=n(537),a=n(890),s=n(896),l=o(function(e){var t=s(a,0,i(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})});e.exports=l},function(e,t,n){var r=n(214),o=n(370),i=r(function(e){return o(e.length,e)});e.exports=i},function(e,t,n){var r=n(214),o=n(1842),i=r(function(e){return null!=e&&o(e.length)?e.length:NaN});e.exports=i},function(e,t){e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(931)(!0);e.exports=r},function(e,t,n){var r=n(682),o=n(892),i=n(370)(4,function(e,t,n,i){return r(e("function"==typeof t?o(t):t),n,i)});e.exports=i},function(e,t,n){var r=n(214),o=n(893),i=r(function(e){for(var t=o(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r});e.exports=i},function(e,t,n){e.exports=n(1847)},function(e,t,n){n(1848),e.exports=n(116).Date.now},function(e,t,n){n(68)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){n(1850),n(1852),n(933),e.exports=n(116).URL},function(e,t,n){"use strict";n(365);var r,o=n(212),i=n(932),a=n(128).URL,s=n(820),l=n(424),c=n(647),u=n(197),f=n(863),d=n(872),p=n(815),h=n(1851),m=n(933),v=m.URLSearchParams,g=m.getState,y=n(366),b=y.set,_=y.getterFor("URL"),w=Math.pow,E=/[a-zA-Z]/,x=/[a-zA-Z0-9+\-.]/,k=/\d/,S=/^(0x|0X)/,T=/^[0-7]+$/,C=/^\d+$/,O=/^[0-9A-Fa-f]+$/,j=/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/,A=/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/,N=/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,M=/\u0009|\u000A|\u000D/g,I=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=P(t.slice(1,-1))))return"Invalid host";e.host=n}else if(H(e)){if(t=h(t),j.test(t))return"Invalid host";if(null===(n=L(t)))return"Invalid host";e.host=n}else{if(A.test(t))return"Invalid host";for(n="",r=d(t),o=0;o<r.length;o++)n+=q(r[o],R);e.host=n}},L=function(e){var t,n,r,o,i,a,s,l=e.split(".");if(""==l[l.length-1]&&l.length&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=l[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=S.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?C:8==i?T:O).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=w(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*w(256,3-r);return s},P=function(e){var t,n,r,o,i,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,u=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&O.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!k.test(d()))return;for(;k.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},D=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Math.floor(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},R={},F=f({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),B=f({},F,{"#":1,"?":1,"{":1,"}":1}),U=f({},B,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(e,t){var n=p(e,0);return n>32&&n<127&&!u(t,e)?e:encodeURIComponent(e)},z={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},H=function(e){return u(z,e.scheme)},W=function(e){return""!=e.username||""!=e.password},$=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&E.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},K=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},V=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},G=function(e){return"."===e||"%2e"===e.toLowerCase()},X={},Z={},Q={},J={},ee={},te={},ne={},re={},oe={},ie={},ae={},se={},le={},ce={},ue={},fe={},de={},pe={},he={},me={},ve={},ge=function(e,t,n,o){var i,a,s,l,c,f=n||X,p=0,h="",m=!1,v=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(N,"")),t=t.replace(M,""),i=d(t);p<=i.length;){switch(a=i[p],f){case X:if(!a||!E.test(a)){if(n)return"Invalid scheme";f=Q;continue}h+=a.toLowerCase(),f=Z;break;case Z:if(a&&(x.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";h="",f=Q,p=0;continue}if(n&&(H(e)!=u(z,h)||"file"==h&&(W(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(H(e)&&z[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?f=ce:H(e)&&o&&o.scheme==e.scheme?f=J:H(e)?f=re:"/"==i[p+1]?(f=ee,p++):(e.cannotBeABaseURL=!0,e.path.push(""),f=he)}break;case Q:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,f=ve;break}f="file"==o.scheme?ce:te;continue;case J:if("/"!=a||"/"!=i[p+1]){f=te;continue}f=oe,p++;break;case ee:if("/"==a){f=ie;break}f=pe;continue;case te:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&H(e))f=ne;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",f=me;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),f=pe;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",f=ve}break;case ne:if(!H(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,f=pe;continue}f=ie}else f=oe;break;case re:if(f=oe,"/"!=a||"/"!=h.charAt(p+1))continue;p++;break;case oe:if("/"!=a&&"\\"!=a){f=ie;continue}break;case ie:if("@"==a){m&&(h="%40"+h),m=!0,s=d(h);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var _=q(b,U);g?e.password+=_:e.username+=_}else g=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(m&&""==h)return"Invalid authority";p-=d(h).length+1,h="",f=ae}else h+=a;break;case ae:case se:if(n&&"file"==e.scheme){f=fe;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(H(e)&&""==h)return"Invalid host";if(n&&""==h&&(W(e)||null!==e.port))return;if(l=I(e,h))return l;if(h="",f=de,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),h+=a}else{if(""==h)return"Invalid host";if(l=I(e,h))return l;if(h="",f=le,n==se)return}break;case le:if(!k.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return"Invalid port";e.port=H(e)&&w===z[e.scheme]?null:w,h=""}if(n)return;f=de;continue}return"Invalid port"}h+=a;break;case ce:if(e.scheme="file","/"==a||"\\"==a)f=ue;else{if(!o||"file"!=o.scheme){f=pe;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",f=me;else{if("#"!=a){K(i.slice(p).join(""))||(e.host=o.host,e.path=o.path.slice(),V(e)),f=pe;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",f=ve}}break;case ue:if("/"==a||"\\"==a){f=fe;break}o&&"file"==o.scheme&&!K(i.slice(p).join(""))&&(Y(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),f=pe;continue;case fe:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Y(h))f=pe;else if(""==h){if(e.host="",n)return;f=de}else{if(l=I(e,h))return l;if("localhost"==e.host&&(e.host=""),n)return;h="",f=de}continue}h+=a;break;case de:if(H(e)){if(f=pe,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(f=pe,"/"!=a))continue}else e.fragment="",f=ve;else e.query="",f=me;break;case pe:if(a==r||"/"==a||"\\"==a&&H(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(V(e),"/"==a||"\\"==a&&H(e)||e.path.push("")):G(h)?"/"==a||"\\"==a&&H(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",f=me):"#"==a&&(e.fragment="",f=ve)}else h+=q(a,B);break;case he:"?"==a?(e.query="",f=me):"#"==a?(e.fragment="",f=ve):a!=r&&(e.path[0]+=q(a,R));break;case me:n||"#"!=a?a!=r&&("'"==a&&H(e)?e.query+="%27":e.query+="#"==a?"%23":q(a,R)):(e.fragment="",f=ve);break;case ve:a!=r&&(e.fragment+=q(a,F))}p++}},ye=function(e){var t,n,r=c(this,ye,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=b(r,{type:"URL"});if(void 0!==i)if(i instanceof ye)t=_(i);else if(n=ge(t={},String(i)))throw TypeError(n);if(n=ge(s,a,null,t))throw TypeError(n);var l=s.searchParams=new v,u=g(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},o||(r.href=_e.call(r),r.origin=we.call(r),r.protocol=Ee.call(r),r.username=xe.call(r),r.password=ke.call(r),r.host=Se.call(r),r.hostname=Te.call(r),r.port=Ce.call(r),r.pathname=Oe.call(r),r.search=je.call(r),r.searchParams=Ae.call(r),r.hash=Ne.call(r))},be=ye.prototype,_e=function(){var e=_(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",W(e)&&(c+=n+(r?":"+r:"")+"@"),c+=D(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},we=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&H(e)?t+"://"+D(e.host)+(null!==n?":"+n:""):"null"},Ee=function(){return _(this).scheme+":"},xe=function(){return _(this).username},ke=function(){return _(this).password},Se=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?D(t):D(t)+":"+n},Te=function(){var e=_(this).host;return null===e?"":D(e)},Ce=function(){var e=_(this).port;return null===e?"":String(e)},Oe=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},je=function(){var e=_(this).query;return e?"?"+e:""},Ae=function(){return _(this).searchParams},Ne=function(){var e=_(this).fragment;return e?"#"+e:""},Me=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&s(be,{href:Me(_e,function(e){var t=_(this),n=String(e),r=ge(t,n);if(r)throw TypeError(r);g(t.searchParams).updateSearchParams(t.query)}),origin:Me(we),protocol:Me(Ee,function(e){var t=_(this);ge(t,String(e)+":",X)}),username:Me(xe,function(e){var t=_(this),n=d(String(e));if(!$(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=q(n[r],U)}}),password:Me(ke,function(e){var t=_(this),n=d(String(e));if(!$(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=q(n[r],U)}}),host:Me(Se,function(e){var t=_(this);t.cannotBeABaseURL||ge(t,String(e),ae)}),hostname:Me(Te,function(e){var t=_(this);t.cannotBeABaseURL||ge(t,String(e),se)}),port:Me(Ce,function(e){var t=_(this);$(t)||(""==(e=String(e))?t.port=null:ge(t,e,le))}),pathname:Me(Oe,function(e){var t=_(this);t.cannotBeABaseURL||(t.path=[],ge(t,e+"",de))}),search:Me(je,function(e){var t=_(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ge(t,e,me)),g(t.searchParams).updateSearchParams(t.query)}),searchParams:Me(Ae),hash:Me(Ne,function(e){var t=_(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ge(t,e,ve)):t.fragment=null})}),l(be,"toJSON",function(){return _e.call(this)},{enumerable:!0}),l(be,"toString",function(){return _e.call(this)},{enumerable:!0}),a){var Ie=a.createObjectURL,Le=a.revokeObjectURL;Ie&&l(ye,"createObjectURL",function(e){return Ie.apply(a,arguments)}),Le&&l(ye,"revokeObjectURL",function(e){return Le.apply(a,arguments)})}n(294)(ye,"URL"),n(68)({global:!0,forced:!i,sham:!o},{URL:ye})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,o=/[\u002E\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,l=function(e){return e+22+75*(e<26)},c=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},u=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,u=128,f=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var p=r.length,h=p;for(p&&r.push("-");h<o;){var m=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=u&&n<m&&(m=n);var v=h+1;if(m-u>a((2147483647-f)/v))throw RangeError(i);for(f+=(m-u)*v,u=m,t=0;t<e.length;t++){if((n=e[t])<u&&++f>2147483647)throw RangeError(i);if(n==u){for(var g=f,y=36;;y+=36){var b=y<=d?1:y>=d+26?26:y-d;if(g<b)break;var _=g-b,w=36-b;r.push(s(l(b+_%w))),g=a(_/w)}r.push(s(l(g))),d=c(f,v,h==p),f=0,++h}}++f,++u}return r.join("")};e.exports=function(e){var t,n,i=[],a=e.toLowerCase().replace(o,".").split(".");for(t=0;t<a.length;t++)n=a[t],i.push(r.test(n)?"xn--"+u(n):n);return i.join(".")}},function(e,t){},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(440),o=n(441),i=n(298).type("Pair"),a=n(94),s=n(199),l=n(699);function c(e,t){if(arguments.length<2)throw new TypeError("Pair: Must provide a first and second value");var n=function(){return e},r=function(){return t};return{inspect:function(){return"Pair("+o(e)+","+o(t)+" )"},fst:n,snd:r,toArray:function(){return[e,t]},type:i,merge:function(e){if(!a(e))throw new TypeError("Pair.merge: Binary function required");return e(n(),r())},equals:function(e){return s(c,e)&&e.fst()===n()&&e.snd()===r()},concat:function(e){if(!e||!s(c,e))throw new TypeError("Pair.concat: Pair required");var t=n(),o=r(),i=e.fst(),a=e.snd();if(!l(t)||!l(o))throw new TypeError("Pair.concat: Both Pairs must contain Semigroups of the same type");if(!s(t,i)||!s(o,a))throw new TypeError("Pair.concat: Both Pairs must contain Semigroups of the same type");return c(t.concat(i),o.concat(a))},swap:function(n,r){if(!a(n)||!a(r))throw new TypeError("Pair.swap: Requires both left and right functions");return c(r(t),n(e))},map:function(n){if(!a(n))throw new TypeError("Pair.map: Function required");return c(e,n(t))},bimap:function(n,r){if(!a(n)||!a(r))throw new TypeError("Pair.bimap: Function required for both arguments");return c(n(e),r(t))},ap:function(e){if(!s(c,e))throw new TypeError("Pair.ap: Pair required");var t=r();if(!a(t))throw new TypeError("Pair.ap: Function required for second value");var o=n(),i=e.fst();if(!l(o)||!s(o,i))throw new TypeError("Pair.ap: Semigroups of the same type is required for first values");return c(o.concat(i),t(e.snd()))},chain:function(e){var t=n();if(!a(e))throw new TypeError("Pair.chain: Function required");if(!l(t))throw new TypeError("Pair.chain: Semigroups of the same type required for first values");var o=e(r());if(!s(c,o))throw new TypeError("Pair.chain: Function must return a Pair");var i=o.fst();if(!s(t,i))throw new TypeError("Pair.chain: Semigroups of the same type required for first values");return c(t.concat(i),o.snd())},extend:function(n){if(!a(n))throw new TypeError("Pair.extend: Function required");return c(e,n(c(e,t)))}}}c.type=i,c["@@implements"]=r(["ap","bimap","chain","concat","extend","equals","map"]),e.exports=c},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(297);e.exports=function(e){return!!e&&r("contramap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(297);e.exports=function(e){return!!e&&r("compose",e)}},function(e,t,n){e.exports=n(1857)},function(e,t,n){var r=n(1858),o=Array.prototype;e.exports=function(e){var t=e.findIndex;return e===o||e instanceof Array&&t===o.findIndex?r:t}},function(e,t,n){n(1859),e.exports=n(136)("Array").findIndex},function(e,t,n){"use strict";var r=n(439)(6),o=!0;"findIndex"in[]&&Array(1).findIndex(function(){o=!1}),n(68)({target:"Array",proto:!0,forced:o},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(425)("findIndex")},function(e,t,n){e.exports=n(1861)},function(e,t,n){var r=n(1862),o=Array.prototype;e.exports=function(e){var t=e.splice;return e===o||e instanceof Array&&t===o.splice?r:t}},function(e,t,n){n(1863),e.exports=n(136)("Array").splice},function(e,t,n){"use strict";var r=n(512),o=n(418),i=n(195),a=n(236),s=n(668),l=n(527),c=Math.max,u=Math.min,f=n(434)("splice");n(68)({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,f,d,p,h,m,v=a(this),g=i(v.length),y=r(e,g),b=arguments.length;if(0===b?n=f=0:1===b?(n=0,f=g-y):(n=b-2,f=u(c(o(t),0),g-y)),g+n-f>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=s(v,f),p=0;p<f;p++)(h=y+p)in v&&l(d,p,v[h]);if(d.length=f,n<f){for(p=y;p<g-f;p++)m=p+n,(h=p+f)in v?v[m]=v[h]:delete v[m];for(p=g;p>g-f+n;p--)delete v[p-1]}else if(n>f)for(p=g-f;p>y;p--)m=p+n-1,(h=p+f-1)in v?v[m]=v[h]:delete v[m];for(p=0;p<n;p++)v[p+y]=arguments[p+2];return v.length=g-f+n,d}})},function(e,t,n){var r=n(1865),o=n(696),i=n(262),a=n(444),s=n(374);e.exports=function e(t,n,l,c){c||(c=[]);for(var u=-1,f=t.length;++u<f;){var d=t[u];s(d)&&a(d)&&(l||i(d)||o(d))?n?e(d,n,l,c):r(c,d):l||(c[c.length]=d)}return c}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(263);e.exports=function(e,t){e=r(e);for(var n=-1,o=t.length,i={};++n<o;){var a=t[n];a in e&&(i[a]=e[a])}return i}},function(e,t,n){var r=n(1868);e.exports=function(e,t){var n={};return r(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}},function(e,t,n){var r=n(930),o=n(928);e.exports=function(e,t){return r(e,t,o)}},function(e,t){var n="Expected a function",r=Math.max;e.exports=function(e,t){if("function"!=typeof e)throw new TypeError(n);return t=r(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,o=-1,i=r(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var s=Array(t+1);for(o=-1;++o<t;)s[o]=n[o];return s[t]=a,e.apply(this,s)}}},function(e,t,n){n(332),n(365),e.exports=n(1871)},function(e,t,n){var r=n(367),o=n(119)("iterator"),i=n(331);e.exports=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){var t=function(n,r){this.id=++e.FE.ID;var o={};r&&r.documentReady&&(o.toolbarButtons=["fullscreen","undo","redo","getPDF","print","|","bold","italic","underline","color","clearFormatting","|","alignLeft","alignCenter","alignRight","alignJustify","|","formatOL","formatUL","indent","outdent","-","paragraphFormat","|","fontFamily","|","fontSize","|","insertLink","insertImage","quote"],o.paragraphFormatSelection=!0,o.fontFamilySelection=!0,o.fontSizeSelection=!0,o.placeholderText="",o.quickInsertEnabled=!1,o.charCounterCount=!1),this.opts=e.extend(!0,{},e.extend({},t.DEFAULTS,o,"object"==typeof r&&r));var i=JSON.stringify(this.opts);e.FE.OPTS_MAPPING[i]=e.FE.OPTS_MAPPING[i]||this.id,this.sid=e.FE.OPTS_MAPPING[i],e.FE.SHARED[this.sid]=e.FE.SHARED[this.sid]||{},this.shared=e.FE.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=e(n),this.$oel.data("froala.editor",this),this.o_doc=n.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;var a=e(this.o_win).scrollTop();this.$oel.on("froala.doInit",e.proxy(function(){this.$oel.off("froala.doInit"),this.doc=this.$el.get(0).ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.$doc=e(this.doc),this.$win=e(this.win),this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(e.FE.PLUGINS)),this.opts.initOnClick?(this.load(e.FE.MODULES),this.$el.on("touchstart.init",function(){e(this).data("touched",!0)}),this.$el.on("touchmove.init",function(){e(this).removeData("touched")}),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",e.proxy(function(t){if("touchend"==t.type&&!this.$el.data("touched"))return!0;if(1===t.which||!t.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init"),this.load(e.FE.MODULES),this.load(e.FE.PLUGINS);var n=t.originalEvent&&t.originalEvent.originalTarget;n&&"IMG"==n.tagName&&e(n).trigger("mousedown"),void 0===this.ul&&this.destroy(),"touchend"==t.type&&this.image&&t.originalEvent&&t.originalEvent.target&&e(t.originalEvent.target).is("img")&&setTimeout(e.proxy(function(){this.image.edit(e(t.originalEvent.target))},this),100),this.ready=!0,this.events.trigger("initialized")}},this)),this.events.trigger("initializationDelayed")):(this.load(e.FE.MODULES),this.load(e.FE.PLUGINS),e(this.o_win).scrollTop(a),void 0===this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))},this)),this._init()};t.DEFAULTS={initOnClick:!1,pluginsEnabled:null},t.MODULES={},t.PLUGINS={},t.VERSION="2.9.5",t.INSTANCES=[],t.OPTS_MAPPING={},t.SHARED={},t.ID=0,t.prototype._init=function(){var t=this.$oel.prop("tagName");this.$oel.closest("label").length;var n=e.proxy(function(){"TEXTAREA"!=t&&(this._original_html=this._original_html||this.$oel.html()),this.$box=this.$box||this.$oel,this.opts.fullPage&&(this.opts.iframe=!0),this.opts.iframe?(this.$iframe=e('<iframe src="about:blank" frameBorder="0">'),this.$wp=e("<div></div>"),this.$box.html(this.$wp),this.$wp.append(this.$iframe),this.$iframe.get(0).contentWindow.document.open(),this.$iframe.get(0).contentWindow.document.write("<!DOCTYPE html>"),this.$iframe.get(0).contentWindow.document.write("<html><head></head><body></body></html>"),this.$iframe.get(0).contentWindow.document.close(),this.$el=this.$iframe.contents().find("body"),this.el=this.$el.get(0),this.$head=this.$iframe.contents().find("head"),this.$html=this.$iframe.contents().find("html"),this.iframe_document=this.$iframe.get(0).contentWindow.document):(this.$el=e("<div></div>"),this.el=this.$el.get(0),this.$wp=e("<div></div>").append(this.$el),this.$box.html(this.$wp)),this.$oel.trigger("froala.doInit")},this),r=e.proxy(function(){this.$box=e("<div>"),this.$oel.before(this.$box).hide(),this._original_html=this.$oel.val(),this.$oel.parents("form").on("submit."+this.id,e.proxy(function(){this.events.trigger("form.submit")},this)),this.$oel.parents("form").on("reset."+this.id,e.proxy(function(){this.events.trigger("form.reset")},this)),n()},this),o=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.$el.attr("contenteditable",!0).css("outline","none").css("display","inline-block"),this.opts.multiLine=!1,this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),i=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),a=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.on("click.popup",function(e){e.preventDefault()}),this.$oel.trigger("froala.doInit")},this);this.opts.editInPopup?a():"TEXTAREA"==t?r():"A"==t?o():"IMG"==t?i():"BUTTON"==t||"INPUT"==t?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,a()):n()},t.prototype.load=function(t){for(var n in t)if(t.hasOwnProperty(n)){if(this[n])continue;if(e.FE.PLUGINS[n]&&this.opts.pluginsEnabled.indexOf(n)<0)continue;if(this[n]=new t[n](this),this[n]._init&&(this[n]._init(),this.opts.initOnClick&&"core"==n))return!1}},t.prototype.destroy=function(){this.destroying=!0,this.shared.count--,this.events.$off();var t=this.html.get();if(this.opts.iframe&&(this.events.disableBlur(),this.win.focus(),this.events.enableBlur()),this.events.trigger("destroy",[],!0),this.events.trigger("shared.destroy",void 0,!0),0===this.shared.count){for(var n in this.shared)this.shared.hasOwnProperty(n)&&(this.shared[n],e.FE.SHARED[this.sid][n]=null);delete e.FE.SHARED[this.sid]}this.$oel.parents("form").off("."+this.id),this.$oel.off("click.popup"),this.$oel.removeData("froala.editor"),this.$oel.off("froalaEditor"),this.core.destroy(t),e.FE.INSTANCES.splice(e.FE.INSTANCES.indexOf(this),1)},e.fn.froalaEditor=function(n){for(var r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);if("string"==typeof n){var i=[];return this.each(function(){var t=e(this).data("froala.editor");if(t){var o,a;if(0<n.indexOf(".")&&t[n.split(".")[0]]?(t[n.split(".")[0]]&&(o=t[n.split(".")[0]]),a=n.split(".")[1]):(o=t,a=n.split(".")[0]),!o[a])return e.error("Method "+n+" does not exist in Froala Editor.");var s=o[a].apply(t,r.slice(1));void 0===s?i.push(this):0===i.length&&i.push(s)}}),1==i.length?i[0]:i}if("object"==typeof n||!n)return this.each(function(){e(this).data("froala.editor")||new t(this,n)})},e.fn.froalaEditor.Constructor=t,e.FroalaEditor=t,e.FE=t,e.FE.XS=0,e.FE.SM=1,e.FE.MD=2,e.FE.LG=3,e.FE.LinkRegExCommon="[a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_.]{1,}",e.FE.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&amp;/~+#-\\'*-_{}]*)|())",e.FE.LinkRegExTLD="(("+e.FE.LinkRegExCommon+")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))",e.FE.LinkRegExHTTP="((ftp|http|https):\\/\\/"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExWWW="(www\\."+e.FE.LinkRegExCommon+"\\.[a-z0-9-]{2,24})",e.FE.LinkRegEx="("+e.FE.LinkRegExTLD+"|"+e.FE.LinkRegExHTTP+"|"+e.FE.LinkRegExWWW+"|"+e.FE.LinkRegExAuth+")"+e.FE.LinkRegExEnd,e.FE.LinkProtocols=["mailto","tel","sms","notes","data"],e.FE.MAIL_REGEX=/.+@.+\..+/i,e.FE.MODULES.helpers=function(t){function n(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!i()}function r(){return/(Android)/g.test(navigator.userAgent)&&!i()}function o(){return/(Blackberry)/g.test(navigator.userAgent)}function i(){return/(Windows Phone)/gi.test(navigator.userAgent)}function a(e){return parseInt(e,10)||0}var s,l=null;return{_init:function(){t.browser=function(){var e,t,n={},r=(t=-1,"Microsoft Internet Explorer"==navigator.appName?(e=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(e=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t);if(0<r)n.msie=!0;else{var o=navigator.userAgent.toLowerCase(),i=/(edge)[ \/]([\w.]+)/.exec(o)||/(chrome)[ \/]([\w.]+)/.exec(o)||/(webkit)[ \/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(o)||/(msie) ([\w.]+)/.exec(o)||o.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(o)||[],a=i[1]||"";i[2],i[1]&&(n[a]=!0),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0)}return n.msie&&(n.version=r),n}(),function(){function e(e,t){var o=e[t];e[t]=function(e){var t,i=!1,a=!1;if(e&&e.match(r)){e=e.replace(r,""),this.parentNode||(n.appendChild(this),a=!0);var s=this.parentNode;return this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),i=!0),t=o.call(s,"#"+this.id+" "+e),i&&(this.id=""),a&&n.removeChild(this),t}return o.call(this,e)}}var n=t.o_doc.createElement("div");try{n.querySelectorAll(":scope *")}catch(t){var r=/^\s*:scope/gi;e(Element.prototype,"querySelector"),e(Element.prototype,"querySelectorAll"),e(HTMLElement.prototype,"querySelector"),e(HTMLElement.prototype,"querySelectorAll")}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!t)return null;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},isIOS:n,isMac:function(){return null==l&&(l=0<=navigator.platform.toUpperCase().indexOf("MAC")),l},isAndroid:r,isBlackberry:o,isWindowsPhone:i,isMobile:function(){return r()||n()||o()},isEmail:function(t){return!/^(https?:|ftps?:|)\/\//i.test(t)&&e.FE.MAIL_REGEX.test(t)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}},getPX:a,screenSize:function(){var t=e('<div class="fr-visibility-helper"></div>').appendTo("body:first");try{var n=a(t.css("margin-left"));return t.remove(),n}catch(t){return e.FE.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},sanitizeURL:function(t){return/^(https?:|ftps?:|)\/\//i.test(t)?t:/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(t)?t:new RegExp("^("+e.FE.LinkProtocols.join("|")+"):\\/\\/","i").test(t)?t:t=encodeURIComponent(t).replace(/%23/g,"#").replace(/%2F/g,"/").replace(/%25/g,"%").replace(/mailto%3A/gi,"mailto:").replace(/file%3A/gi,"file:").replace(/sms%3A/gi,"sms:").replace(/tel%3A/gi,"tel:").replace(/notes%3A/gi,"notes:").replace(/data%3Aimage/gi,"data:image").replace(/blob%3A/gi,"blob:").replace(/%3A(\d)/gi,":$1").replace(/webkit-fake-url%3A/gi,"webkit-fake-url:").replace(/%3F/g,"?").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/&amp;/g,"&").replace(/%2C/g,",").replace(/%3B/g,";").replace(/%2B/g,"+").replace(/%40/g,"@").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%7B/g,"{").replace(/%7D/g,"}")},isArray:function(e){return e&&!e.propertyIsEnumerable("length")&&"object"==typeof e&&"number"==typeof e.length},RGBToHex:function(e){function t(e){return("0"+parseInt(e,10).toString(16)).slice(-2)}try{return e&&"transparent"!==e?/^#[0-9A-F]{6}$/i.test(e)?e:("#"+t((e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+t(e[2])+t(e[3])).toUpperCase():""}catch(e){return null}},HEXtoRGB:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb("+parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16)+")":""},isURL:function(t){return!!/^(https?:|ftps?:|)\/\//i.test(t)&&(t=String(t).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^"+e.FE.LinkRegExHTTP+e.FE.LinkRegExEnd+"$","gi").test(t))},getAlignment:function(n){var r=(n.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(r)<0){if(!s){var o=e('<div dir="'+("rtl"==t.opts.direction?"rtl":"auto")+'" style="text-align: '+t.$el.css("text-align")+'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>');e("body:first").append(o);var i=o.find("#s1").get(0).getBoundingClientRect().left,a=o.find("#s2").get(0).getBoundingClientRect().left;o.remove(),s=i<a?"left":"right"}r=s}return r},scrollTop:function(){return t.o_win.pageYOffset?t.o_win.pageYOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollTop?t.o_doc.documentElement.scrollTop:t.o_doc.body.scrollTop?t.o_doc.body.scrollTop:0},scrollLeft:function(){return t.o_win.pageXOffset?t.o_win.pageXOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollLeft?t.o_doc.documentElement.scrollLeft:t.o_doc.body.scrollLeft?t.o_doc.body.scrollLeft:0},isInViewPort:function(e){var t=e.getBoundingClientRect();return 0<=(t={top:Math.round(t.top),bottom:Math.round(t.bottom)}).top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)||t.top<=0&&t.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}},e.FE.MODULES.events=function(t){var n,r={};function o(e,t,n){d(e,t,n)}function i(n){if(void 0===n&&(n=!0),!t.$wp)return!1;if(t.helpers.isIOS()){t.$win.get(0).focus();var r=0===t.$win.scrollTop()?1:t.$win.scrollTop();window.scrollTo(0,r)}if(t.core.hasFocus())return!1;if(!t.core.hasFocus()&&n){var o=t.$win.scrollTop();if(t.browser.msie&&t.$box&&t.$box.css("position","fixed"),t.browser.msie&&t.$wp&&t.$wp.css("overflow","visible"),t.browser.msie&&t.$sc&&t.$sc.css("position","fixed"),l(),t.$el.focus(),t.events.trigger("focus"),s(),t.browser.msie&&t.$sc&&t.$sc.css("position",""),t.browser.msie&&t.$box&&t.$box.css("position",""),t.browser.msie&&t.$wp&&t.$wp.css("overflow","auto"),o!=t.$win.scrollTop()&&t.$win.scrollTop(o),!t.selection.info(t.el).atStart)return!1}if(!t.core.hasFocus()||0<t.$el.find(".fr-marker").length)return!1;if(t.selection.info(t.el).atStart&&t.selection.isCollapsed()&&null!=t.html.defaultTag()){var i=t.markers.insert();if(i&&!t.node.blockParent(i)){e(i).remove();var a=t.$el.find(t.html.blockTagsQuery()).get(0);a&&(e(a).prepend(e.FE.MARKERS),t.selection.restore())}else i&&e(i).remove()}}var a=!1;function s(){n=!0}function l(){n=!1}function c(){return n}function u(e,n,o){var i,a=e.split(" ");if(1<a.length){for(var s=0;s<a.length;s++)u(a[s],n,o);return!0}void 0===o&&(o=!1),i=0!==e.indexOf("shared.")?r[e]=r[e]||[]:t.shared._events[e]=t.shared._events[e]||[],o?i.unshift(n):i.push(n)}var f=[];function d(e,n,r,o,i){"function"==typeof r&&(i=o,o=r,r=!1);var a,s=i?t.shared.$_events:f,l=i?t.sid:t.id;a=o,o=function(){if(!t.destroying)return a.apply(this,arguments)},r?e.on(n.split(" ").join(".ed"+l+" ")+".ed"+l,r,o):e.on(n.split(" ").join(".ed"+l+" ")+".ed"+l,o),s.push([e,n.split(" ").join(".ed"+l+" ")+".ed"+l])}function p(e){for(var t=0;t<e.length;t++)e[t][0].off(e[t][1])}function h(n,o,i){if(!t.edit.isDisabled()||i){var a,s;if(0!==n.indexOf("shared."))a=r[n];else{if(0<t.shared.count)return!1;a=t.shared._events[n]}if(a)for(var l=0;l<a.length;l++)if(!1===(s=a[l].apply(t,o)))return!1;return!1!==(s=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],o||[])))&&s}}function m(){for(var e in r)r.hasOwnProperty(e)&&delete r[e]}function v(){for(var e in t.shared._events)t.shared._events.hasOwnProperty(e)&&delete t.shared._events[e]}return{_init:function(){t.shared.$_events=t.shared.$_events||[],t.shared._events={},t.helpers.isMobile()?(t._mousedown="touchstart",t._mouseup="touchend",t._move="touchmove",t._mousemove="touchmove"):(t._mousedown="mousedown",t._mouseup="mouseup",t._move="",t._mousemove="mousemove"),o(t.$el,"click mouseup mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",function(e){h(e.type,[e])}),u("mousedown",function(){for(var n=0;n<e.FE.INSTANCES.length;n++)e.FE.INSTANCES[n]!=t&&e.FE.INSTANCES[n].popups&&e.FE.INSTANCES[n].popups.areVisible()&&e.FE.INSTANCES[n].$el.find(".fr-marker").remove()}),o(t.$win,t._mousedown,function(e){h("window.mousedown",[e]),s()}),o(t.$win,t._mouseup,function(e){h("window.mouseup",[e])}),o(t.$win,"cut copy keydown keyup touchmove touchend",function(e){h("window."+e.type,[e])}),o(t.$doc,"dragend drop",function(e){h("document."+e.type,[e])}),o(t.$el,"keydown keypress keyup input",function(e){h(e.type,[e])}),o(t.$el,"focus",function(e){c()&&(i(!1),!1===a&&h(e.type,[e]))}),o(t.$el,"blur",function(e){c()&&!0===a&&(h(e.type,[e]),s())}),d(t.$el,"mousedown",'[contenteditable="true"]',function(){l(),t.$el.blur()}),u("focus",function(){a=!0}),u("blur",function(){a=!1}),s(),o(t.$el,"cut copy paste beforepaste",function(e){h(e.type,[e])}),u("destroy",m),u("shared.destroy",v)},on:u,trigger:h,bindClick:function(n,r,o){d(n,t._mousedown,r,function(n){var r,o;t.edit.isDisabled()||(o=e((r=n).currentTarget),t.edit.isDisabled()||t.node.hasClass(o.get(0),"fr-disabled")?r.preventDefault():"mousedown"===r.type&&1!==r.which||(t.helpers.isMobile()||r.preventDefault(),(t.helpers.isAndroid()||t.helpers.isWindowsPhone())&&0===o.parents(".fr-dropdown-menu").length&&(r.preventDefault(),r.stopPropagation()),o.addClass("fr-selected"),t.events.trigger("commands.mousedown",[o])))},!0),d(n,t._mouseup+" "+t._move,r,function(n){t.edit.isDisabled()||function(n,r){var o=e(n.currentTarget);if(t.edit.isDisabled()||t.node.hasClass(o.get(0),"fr-disabled"))return n.preventDefault();if(("mouseup"!==n.type||1===n.which)&&t.node.hasClass(o.get(0),"fr-selected"))if("touchmove"!=n.type){if(n.stopPropagation(),n.stopImmediatePropagation(),n.preventDefault(),!t.node.hasClass(o.get(0),"fr-selected"))return t.button.getButtons(".fr-selected",!0).removeClass("fr-selected");if(t.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),o.data("dragging")||o.attr("disabled"))return o.removeData("dragging");var i=o.data("timeout");i&&(clearTimeout(i),o.removeData("timeout")),r.apply(t,[n])}else o.data("timeout")||o.data("timeout",setTimeout(function(){o.data("dragging",!0)},100))}(n,o)},!0),d(n,"mousedown click mouseup",r,function(e){t.edit.isDisabled()||e.stopPropagation()},!0),u("window.mouseup",function(){t.edit.isDisabled()||(n.find(r).removeClass("fr-selected"),s())}),d(n,"mouseenter",r,function(){e(this).hasClass("fr-options")&&e(this).prev(".fr-btn").addClass("fr-btn-hover"),e(this).next(".fr-btn").hasClass("fr-options")&&e(this).next(".fr-btn").addClass("fr-btn-hover")}),d(n,"mouseleave",r,function(){e(this).hasClass("fr-options")&&e(this).prev(".fr-btn").removeClass("fr-btn-hover"),e(this).next(".fr-btn").hasClass("fr-options")&&e(this).next(".fr-btn").removeClass("fr-btn-hover")})},disableBlur:l,enableBlur:s,blurActive:c,focus:i,chainTrigger:function(n,o,i){if(!t.edit.isDisabled()||i){var a,s;if(0!==n.indexOf("shared."))a=r[n];else{if(0<t.shared.count)return!1;a=t.shared._events[n]}if(a)for(var l=0;l<a.length;l++)void 0!==(s=a[l].apply(t,[o]))&&(o=s);return void 0!==(s=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],[o])))&&(o=s),o}},$on:d,$off:function(){p(f),f=[],0===t.shared.count&&(p(t.shared.$_events),t.shared.$_events=[])}}},e.FE.MODULES.node=function(t){function n(e){return e&&"IFRAME"!=e.tagName?Array.prototype.slice.call(e.childNodes||[]):[]}function r(t){return!!t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.BLOCK_TAGS.indexOf(t.tagName.toLowerCase())}function o(e){var t={},n=e.attributes;if(n)for(var r=0;r<n.length;r++){var o=n[r];t[o.nodeName]=o.value}return t}function i(e){for(var t="",n=o(e),r=Object.keys(n).sort(),i=0;i<r.length;i++){var a=r[i],s=n[a];s.indexOf("'")<0&&0<=s.indexOf('"')?t+=" "+a+"='"+s+"'":0<=s.indexOf('"')&&0<=s.indexOf("'")?t+=" "+a+'="'+(s=s.replace(/"/g,"&quot;"))+'"':t+=" "+a+'="'+s+'"'}return t}function a(e){return e===t.el}return{isBlock:r,isEmpty:function(o,i){if(!o)return!0;if(o.querySelector("table"))return!1;var a=n(o);1==a.length&&r(a[0])&&(a=n(a[0]));for(var s=!1,l=0;l<a.length;l++){var c=a[l];if(!(i&&t.node.hasClass(c,"fr-marker")||c.nodeType==Node.TEXT_NODE&&0===c.textContent.length)){if("BR"!=c.tagName&&0<(c.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length)return!1;if(s)return!1;"BR"==c.tagName&&(s=!0)}}return!(o.querySelectorAll(e.FE.VOID_ELEMENTS.join(",")).length-o.querySelectorAll("br").length||o.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||1<o.querySelectorAll(e.FE.BLOCK_TAGS.join(",")).length||o.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)"))},blockParent:function(e){for(;e&&e.parentNode!==t.el&&(!e.parentNode||!t.node.hasClass(e.parentNode,"fr-inner"));)if(r(e=e.parentNode))return e;return null},deepestParent:function(n,o,i){if(void 0===o&&(o=[]),void 0===i&&(i=!0),o.push(t.el),0<=o.indexOf(n.parentNode)||n.parentNode&&t.node.hasClass(n.parentNode,"fr-inner")||n.parentNode&&0<=e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)&&i)return null;for(;o.indexOf(n.parentNode)<0&&n.parentNode&&!t.node.hasClass(n.parentNode,"fr-inner")&&(e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)<0||!i)&&(!r(n)||!r(n.parentNode)||!i);)n=n.parentNode;return n},rawAttributes:o,attributes:i,clearAttributes:function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--){var r=t[n];e.removeAttribute(r.nodeName)}},openTagString:function(e){return"<"+e.tagName.toLowerCase()+i(e)+">"},closeTagString:function(e){return"</"+e.tagName.toLowerCase()+">"},isFirstSibling:function e(n,r){void 0===r&&(r=!0);for(var o=n.previousSibling;o&&r&&t.node.hasClass(o,"fr-marker");)o=o.previousSibling;return!o||o.nodeType==Node.TEXT_NODE&&""===o.textContent&&e(o)},isLastSibling:function e(n,r){void 0===r&&(r=!0);for(var o=n.nextSibling;o&&r&&t.node.hasClass(o,"fr-marker");)o=o.nextSibling;return!o||o.nodeType==Node.TEXT_NODE&&""===o.textContent&&e(o)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType==Node.ELEMENT_NODE&&"a"==e.tagName.toLowerCase()},isElement:a,contents:n,isVoid:function(t){return t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.VOID_ELEMENTS.indexOf((t.tagName||"").toLowerCase())},hasFocus:function(e){return e===t.doc.activeElement&&(!t.doc.hasFocus||t.doc.hasFocus())&&!!(a(e)||e.type||e.href||~e.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!=e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(t,n){return t instanceof e&&(t=t.get(0)),t&&t.classList&&t.classList.contains(n)},filter:function(e){return t.browser.msie?e:{acceptNode:e}}}},e.FE.INVISIBLE_SPACE="&#8203;",e.FE.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.MARKERS=e.FE.START_MARKER+e.FE.END_MARKER,e.FE.MODULES.markers=function(t){function n(){if(!t.$wp)return null;try{var n=t.selection.ranges(0),r=n.commonAncestorContainer;if(t.core.isEmpty()&&r.textContent!==e("<span>").html(e.FE.INVISIBLE_SPACE).text())return t.selection.setAtStart(t.el),t.$el.find(".fr-marker:first").replaceWith('<span class="fr-single-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>"),t.$el.find(".fr-marker").remove(),t.$el.find(".fr-single-marker").removeClass("fr-single-marker").addClass("fr-marker").get(0);if(r!=t.el&&0===t.$el.find(r).length)return null;var o=n.cloneRange(),i=n.cloneRange();o.collapse(!0);var a=e('<span class="fr-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0];if(o.insertNode(a),a=t.$el.find("span.fr-marker").get(0)){for(var s=a.nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=t.$el.find("span.fr-marker").get(0).nextSibling;return t.selection.clear(),t.selection.get().addRange(i),a}return null}catch(e){}}function r(){t.$el.find(".fr-marker").remove()}return{place:function(n,r,o){var i,a,s;try{var l=n.cloneRange();if(l.collapse(r),l.insertNode(e('<span class="fr-marker" data-id="'+o+'" data-type="'+r+'" style="display: '+(t.browser.safari?"none":"inline-block")+'; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0]),!0===r)for(s=(i=t.$el.find('span.fr-marker[data-type="true"][data-id="'+o+'"]').get(0)).nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=i.nextSibling;if(!0===r&&!n.collapsed){for(;!t.node.isElement(i.parentNode)&&!s;)e(i.parentNode).after(i),s=i.nextSibling;if(s&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[0],(a=t.node.contents(s))[0]&&t.node.isBlock(a[0]););e(s).prepend(e(i))}}if(!1===r&&!n.collapsed){if((s=(i=t.$el.find('span.fr-marker[data-type="false"][data-id="'+o+'"]').get(0)).previousSibling)&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[a.length-1],(a=t.node.contents(s))[a.length-1]&&t.node.isBlock(a[a.length-1]););e(s).append(e(i))}(i.parentNode&&0<=["TD","TH"].indexOf(i.parentNode.tagName)||!i.previousSibling&&t.node.isBlock(i.parentElement))&&i.parentNode.previousSibling&&!i.previousSibling&&e(i.parentNode.previousSibling).append(i)}var c=t.$el.find('span.fr-marker[data-type="'+r+'"][data-id="'+o+'"]').get(0);return c&&(c.style.display="none"),c}catch(e){return null}},insert:n,split:function(){t.selection.isCollapsed()||t.selection.remove();var r=t.$el.find(".fr-marker").get(0);if(null==r&&(r=n()),null==r)return null;var o=t.node.deepestParent(r);if(o||(o=t.node.blockParent(r))&&"LI"!=o.tagName&&(o=null),o)if(t.node.isBlock(o)&&t.node.isEmpty(o))"LI"!=o.tagName||o.parentNode.firstElementChild!=o||t.node.isEmpty(o.parentNode)?e(o).replaceWith('<span class="fr-marker"></span>'):e(o).append('<span class="fr-marker"></span>');else if(t.cursor.isAtStart(r,o))e(o).before('<span class="fr-marker"></span>'),e(r).remove();else if(t.cursor.isAtEnd(r,o))e(o).after('<span class="fr-marker"></span>'),e(r).remove();else{for(var i=r,a="",s="";i=i.parentNode,a+=t.node.closeTagString(i),s=t.node.openTagString(i)+s,i!=o;);e(r).replaceWith('<span id="fr-break"></span>');var l=t.node.openTagString(o)+e(o).html()+t.node.closeTagString(o);l=l.replace(/<span id="fr-break"><\/span>/g,a+'<span class="fr-marker"></span>'+s),e(o).replaceWith(l)}return t.$el.find(".fr-marker").get(0)},insertAtPoint:function(e){var o,i=e.clientX,a=e.clientY;r();var s=null;if(void 0!==t.doc.caretPositionFromPoint?(o=t.doc.caretPositionFromPoint(i,a),(s=t.doc.createRange()).setStart(o.offsetNode,o.offset),s.setEnd(o.offsetNode,o.offset)):void 0!==t.doc.caretRangeFromPoint&&(o=t.doc.caretRangeFromPoint(i,a),(s=t.doc.createRange()).setStart(o.startContainer,o.startOffset),s.setEnd(o.startContainer,o.startOffset)),null!==s&&void 0!==t.win.getSelection){var l=t.win.getSelection();l.removeAllRanges(),l.addRange(s)}else if(void 0!==t.doc.body.createTextRange)try{(s=t.doc.body.createTextRange()).moveToPoint(i,a);var c=s.duplicate();c.moveToPoint(i,a),s.setEndPoint("EndToEnd",c),s.select()}catch(e){return!1}n()},remove:r}},e.FE.MODULES.selection=function(t){function n(){var e="";return t.win.getSelection?e=t.win.getSelection():t.doc.getSelection?e=t.doc.getSelection():t.doc.selection&&(e=t.doc.selection.createRange().text),e.toString()}function r(){return t.win.getSelection?t.win.getSelection():t.doc.getSelection?t.doc.getSelection():t.doc.selection.createRange()}function o(e){var n=r(),o=[];if(n&&n.getRangeAt&&n.rangeCount){o=[];for(var i=0;i<n.rangeCount;i++)o.push(n.getRangeAt(i))}else o=t.doc.createRange?[t.doc.createRange()]:[];return void 0!==e?o[e]:o}function i(){var e=r();try{e.removeAllRanges?e.removeAllRanges():e.empty?e.empty():e.clear&&e.clear()}catch(e){}}function a(e,t){var n=e;return n.nodeType==Node.ELEMENT_NODE&&0<n.childNodes.length&&n.childNodes[t]&&(n=n.childNodes[t]),n.nodeType==Node.TEXT_NODE&&(n=n.parentNode),n}function s(){if(t.$wp){t.markers.remove();var n,r,i=o(),a=[];for(r=0;r<i.length;r++)if(i[r].startContainer!==t.doc||t.browser.msie){var s=(n=i[r]).collapsed,l=t.markers.place(n,!0,r),c=t.markers.place(n,!1,r);if(void 0!==l&&l||!s||(e(".fr-marker").remove(),t.selection.setAtEnd(t.el)),t.el.normalize(),t.browser.safari&&!s)try{(n=t.doc.createRange()).setStartAfter(l),n.setEndBefore(c),a.push(n)}catch(e){}}if(t.browser.safari&&a.length)for(t.selection.clear(),r=0;r<a.length;r++)t.selection.get().addRange(a[r])}}function l(){var n,o=t.el.querySelectorAll('.fr-marker[data-type="true"]');if(!t.$wp)return t.markers.remove(),!1;if(0===o.length)return!1;if(t.browser.msie||t.browser.edge)for(n=0;n<o.length;n++)o[n].style.display="inline-block";t.core.hasFocus()||t.browser.msie||t.browser.webkit||t.$el.focus(),i();var a=r();for(n=0;n<o.length;n++){var s=e(o[n]).data("id"),l=o[n],u=t.doc.createRange(),f=t.$el.find('.fr-marker[data-type="false"][data-id="'+s+'"]');(t.browser.msie||t.browser.edge)&&f.css("display","inline-block");var d=null;if(0<f.length){f=f[0];try{for(var p,h=!1,m=l.nextSibling;m&&m.nodeType==Node.TEXT_NODE&&0===m.textContent.length;)m=(p=m).nextSibling,e(p).remove();for(var v,g,y=f.nextSibling;y&&y.nodeType==Node.TEXT_NODE&&0===y.textContent.length;)y=(p=y).nextSibling,e(p).remove();if(l.nextSibling==f||f.nextSibling==l){for(var b=l.nextSibling==f?l:f,_=b==l?f:l,w=b.previousSibling;w&&w.nodeType==Node.TEXT_NODE&&0===w.length;)w=(p=w).previousSibling,e(p).remove();if(w&&w.nodeType==Node.TEXT_NODE)for(;w&&w.previousSibling&&w.previousSibling.nodeType==Node.TEXT_NODE;)w.previousSibling.textContent=w.previousSibling.textContent+w.textContent,w=w.previousSibling,e(w.nextSibling).remove();for(var E=_.nextSibling;E&&E.nodeType==Node.TEXT_NODE&&0===E.length;)E=(p=E).nextSibling,e(p).remove();if(E&&E.nodeType==Node.TEXT_NODE)for(;E&&E.nextSibling&&E.nextSibling.nodeType==Node.TEXT_NODE;)E.nextSibling.textContent=E.textContent+E.nextSibling.textContent,E=E.nextSibling,e(E.previousSibling).remove();if(w&&(t.node.isVoid(w)||t.node.isBlock(w))&&(w=null),E&&(t.node.isVoid(E)||t.node.isBlock(E))&&(E=null),w&&E&&w.nodeType==Node.TEXT_NODE&&E.nodeType==Node.TEXT_NODE){e(l).remove(),e(f).remove();var x=w.textContent.length;w.textContent=w.textContent+E.textContent,e(E).remove(),t.opts.htmlUntouched||t.spaces.normalize(w),u.setStart(w,x),u.setEnd(w,x),h=!0}else!w&&E&&E.nodeType==Node.TEXT_NODE?(e(l).remove(),e(f).remove(),t.opts.htmlUntouched||t.spaces.normalize(E),d=e(t.doc.createTextNode("​")),e(E).before(d),u.setStart(E,0),u.setEnd(E,0),h=!0):!E&&w&&w.nodeType==Node.TEXT_NODE&&(e(l).remove(),e(f).remove(),t.opts.htmlUntouched||t.spaces.normalize(w),d=e(t.doc.createTextNode("​")),e(w).after(d),u.setStart(w,w.textContent.length),u.setEnd(w,w.textContent.length),h=!0)}h||((t.browser.chrome||t.browser.edge)&&l.nextSibling==f?(v=c(f,u,!0)||u.setStartAfter(f),g=c(l,u,!1)||u.setEndBefore(l)):(l.previousSibling==f&&(f=(l=f).nextSibling),f.nextSibling&&"BR"===f.nextSibling.tagName||!f.nextSibling&&t.node.isBlock(l.previousSibling)||l.previousSibling&&"BR"==l.previousSibling.tagName||(l.style.display="inline",f.style.display="inline",d=e(t.doc.createTextNode("​"))),v=c(l,u,!0)||e(l).before(d)&&u.setStartBefore(l),g=c(f,u,!1)||e(f).after(d)&&u.setEndAfter(f)),"function"==typeof v&&v(),"function"==typeof g&&g())}catch(e){}}d&&d.remove();try{a.addRange(u)}catch(e){}}t.markers.remove()}function c(n,r,o){var i,a=n.previousSibling,s=n.nextSibling;return a&&s&&a.nodeType==Node.TEXT_NODE&&s.nodeType==Node.TEXT_NODE?(i=a.textContent.length,o?(s.textContent=a.textContent+s.textContent,e(a).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,i)}):(a.textContent=a.textContent+s.textContent,e(s).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,i)})):a&&!s&&a.nodeType==Node.TEXT_NODE?(i=a.textContent.length,o?(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setStart(a,i)}):(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,i)})):!(!s||a||s.nodeType!=Node.TEXT_NODE)&&(o?(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,0)}):(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setEnd(s,0)}))}function u(){for(var e=o(),t=0;t<e.length;t++)if(!e[t].collapsed)return!1;return!0}function f(e){var n,r,o=!1,i=!1;if(t.win.getSelection){var a=t.win.getSelection();a.rangeCount&&((r=(n=a.getRangeAt(0)).cloneRange()).selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset),o=""===r.toString(),r.selectNodeContents(e),r.setStart(n.endContainer,n.endOffset),i=""===r.toString())}else t.doc.selection&&"Control"!=t.doc.selection.type&&((r=(n=t.doc.selection.createRange()).duplicate()).moveToElementText(e),r.setEndPoint("EndToStart",n),o=""===r.text,r.moveToElementText(e),r.setEndPoint("StartToEnd",n),i=""===r.text);return{atStart:o,atEnd:i}}function d(n,r){void 0===r&&(r=!0);var o=e(n).html();o&&o.replace(/\u200b/g,"").length!=o.length&&e(n).html(o.replace(/\u200b/g,""));for(var i=t.node.contents(n),a=0;a<i.length;a++)i[a].nodeType!=Node.ELEMENT_NODE?e(i[a]).remove():(d(i[a],0===a),0===a&&(r=!1));n.nodeType==Node.TEXT_NODE?e(n).replaceWith('<span data-first="true" data-text="true"></span>'):r&&e(n).attr("data-first",!0)}function p(){return 0===e(this).find("fr-inner").length}function h(){try{if(!t.$wp)return!1;for(var e=o(0).commonAncestorContainer;e&&!t.node.isElement(e);)e=e.parentNode;return!!t.node.isElement(e)}catch(e){return!1}}function m(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var o=n.firstChild;o&&(t.node.isBlock(o)||r&&!t.node.isVoid(o)&&o.nodeType==Node.ELEMENT_NODE);)o=(n=o).firstChild;n.innerHTML=e.FE.MARKERS+n.innerHTML}function v(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var o=n.lastChild;o&&(t.node.isBlock(o)||r&&!t.node.isVoid(o)&&o.nodeType==Node.ELEMENT_NODE);)o=(n=o).lastChild;var i=t.doc.createElement("SPAN");for(i.setAttribute("id","fr-sel-markers"),i.innerHTML=e.FE.MARKERS;n.parentNode&&t.opts.htmlAllowedEmptyTags&&0<=t.opts.htmlAllowedEmptyTags.indexOf(n.tagName.toLowerCase());)n=n.parentNode;n.appendChild(i);var a=n.querySelector("#fr-sel-markers");a.outerHTML=a.innerHTML}return{text:n,get:r,ranges:o,clear:i,element:function(){var i=r();try{if(i.rangeCount){var a,s=o(0),l=s.startContainer;if(t.node.isElement(l)&&0===s.startOffset&&l.childNodes.length)for(;l.childNodes.length&&l.childNodes[0].nodeType===Node.ELEMENT_NODE;)l=l.childNodes[0];if(l.nodeType==Node.TEXT_NODE&&s.startOffset==(l.textContent||"").length&&l.nextSibling&&(l=l.nextSibling),l.nodeType==Node.ELEMENT_NODE){var c=!1;if(0<l.childNodes.length&&l.childNodes[s.startOffset]){for(a=l.childNodes[s.startOffset];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;if(a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0),!c&&1<l.childNodes.length&&0<s.startOffset&&l.childNodes[s.startOffset-1]){for(a=l.childNodes[s.startOffset-1];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0)}}else!s.collapsed&&l.nextSibling&&l.nextSibling.nodeType==Node.ELEMENT_NODE&&(a=l.nextSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0);!c&&0<l.childNodes.length&&e(l.childNodes[0]).text().replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&["BR","IMG","HR"].indexOf(l.childNodes[0].tagName)<0&&(l=l.childNodes[0])}for(;l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var u=l;u&&"HTML"!=u.tagName;){if(u==t.el)return l;u=e(u).parent()[0]}}}catch(e){}return t.el},endElement:function(){var i=r();try{if(i.rangeCount){var a,s=o(0),l=s.endContainer;if(l.nodeType==Node.ELEMENT_NODE){var c=!1;0<l.childNodes.length&&l.childNodes[s.endOffset]&&e(l.childNodes[s.endOffset]).text()===n()?(l=l.childNodes[s.endOffset],c=!0):!s.collapsed&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE?(a=l.previousSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0):!s.collapsed&&0<l.childNodes.length&&l.childNodes[s.endOffset]&&(a=l.childNodes[s.endOffset].previousSibling).nodeType==Node.ELEMENT_NODE&&a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0),!c&&0<l.childNodes.length&&e(l.childNodes[l.childNodes.length-1]).text()===n()&&["BR","IMG","HR"].indexOf(l.childNodes[l.childNodes.length-1].tagName)<0&&(l=l.childNodes[l.childNodes.length-1])}for(l.nodeType==Node.TEXT_NODE&&0===s.endOffset&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE&&(l=l.previousSibling);l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var u=l;u&&"HTML"!=u.tagName;){if(u==t.el)return l;u=e(u).parent()[0]}}}catch(e){}return t.el},save:s,restore:l,isCollapsed:u,isFull:function(){if(u())return!1;t.selection.save();var n,r=t.el.querySelectorAll("td, th, img, br");for(n=0;n<r.length;n++)r[n].nextSibling&&(r[n].innerHTML='<span class="fr-mk">'+e.FE.INVISIBLE_SPACE+"</span>"+r[n].innerHTML);var o=!1,i=f(t.el);for(i.atStart&&i.atEnd&&(o=!0),r=t.el.querySelectorAll(".fr-mk"),n=0;n<r.length;n++)r[n].parentNode.removeChild(r[n]);return t.selection.restore(),o},inEditor:h,remove:function(){if(u())return!0;var n;s();var r=function(t){for(var n=t.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.previousSibling,e(r).remove()}return n},o=function(t){for(var n=t.nextSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.nextSibling,e(r).remove()}return n},i=t.$el.find('.fr-marker[data-type="true"]');for(n=0;n<i.length;n++)for(var a=i[n];!(r(a)||t.node.isBlock(a.parentNode)||t.$el.is(a.parentNode)||t.node.hasClass(a.parentNode,"fr-inner"));)e(a.parentNode).before(a);var c=t.$el.find('.fr-marker[data-type="false"]');for(n=0;n<c.length;n++){for(var f=c[n];!(o(f)||t.node.isBlock(f.parentNode)||t.$el.is(f.parentNode)||t.node.hasClass(f.parentNode,"fr-inner"));)e(f.parentNode).after(f);f.parentNode&&t.node.isBlock(f.parentNode)&&t.node.isEmpty(f.parentNode)&&!t.$el.is(f.parentNode)&&!t.node.hasClass(f.parentNode,"fr-inner")&&t.opts.keepFormatOnDelete&&e(f.parentNode).after(f)}if(function(){for(var n=t.$el.find(".fr-marker"),r=0;r<n.length;r++)if(e(n[r]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}()){!function n(r,o){var i=t.node.contents(r.get(0));0<=["TD","TH"].indexOf(r.get(0).tagName)&&1==r.find(".fr-marker").length&&t.node.hasClass(i[0],"fr-marker")&&r.attr("data-del-cell",!0);for(var a=0;a<i.length;a++){var s=i[a];t.node.hasClass(s,"fr-marker")?o=(o+1)%2:o?0<e(s).find(".fr-marker").length?o=n(e(s),o):["TD","TH"].indexOf(s.tagName)<0&&!t.node.hasClass(s,"fr-inner")?!t.opts.keepFormatOnDelete||0<t.$el.find("[data-first]").length||t.node.isVoid(s)?e(s).remove():d(s):t.node.hasClass(s,"fr-inner")?0===e(s).find(".fr-inner").length?e(s).html("<br>"):e(s).find(".fr-inner").filter(p).html("<br>"):(e(s).empty(),e(s).attr("data-del-cell",!0)):0<e(s).find(".fr-marker").length&&(o=n(e(s),o))}return o}(t.$el,0);var h=t.$el.find('[data-first="true"]');if(h.length)t.$el.find(".fr-marker").remove(),h.append(e.FE.INVISIBLE_SPACE+e.FE.MARKERS).removeAttr("data-first"),h.attr("data-text")&&h.replaceWith(h.html());else for(t.$el.find("table").filter(function(){return 0<e(this).find("[data-del-cell]").length&&e(this).find("[data-del-cell]").length==e(this).find("td, th").length}).remove(),t.$el.find("[data-del-cell]").removeAttr("data-del-cell"),i=t.$el.find('.fr-marker[data-type="true"]'),n=0;n<i.length;n++){var m=i[n],v=m.nextSibling,g=t.$el.find('.fr-marker[data-type="false"][data-id="'+e(m).data("id")+'"]').get(0);if(g){if(m&&(!v||v!=g)){var y=t.node.blockParent(m),b=t.node.blockParent(g),_=!1,w=!1;if(y&&0<=["UL","OL"].indexOf(y.tagName)&&(_=!(y=null)),b&&0<=["UL","OL"].indexOf(b.tagName)&&(w=!(b=null)),e(m).after(g),y!=b)if(null!=y||_)if(null!=b||w||0!==e(y).parentsUntil(t.$el,"table").length)y&&b&&0===e(y).parentsUntil(t.$el,"table").length&&0===e(b).parentsUntil(t.$el,"table").length&&0===e(y).find(b).length&&0===e(b).find(y).length&&(e(y).append(e(b).html()),e(b).remove());else{for(v=y;!v.nextSibling&&v.parentNode!=t.el;)v=v.parentNode;for(v=v.nextSibling;v&&"BR"!=v.tagName;){var E=v.nextSibling;e(y).append(v),v=E}v&&"BR"==v.tagName&&e(v).remove()}else{var x=t.node.deepestParent(m);x?(e(x).after(e(b).html()),e(b).remove()):0===e(b).parentsUntil(t.$el,"table").length&&(e(m).next().after(e(b).html()),e(b).remove())}}}else g=e(m).clone().attr("data-type",!1),e(m).after(g)}}t.$el.find("li:empty").remove(),t.opts.keepFormatOnDelete||t.html.fillEmptyBlocks(),t.html.cleanEmptyTags(!0),t.opts.htmlUntouched||(t.clean.lists(),t.$el.find("li:empty").append("<br>"),t.spaces.normalize());var k=t.$el.find(".fr-marker:last").get(0),S=t.$el.find(".fr-marker:first").get(0);void 0!==k&&void 0!==S&&!k.nextSibling&&S.previousSibling&&"BR"==S.previousSibling.tagName&&t.node.isElement(k.parentNode)&&t.node.isElement(S.parentNode)&&t.$el.append("<br>"),l()},blocks:function(){var n,i=[],s=r();if(h()&&s.rangeCount){var l=o();for(n=0;n<l.length;n++){var c,u=l[n],f=a(u.startContainer,u.startOffset),d=a(u.endContainer,u.endOffset);(t.node.isBlock(f)||t.node.hasClass(f,"fr-inner"))&&i.indexOf(f)<0&&i.push(f),(c=t.node.blockParent(f))&&i.indexOf(c)<0&&i.push(c);for(var p=[],m=f;m!==d&&m!==t.el;)p.indexOf(m)<0&&m.children&&m.children.length?(p.push(m),m=m.children[0]):m.nextSibling?m=m.nextSibling:m.parentNode&&(m=m.parentNode,p.push(m)),t.node.isBlock(m)&&p.indexOf(m)<0&&i.indexOf(m)<0&&(m!==d||0<u.endOffset)&&i.push(m);t.node.isBlock(d)&&i.indexOf(d)<0&&0<u.endOffset&&i.push(d),(c=t.node.blockParent(d))&&i.indexOf(c)<0&&i.push(c)}}for(n=i.length-1;0<n;n--)e(i[n]).find(i).length&&i.splice(n,1);return i},info:f,setAtEnd:v,setAtStart:m,setBefore:function(n,r){void 0===r&&(r=!0);for(var o=n.previousSibling;o&&o.nodeType==Node.TEXT_NODE&&0===o.textContent.length;)o=o.previousSibling;return o?(t.node.isBlock(o)?v(o):"BR"==o.tagName?e(o).before(e.FE.MARKERS):e(o).after(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?m(n):e(n).before(e.FE.MARKERS),!0)},setAfter:function(n,r){void 0===r&&(r=!0);for(var o=n.nextSibling;o&&o.nodeType==Node.TEXT_NODE&&0===o.textContent.length;)o=o.nextSibling;return o?(t.node.isBlock(o)?m(o):e(o).before(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?v(n):e(n).after(e.FE.MARKERS),!0)},rangeElement:a}},e.extend(e.FE.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","aria-.*","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),e.FE.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},e.FE.MODULES.clean=function(t){var n,r,o,i;function a(e){if(e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=e.getAttribute("class").indexOf("fr-marker"))return!1;var n,r=t.node.contents(e),o=[];for(n=0;n<r.length;n++)r[n].nodeType!=Node.ELEMENT_NODE||t.node.isVoid(r[n])?r[n].nodeType==Node.TEXT_NODE&&(r[n].textContent=r[n].textContent.replace(/\u200b/g,"")):r[n].textContent.replace(/\u200b/g,"").length!=r[n].textContent.length&&a(r[n]);if(e.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(e)&&(e.normalize(),r=t.node.contents(e),o=e.querySelectorAll(".fr-marker"),r.length-o.length==0)){for(n=0;n<r.length;n++)if(r[n].nodeType==Node.ELEMENT_NODE&&(r[n].getAttribute("class")||"").indexOf("fr-marker")<0)return!1;for(n=0;n<o.length;n++)e.parentNode.insertBefore(o[n].cloneNode(!0),e);return e.parentNode.removeChild(e),!1}}function s(e,n){if(e.nodeType==Node.COMMENT_NODE)return"\x3c!--"+e.nodeValue+"--\x3e";if(e.nodeType==Node.TEXT_NODE)return n?e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\u0009/g,"");if(e.nodeType!=Node.ELEMENT_NODE)return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(e.tagName))return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&"svg"==e.tagName){var r=document.createElement("div"),o=e.cloneNode(!0);return r.appendChild(o),r.innerHTML}if("IFRAME"==e.tagName)return e.outerHTML.replace(/\&lt;/g,"<").replace(/\&gt;/g,">");var i=e.childNodes;if(0===i.length)return e.outerHTML;for(var a="",l=0;l<i.length;l++)"PRE"==e.tagName&&(n=!0),a+=s(i[l],n);return t.node.openTagString(e)+a+t.node.closeTagString(e)}var l=[];function c(e){var t=e.replace(/;;/gi,";");return";"!=(t=t.replace(/^;/gi,"")).charAt(t.length)&&(t+=";"),t}function u(e){var n;for(n in e)if(e.hasOwnProperty(n)){var r=n.match(o),a=null;"style"==n&&t.opts.htmlAllowedStyleProps.length&&(a=e[n].match(i)),r&&a?e[n]=c(a.join(";")):r&&("style"!=n||a)||delete e[n]}for(var s="",l=Object.keys(e).sort(),u=0;u<l.length;u++)e[n=l[u]].indexOf('"')<0?s+=" "+n+'="'+e[n]+'"':s+=" "+n+"='"+e[n]+"'";return s}function f(n,r){var o,i=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");e(i).append(n);var a="";if(i){var l=t.node.contents(i);for(o=0;o<l.length;o++)r(l[o]);for(l=t.node.contents(i),o=0;o<l.length;o++)a+=s(l[o])}return a}function d(e,n,r){l=[];var o=e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,function(e){return l.push(e),"[FROALA.EDITOR.SCRIPT "+(l.length-1)+"]"}).replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,function(e){return l.push(e),"[FROALA.EDITOR.NOSCRIPT "+(l.length-1)+"]"}).replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="').replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="'),i=null;t.opts.fullPage&&(o=t.html.extractNode(e,"body")||(0<=e.indexOf("<body")?"":e),r&&(i=t.html.extractNode(e,"head")||"")),o=f(o,n),i&&(i=f(i,n));var a=function(e,n,r){if(t.opts.fullPage){var o=t.html.extractDoctype(r),i=u(t.html.extractNodeAttrs(r,"html"));return n=null==n?t.html.extractNode(r,"head")||"<title></title>":n,o+"<html"+i+"><head"+u(t.html.extractNodeAttrs(r,"head"))+">"+n+"</head><body"+u(t.html.extractNodeAttrs(r,"body"))+">"+e+"</body></html>"}return e}(o,i,e);return a.replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("script")?"":l[parseInt(n,10)]}).replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("noscript")?"":l[parseInt(n,10)].replace(/\&lt;/g,"<").replace(/\&gt;/g,">")}).replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}function p(e){var n=t.doc.createElement("DIV");return n.innerText=e,n.textContent}function h(a){for(var s=t.node.contents(a),l=0;l<s.length;l++)s[l].nodeType!=Node.TEXT_NODE&&h(s[l]);!function(a){if(!("SPAN"==a.tagName&&0<=(a.getAttribute("class")||"").indexOf("fr-marker"))){var s,l;if("PRE"==a.tagName&&0<=(l=(s=a).innerHTML).indexOf("\n")&&(s.innerHTML=l.replace(/\n/g,"<br>")),a.nodeType==Node.ELEMENT_NODE&&(a.getAttribute("data-fr-src")&&0!==a.getAttribute("data-fr-src").indexOf("blob:")&&a.setAttribute("data-fr-src",t.helpers.sanitizeURL(p(a.getAttribute("data-fr-src")))),a.getAttribute("href")&&a.setAttribute("href",t.helpers.sanitizeURL(p(a.getAttribute("href")))),a.getAttribute("src")&&a.setAttribute("src",t.helpers.sanitizeURL(p(a.getAttribute("src")))),a.getAttribute("data")&&a.setAttribute("data",t.helpers.sanitizeURL(p(a.getAttribute("data")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(a.tagName)&&(a.innerHTML=a.innerHTML.trim())),!t.opts.pasteAllowLocalImages&&a.nodeType==Node.ELEMENT_NODE&&"IMG"==a.tagName&&a.getAttribute("data-fr-src")&&0===a.getAttribute("data-fr-src").indexOf("file://"))return a.parentNode.removeChild(a);if(a.nodeType==Node.ELEMENT_NODE&&e.FE.HTML5Map[a.tagName]&&""===t.node.attributes(a)){var u=e.FE.HTML5Map[a.tagName],f="<"+u+">"+a.innerHTML+"</"+u+">";a.insertAdjacentHTML("beforebegin",f),(a=a.previousSibling).parentNode.removeChild(a.nextSibling)}if(t.opts.htmlAllowComments||a.nodeType!=Node.COMMENT_NODE)if(a.tagName&&a.tagName.match(r))a.parentNode.removeChild(a);else if(a.tagName&&!a.tagName.match(n)){if("svg"===a.tagName)a.parentNode.removeChild(a);else if(!t.browser.safari||"path"!=a.tagName||!a.parentNode||"svg"!=a.parentNode.tagName)try{a.outerHTML=a.innerHTML}catch(e){}}else{var d=a.attributes;if(d)for(var h=d.length-1;0<=h;h--){var m=d[h],v=m.nodeName.match(o),g=null;"style"==m.nodeName&&t.opts.htmlAllowedStyleProps.length&&(g=m.value.match(i)),v&&g?m.value=c(g.join(";")):v&&("style"!=m.nodeName||g)||a.removeAttribute(m.nodeName)}}else 0!==a.data.indexOf("[FROALA.EDITOR")&&a.parentNode.removeChild(a)}}(a)}return{_init:function(){t.opts.fullPage&&e.merge(t.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(a,s,l,c){void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===c&&(c=!1);var u,f=e.merge([],t.opts.htmlAllowedTags);for(u=0;u<s.length;u++)0<=f.indexOf(s[u])&&f.splice(f.indexOf(s[u]),1);var p=e.merge([],t.opts.htmlAllowedAttrs);for(u=0;u<l.length;u++)0<=p.indexOf(l[u])&&p.splice(p.indexOf(l[u]),1);return p.push("data-fr-.*"),p.push("fr-.*"),n=new RegExp("^"+f.join("$|^")+"$","gi"),o=new RegExp("^"+p.join("$|^")+"$","gi"),r=new RegExp("^"+t.opts.htmlRemoveTags.join("$|^")+"$","gi"),i=t.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)"+t.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)")+":.+?(?=(;)|$))","gi"):null,a=d(a,h,!0)},toHTML5:function(){var n=t.el.querySelectorAll(Object.keys(e.FE.HTML5Map).join(","));if(n.length){var r=!1;t.el.querySelector(".fr-marker")||(t.selection.save(),r=!0);for(var o=0;o<n.length;o++)""===t.node.attributes(n[o])&&e(n[o]).replaceWith("<"+e.FE.HTML5Map[n[o].tagName]+">"+n[o].innerHTML+"</"+e.FE.HTML5Map[n[o].tagName]+">");r&&t.selection.restore()}},tables:function(){!function(){for(var e=t.el.querySelectorAll("tr"),n=0;n<e.length;n++){for(var r=e[n].children,o=!0,i=0;i<r.length;i++)if("TH"!=r[i].tagName){o=!1;break}if(!1!==o&&0!==r.length){for(var a=e[n];a&&"TABLE"!=a.tagName&&"THEAD"!=a.tagName;)a=a.parentNode;var s=a;"THEAD"!=s.tagName&&(s=t.doc.createElement("THEAD"),a.insertBefore(s,a.firstChild)),s.appendChild(e[n])}}}()},lists:function(){!function(){var e,n=[];do{if(n.length){var r=n[0],o=t.doc.createElement("ul");r.parentNode.insertBefore(o,r);do{var i=r;r=r.nextSibling,o.appendChild(i)}while(r&&"LI"==r.tagName)}n=[];for(var a=t.el.querySelectorAll("li"),s=0;s<a.length;s++)e=a[s],t.node.isList(e.parentNode)||n.push(a[s])}while(0<n.length)}(),function(){for(var e=t.el.querySelectorAll("ol + ol, ul + ul"),n=0;n<e.length;n++){var r=e[n];if(t.node.isList(r.previousSibling)&&t.node.openTagString(r)==t.node.openTagString(r.previousSibling)){for(var o=t.node.contents(r),i=0;i<o.length;i++)r.previousSibling.appendChild(o[i]);r.parentNode.removeChild(r)}}}(),function(){for(var n=t.el.querySelectorAll("ul, ol"),r=0;r<n.length;r++)for(var o=t.node.contents(n[r]),i=null,a=o.length-1;0<=a;a--)"LI"!=o[a].tagName&&"UL"!=o[a].tagName&&"OL"!=o[a].tagName?(i||(i=e("<li>")).insertBefore(o[a]),i.prepend(o[a])):i=null}(),function(){var e,n,r;do{n=!1;var o=t.el.querySelectorAll("li:empty");for(e=0;e<o.length;e++)o[e].parentNode.removeChild(o[e]);var i=t.el.querySelectorAll("ul, ol");for(e=0;e<i.length;e++)(r=i[e]).querySelector("LI")||(n=!0,r.parentNode.removeChild(r))}while(!0===n)}(),function(){for(var n=t.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul"),r=0;r<n.length;r++){var o=n[r],i=o.previousSibling;i&&("LI"==i.tagName?i.appendChild(o):e(o).wrap("<li></li>"))}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var o=n[r];if(o.nextSibling){var i=o.nextSibling,a=e("<li>");e(o.parentNode).after(a);do{var s=i;i=i.nextSibling,a.append(s)}while(i)}}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var o=n[r];if(t.node.isFirstSibling(o))e(o).before("<br/>");else if(o.previousSibling&&"BR"==o.previousSibling.tagName){for(var i=o.previousSibling.previousSibling;i&&t.node.hasClass(i,"fr-marker");)i=i.previousSibling;i&&"BR"!=i.tagName&&e(o.previousSibling).remove()}}}(),function(){for(var n=t.el.querySelectorAll("li:empty"),r=0;r<n.length;r++)e(n[r]).remove()}()},invisibleSpaces:function(e){return e.replace(/\u200b/g,"").length==e.length?e:t.clean.exec(e,a)},exec:d}},e.FE.MODULES.spaces=function(t){function n(n,r){var o=n.previousSibling,i=n.nextSibling,a=n.textContent,s=n.parentNode;if(!t.html.isPreformatted(s)){r&&(a=a.replace(/[\f\n\r\t\v ]{2,}/g," "),i&&"BR"!==i.tagName&&!t.node.isBlock(i)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.nextSibling||t.node.isElement(s))||(a=a.replace(/[\f\n\r\t\v ]{1,}$/g,"")),o&&"BR"!==o.tagName&&!t.node.isBlock(o)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.previousSibling||t.node.isElement(s))||(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),(t.node.isBlock(i)||t.node.isBlock(o))&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,""))," "===a&&(o&&t.node.isVoid(o)||i&&t.node.isVoid(i))&&!(o&&i&&t.node.isVoid(o)||i&&o&&t.node.isVoid(i))&&(a="")),(!o&&t.node.isBlock(i)||!i&&t.node.isBlock(o))&&t.node.isBlock(s)&&s!==t.el&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),r||(a=a.replace(new RegExp(e.FE.UNICODE_NBSP,"g")," "));for(var l="",c=0;c<a.length;c++)32!=a.charCodeAt(c)||0!==c&&32!=l.charCodeAt(c-1)||o&&i&&t.node.isVoid(o)||o&&i&&t.node.isVoid(i)?l+=a[c]:l+=e.FE.UNICODE_NBSP;(!i||i&&t.node.isBlock(i)||i&&i.nodeType==Node.ELEMENT_NODE&&t.win.getComputedStyle(i)&&"block"==t.win.getComputedStyle(i).display)&&(t.node.isVoid(o)||(l=l.replace(/ $/,e.FE.UNICODE_NBSP))),!o||t.node.isVoid(o)||t.node.isBlock(o)||1!==(l=l.replace(/^\u00A0([^ $])/," $1")).length||160!==l.charCodeAt(0)||!i||t.node.isVoid(i)||t.node.isBlock(i)||t.node.hasClass(o,"fr-marker")&&t.node.hasClass(i,"fr-marker")||(l=" "),r||(l=l.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2")),n.textContent!=l&&(n.textContent=l)}}function r(e,r){if(void 0!==e&&e||(e=t.el),void 0===r&&(r=!1),!e.getAttribute||"false"!=e.getAttribute("contenteditable"))if(e.nodeType==Node.TEXT_NODE)n(e,r);else if(e.nodeType==Node.ELEMENT_NODE)for(var o=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){for(var n=e.parentNode;n&&n!==t.el;){if("STYLE"==n.tagName||"IFRAME"==n.tagName)return!1;if("PRE"===n.tagName)return!1;n=n.parentNode}return null!=e.textContent.match(/([ \u00A0\f\n\r\t\v]{2,})|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!t.node.hasClass(e.parentNode,"fr-marker")}),!1);o.nextNode();)n(o.currentNode,r)}return{normalize:r,normalizeAroundCursor:function(){for(var e=[],n=t.el.querySelectorAll(".fr-marker"),o=0;o<n.length;o++){for(var i=null,a=t.node.blockParent(n[o]),s=(i=a||n[o]).nextSibling,l=i.previousSibling;s&&"BR"==s.tagName;)s=s.nextSibling;for(;l&&"BR"==l.tagName;)l=l.previousSibling;i&&e.indexOf(i)<0&&e.push(i),l&&e.indexOf(l)<0&&e.push(l),s&&e.indexOf(s)<0&&e.push(s)}for(var c=0;c<e.length;c++)r(e[c])}}},e.FE.UNICODE_NBSP=String.fromCharCode(160),e.FE.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],e.FE.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],e.extend(e.FE.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),e.FE.MODULES.html=function(t){function n(){return t.opts.enter==e.FE.ENTER_P?"p":t.opts.enter==e.FE.ENTER_DIV?"div":t.opts.enter==e.FE.ENTER_BR?null:void 0}function r(e,n){return!(!e||e===t.el)&&(n?-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName)||r(e.parentNode,n):-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName))}function o(n){var r,o=[],a=[];if(n){var s=t.el.querySelectorAll(".fr-marker");for(r=0;r<s.length;r++){var l=t.node.blockParent(s[r])||s[r];if(l){var c=l.nextSibling,u=l.previousSibling;l&&a.indexOf(l)<0&&t.node.isBlock(l)&&a.push(l),u&&t.node.isBlock(u)&&a.indexOf(u)<0&&a.push(u),c&&t.node.isBlock(c)&&a.indexOf(c)<0&&a.push(c)}}}else a=t.el.querySelectorAll(i());var f=i();for(f+=","+e.FE.VOID_ELEMENTS.join(","),f+=", .fr-inner",f+=","+t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)",r=a.length-1;0<=r;r--)if(!(a[r].textContent&&0<a[r].textContent.replace(/\u200B|\n/g,"").length||0<a[r].querySelectorAll(f).length)){for(var d=t.node.contents(a[r]),p=!1,h=0;h<d.length;h++)if(d[h].nodeType!=Node.COMMENT_NODE&&d[h].textContent&&0<d[h].textContent.replace(/\u200B|\n/g,"").length){p=!0;break}p||o.push(a[r])}return o}function i(){return e.FE.BLOCK_TAGS.join(", ")}function a(n){var r,o,i=e.merge([],e.FE.VOID_ELEMENTS);i=e.merge(i,t.opts.htmlAllowedEmptyTags),i=void 0===n?e.merge(i,e.FE.BLOCK_TAGS):e.merge(i,e.FE.NO_DELETE_TAGS),r=t.el.querySelectorAll("*:empty:not("+i.join("):not(")+"):not(.fr-marker)");do{o=!1;for(var a=0;a<r.length;a++)0!==r[a].attributes.length&&void 0===r[a].getAttribute("href")||(r[a].parentNode.removeChild(r[a]),o=!0);r=t.el.querySelectorAll("*:empty:not("+i.join("):not(")+"):not(.fr-marker)")}while(r.length&&o)}function s(e,r){var o=n();if(r&&(o="div"),o){for(var i=t.doc.createDocumentFragment(),a=null,s=!1,l=e.firstChild,c=!1;l;){var u=l.nextSibling;if(l.nodeType==Node.ELEMENT_NODE&&(t.node.isBlock(l)||0<=t.opts.htmlDoNotWrapTags.indexOf(l.tagName.toLowerCase())&&!t.node.hasClass(l,"fr-marker")))a=null,i.appendChild(l.cloneNode(!0));else if(l.nodeType!=Node.ELEMENT_NODE&&l.nodeType!=Node.TEXT_NODE)a=null,i.appendChild(l.cloneNode(!0));else if("BR"==l.tagName)null==a?(a=t.doc.createElement(o),c=!0,r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0)),a.appendChild(l.cloneNode(!0)),i.appendChild(a)):!1===s&&(a.appendChild(t.doc.createElement("br")),r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0))),a=null;else{var f=l.textContent;l.nodeType!==Node.TEXT_NODE||0<f.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||f.replace(/(^ *)|( *$)/g,"").length&&f.indexOf("\n")<0?(null==a&&(a=t.doc.createElement(o),c=!0,r&&a.setAttribute("class","fr-temp-div"),i.appendChild(a),s=!1),a.appendChild(l.cloneNode(!0)),s||t.node.hasClass(l,"fr-marker")||l.nodeType==Node.TEXT_NODE&&0===f.replace(/ /g,"").length||(s=!0)):c=!0}l=u}c&&(e.innerHTML="",e.appendChild(i))}}function l(e,t){for(var n=e.length-1;0<=n;n--)s(e[n],t)}function c(e,n,r,o,i){if(!t.$wp)return!1;void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!1);var a=t.$wp.scrollTop();s(t.el,e),o&&l(t.el.querySelectorAll(".fr-inner"),e),n&&l(t.el.querySelectorAll("td, th"),e),r&&l(t.el.querySelectorAll("blockquote"),e),i&&l(t.el.querySelectorAll("li"),e),a!=t.$wp.scrollTop()&&t.$wp.scrollTop(a)}function u(e){if(void 0===e&&(e=t.el),e&&0<=["SCRIPT","STYLE","PRE"].indexOf(e.tagName))return!1;for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return null!=e.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)}),!1);n.nextNode();){var o=n.currentNode;if(!r(o.parentNode,!0)){var i=t.node.isBlock(o.parentNode)||t.node.isElement(o.parentNode),a=o.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(i){var s=o.previousSibling,l=o.nextSibling;s&&l&&" "==a?a=t.node.isBlock(s)&&t.node.isBlock(l)?"":" ":(s||(a=a.replace(/^ */,"")),l||(a=a.replace(/ *$/,"")))}o.textContent=a}}}function f(e,t,n){var r=new RegExp(t,"gi").exec(e);return r?r[n]:null}function d(e){var t=e.doctype,n="<!DOCTYPE html>";return t&&(n="<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"),n}function p(n){var r=n.parentNode;if(r&&(t.node.isBlock(r)||t.node.isElement(r))&&["TD","TH"].indexOf(r.tagName)<0){for(var o=n.previousSibling,i=n.nextSibling;o&&(o.nodeType==Node.TEXT_NODE&&0===o.textContent.replace(/\n|\r/g,"").length||t.node.hasClass(o,"fr-tmp"));)o=o.previousSibling;if(i)return!1;o&&r&&"BR"!=o.tagName&&!t.node.isBlock(o)&&!i&&0<r.textContent.replace(/\u200B/g,"").length&&0<o.textContent.length&&!t.node.hasClass(o,"fr-marker")&&(t.el==r&&!i&&t.opts.enter==e.FE.ENTER_BR&&t.browser.msie||n.parentNode.removeChild(n))}else!r||t.node.isBlock(r)||t.node.isElement(r)||n.previousSibling||n.nextSibling||!t.node.isDeletable(n.parentNode)||p(n.parentNode)}function h(){t.opts.htmlUntouched||(a(),c(),u(),t.spaces.normalize(null,!0),t.html.fillEmptyBlocks(),t.clean.lists(),t.clean.tables(),t.clean.toHTML5(),t.html.cleanBRs()),t.selection.restore(),m(),t.placeholder.refresh()}function m(){t.node.isEmpty(t.el)&&(null!=n()?t.el.querySelector(i())||t.el.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)")||(t.core.hasFocus()?(t.$el.html("<"+n()+">"+e.FE.MARKERS+"<br/></"+n()+">"),t.selection.restore()):t.$el.html("<"+n()+"><br/></"+n()+">")):t.el.querySelector("*:not(.fr-marker):not(br)")||(t.core.hasFocus()?(t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()):t.$el.html("<br/>")))}function v(e,t){return f(e,"<"+t+"[^>]*?>([\\w\\W]*)</"+t+">",1)}function g(n,r){var o=e("<div "+(f(n,"<"+r+"([^>]*?)>",1)||"")+">");return t.node.rawAttributes(o.get(0))}function y(e){return(f(e,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function b(e,n){t.opts.htmlExecuteScripts?e.html(n):e.get(0).innerHTML=n}function _(e){var t;(t=/:not\(([^\)]*)\)/g).test(e)&&(e=e.replace(t,"     $1 "));var n=100*(e.match(/(#[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(\[[^\]]+\])/g)||[]).length+10*(e.match(/(\.[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^\)]*\))/gi)||[]).length+10*(e.match(/(:[^\s\+>~\.\[:]+)/g)||[]).length+(e.match(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;return n+=((e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).match(/([^\s\+>~\.\[:]+)/g)||[]).length}function w(e){if(t.events.trigger("html.processGet",[e]),e&&e.getAttribute&&""===e.getAttribute("class")&&e.removeAttribute("class"),e&&e.getAttribute&&""===e.getAttribute("style")&&e.removeAttribute("style"),e&&e.nodeType==Node.ELEMENT_NODE){var n,r=e.querySelectorAll('[class=""],[style=""]');for(n=0;n<r.length;n++){var o=r[n];""===o.getAttribute("class")&&o.removeAttribute("class"),""===o.getAttribute("style")&&o.removeAttribute("style")}if("BR"===e.tagName)p(e);else{var i=e.querySelectorAll("br");for(n=0;n<i.length;n++)p(i[n])}}}function E(e,t){return e[3]-t[3]}function x(e){var n=t.doc.createElement("div");return n.innerHTML=e,null!==n.querySelector(i())}function k(n){var r=null;if(void 0===n&&(r=t.selection.element()),t.opts.keepFormatOnDelete)return!1;var o,i,a=r?(r.textContent.match(/\u200B/g)||[]).length-r.querySelectorAll(".fr-marker").length:0;if((t.el.textContent.match(/\u200B/g)||[]).length-t.el.querySelectorAll(".fr-marker").length==a)return!1;do{i=!1,o=t.el.querySelectorAll("*:not(.fr-marker)");for(var s=0;s<o.length;s++){var l=o[s];if(r!=l){var c=l.textContent;0===l.children.length&&1===c.length&&8203==c.charCodeAt(0)&&"TD"!==l.tagName&&(e(l).remove(),i=!0)}}}while(i)}return{defaultTag:n,isPreformatted:r,emptyBlocks:o,emptyBlockTagsQuery:function(){return e.FE.BLOCK_TAGS.join(":empty, ")+":empty"},blockTagsQuery:i,fillEmptyBlocks:function(n){var r=o(n);t.node.isEmpty(t.el)&&t.opts.enter===e.FE.ENTER_BR&&r.push(t.el);for(var i=0;i<r.length;i++){var a=r[i];"false"===a.getAttribute("contenteditable")||a.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||t.node.isVoid(a)||"TABLE"!=a.tagName&&"TBODY"!=a.tagName&&"TR"!=a.tagName&&"UL"!=a.tagName&&"OL"!=a.tagName&&a.appendChild(t.doc.createElement("br"))}if(t.browser.msie&&t.opts.enter==e.FE.ENTER_BR){var s=t.node.contents(t.el);s.length&&s[s.length-1].nodeType==Node.TEXT_NODE&&t.$el.append("<br>")}},cleanEmptyTags:a,cleanWhiteTags:k,cleanBlankSpaces:u,blocks:function(){return t.$el.get(0).querySelectorAll(i())},getDoctype:d,set:function(n){var r,o,i,a=t.clean.html((n||"").trim(),[],[],t.opts.fullPage);if(t.opts.fullPage){var s=v(a,"body")||(0<=a.indexOf("<body")?"":a),l=g(a,"body"),c=v(a,"head")||"<title></title>",u=g(a,"head"),f=e("<div>").append(c).contents().each(function(){(this.nodeType==Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}).end().html().trim();c=e("<div>").append(c).contents().map(function(){return this.nodeType==Node.COMMENT_NODE?"\x3c!--"+this.nodeValue+"--\x3e":0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var d=y(a),p=g(a,"html");b(t.$el,f+"\n"+s),t.node.clearAttributes(t.el),t.$el.attr(l),t.$el.addClass("fr-view"),t.$el.attr("spellcheck",t.opts.spellcheck),t.$el.attr("dir",t.opts.direction),b(t.$head,c),t.node.clearAttributes(t.$head.get(0)),t.$head.attr(u),t.node.clearAttributes(t.$html.get(0)),t.$html.attr(p),t.iframe_document.doctype.parentNode.replaceChild((r=d,o=t.iframe_document,(i=r.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i))?o.implementation.createDocumentType(i[1],i[3],i[4]):o.implementation.createDocumentType("html")),t.iframe_document.doctype)}else b(t.$el,a);var m=t.edit.isDisabled();t.edit.on(),t.core.injectStyle(t.opts.iframeDefaultStyle+t.opts.iframeStyle),h(),t.opts.useClasses||(t.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),t.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),m&&t.edit.off(),t.events.trigger("html.set")},get:function(e,n){if(!t.$wp)return t.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var r="";t.events.trigger("html.beforeGet");var o,i,a=[],s={},l=[],c=t.el.querySelectorAll("input, textarea");for(o=0;o<c.length;o++)c[o].setAttribute("value",c[o].value);if(!t.opts.useClasses&&!n){var u=new RegExp("^"+t.opts.htmlIgnoreCSSProperties.join("$|^")+"$","gi");for(o=0;o<t.doc.styleSheets.length;o++){var f,p=0;try{f=t.doc.styleSheets[o].cssRules,t.doc.styleSheets[o].ownerNode&&"STYLE"==t.doc.styleSheets[o].ownerNode.nodeType&&(p=1)}catch(e){}if(f)for(var h=0,m=f.length;h<m;h++)if(f[h].selectorText&&0<f[h].style.cssText.length){var v,g=f[h].selectorText.replace(/body |\.fr-view /g,"").replace(/::/g,":");try{v=t.el.querySelectorAll(g)}catch(e){v=[]}for(i=0;i<v.length;i++){!v[i].getAttribute("fr-original-style")&&v[i].getAttribute("style")?(v[i].setAttribute("fr-original-style",v[i].getAttribute("style")),a.push(v[i])):v[i].getAttribute("fr-original-style")||(v[i].setAttribute("fr-original-style",""),a.push(v[i])),s[v[i]]||(s[v[i]]={});for(var y=1e3*p+_(f[h].selectorText),b=f[h].style.cssText.split(";"),x=0;x<b.length;x++){var k=b[x].trim().split(":")[0];if(k&&!k.match(u)&&(s[v[i]][k]||(s[v[i]][k]=0)<=(v[i].getAttribute("fr-original-style")||"").indexOf(k+":")&&(s[v[i]][k]=1e4),y>=s[v[i]][k]&&(s[v[i]][k]=y,b[x].trim().length))){var S=b[x].trim().split(":");S.splice(0,1),l.push([v[i],k.trim(),S.join(":").trim(),y])}}}}}for(l.sort(E),o=0;o<l.length;o++){var T=l[o];T[0].style[T[1]]=T[2]}for(o=0;o<a.length;o++)if(a[o].getAttribute("class")&&(a[o].setAttribute("fr-original-class",a[o].getAttribute("class")),a[o].removeAttribute("class")),0<(a[o].getAttribute("fr-original-style")||"").trim().length){var C=a[o].getAttribute("fr-original-style").split(";");for(i=0;i<C.length;i++)if(0<C[i].indexOf(":")){var O=C[i].split(":"),j=O[0];O.splice(0,1),a[o].style[j.trim()]=O.join(":").trim()}}}if(t.node.isEmpty(t.el))t.opts.fullPage&&(r=d(t.iframe_document),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.find("head").get(0).outerHTML+"<body></body></html>");else if(void 0===e&&(e=!1),t.opts.fullPage){r=d(t.iframe_document),t.$el.removeClass("fr-view");var A=t.opts.heightMin,N=t.opts.height,M=t.opts.heightMax;t.opts.heightMin=null,t.opts.height=null,t.opts.heightMax=null,t.size.refresh(),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.html()+"</html>",t.opts.heightMin=A,t.opts.height=N,t.opts.heightMax=M,t.size.refresh(),t.$el.addClass("fr-view")}else r=t.$el.html();if(!t.opts.useClasses&&!n)for(o=0;o<a.length;o++)a[o].getAttribute("fr-original-class")&&(a[o].setAttribute("class",a[o].getAttribute("fr-original-class")),a[o].removeAttribute("fr-original-class")),null!=a[o].getAttribute("fr-original-style")&&void 0!==a[o].getAttribute("fr-original-style")?(0!==a[o].getAttribute("fr-original-style").length?a[o].setAttribute("style",a[o].getAttribute("fr-original-style")):a[o].removeAttribute("style"),a[o].removeAttribute("fr-original-style")):a[o].removeAttribute("style");t.opts.fullPage&&(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,"")).replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,"")).replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,"")).replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")).replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?))class="([\w\W]*?)(fr-rtl|fr-ltr)([\w\W]*?)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,'<body$1class="$2$4"$5>$6</body>')).replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")),t.opts.htmlSimpleAmpersand&&(r=r.replace(/\&amp;/gi,"&")),t.events.trigger("html.afterGet"),e||(r=r.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),r=t.clean.invisibleSpaces(r),r=t.clean.exec(r,w);var I=t.events.chainTrigger("html.get",r);return"string"==typeof I&&(r=I),r=(r=r.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(e){return e.replace(/<br>/g,"\n")})).replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="')},getSelected:function(){var n,r,o=function(n,r){for(;r&&(r.nodeType==Node.TEXT_NODE||!t.node.isBlock(r))&&!t.node.isElement(r)&&!t.node.hasClass(r,"fr-inner");)r&&r.nodeType!=Node.TEXT_NODE&&e(n).wrapInner(t.node.openTagString(r)+t.node.closeTagString(r)),r=r.parentNode;r&&n.innerHTML==r.innerHTML&&(n.innerHTML=r.outerHTML)},i="";if(void 0!==t.win.getSelection){t.browser.mozilla&&(t.selection.save(),1<t.$el.find('.fr-marker[data-type="false"]').length&&(t.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),t.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),t.$el.find(".fr-marker").not('[data-id="0"]').remove()),t.selection.restore());for(var a=t.selection.ranges(),s=0;s<a.length;s++){var l=document.createElement("div");l.appendChild(a[s].cloneContents()),o(l,(r=n=void 0,r=null,t.win.getSelection?(n=t.win.getSelection())&&n.rangeCount&&(r=n.getRangeAt(0).commonAncestorContainer).nodeType!=Node.ELEMENT_NODE&&(r=r.parentNode):(n=t.doc.selection)&&"Control"!=n.type&&(r=n.createRange().parentElement()),null!=r&&(0<=e.inArray(t.el,e(r).parents())||r==t.el)?r:null)),0<e(l).find(".fr-element").length&&(l=t.el),i+=l.innerHTML}}else void 0!==t.doc.selection&&"Text"==t.doc.selection.type&&(i=t.doc.selection.createRange().htmlText);return i},insert:function(n,r,o){var i,a,s;if(t.selection.isCollapsed()||t.selection.remove(),i=r?n:t.clean.html(n),n.indexOf('class="fr-marker"')<0&&(a=i,(s=t.doc.createElement("div")).innerHTML=a,t.selection.setAtEnd(s,!0),i=s.innerHTML),t.node.isEmpty(t.el)&&!t.opts.keepFormatOnDelete&&x(i))t.el.innerHTML=i;else{var l=t.markers.insert();if(l){t.node.isLastSibling(l)&&e(l).parent().hasClass("fr-deletable")&&e(l).insertAfter(e(l).parent());var c=t.node.blockParent(l);if((x(i)||o)&&(t.node.deepestParent(l)||c&&"LI"==c.tagName)){if(c&&"LI"==c.tagName&&(i=function(n){if(!t.html.defaultTag())return n;var r=t.doc.createElement("div");r.innerHTML=n;for(var o=r.querySelectorAll(":scope > "+t.html.defaultTag()),i=o.length-1;0<=i;i--){var a=o[i];t.node.isBlock(a.previousSibling)||(a.previousSibling&&!t.node.isEmpty(a)&&e("<br>").insertAfter(a.previousSibling),a.outerHTML=a.innerHTML)}return r.innerHTML}(i)),!(l=t.markers.split()))return!1;l.outerHTML=i}else l.outerHTML=i}else t.el.innerHTML=t.el.innerHTML+i}h(),t.keys.positionCaret(),t.events.trigger("html.inserted")},wrap:c,unwrap:function(){t.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&e(this).before("<br>"),e(this).attr("data-empty")||!this.nextSibling||t.node.isBlock(this.nextSibling)&&!e(this.nextSibling).hasClass("fr-temp-div")?e(this).replaceWith(e(this).html()):e(this).replaceWith(e(this).html()+"<br>")}),t.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return""===e(this).attr("class")}).removeAttr("class")},escapeEntities:function(e){return e.replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,"&quot;").replace(/'/gi,"&#39;")},checkIfEmpty:m,extractNode:v,extractNodeAttrs:g,extractDoctype:y,cleanBRs:function(){for(var e=t.el.getElementsByTagName("br"),n=0;n<e.length;n++)p(e[n])},_init:function(){if(t.$wp){var e=function(){k(),t.placeholder&&setTimeout(t.placeholder.refresh,0)};t.events.on("mouseup",e),t.events.on("keydown",e),t.events.on("contentChanged",m)}}}},e.extend(e.FE.DEFAULTS,{height:null,heightMax:null,heightMin:null,width:null}),e.FE.MODULES.size=function(e){function t(){n(),e.opts.height&&e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom"))),e.$iframe.height(e.$el.outerHeight(!0))}function n(){e.opts.heightMin?e.$el.css("minHeight",e.opts.heightMin):e.$el.css("minHeight",""),e.opts.heightMax?(e.$wp.css("maxHeight",e.opts.heightMax),e.$wp.css("overflow","auto")):(e.$wp.css("maxHeight",""),e.$wp.css("overflow","")),e.opts.height?(e.$wp.height(e.opts.height),e.$wp.css("overflow","auto"),e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom")))):(e.$wp.css("height",""),e.opts.heightMin||e.$el.css("minHeight",""),e.opts.heightMax||e.$wp.css("overflow","")),e.opts.width&&e.$box.width(e.opts.width)}return{_init:function(){if(!e.$wp)return!1;n(),e.$iframe&&(e.events.on("keyup keydown",function(){setTimeout(t,0)},!0),e.events.on("commands.after html.set init initialized paste.after",t))},syncIframe:t,refresh:n}},e.extend(e.FE.DEFAULTS,{language:null}),e.FE.LANGUAGE={},e.FE.MODULES.language=function(t){var n;return{_init:function(){e.FE.LANGUAGE&&(n=e.FE.LANGUAGE[t.opts.language]),n&&n.direction&&(t.opts.direction=n.direction)},translate:function(e){return n&&n.translation[e]&&n.translation[e].length?n.translation[e]:e}}},e.extend(e.FE.DEFAULTS,{placeholderText:"Type something"}),e.FE.MODULES.placeholder=function(t){function n(){t.$placeholder||(t.$placeholder=e('<span class="fr-placeholder"></span>'),t.$wp.append(t.$placeholder));var n=t.opts.iframe?t.$iframe.prev().outerHeight(!0):t.$el.prev().outerHeight(!0),r=0,o=0,i=0,a=0,s=0,l=0,c=t.node.contents(t.el),u=e(t.selection.element()).css("text-align");if(c.length&&c[0].nodeType==Node.ELEMENT_NODE){var f=e(c[0]);(!t.opts.toolbarInline||0<t.$el.prev().length)&&t.ready&&(r=t.helpers.getPX(f.css("margin-top")),a=t.helpers.getPX(f.css("padding-top")),o=t.helpers.getPX(f.css("margin-left")),i=t.helpers.getPX(f.css("margin-right")),s=t.helpers.getPX(f.css("padding-left")),l=t.helpers.getPX(f.css("padding-right"))),t.$placeholder.css("font-size",f.css("font-size")),t.$placeholder.css("line-height",f.css("line-height"))}else t.$placeholder.css("font-size",t.$el.css("font-size")),t.$placeholder.css("line-height",t.$el.css("line-height"));if(t.$wp.addClass("show-placeholder"),t.$placeholder.css({marginTop:Math.max(t.helpers.getPX(t.$el.css("margin-top")),r)+(n||0),paddingTop:Math.max(t.helpers.getPX(t.$el.css("padding-top")),a),paddingLeft:Math.max(t.helpers.getPX(t.$el.css("padding-left")),s),marginLeft:Math.max(t.helpers.getPX(t.$el.css("margin-left")),o),paddingRight:Math.max(t.helpers.getPX(t.$el.css("padding-right")),l),marginRight:Math.max(t.helpers.getPX(t.$el.css("margin-right")),i),textAlign:u}).text(t.language.translate(t.opts.placeholderText||t.$oel.attr("placeholder")||"")),t.$placeholder.html(t.$placeholder.text().replace(/\n/g,"<br>")),t.size.refresh(),t.$placeholder.outerHeight()>t.$el.height()){var d=t.opts.heightMin;t.opts.heightMin=t.$placeholder.outerHeight()+(t.$tb?t.$tb.height():0),t.size.refresh(),t.opts.heightMin=d}}function r(){t.$wp.removeClass("show-placeholder"),t.size.refresh()}function o(){if(!t.$wp)return!1;t.core.isEmpty()?n():r()}return{_init:function(){if(!t.$wp)return!1;t.events.on("init input keydown keyup contentChanged initialized",o)},show:n,hide:r,refresh:o,isVisible:function(){return!!t.$wp&&t.node.hasClass(t.$wp.get(0),"show-placeholder")}}},e.FE.MODULES.edit=function(e){function t(){if(e.browser.mozilla)try{e.doc.execCommand("enableObjectResizing",!1,"false"),e.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}if(e.browser.msie)try{e.doc.body.addEventListener("mscontrolselect",function(e){return e.preventDefault(),!1})}catch(e){}}var n=!1;function r(){return n}return{_init:function(){e.events.on("focus",function(){r()?e.edit.off():e.edit.on()})},on:function(){e.$wp?(e.$el.attr("contenteditable",!0),e.$el.removeClass("fr-disabled").attr("aria-disabled",!1),e.$tb&&e.$tb.removeClass("fr-disabled").removeAttr("aria-disabled"),t()):e.$el.is("a")&&e.$el.attr("contenteditable",!0),n=!1},off:function(){e.events.disableBlur(),e.$wp?(e.$el.attr("contenteditable",!1),e.$el.addClass("fr-disabled").attr("aria-disabled",!0),e.$tb&&e.$tb.addClass("fr-disabled").attr("aria-disabled",!0)):e.$el.is("a")&&e.$el.attr("contenteditable",!1),e.events.enableBlur(),n=!0},disableDesign:t,isDisabled:r}},e.extend(e.FE.DEFAULTS,{documentReady:!1,editorClass:null,typingTimer:500,iframe:!1,requestWithCORS:!0,requestWithCredentials:!1,requestHeaders:{},useClasses:!0,spellcheck:!0,iframeDefaultStyle:'html{margin:0px;height:auto;}body{height:auto;padding:10px;background:transparent;color:#000000;position:relative;z-index: 2;-webkit-user-select:auto;margin:0px;overflow:hidden;min-height:20px;}body:after{content:"";display:block;clear:both;}body::-moz-selection{background:#b5d6fd;color:#000;}body::selection{background:#b5d6fd;color:#000;}',iframeStyle:"",iframeStyleFiles:[],direction:"auto",zIndex:1,tabIndex:null,disableRightClick:!1,scrollableContainer:"body",keepFormatOnDelete:!1,theme:null}),e.FE.MODULES.core=function(t){var n;return{_init:function(){if(e.FE.INSTANCES.push(t),t.drag_support={filereader:"undefined"!=typeof FileReader,formdata:!!t.win.FormData,progress:"upload"in new XMLHttpRequest},t.$wp){(function(){if(t.$box.addClass("fr-box"+(t.opts.editorClass?" "+t.opts.editorClass:"")),t.$box.attr("role","application"),t.$wp.addClass("fr-wrapper"),t.opts.documentReady&&t.$box.addClass("fr-document"),t.opts.iframe||t.$el.addClass("fr-element fr-view"),t.opts.iframe){n=[],t.$iframe.addClass("fr-iframe"),t.$el.addClass("fr-view");for(var e=0;e<t.o_doc.styleSheets.length;e++){var r;try{r=t.o_doc.styleSheets[e].cssRules}catch(e){}if(r)for(var o=0,i=r.length;o<i;o++)!r[o].selectorText||0!==r[o].selectorText.indexOf(".fr-view")&&0!==r[o].selectorText.indexOf(".fr-element")||0<r[o].style.cssText.length&&(0===r[o].selectorText.indexOf(".fr-view")?n.push({selector:r[o].selectorText.replace(/\.fr-view/g,"body"),style:r[o].style}):n.push({selector:r[o].selectorText.replace(/\.fr-element/g,"body"),style:r[o].style}))}}"auto"!=t.opts.direction&&t.$box.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.$el.attr("dir",t.opts.direction),t.$wp.attr("dir",t.opts.direction),1<t.opts.zIndex&&t.$box.css("z-index",t.opts.zIndex),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"),t.opts.tabIndex=t.opts.tabIndex||t.$oel.attr("tabIndex"),t.opts.tabIndex&&t.$el.attr("tabIndex",t.opts.tabIndex)})(),t.html.set(t._original_html),t.$el.attr("spellcheck",t.opts.spellcheck),t.helpers.isMobile()&&(t.$el.attr("autocomplete",t.opts.spellcheck?"on":"off"),t.$el.attr("autocorrect",t.opts.spellcheck?"on":"off"),t.$el.attr("autocapitalize",t.opts.spellcheck?"on":"off")),t.opts.disableRightClick&&t.events.$on(t.$el,"contextmenu",function(e){if(2==e.button)return!1});try{t.doc.execCommand("styleWithCSS",!1,!1)}catch(e){}}"TEXTAREA"==t.$oel.get(0).tagName&&(t.events.on("contentChanged",function(){t.$oel.val(t.html.get())}),t.events.on("form.submit",function(){t.$oel.val(t.html.get())}),t.events.on("form.reset",function(){t.html.set(t._original_html)}),t.$oel.val(t.html.get())),t.helpers.isIOS()&&t.events.$on(t.$doc,"selectionchange",function(){t.$doc.get(0).hasFocus()||t.$win.get(0).focus()}),t.events.trigger("init"),t.opts.autofocus&&!t.opts.initOnClick&&t.$wp&&t.events.on("initialized",function(){t.events.focus(!0)})},destroy:function(e){"TEXTAREA"==t.$oel.get(0).tagName&&t.$oel.val(e),t.$box&&t.$box.removeAttr("role"),t.$wp&&("TEXTAREA"==t.$oel.get(0).tagName?(t.$el.html(""),t.$wp.html(""),t.$box.replaceWith(t.$oel),t.$oel.show()):(t.$wp.replaceWith(e),t.$el.html(""),t.$box.removeClass("fr-view fr-ltr fr-box "+(t.opts.editorClass||"")),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"))),this.$wp=null,this.$el=null,this.el=null,this.$box=null},isEmpty:function(){return t.node.isEmpty(t.el)},getXHR:function(e,n){var r=new XMLHttpRequest;for(var o in r.open(n,e,!0),t.opts.requestWithCredentials&&(r.withCredentials=!0),t.opts.requestHeaders)t.opts.requestHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,t.opts.requestHeaders[o]);return r},injectStyle:function(r){if(t.opts.iframe){t.$head.find("style[data-fr-style], link[data-fr-style]").remove();for(var o=e('<style data-fr-style="true">'+r+"</style>").appendTo(t.$head)[0].sheet,i=0;i<n.length;i++)for(var a=o.insertRule(n[i].selector+"{}",o.cssRules.length),s=0;s<n[i].style.length;s++){var l=n[i].style[s],c=n[i].style[l];t.browser.safari&&"content"===l&&(c='"'+c+'"'),o.cssRules[a].style[l]=c}for(var u=0;u<t.opts.iframeStyleFiles.length;u++){var f=e('<link data-fr-style="true" rel="stylesheet" href="'+t.opts.iframeStyleFiles[u]+'">');f.get(0).addEventListener("load",t.size.syncIframe),t.$head.append(f)}}},hasFocus:function(){return t.browser.mozilla&&t.helpers.isMobile()?t.selection.inEditor():t.node.hasFocus(t.el)||0<t.$el.find("*:focus").length},sameInstance:function(e){if(!e)return!1;var n=e.data("instance");return!!n&&n.id==t.id}}},e.FE.MODULES.cursorLists=function(t){function n(e){for(var t=e;"LI"!=t.tagName;)t=t.parentNode;return t}function r(e){for(var n=e;!t.node.isList(n);)n=n.parentNode;return n}return{_startEnter:function(o){var i,a=n(o),s=a.nextSibling,l=a.previousSibling,c=t.html.defaultTag();if(t.node.isEmpty(a,!0)&&s){for(var u="",f="",d=o.parentNode;!t.node.isList(d)&&d.parentNode&&("LI"!==d.parentNode.tagName||d.parentNode===a);)u=t.node.openTagString(d)+u,f+=t.node.closeTagString(d),d=d.parentNode;u=t.node.openTagString(d)+u,f+=t.node.closeTagString(d);var p="";for(p=d.parentNode&&"LI"==d.parentNode.tagName?f+"<li>"+e.FE.MARKERS+"<br>"+u:c?f+"<"+c+">"+e.FE.MARKERS+"<br></"+c+">"+u:f+e.FE.MARKERS+"<br>"+u;["UL","OL"].indexOf(d.tagName)<0||d.parentNode&&"LI"===d.parentNode.tagName;)d=d.parentNode;e(a).replaceWith('<span id="fr-break"></span>');var h=t.node.openTagString(d)+e(d).html()+t.node.closeTagString(d);h=h.replace(/<span id="fr-break"><\/span>/g,p),e(d).replaceWith(h),t.$el.find("li:empty").remove()}else if(l&&s||!t.node.isEmpty(a,!0)){for(var m="<br>",v=o.parentNode;v&&"LI"!=v.tagName;)m=t.node.openTagString(v)+m+t.node.closeTagString(v),v=v.parentNode;e(a).before("<li>"+m+"</li>"),e(o).remove()}else if(l){i=r(a);for(var g=e.FE.MARKERS+"<br>",y=o.parentNode;y&&"LI"!=y.tagName;)g=t.node.openTagString(y)+g+t.node.closeTagString(y),y=y.parentNode;i.parentNode&&"LI"==i.parentNode.tagName?e(i.parentNode).after("<li>"+g+"</li>"):c?e(i).after("<"+c+">"+g+"</"+c+">"):e(i).after(g),e(a).remove()}else(i=r(a)).parentNode&&"LI"==i.parentNode.tagName?s?e(i.parentNode).before(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):e(i.parentNode).after(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):c?e(i).before("<"+c+">"+e.FE.MARKERS+"<br></"+c+">"):e(i).before(e.FE.MARKERS+"<br>"),e(a).remove()},_middleEnter:function(r){for(var o=n(r),i="",a=r,s="",l="";a!=o;){var c="A"==(a=a.parentNode).tagName&&t.cursor.isAtEnd(r,a)?"fr-to-remove":"";s=t.node.openTagString(e(a).clone().addClass(c).get(0))+s,l=t.node.closeTagString(a)+l}i=l+i+s+e.FE.MARKERS+(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:""),e(r).replaceWith('<span id="fr-break"></span>');var u=t.node.openTagString(o)+e(o).html()+t.node.closeTagString(o);u=u.replace(/<span id="fr-break"><\/span>/g,i),e(o).replaceWith(u)},_endEnter:function(r){for(var o=n(r),i=e.FE.MARKERS,a="",s=r,l=!1;s!=o;){var c="A"==(s=s.parentNode).tagName&&t.cursor.isAtEnd(r,s)?"fr-to-remove":"";l||s==o||t.node.isBlock(s)||(l=!0,a+=e.FE.INVISIBLE_SPACE),a=t.node.openTagString(e(s).clone().addClass(c).get(0))+a,i+=t.node.closeTagString(s)}var u=a+i;e(r).remove(),e(o).after(u)},_backspace:function(o){var i=n(o),a=i.previousSibling;if(a){a=e(a).find(t.html.blockTagsQuery()).get(-1)||a,e(o).replaceWith(e.FE.MARKERS);var s=t.node.contents(a);s.length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(i).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==i&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var l,c=t.node.contents(i)[0];c&&!t.node.isList(c);)l=c.nextSibling,e(a).append(c),c=l;for(a=i.previousSibling;c;)l=c.nextSibling,e(a).append(c),c=l;1<(s=t.node.contents(a)).length&&"BR"===s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(i).remove()}else{var u=r(i);if(e(o).replaceWith(e.FE.MARKERS),u.parentNode&&"LI"==u.parentNode.tagName){var f=u.previousSibling;t.node.isBlock(f)?(e(i).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==i&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(f).append(e(i).html())):e(u).before(e(i).html())}else{var d=t.html.defaultTag();d&&0===e(i).find(t.html.blockTagsQuery()).length?e(u).before("<"+d+">"+e(i).html()+"</"+d+">"):e(u).before(e(i).html())}e(i).remove(),t.html.wrap(),0===e(u).find("li").length&&e(u).remove()}},_del:function(r){var o,i=n(r),a=i.nextSibling;if(a){(o=t.node.contents(a)).length&&"BR"==o[0].tagName&&e(o[0]).remove(),e(a).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==a&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var s,l=r,c=t.node.contents(a)[0];c&&!t.node.isList(c);)s=c.nextSibling,e(l).after(c),l=c,c=s;for(;c;)s=c.nextSibling,e(i).append(c),c=s;e(r).replaceWith(e.FE.MARKERS),e(a).remove()}else{for(var u=i;!u.nextSibling&&u!=t.el;)u=u.parentNode;if(u==t.el)return!1;if(u=u.nextSibling,t.node.isBlock(u))e.FE.NO_DELETE_TAGS.indexOf(u.tagName)<0&&(e(r).replaceWith(e.FE.MARKERS),(o=t.node.contents(i)).length&&"BR"==o[o.length-1].tagName&&e(o[o.length-1]).remove(),e(i).append(e(u).html()),e(u).remove());else for((o=t.node.contents(i)).length&&"BR"==o[o.length-1].tagName&&e(o[o.length-1]).remove(),e(r).replaceWith(e.FE.MARKERS);u&&!t.node.isBlock(u)&&"BR"!=u.tagName;)e(i).append(e(u)),u=u.nextSibling}}}},e.FE.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],e.FE.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],e.FE.MODULES.cursor=function(t){function n(e){return!!e&&(!!t.node.isBlock(e)||(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?n(e.nextSibling):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&n(e.parentNode)))}function r(e){return!!e&&(!!t.node.isBlock(e)||(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?r(e.previousSibling):!e.previousSibling&&(!(e.previousSibling||!t.node.hasClass(e.parentNode,"fr-inner"))||r(e.parentNode))))}function o(e,n){return!!e&&e!=t.$wp.get(0)&&(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?o(e.previousSibling,n):!e.previousSibling&&(e.parentNode==n||o(e.parentNode,n)))}function i(e,n){return!!e&&e!=t.$wp.get(0)&&(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?i(e.nextSibling,n):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&(e.parentNode==n||i(e.parentNode,n)))}function a(n){return 0<e(n).parentsUntil(t.$el,"LI").length&&0===e(n).parentsUntil("LI","TABLE").length}function s(e,t){var n=new RegExp((t?"^":"")+"(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})"+(t?"":"$"),"i"),r=e.match(n);return r?r[0].length:1}function l(n){for(var r,o=n;!o.previousSibling;)if(o=o.parentNode,t.node.isElement(o))return!1;if(o=o.previousSibling,!t.node.isBlock(o)&&t.node.isEditable(o)){for(r=t.node.contents(o);o.nodeType!=Node.TEXT_NODE&&!t.node.isDeletable(o)&&r.length&&t.node.isEditable(o);)o=r[r.length-1],r=t.node.contents(o);if(o.nodeType==Node.TEXT_NODE){var i=o.textContent,a=i.length;if(i.length&&"\n"===i[i.length-1])return o.textContent=i.substring(0,a-2),0===o.textContent.length&&o.parentNode.removeChild(o),l(n);t.opts.tabSpaces&&i.length>=t.opts.tabSpaces&&0===i.substr(i.length-t.opts.tabSpaces,i.length-1).replace(/ /g,"").replace(new RegExp(e.FE.UNICODE_NBSP,"g"),"").length&&(a=i.length-t.opts.tabSpaces+1),o.textContent=i.substring(0,a-s(i)),t.opts.htmlUntouched&&!n.nextSibling&&o.textContent.length&&" "===o.textContent[o.textContent.length-1]&&(o.textContent=o.textContent.substring(0,o.textContent.length-1)+e.FE.UNICODE_NBSP);var c=i.length!=o.textContent.length;if(0===o.textContent.length)if(c&&t.opts.keepFormatOnDelete)e(o).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS);else if(0!==i.length&&t.node.isBlock(o.parentNode))e(o).after(e.FE.MARKERS);else if((2!=o.parentNode.childNodes.length||o.parentNode!=n.parentNode)&&1!=o.parentNode.childNodes.length||t.node.isBlock(o.parentNode)||t.node.isElement(o.parentNode)||!t.node.isDeletable(o.parentNode)){for(;!t.node.isElement(o.parentNode)&&t.node.isEmpty(o.parentNode)&&e.FE.NO_DELETE_TAGS.indexOf(o.parentNode.tagName)<0;){var u=o;o=o.parentNode,u.parentNode.removeChild(u)}e(o).after(e.FE.MARKERS),t.node.isElement(o.parentNode)&&!n.nextSibling&&o.previousSibling&&"BR"==o.previousSibling.tagName&&e(n).after("<br>"),o.parentNode.removeChild(o)}else e(o.parentNode).after(e.FE.MARKERS),e(o.parentNode).remove();else e(o).after(e.FE.MARKERS)}else t.node.isDeletable(o)?(e(o).after(e.FE.MARKERS),e(o).remove()):n.nextSibling&&"BR"==n.nextSibling.tagName&&t.node.isVoid(o)&&"BR"!=o.tagName?(e(n.nextSibling).remove(),e(n).replaceWith(e.FE.MARKERS)):!1!==t.events.trigger("node.remove",[e(o)])&&(e(o).after(e.FE.MARKERS),e(o).remove())}else if(e.FE.NO_DELETE_TAGS.indexOf(o.tagName)<0&&(t.node.isEditable(o)||t.node.isDeletable(o)))if(t.node.isDeletable(o))e(n).replaceWith(e.FE.MARKERS),e(o).remove();else if(t.node.isEmpty(o)&&!t.node.isList(o))e(o).remove(),e(n).replaceWith(e.FE.MARKERS);else{for(t.node.isList(o)&&(o=e(o).find("li:last").get(0)),(r=t.node.contents(o))&&"BR"==r[r.length-1].tagName&&e(r[r.length-1]).remove(),r=t.node.contents(o);r&&t.node.isBlock(r[r.length-1]);)o=r[r.length-1],r=t.node.contents(o);e(o).append(e.FE.MARKERS);for(var f=n;!f.previousSibling;)f=f.parentNode;for(;f&&"BR"!==f.tagName&&!t.node.isBlock(f);){var d=f;f=f.nextSibling,e(o).append(d)}f&&"BR"==f.tagName&&e(f).remove(),e(n).remove()}else n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove();return!0}function c(n){var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,o=t.node.deepestParent(n,[],!r);if(o&&"BLOCKQUOTE"==o.tagName){var i=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);i&&i.nextSibling&&(o=i)}if(null!==o){var a,s=o.nextSibling;if(t.node.isBlock(o)&&(t.node.isEditable(o)||t.node.isDeletable(o))&&s&&e.FE.NO_DELETE_TAGS.indexOf(s.tagName)<0)if(t.node.isDeletable(s))e(s).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isBlock(s)&&t.node.isEditable(s))if(t.node.isList(s))if(t.node.isEmpty(o,!0))e(o).remove(),e(s).find("li:first").prepend(e.FE.MARKERS);else{var l=e(s).find("li:first");"BLOCKQUOTE"==o.tagName&&(a=t.node.contents(o)).length&&t.node.isBlock(a[a.length-1])&&(o=a[a.length-1]),0===l.find("ul, ol").length&&(e(n).replaceWith(e.FE.MARKERS),l.find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==l.get(0)&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(o).append(t.node.contents(l.get(0))),l.remove(),0===e(s).find("li").length&&e(s).remove())}else{if((a=t.node.contents(s)).length&&"BR"==a[0].tagName&&e(a[0]).remove(),"BLOCKQUOTE"!=s.tagName&&"BLOCKQUOTE"==o.tagName)for(a=t.node.contents(o);a.length&&t.node.isBlock(a[a.length-1]);)o=a[a.length-1],a=t.node.contents(o);else if("BLOCKQUOTE"==s.tagName&&"BLOCKQUOTE"!=o.tagName)for(a=t.node.contents(s);a.length&&t.node.isBlock(a[0]);)s=a[0],a=t.node.contents(s);e(n).replaceWith(e.FE.MARKERS),e(o).append(s.innerHTML),e(s).remove()}else{for(e(n).replaceWith(e.FE.MARKERS);s&&"BR"!==s.tagName&&!t.node.isBlock(s)&&t.node.isEditable(s);){var c=s;s=s.nextSibling,e(o).append(c)}s&&"BR"==s.tagName&&t.node.isEditable(s)&&e(s).remove()}}}function u(){for(var e=t.el.querySelectorAll("blockquote:empty"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n])}function f(n,r,o){var a,s=t.node.deepestParent(n,[],!o);if(s&&"BLOCKQUOTE"==s.tagName)return i(n,s)?(a=t.html.defaultTag(),r?e(n).replaceWith("<br>"+e.FE.MARKERS):a?e(s).after("<"+a+">"+e.FE.MARKERS+"<br></"+a+">"):e(s).after(e.FE.MARKERS+"<br>"),e(n).remove()):d(n,r,o),!1;if(null==s)(a=t.html.defaultTag())&&t.node.isElement(n.parentNode)?e(n).replaceWith("<"+a+">"+e.FE.MARKERS+"<br></"+a+">"):!n.previousSibling||e(n.previousSibling).is("br")||n.nextSibling?e(n).replaceWith("<br>"+e.FE.MARKERS):e(n).replaceWith("<br>"+e.FE.MARKERS+"<br>");else{var l=n,c="";"PRE"!=s.tagName||n.nextSibling||(r=!0),t.node.isBlock(s)&&!r||(c="<br/>");var u,f="",p="",h="",m="";(a=t.html.defaultTag())&&t.node.isBlock(s)&&(h="<"+a+">",m="</"+a+">",s.tagName==a.toUpperCase()&&(h=t.node.openTagString(e(s).clone().removeAttr("id").get(0))));do{if(l=l.parentNode,!r||l!=s||r&&!t.node.isBlock(s))if(f+=t.node.closeTagString(l),l==s&&t.node.isBlock(s))p=h+p;else{var v="A"==l.tagName&&i(n,l)?"fr-to-remove":"";p=t.node.openTagString(e(l).clone().addClass(v).get(0))+p}}while(l!=s);c=f+c+p+(n.parentNode==s&&t.node.isBlock(s)?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS,t.node.isBlock(s)&&!e(s).find("*:last").is("br")&&e(s).append("<br/>"),e(n).after('<span id="fr-break"></span>'),e(n).remove(),s.nextSibling&&!t.node.isBlock(s.nextSibling)||t.node.isBlock(s)||e(s).after("<br>"),u=(u=!r&&t.node.isBlock(s)?t.node.openTagString(s)+e(s).html()+m:t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s)).replace(/<span id="fr-break"><\/span>/g,c),e(s).replaceWith(u)}}function d(n,r,a){var s=t.node.deepestParent(n,[],!a);if(null==s)t.html.defaultTag()&&n.parentNode===t.el?e(n).replaceWith("<"+t.html.defaultTag()+">"+e.FE.MARKERS+"<br></"+t.html.defaultTag()+">"):(n.nextSibling&&!t.node.isBlock(n.nextSibling)||e(n).after("<br>"),e(n).replaceWith("<br>"+e.FE.MARKERS));else{var l=n,c="";"PRE"==s.tagName&&(r=!0),t.node.isBlock(s)&&!r||(c="<br>");var u="",f="";do{var d=l;if(l=l.parentNode,"BLOCKQUOTE"==s.tagName&&t.node.isEmpty(d)&&!t.node.hasClass(d,"fr-marker")&&0<e(d).find(n).length&&e(d).after(n),"BLOCKQUOTE"!=s.tagName||!i(n,l)&&!o(n,l))if(!r||l!=s||r&&!t.node.isBlock(s)){u+=t.node.closeTagString(l);var p="A"==l.tagName&&i(n,l)?"fr-to-remove":"";f=t.node.openTagString(e(l).clone().addClass(p).removeAttr("id").get(0))+f}else"BLOCKQUOTE"==s.tagName&&r&&(f=u="")}while(l!=s);var h=s==n.parentNode&&t.node.isBlock(s)||n.nextSibling;if("BLOCKQUOTE"==s.tagName)if(n.previousSibling&&t.node.isBlock(n.previousSibling)&&n.nextSibling&&"BR"==n.nextSibling.tagName&&(e(n.nextSibling).after(n),n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove()),r)c=u+c+e.FE.MARKERS+f;else{var m=t.html.defaultTag();c=u+c+(m?"<"+m+">":"")+e.FE.MARKERS+"<br>"+(m?"</"+m+">":"")+f}else c=u+c+f+(h?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS;e(n).replaceWith('<span id="fr-break"></span>');var v=t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s);v=v.replace(/<span id="fr-break"><\/span>/g,c),e(s).replaceWith(v)}}return{enter:function(s){var l=t.markers.insert();if(!l)return!0;for(var c=l.parentNode;c&&!t.node.isElement(c);){if("false"===c.getAttribute("contenteditable"))return e(l).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===c.getAttribute("contenteditable"))break;c=c.parentNode}t.el.normalize();var u=!1;0<e(l).parentsUntil(t.$el,"BLOCKQUOTE").length&&(u=!0),e(l).parentsUntil(t.$el,"TD, TH").length&&(u=!1),n(l)?!a(l)||s||u?f(l,s,u):t.cursorLists._endEnter(l):r(l)?!a(l)||s||u?function n(r,a,s){var l,c=t.node.deepestParent(r,[],!s);if(c&&"TABLE"==c.tagName)return e(c).find("td:first, th:first").prepend(r),n(r,a,s);if(c&&"BLOCKQUOTE"==c.tagName)if(o(r,c)){if(!a)return(l=t.html.defaultTag())?e(c).before("<"+l+">"+e.FE.MARKERS+"<br></"+l+">"):e(c).before(e.FE.MARKERS+"<br>"),e(r).remove(),!1}else i(r,c)?f(r,a,!0):d(r,a,!0);if(null==c)(l=t.html.defaultTag())&&t.node.isElement(r.parentNode)?e(r).replaceWith("<"+l+">"+e.FE.MARKERS+"<br></"+l+">"):e(r).replaceWith("<br>"+e.FE.MARKERS);else{if(t.node.isBlock(c))if("PRE"==c.tagName&&(a=!0),a)e(r).remove(),e(c).prepend("<br>"+e.FE.MARKERS);else{if(t.node.isEmpty(c,!0))return f(r,a,s);if(t.opts.keepFormatOnDelete){for(var u=r,p=e.FE.INVISIBLE_SPACE;u!=c&&!t.node.isElement(u);)u=u.parentNode,p=t.node.openTagString(u)+p+t.node.closeTagString(u);e(c).before(p)}else e(c).before(t.node.openTagString(e(c).clone().removeAttr("id").get(0))+"<br>"+t.node.closeTagString(c))}else e(c).before("<br>");e(r).remove()}}(l,s,u):t.cursorLists._startEnter(l):!a(l)||s||u?d(l,s,u):t.cursorLists._middleEnter(l),t.$el.find(".fr-to-remove").each(function(){for(var n=t.node.contents(this),r=0;r<n.length;r++)n[r].nodeType==Node.TEXT_NODE&&(n[r].textContent=n[r].textContent.replace(/\u200B/g,""));e(this).replaceWith(this.innerHTML)}),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore()},backspace:function(){var i=!1,c=t.markers.insert();if(!c)return!0;for(var f=c.parentNode;f&&!t.node.isElement(f);){if("false"===f.getAttribute("contenteditable"))return e(c).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===f.getAttribute("contenteditable"))break;f=f.parentNode}t.el.normalize();var d=c.previousSibling;if(d){var p=d.textContent;p&&p.length&&8203==p.charCodeAt(p.length-1)&&(1==p.length?e(d).remove():d.textContent=d.textContent.substr(0,p.length-s(p)))}return n(c)?a(c)&&o(c,e(c).parents("li:first").get(0))?t.cursorLists._backspace(c):i=l(c):r(c)?a(c)&&o(c,e(c).parents("li:first").get(0))?t.cursorLists._backspace(c):function(n){for(var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,o=t.node.deepestParent(n,[],!r),i=o;o&&!o.previousSibling&&"BLOCKQUOTE"!=o.tagName&&o.parentElement!=t.el&&!t.node.hasClass(o.parentElement,"fr-inner")&&e.FE.SIMPLE_ENTER_TAGS.indexOf(o.parentElement.tagName)<0;)o=o.parentElement;if(o&&"BLOCKQUOTE"==o.tagName){var a=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);a&&a.previousSibling&&(i=o=a)}if(null!==o){var s,l=o.previousSibling;if(t.node.isBlock(o)&&t.node.isEditable(o))if(l&&e.FE.NO_DELETE_TAGS.indexOf(l.tagName)<0){if(t.node.isDeletable(l))e(l).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isEditable(l))if(t.node.isBlock(l))if(t.node.isEmpty(l)&&!t.node.isList(l))e(l).remove(),e(n).after(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:"");else{if(t.node.isList(l)&&(l=e(l).find("li:last").get(0)),(s=t.node.contents(l)).length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),"BLOCKQUOTE"==l.tagName&&"BLOCKQUOTE"!=o.tagName)for(s=t.node.contents(l);s.length&&t.node.isBlock(s[s.length-1]);)l=s[s.length-1],s=t.node.contents(l);else if("BLOCKQUOTE"!=l.tagName&&"BLOCKQUOTE"==i.tagName)for(s=t.node.contents(i);s.length&&t.node.isBlock(s[0]);)i=s[0],s=t.node.contents(i);if(t.node.isEmpty(o))e(n).remove(),t.selection.setAtEnd(l,!0);else{e(n).replaceWith(e.FE.MARKERS);var c=l.childNodes;t.node.isBlock(c[c.length-1])?e(c[c.length-1]).append(i.innerHTML):e(l).append(i.innerHTML)}e(i).remove(),t.node.isEmpty(o)&&e(o).remove()}else e(n).replaceWith(e.FE.MARKERS),"BLOCKQUOTE"==o.tagName&&l.nodeType==Node.ELEMENT_NODE?e(l).remove():(e(l).after(t.node.isEmpty(o)?"":e(o).html()),e(o).remove(),"BR"==l.tagName&&e(l).remove())}else l||o&&"BLOCKQUOTE"===o.tagName&&0===e(o).text().replace(/\u200B/g,"").length&&e(o).remove()}}(c):i=l(c),e(c).remove(),u(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore(),i},del:function(){var o=t.markers.insert();if(!o)return!1;if(t.el.normalize(),n(o))if(a(o))if(0===e(o).parents("li:first").find("ul, ol").length)t.cursorLists._del(o);else{var i=e(o).parents("li:first").find("ul:first, ol:first").find("li:first");(i=i.find(t.html.blockTagsQuery()).get(-1)||i).prepend(o),t.cursorLists._backspace(o)}else c(o);else r(o),function(r){for(var o,i=r;!i.nextSibling;)if(i=i.parentNode,t.node.isElement(i))return!1;if("BR"==(i=i.nextSibling).tagName&&t.node.isEditable(i))if(i.nextSibling){if(t.node.isBlock(i.nextSibling)&&t.node.isEditable(i.nextSibling)){if(!(e.FE.NO_DELETE_TAGS.indexOf(i.nextSibling.tagName)<0))return void e(i).remove();i=i.nextSibling,e(i.previousSibling).remove()}}else if(n(i))return void(a(r)?t.cursorLists._del(r):t.node.deepestParent(i)&&((!t.node.isEmpty(t.node.blockParent(i))||(t.node.blockParent(i).nextSibling&&e.FE.NO_DELETE_TAGS.indexOf(t.node.blockParent(i).nextSibling.tagName))<0)&&e(i).remove(),c(r)));if(!t.node.isBlock(i)&&t.node.isEditable(i)){for(o=t.node.contents(i);i.nodeType!=Node.TEXT_NODE&&o.length&&!t.node.isDeletable(i)&&t.node.isEditable(i);)i=o[0],o=t.node.contents(i);i.nodeType==Node.TEXT_NODE?(e(i).before(e.FE.MARKERS),i.textContent.length&&(i.textContent=i.textContent.substring(s(i.textContent,!0),i.textContent.length))):t.node.isDeletable(i)?(e(i).before(e.FE.MARKERS),e(i).remove()):!1!==t.events.trigger("node.remove",[e(i)])&&(e(i).before(e.FE.MARKERS),e(i).remove()),e(r).remove()}else if(e.FE.NO_DELETE_TAGS.indexOf(i.tagName)<0&&(t.node.isEditable(i)||t.node.isDeletable(i)))if(t.node.isDeletable(i))e(r).replaceWith(e.FE.MARKERS),e(i).remove();else if(t.node.isList(i))r.previousSibling?(e(i).find("li:first").prepend(r),t.cursorLists._backspace(r)):(e(i).find("li:first").prepend(e.FE.MARKERS),e(r).remove());else if((o=t.node.contents(i))&&o.length&&"BR"==o[0].tagName&&e(o[0]).remove(),o&&"BLOCKQUOTE"==i.tagName){var l=o[0];for(e(r).before(e.FE.MARKERS);l&&"BR"!=l.tagName;){var u=l;l=l.nextSibling,e(r).before(u)}l&&"BR"==l.tagName&&e(l).remove()}else e(r).after(e(i).html()).after(e.FE.MARKERS),e(i).remove()}(o);e(o).remove(),u(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists()),t.spaces.normalizeAroundCursor(),t.selection.restore()},isAtEnd:i,isAtStart:o}},e.FE.ENTER_P=0,e.FE.ENTER_DIV=1,e.FE.ENTER_BR=2,e.FE.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},e.extend(e.FE.DEFAULTS,{enter:e.FE.ENTER_P,multiLine:!0,tabSpaces:0}),e.FE.MODULES.keys=function(t){var n,r,o,i=!1;function a(){if(t.browser.mozilla&&t.selection.isCollapsed()&&!i){var e=t.selection.ranges(0),n=e.startContainer,r=e.startOffset;n&&n.nodeType==Node.TEXT_NODE&&r<=n.textContent.length&&0<r&&32==n.textContent.charCodeAt(r-1)&&(t.selection.save(),t.spaces.normalize(),t.selection.restore())}}function s(){t.selection.isFull()&&setTimeout(function(){var n=t.html.defaultTag();n?t.$el.html("<"+n+">"+e.FE.MARKERS+"<br/></"+n+">"):t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore(),t.placeholder.refresh(),t.button.bulkRefresh(),t.undo.saveStep()},0)}function l(){i=!1}function c(){i=!1}function u(){var n=t.html.defaultTag();n?t.$el.html("<"+n+">"+e.FE.MARKERS+"<br/></"+n+">"):t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()}function f(r){var o=t.selection.element();if(o&&0<=["INPUT","TEXTAREA"].indexOf(o.tagName))return!0;if(r&&v(r.which))return p(),!0;t.events.disableBlur();var a=r.which;if(16===a)return!0;if((n=a)===e.FE.KEYCODE.IME)return i=!0;i=!1;var s,l,c,f=g(a)&&!m(r)&&!r.altKey,d=a==e.FE.KEYCODE.BACKSPACE||a==e.FE.KEYCODE.DELETE;if((!m(r)&&(!r.shiftKey||33!==a&&34!==a&&35!==a&&36!==a)&&t.selection.isFull()&&!t.opts.keepFormatOnDelete&&!t.placeholder.isVisible()||d&&t.placeholder.isVisible()&&t.opts.keepFormatOnDelete)&&(f||d)&&(u(),!g(a)))return r.preventDefault(),!0;a==e.FE.KEYCODE.ENTER?r.shiftKey?((c=r).preventDefault(),c.stopPropagation(),t.opts.multiLine&&(t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter(!0))):(l=r,t.opts.multiLine?(t.helpers.isIOS()||(l.preventDefault(),l.stopPropagation()),t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter()):(l.preventDefault(),l.stopPropagation())):a===e.FE.KEYCODE.BACKSPACE&&(r.metaKey||r.ctrlKey)?setTimeout(function(){t.events.disableBlur(),t.events.focus()},0):a!=e.FE.KEYCODE.BACKSPACE||m(r)||r.altKey?a!=e.FE.KEYCODE.DELETE||m(r)||r.altKey||r.shiftKey?a==e.FE.KEYCODE.SPACE?function(n){var r=t.selection.element();if(!t.helpers.isMobile()&&r&&"A"==r.tagName){n.preventDefault(),n.stopPropagation(),t.selection.isCollapsed()||t.selection.remove();var o=t.markers.insert();if(o){var i=o.previousSibling;!o.nextSibling&&o.parentNode&&"A"==o.parentNode.tagName?(o.parentNode.insertAdjacentHTML("afterend","&nbsp;"+e.FE.MARKERS),o.parentNode.removeChild(o)):(i&&i.nodeType==Node.TEXT_NODE&&1==i.textContent.length&&160==i.textContent.charCodeAt(0)?i.textContent=i.textContent+" ":o.insertAdjacentHTML("beforebegin","&nbsp;"),o.outerHTML=e.FE.MARKERS),t.selection.restore()}}}(r):a==e.FE.KEYCODE.TAB?function(e){if(0<t.opts.tabSpaces)if(t.selection.isCollapsed()){t.undo.saveStep(),e.preventDefault(),e.stopPropagation();for(var n="",r=0;r<t.opts.tabSpaces;r++)n+="&nbsp;";t.html.insert(n),t.placeholder.refresh(),t.undo.saveStep()}else e.preventDefault(),e.stopPropagation(),e.shiftKey?t.commands.outdent():t.commands.indent()}(r):m(r)||!g(r.which)||t.selection.isCollapsed()||r.ctrlKey||r.altKey||t.selection.remove():t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||u(),r.preventDefault(),r.stopPropagation()):((s=r).preventDefault(),s.stopPropagation(),""===t.selection.text()?t.cursor.del():t.selection.remove(),t.placeholder.refresh()):t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||u(),r.preventDefault(),r.stopPropagation()):function(e){if(t.selection.isCollapsed())if(t.cursor.backspace(),t.helpers.isIOS()){var n=t.selection.ranges(0);n.deleteContents(),n.insertNode(document.createTextNode("​")),t.selection.get().modify("move","forward","character")}else e.preventDefault(),e.stopPropagation();else e.preventDefault(),e.stopPropagation(),t.selection.remove();t.placeholder.refresh()}(r),t.events.enableBlur()}function d(){if(!t.$wp)return!0;var n;t.opts.height||t.opts.heightMax?(n=t.position.getBoundingRect().top,t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n>t.$wp.offset().top-t.helpers.scrollTop()+t.$wp.height()-20&&t.$wp.scrollTop(n+t.$wp.scrollTop()-(t.$wp.height()+t.$wp.offset().top)+t.helpers.scrollTop()+20)):(n=t.position.getBoundingRect().top,t.opts.toolbarBottom&&(n+=t.opts.toolbarStickyOffset),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),(n+=t.opts.toolbarStickyOffset)>t.o_win.innerHeight-20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.o_win.innerHeight+20),n=t.position.getBoundingRect().top,t.opts.toolbarBottom||(n-=t.opts.toolbarStickyOffset),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n<t.$tb.height()+20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.$tb.height()-20))}function p(){var e,n=t.selection.element();!function(e){if(!e)return!1;var t=e.innerHTML;return!!((t=t.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(t)&&0<t.replace(/\u200B/gi,"").length)}(n)||t.node.hasClass(n,"fr-marker")||"IFRAME"==n.tagName||(e=n,t.helpers.isIOS()&&0!==((e.textContent||"").match(/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi)||[]).length)||(t.selection.save(),function(e){for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return/\u200B/gi.test(e.textContent)}),!1);n.nextNode();){var r=n.currentNode;r.textContent=r.textContent.replace(/\u200B/gi,"")}}(n),t.selection.restore())}function h(r){var o=t.selection.element();if(o&&0<=["INPUT","TEXTAREA"].indexOf(o.tagName))return!0;if(r&&0===r.which&&n&&(r.which=n),t.helpers.isAndroid()&&t.browser.mozilla)return!0;if(i)return!1;if(r&&t.helpers.isIOS()&&r.which==e.FE.KEYCODE.ENTER&&t.doc.execCommand("undo"),!t.selection.isCollapsed())return!0;if(r&&(r.which===e.FE.KEYCODE.META||r.which==e.FE.KEYCODE.CTRL))return!0;if(r&&v(r.which))return!0;if(r&&!t.helpers.isIOS()&&(r.which==e.FE.KEYCODE.ENTER||r.which==e.FE.KEYCODE.BACKSPACE||37<=r.which&&r.which<=40&&!t.browser.msie))try{d()}catch(e){}p()}function m(e){if(-1!=navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}function v(t){if(t>=e.FE.KEYCODE.ARROW_LEFT&&t<=e.FE.KEYCODE.ARROW_DOWN)return!0}function g(n){if(n>=e.FE.KEYCODE.ZERO&&n<=e.FE.KEYCODE.NINE)return!0;if(n>=e.FE.KEYCODE.NUM_ZERO&&n<=e.FE.KEYCODE.NUM_MULTIPLY)return!0;if(n>=e.FE.KEYCODE.A&&n<=e.FE.KEYCODE.Z)return!0;if(t.browser.webkit&&0===n)return!0;switch(n){case e.FE.KEYCODE.SPACE:case e.FE.KEYCODE.QUESTION_MARK:case e.FE.KEYCODE.NUM_PLUS:case e.FE.KEYCODE.NUM_MINUS:case e.FE.KEYCODE.NUM_PERIOD:case e.FE.KEYCODE.NUM_DIVISION:case e.FE.KEYCODE.SEMICOLON:case e.FE.KEYCODE.FF_SEMICOLON:case e.FE.KEYCODE.DASH:case e.FE.KEYCODE.EQUALS:case e.FE.KEYCODE.FF_EQUALS:case e.FE.KEYCODE.COMMA:case e.FE.KEYCODE.PERIOD:case e.FE.KEYCODE.SLASH:case e.FE.KEYCODE.APOSTROPHE:case e.FE.KEYCODE.SINGLE_QUOTE:case e.FE.KEYCODE.OPEN_SQUARE_BRACKET:case e.FE.KEYCODE.BACKSLASH:case e.FE.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function y(n){var i=n.which;if(m(n)||37<=i&&i<=40||!g(i)&&i!=e.FE.KEYCODE.DELETE&&i!=e.FE.KEYCODE.BACKSPACE&&i!=e.FE.KEYCODE.ENTER&&i!=e.FE.KEYCODE.IME)return!0;r||(o=t.snapshot.get(),t.undo.canDo()||t.undo.saveStep()),clearTimeout(r),r=setTimeout(function(){r=null,t.undo.saveStep()},Math.max(250,t.opts.typingTimer))}function b(e){var n=e.which;if(m(e)||37<=n&&n<=40)return!0;o&&r?(t.undo.saveStep(o),o=null):void 0!==n&&0!==n||o||r||t.undo.saveStep()}function _(e){if(e&&"BR"==e.tagName)return!1;try{return 0===(e.textContent||"").length&&e.querySelector&&!e.querySelector(":scope > br")||e.childNodes&&1==e.childNodes.length&&e.childNodes[0].getAttribute&&("false"==e.childNodes[0].getAttribute("contenteditable")||t.node.hasClass(e.childNodes[0],"fr-img-caption"))}catch(e){return!1}}function w(n){var r=t.el.childNodes,o=t.html.defaultTag();return!(!n.target||n.target===t.el)||0===r.length||void(t.$el.outerHeight()-n.offsetY<=10?_(r[r.length-1])&&(o?t.$el.append("<"+o+">"+e.FE.MARKERS+"<br></"+o+">"):t.$el.append(e.FE.MARKERS+"<br>"),t.selection.restore(),d()):n.offsetY<=10&&_(r[0])&&(o?t.$el.prepend("<"+o+">"+e.FE.MARKERS+"<br></"+o+">"):t.$el.prepend(e.FE.MARKERS+"<br>"),t.selection.restore(),d()))}function E(){r&&clearTimeout(r)}return{_init:function(){t.events.on("keydown",y),t.events.on("input",a),t.events.on("mousedown",c),t.events.on("keyup input",b),t.events.on("keypress",l),t.events.on("keydown",f),t.events.on("keyup",h),t.events.on("destroy",E),t.events.on("html.inserted",h),t.events.on("cut",s),t.opts.multiLine&&t.events.on("click",w)},ctrlKey:m,isCharacter:g,isArrow:v,forceUndo:function(){r&&(clearTimeout(r),t.undo.saveStep(),o=null)},isIME:function(){return i},isBrowserAction:function(t){var n=t.which;return m(t)||n==e.FE.KEYCODE.F5},positionCaret:d}},e.FE.MODULES.accessibility=function(t){var n=!0;function r(e){e&&e.length&&!t.$el.find('[contenteditable="true"]').is(":focus")&&(e.data("blur-event-set")||e.parents(".fr-popup").length||(t.events.$on(e,"blur",function(){var n=e.parents(".fr-toolbar, .fr-popup").data("instance")||t;n.events.blurActive()&&!t.core.hasFocus()&&n.events.trigger("blur"),setTimeout(function(){n.events.enableBlur()},100)},!0),e.data("blur-event-set",!0)),(e.parents(".fr-toolbar, .fr-popup").data("instance")||t).events.disableBlur(),e.focus(),t.shared.$f_el=e)}function o(e,t){var n=t?"last":"first",o=e.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible")[n]();if(o.length)return r(o),!0}function i(e){return e.is("input, textarea, select")&&s(),t.events.disableBlur(),e.focus(),!0}function a(e,n){var r=e.find("input, textarea, button, select").filter(":visible").not(":disabled").filter(n?":last":":first");if(r.length)return i(r);if(t.shared.with_kb){var o=e.find(".fr-active-item:visible:first");if(o.length)return i(o);var a=e.find("[tabIndex]:visible:first");if(a.length)return i(a)}}function s(){0===t.$el.find(".fr-marker").length&&t.core.hasFocus()&&t.selection.save()}function l(){var e=t.popups.areVisible();if(e){var n=e.find(".fr-buttons");return n.find("button:focus, .fr-group span:focus").length?!o(e.data("instance").$tb):!o(n)}return!o(t.$tb)}function c(){var e=null;return t.shared.$f_el.is(".fr-dropdown.fr-active")?e=t.shared.$f_el:t.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(e=t.shared.$f_el.closest(".fr-dropdown-menu").prev()),e}function u(n,i,s){if(t.shared.$f_el){var l=c();l&&(t.button.click(l),t.shared.$f_el=l);var u,f=n.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible"),d=f.index(t.shared.$f_el);return 0===d&&!s||d==f.length-1&&s?(i&&(n.parent().is(".fr-popup")&&(u=!a(n.parent().children().not(".fr-buttons"),!s)),!1===u&&(t.shared.$f_el=null)),i&&!1===u||o(n,!s)):r(e(f.get(d+(s?1:-1)))),!1}}function f(e,t){return u(e,t,!0)}function d(e,t){return u(e,t)}function p(e){if(t.shared.$f_el){var n;if(t.shared.$f_el.is(".fr-dropdown.fr-active"))return r(n=e?t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last()),!1;if(t.shared.$f_el.is("a.fr-command"))return(n=e?t.shared.$f_el.closest("li").nextAll(":visible:first").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest("li").prevAll(":visible:first").find(".fr-command:not(.fr-disabled)").first()).length||(n=e?t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),r(n),!1}}function h(){if(t.shared.$f_el){if(t.shared.$f_el.hasClass("fr-dropdown"))t.button.click(t.shared.$f_el);else if(t.shared.$f_el.is("button.fr-back")){t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus());var e=t.popups.areVisible(t);e&&(t.shared.with_kb=!1),t.button.click(t.shared.$f_el),g(e)}else{if(t.events.disableBlur(),t.button.click(t.shared.$f_el),t.shared.$f_el.attr("data-popup")){var n=t.popups.areVisible(t);n&&n.data("popup-button",t.shared.$f_el)}else if(t.shared.$f_el.attr("data-modal")){var r=t.modals.areVisible(t);r&&r.data("modal-button",t.shared.$f_el)}t.shared.$f_el=null}return!1}}function m(){t.shared.$f_el&&(t.events.disableBlur(),t.shared.$f_el.blur(),t.shared.$f_el=null),!1!==t.events.trigger("toolbar.focusEditor")&&(t.events.disableBlur(),t.browser.msie||t.$el.focus(),t.events.focus())}function v(r){r&&r.length&&(t.events.$on(r,"keydown",function(n){if(!e(n.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var o=r.parents(".fr-popup").data("instance")||r.data("instance")||t;t.shared.with_kb=!0;var i=o.accessibility.exec(n,r);return t.shared.with_kb=!1,i},!0),t.browser.msie||t.events.$on(r,"mouseenter","[tabIndex]",function(o){var i=r.parents(".fr-popup").data("instance")||r.data("instance")||t;if(!n)return o.stopPropagation(),void o.preventDefault();var a=e(o.currentTarget);i.shared.$f_el&&i.shared.$f_el.not(a)&&i.accessibility.focusEditor()},!0))}function g(e){var t=e.data("popup-button");t&&setTimeout(function(){r(t),e.data("popup-button",null)},0)}function y(e){var n=t.popups.areVisible(e);n&&n.data("popup-button",null)}function b(n){var r=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if(n.which==e.FE.KEYCODE.F10&&!r&&!n.shiftKey&&n.altKey){t.shared.with_kb=!0;var o=t.popups.areVisible(t),i=!1;return o&&(i=a(o.children().not(".fr-buttons"))),i||l(),t.shared.with_kb=!1,n.preventDefault(),n.stopPropagation(),!1}return!0}return{_init:function(){t.$wp?t.events.on("keydown",b,!0):t.events.$on(t.$win,"keydown",b,!0),t.events.on("mousedown",function(e){y(t),t.shared.$f_el&&(t.accessibility.restoreSelection(),e.stopPropagation(),t.events.disableBlur(),t.shared.$f_el=null)},!0),t.events.on("blur",function(){t.shared.$f_el=null,y(t)},!0)},registerPopup:function(r){var i,s,l=t.popups.get(r),c=(i=r,s=t.popups.get(i),{_tiKeydown:function(n){var r=s.data("instance")||t;if(!1===r.events.trigger("popup.tab",[n]))return!1;var l=n.which,c=s.find(":focus:first");if(e.FE.KEYCODE.TAB==l){n.preventDefault();var u=s.children().not(".fr-buttons"),f=u.find("input, textarea, button, select").filter(":visible").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray(),d=f.indexOf(this)+(n.shiftKey?-1:1);if(0<=d&&d<f.length)return r.events.disableBlur(),e(f[d]).focus(),n.stopPropagation(),!1;var p=s.find(".fr-buttons");if(p.length&&o(p,!!n.shiftKey))return n.stopPropagation(),!1;if(a(u))return n.stopPropagation(),!1}else{if(e.FE.KEYCODE.ENTER!=l||!n.target||"TEXTAREA"===n.target.tagName)return e.FE.KEYCODE.ESC==l?(n.preventDefault(),n.stopPropagation(),r.accessibility.restoreSelection(),r.popups.isVisible(i)&&s.find(".fr-back:visible").length?(r.opts.toolbarInline&&(r.events.disableBlur(),r.events.focus()),r.button.exec(s.find(".fr-back:visible:first")),g(s)):r.popups.isVisible(i)&&s.find(".fr-dismiss:visible").length?r.button.exec(s.find(".fr-dismiss:visible:first")):(r.popups.hide(i),r.opts.toolbarInline&&r.toolbar.showInline(null,!0),g(s)),!1):e.FE.KEYCODE.SPACE==l&&(c.is(".fr-submit")||c.is(".fr-dismiss"))?(n.preventDefault(),n.stopPropagation(),r.events.disableBlur(),r.button.exec(c),!0):r.keys.isBrowserAction(n)?void n.stopPropagation():c.is("input[type=text], textarea")?void n.stopPropagation():e.FE.KEYCODE.SPACE==l&&(c.is(".fr-link-attr")||c.is("input[type=file]"))?void n.stopPropagation():(n.stopPropagation(),n.preventDefault(),!1);var h=null;0<s.find(".fr-submit:visible").length?h=s.find(".fr-submit:visible:first"):s.find(".fr-dismiss:visible").length&&(h=s.find(".fr-dismiss:visible:first")),h&&(n.preventDefault(),n.stopPropagation(),r.events.disableBlur(),r.button.exec(h))}},_tiMouseenter:function(){var e=s.data("instance")||t;y(e)}});v(l.find(".fr-buttons")),t.events.$on(l,"mouseenter","tabIndex",c._tiMouseenter,!0),t.events.$on(l.children().not(".fr-buttons"),"keydown","[tabIndex]",c._tiKeydown,!0),t.popups.onHide(r,function(){(l.data("instance")||t).accessibility.restoreSelection()}),t.popups.onShow(r,function(){n=!1,setTimeout(function(){n=!0},0)})},registerToolbar:v,focusToolbarElement:r,focusToolbar:o,focusContent:a,focusPopup:function(e){var r=e.children().not(".fr-buttons");r.data("mouseenter-event-set")||t.browser.msie||(t.events.$on(r,"mouseenter","[tabIndex]",function(o){var i=e.data("instance")||t;if(!n)return o.stopPropagation(),void o.preventDefault();var a=r.find(":focus:first");a.length&&!a.is("input, button, textarea, select")&&(i.events.disableBlur(),a.blur(),i.events.disableBlur(),i.events.focus())}),r.data("mouseenter-event-set",!0)),!a(r)&&t.shared.with_kb&&o(e.find(".fr-buttons"))},focusModal:function(e){t.core.hasFocus()||(t.events.disableBlur(),t.events.focus()),t.accessibility.saveSelection(),t.events.disableBlur(),t.$el.blur(),t.selection.clear(),t.events.disableBlur(),t.shared.with_kb?e.find(".fr-command[tabIndex], [tabIndex]").first().focus():e.find("[tabIndex]:first").focus()},focusEditor:m,focusPopupButton:g,focusModalButton:function(e){var t=e.data("modal-button");t&&setTimeout(function(){r(t),e.data("modal-button",null)},0)},hasFocus:function(){return null!=t.shared.$f_el},exec:function(n,o){var i=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey,a=n.which,s=!1;return a!=e.FE.KEYCODE.TAB||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_RIGHT||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.TAB||i||!n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_LEFT||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_UP||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_DOWN||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ENTER&&a!=e.FE.KEYCODE.SPACE||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ESC||i||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.F10||i||n.shiftKey||!n.altKey||(s=l()):s=function(e){if(t.shared.$f_el){var n=c();return n?(t.button.click(n),r(n)):e.parent().find(".fr-back:visible").length?(t.shared.with_kb=!1,t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus()),t.button.exec(e.parent().find(".fr-back:visible:first")),g(e.parent())):t.shared.$f_el.is("button, .fr-group span")&&(e.parent().is(".fr-popup")?(t.accessibility.restoreSelection(),t.shared.$f_el=null,!1!==t.events.trigger("toolbar.esc")&&(t.popups.hide(e.parent()),t.opts.toolbarInline&&t.toolbar.showInline(null,!0),g(e.parent()))):m()),!1}}(o):s=h():s=t.shared.$f_el&&t.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?h():p(!0):s=p():s=d(o):s=d(o,!0):s=f(o):s=f(o,!0),t.shared.$f_el||void 0!==s||(s=!0),!s&&t.keys.isBrowserAction(n)&&(s=!0),!!s||(n.preventDefault(),n.stopPropagation(),!1)},saveSelection:s,restoreSelection:function(){t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur())}}},e.FE.MODULES.format=function(t){function n(e,t){var n="<"+e;for(var r in t)t.hasOwnProperty(r)&&(n+=" "+r+'="'+t[r]+'"');return n+=">"}function r(e,t){var n=e;for(var r in t)t.hasOwnProperty(r)&&(n+="id"==r?"#"+t[r]:"class"==r?"."+t[r]:"["+r+'="'+t[r]+'"]');return n}function o(e,t){return!(!e||e.nodeType!=Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function i(r,o,a){if(r){for(;r.nodeType===Node.COMMENT_NODE;)r=r.nextSibling;if(r){if(t.node.isBlock(r)&&"HR"!==r.tagName)return i(r.firstChild,o,a),!1;for(var s=e(n(o,a)).insertBefore(r),l=r;l&&!e(l).is(".fr-marker")&&0===e(l).find(".fr-marker").length&&"UL"!=l.tagName&&"OL"!=l.tagName;){var c=l;if(t.node.isBlock(l)&&"HR"!==r.tagName)return i(l.firstChild,o,a),!1;l=l.nextSibling,s.append(c)}if(l)(e(l).find(".fr-marker").length||"UL"==l.tagName||"OL"==l.tagName)&&i(l.firstChild,o,a);else{for(var u=s.get(0).parentNode;u&&!u.nextSibling&&!t.node.isElement(u);)u=u.parentNode;if(u){var f=u.nextSibling;f&&(t.node.isBlock(f)?"HR"===f.tagName?i(f.nextSibling,o,a):i(f.firstChild,o,a):i(f,o,a))}}s.is(":empty")&&s.remove()}}}function a(a,s){var l;if(void 0===s&&(s={}),s.style&&delete s.style,t.selection.isCollapsed())t.markers.insert(),t.$el.find(".fr-marker").replaceWith(n(a,s)+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</"+a+">"),t.selection.restore();else{var c;t.selection.save(),i(t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,a,s);do{for(c=t.$el.find(r(a,s)+" > "+r(a,s)),l=0;l<c.length;l++)c[l].outerHTML=c[l].innerHTML}while(c.length);t.el.normalize();var u=t.el.querySelectorAll(".fr-marker");for(l=0;l<u.length;l++){var f=e(u[l]);!0===f.data("type")?o(f.get(0).nextSibling,r(a,s))&&f.next().prepend(f):o(f.get(0).previousSibling,r(a,s))&&f.prev().append(f)}t.selection.restore()}}function s(e,n,i,a){if(!a){var s=!1;if(!0===e.data("type"))for(;t.node.isFirstSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().before(e),s=!0;else if(!1===e.data("type"))for(;t.node.isLastSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().after(e),s=!0;if(s)return!0}if(e.parents(n).length||void 0===n){var l="",c="",u=e.parent();if(u.is(t.$el)||t.node.isBlock(u.get(0)))return!1;for(;!t.node.isBlock(u.parent().get(0))&&(void 0===n||void 0!==n&&!o(u.get(0),r(n,i)));)l+=t.node.closeTagString(u.get(0)),c=t.node.openTagString(u.get(0))+c,u=u.parent();var f=e.get(0).outerHTML;e.replaceWith('<span id="mark"></span>');var d=u.html().replace(/<span id="mark"><\/span>/,l+t.node.closeTagString(u.get(0))+c+f+l+t.node.openTagString(u.get(0))+c);return u.replaceWith(t.node.openTagString(u.get(0))+d+t.node.closeTagString(u.get(0))),!0}return!1}function l(n,i){void 0===i&&(i={}),i.style&&delete i.style;var a=t.selection.isCollapsed();t.selection.save();for(var l=!0;l;){l=!1;for(var c=t.$el.find(".fr-marker"),u=0;u<c.length;u++){var f=e(c[u]),d=null;if(f.attr("data-cloned")||a||(d=f.clone().removeClass("fr-marker").addClass("fr-clone"),!0===f.data("type")?f.attr("data-cloned",!0).after(d):f.attr("data-cloned",!0).before(d)),s(f,n,i,a)){l=!0;break}}}!function n(i,a,s,l){for(var c=t.node.contents(i.get(0)),u=0;u<c.length;u++){var f=c[u];if(t.node.hasClass(f,"fr-marker"))a=(a+1)%2;else if(a)if(0<e(f).find(".fr-marker").length)a=n(e(f),a,s,l);else{for(var d=e(f).find(s||"*:not(br)"),p=d.length-1;0<=p;p--){var h=d[p];t.node.isBlock(h)||t.node.isVoid(h)||void 0!==s&&!o(h,r(s,l))?t.node.isBlock(h)&&void 0===s&&"TABLE"!=f.tagName&&t.node.clearAttributes(h):t.node.hasClass(h,"fr-clone")||(h.outerHTML=h.innerHTML)}void 0===s&&f.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(f)||o(f,r(s,l))?t.node.isBlock(f)?void 0===s&&f.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(f)&&"TABLE"!=f.tagName&&t.node.clearAttributes(f):t.node.hasClass(f,"fr-clone")||(f.outerHTML=f.innerHTML):void 0===s&&f.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(f)&&"TABLE"!=f.tagName&&t.node.clearAttributes(f)}else 0<e(f).find(".fr-marker").length&&(a=n(e(f),a,s,l))}return a}(t.$el,0,n,i),a||(t.$el.find(".fr-marker").remove(),t.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker")),a&&t.$el.find(".fr-marker").before(e.FE.INVISIBLE_SPACE).after(e.FE.INVISIBLE_SPACE),t.html.cleanEmptyTags(),t.el.normalize(),t.selection.restore()}function c(n,r){var o,a,l,c,f,d=null;if(t.selection.isCollapsed()){t.markers.insert();var p=(a=t.$el.find(".fr-marker")).parent();if(t.node.openTagString(p.get(0))=='<span style="'+n+": "+p.css(n)+';">'){if(t.node.isEmpty(p.get(0)))d=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),p.replaceWith(d);else{var h={};h["style*"]=n+":",s(a,"span",h,!0),a=t.$el.find(".fr-marker"),r?(d=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(d)):a.replaceWith(e.FE.INVISIBLE_SPACE+e.FE.MARKERS)}t.html.cleanEmptyTags()}else t.node.isEmpty(p.get(0))&&p.is("span")?(a.replaceWith(e.FE.MARKERS),p.css(n,r)):(d=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(d));d&&u(d,n,r)}else{if(t.selection.save(),null==r||"color"==n&&0<t.$el.find(".fr-marker").parents("u, a").length){var m=t.$el.find(".fr-marker");for(o=0;o<m.length;o++)if(!0===(a=e(m[o])).data("type"))for(;t.node.isFirstSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().before(a);else for(;t.node.isLastSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().after(a)}var v=t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,g={class:"fr-unprocessed"};for(r&&(g.style=n+": "+r+";"),i(v,"span",g),t.$el.find(".fr-marker + .fr-unprocessed").each(function(){e(this).prepend(e(this).prev())}),t.$el.find(".fr-unprocessed + .fr-marker").each(function(){e(this).prev().append(this)}),(r||"").match(/\dem$/)&&t.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<t.$el.find("span.fr-unprocessed").length;){if((d=t.$el.find("span.fr-unprocessed:first").removeClass("fr-unprocessed")).parent().get(0).normalize(),d.parent().is("span")&&1==d.parent().get(0).childNodes.length){d.parent().css(n,r);var y=d;d=d.parent(),y.replaceWith(y.html())}var b=d.find("span");for(o=b.length-1;0<=o;o--)l=b[o],c=n,f=void 0,(f=e(l)).css(c,""),""===f.attr("style")&&f.replaceWith(f.html());u(d,n,r)}}!function(){for(var n;0<t.$el.find(".fr-split:empty").length;)t.$el.find(".fr-split:empty").remove();t.$el.find(".fr-split").removeClass("fr-split"),t.$el.find('[style=""]').removeAttr("style"),t.$el.find('[class=""]').removeAttr("class"),t.html.cleanEmptyTags(),e(t.$el.find("span").get().reverse()).each(function(){this.attributes&&0!==this.attributes.length||e(this).replaceWith(this.innerHTML)}),t.el.normalize();var r=t.$el.find("span[style] + span[style]");for(n=0;n<r.length;n++){var o=e(r[n]),i=e(r[n]).prev();o.get(0).previousSibling==i.get(0)&&t.node.openTagString(o.get(0))==t.node.openTagString(i.get(0))&&(o.prepend(i.html()),i.remove())}t.$el.find("span[style] span[style]").each(function(){if(0<=e(this).attr("style").indexOf("font-size")){var t=e(this).parents("span[style]");0<=t.attr("style").indexOf("background-color")&&(e(this).attr("style",e(this).attr("style")+";"+t.attr("style")),s(e(this),"span[style]",{},!1))}}),t.el.normalize(),t.selection.restore()}()}function u(n,r,o){var i,a,s,l=n.parentsUntil(t.$el,"span[style]"),c=[];for(i=l.length-1;0<=i;i--)a=l[i],s=r,0===e(a).attr("style").indexOf(s+":")||0<=e(a).attr("style").indexOf(";"+s+":")||0<=e(a).attr("style").indexOf("; "+s+":")||c.push(l[i]);if((l=l.not(c)).length){for(var u="",f="",d="",p="",h=n.get(0);h=h.parentNode,e(h).addClass("fr-split"),u+=t.node.closeTagString(h),f=t.node.openTagString(e(h).clone().addClass("fr-split").get(0))+f,l.get(0)!=h&&(d+=t.node.closeTagString(h),p=t.node.openTagString(e(h).clone().addClass("fr-split").get(0))+p),l.get(0)!=h;);var m=u+t.node.openTagString(e(l.get(0)).clone().css(r,o||"").get(0))+p+n.css(r,"").get(0).outerHTML+d+"</span>"+f;n.replaceWith('<span id="fr-break"></span>');var v=l.get(0).outerHTML;e(l.get(0)).replaceWith(v.replace(/<span id="fr-break"><\/span>/g,m))}}function f(e,n){void 0===n&&(n={}),n.style&&delete n.style;var i=t.selection.ranges(0),a=i.startContainer;if(a.nodeType==Node.ELEMENT_NODE&&0<a.childNodes.length&&a.childNodes[i.startOffset]&&(a=a.childNodes[i.startOffset]),!i.collapsed&&a.nodeType==Node.TEXT_NODE&&i.startOffset==(a.textContent||"").length){for(;!t.node.isBlock(a.parentNode)&&!a.nextSibling;)a=a.parentNode;a.nextSibling&&(a=a.nextSibling)}for(var s=a;s&&s.nodeType==Node.ELEMENT_NODE&&!o(s,r(e,n));)s=s.firstChild;if(s&&s.nodeType==Node.ELEMENT_NODE&&o(s,r(e,n)))return!0;var l=a;for(l&&l.nodeType!=Node.ELEMENT_NODE&&(l=l.parentNode);l&&l.nodeType==Node.ELEMENT_NODE&&l!=t.el&&!o(l,r(e,n));)l=l.parentNode;return!(!l||l.nodeType!=Node.ELEMENT_NODE||l==t.el||!o(l,r(e,n)))}return{is:f,toggle:function(e,t){f(e,t)?l(e,t):a(e,t)},apply:a,remove:l,applyStyle:c,removeStyle:function(e){c(e,null)}}},e.extend(e.FE.DEFAULTS,{indentMargin:20}),e.FE.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(e){var t=this.format.is("strong");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},italic:{title:"Italic",toggle:!0,refresh:function(e){var t=this.format.is("em");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},underline:{title:"Underline",toggle:!0,refresh:function(e){var t=this.format.is("u");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(e){var t=this.format.is("s");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},subscript:{title:"Subscript",toggle:!0,refresh:function(e){var t=this.format.is("sub");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},superscript:{title:"Superscript",toggle:!0,refresh:function(e){var t=this.format.is("sup");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},outdent:{title:"Decrease Indent"},indent:{title:"Increase Indent"},undo:{title:"Undo",undo:!1,forcedRefresh:!0,disabled:!0},redo:{title:"Redo",undo:!1,forcedRefresh:!0,disabled:!0},insertHR:{title:"Insert Horizontal Line"},clearFormatting:{title:"Clear Formatting"},selectAll:{title:"Select All",undo:!1}},e.FE.RegisterCommand=function(t,n){e.FE.COMMANDS[t]=n},e.FE.MODULES.commands=function(t){function n(e){return t.html.defaultTag()&&(e="<"+t.html.defaultTag()+">"+e+"</"+t.html.defaultTag()+">"),e}var r={bold:function(){i(0,"strong")},subscript:function(){t.format.is("sup")&&t.format.remove("sup"),i(0,"sub")},superscript:function(){t.format.is("sub")&&t.format.remove("sub"),i(0,"sup")},italic:function(){i(0,"em")},strikeThrough:function(){i(0,"s")},underline:function(){i(0,"u")},undo:function(){t.undo.run()},redo:function(){t.undo.redo()},indent:function(){a(1)},outdent:function(){a(-1)},show:function(){t.opts.toolbarInline&&t.toolbar.showInline(null,!0)},insertHR:function(){t.selection.remove();var r="";t.core.isEmpty()&&(r=n(r="<br>")),t.html.insert('<hr id="fr-just">'+r);var o,i=t.$el.find("hr#fr-just");if(i.removeAttr("id"),0===i.next().length){var a=t.html.defaultTag();a?i.after(e("<"+a+">").append("<br>")):i.after("<br>")}i.prev().is("hr")?o=t.selection.setAfter(i.get(0),!1):i.next().is("hr")?o=t.selection.setBefore(i.get(0),!1):t.selection.setAfter(i.get(0),!1)||t.selection.setBefore(i.get(0),!1),o||void 0===o||(r=n(r=e.FE.MARKERS+"<br>"),i.after(r)),t.selection.restore()},clearFormatting:function(){t.format.remove()},selectAll:function(){t.doc.execCommand("selectAll",!1,!1)}};function o(n,o){if(!1!==t.events.trigger("commands.before",e.merge([n],o||[]))){var i=e.FE.COMMANDS[n]&&e.FE.COMMANDS[n].callback||r[n],a=!0,s=!1;e.FE.COMMANDS[n]&&(void 0!==e.FE.COMMANDS[n].focus&&(a=e.FE.COMMANDS[n].focus),void 0!==e.FE.COMMANDS[n].accessibilityFocus&&(s=e.FE.COMMANDS[n].accessibilityFocus)),(!t.core.hasFocus()&&a&&!t.popups.areVisible()||!t.core.hasFocus()&&s&&t.accessibility.hasFocus())&&t.events.focus(!0),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&(t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore()),t.undo.saveStep()),i&&i.apply(t,e.merge([n],o||[])),t.events.trigger("commands.after",e.merge([n],o||[])),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&t.undo.saveStep()}}function i(e,n){t.format.toggle(n)}function a(n){t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore();for(var r=t.selection.blocks(),o=0;o<r.length;o++)if("LI"!=r[o].tagName&&"LI"!=r[o].parentNode.tagName){var i=e(r[o]),a="rtl"==t.opts.direction||"rtl"==i.css("direction")?"margin-right":"margin-left",s=t.helpers.getPX(i.css(a));if(i.width()<2*t.opts.indentMargin&&0<n)continue;i.css(a,Math.max(s+n*t.opts.indentMargin,0)||""),i.removeClass("fr-temp-div")}t.selection.save(),t.html.unwrap(),t.selection.restore()}function s(e){return function(){o(e)}}var l={};for(var c in r)r.hasOwnProperty(c)&&(l[c]=s(c));return e.extend(l,{exec:o,_init:function(){t.events.on("keydown",function(e){var n=t.selection.element();if(n&&"HR"==n.tagName&&!t.keys.isArrow(e.which))return e.preventDefault(),!1}),t.events.on("keyup",function(n){var r=t.selection.element();if(r&&"HR"==r.tagName)if(n.which==e.FE.KEYCODE.ARROW_LEFT||n.which==e.FE.KEYCODE.ARROW_UP){if(r.previousSibling)return t.node.isBlock(r.previousSibling)?t.selection.setAtEnd(r.previousSibling):e(r).before(e.FE.MARKERS),t.selection.restore(),!1}else if((n.which==e.FE.KEYCODE.ARROW_RIGHT||n.which==e.FE.KEYCODE.ARROW_DOWN)&&r.nextSibling)return t.node.isBlock(r.nextSibling)?t.selection.setAtStart(r.nextSibling):e(r).after(e.FE.MARKERS),t.selection.restore(),!1}),t.events.on("mousedown",function(e){if(e.target&&"HR"==e.target.tagName)return e.preventDefault(),e.stopPropagation(),!1}),t.events.on("mouseup",function(){var n=t.selection.element();n==t.selection.endElement()&&n&&"HR"==n.tagName&&(n.nextSibling&&(t.node.isBlock(n.nextSibling)?t.selection.setAtStart(n.nextSibling):e(n).after(e.FE.MARKERS)),t.selection.restore())})}})},e.FE.MODULES.data=function(t){var n="NCKB1zwtPA9tqzajXC2c2A7B-16VD3spzJ1C9C3D5oOF2OB1NB1LD7VA5QF4TE3gytXB2A4C-8VA2AC4E1D3GB2EB2KC3KD1MF1juuSB1A8C6yfbmd1B2a1A5qdsdB2tivbC3CB1KC1CH1eLA2sTF1B4I4H-7B-21UB6b1F5bzzzyAB4JC3MG2hjdKC1JE6C1E1cj1pD-16pUE5B4prra2B5ZB3D3C3pxj1EA6A3rnJA2C-7I-7JD9D1E1wYH1F3sTB5TA2G4H4ZA22qZA5BB3mjcvcCC3JB1xillavC-21VE6PC5SI4YC5C8mb1A3WC3BD2B5aoDA2qqAE3A5D-17fOD1D5RD4WC10tE6OAZC3nF-7b1C4A4D3qCF2fgmapcromlHA2QA6a1E1D3e1A6C2bie2F4iddnIA7B2mvnwcIB5OA1DB2OLQA3PB10WC7WC5d1E3uI-7b1D5D6b1E4D2arlAA4EA1F-11srxI-7MB1D7PF1E5B4adB-21YD5vrZH3D3xAC4E1A2GF2CF2J-7yNC2JE1MI2hH-7QB1C6B5B-9bA-7XB13a1B5VievwpKB4LA3NF-10H-9I-8hhaC-16nqPG4wsleTD5zqYF3h1G2B7B4yvGE2Pi1H-7C-21OE6B1uLD1kI4WC1E7C5g1D-8fue1C8C6c1D4D3Hpi1CC4kvGC2E1legallyXB4axVA11rsA4A-9nkdtlmzBA2GD3A13A6CB1dabE1lezrUE6RD5TB4A-7f1C8c1B5d1D4D3tyfCD5C2D2==",r=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd"+(new Date).getTime();e<n.length-1&&-1==document.cookie.indexOf(r+"="+r);)t=n.slice(-1-++e).join("."),document.cookie=r+"="+r+";domain="+t+";";return document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",(t||"").replace(/(^\.*)|(\.*$)/g,"")}();function o(e){return e}var i,a,s=o(function(e){if(!e)return e;for(var t="",n=o("charCodeAt"),r=o("fromCharCode"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(e[0]),a=1;a<e.length-2;a++){for(var s=l(++i),u=e[n](a),f="";/[0-9-]/.test(e[a+1]);)f+=e[++a];u=c(u,s,f=parseInt(f,10)||0),u^=i-1&31,t+=String[r](u)}return t});function l(e){for(var t=e.toString(),n=0,r=0;r<t.length;r++)n+=parseInt(t.charAt(r),10);return 10<n?n%9+1:n}function c(e,t,n){for(var r=Math.abs(n);0<r--;)e-=t;return n<0&&(e+=123),e}function u(e){return e&&"block"!==e.css("display")?(e.remove(),!0):e&&0===t.helpers.getPX(e.css("height"))?(e.remove(),!0):!(!e||"absolute"!==e.css("position")&&"fixed"!==e.css("position")||(e.remove(),0))}function f(e){return e&&0===t.$box.find(e).length}var d=0;function p(){if(10<d&&(t[o(s("0ppecjvc=="))](),setTimeout(function(){e.FE=null},10)),!t.$box)return!1;t.$wp.prepend(s(o(s(n)))),i=t.$wp.find("> div:first"),a=i.find("> a"),"rtl"==t.opts.direction&&i.css("left","auto").css("right",0).attr("direction","rtl"),d++}function h(e){for(var t=[s("9qqG-7amjlwq=="),s("KA3B3C2A6D1D5H5H1A3=="),s("3B9B3B5F3C4G3E3=="),s("QzbzvxyB2yA-9m=="),s("ji1kacwmgG5bc=="),s("nmA-13aogi1A3c1jd=="),s("BA9ggq=="),s("emznbjbH3fij=="),s("tkC-22d1qC-13sD1wzF-7==")],n=0;n<t.length;n++)if(String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}return{_init:function(){var l=t.o_win.FEK;try{l=l||localStorage&&localStorage.FEK}catch(e){}l=t.opts.key||l||[""];var c=s(o("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9=="));"string"==typeof l&&(l=[l]);for(var d,m,v,g=!(t.ul=!0),y=0,b=0;b<l.length;b++){var _=(m=l[b],3===(v=(s(m)||"").split("|")).length?v:[null,null,s(m)||""]),w=_[2];if(w===s(o(s("mcVRDoB1BGILD7YFe1BTXBA7B6==")))||0<=w.indexOf(r,w.length-r.length)||h(r)){if(!((null===(d=_[1])||new Date(d)<new Date(s("fA4B3E3C1I3H2C6C6C3E4==")))&&0<(r||"").length)||h(r)){t.ul=!1;break}g=!0,n="RCZB17botVG4A-8yzia1C4A5DG3CD2cFB4qflmCE4I2FB1SC7F6PE4WE3RD6e2A4c1D3d1E2E3ehxdGE3CE2IB2LC1HG2LE1QA3QC7B-13cC-9epmkjc1B4e1C4pgjgvkOC5E1eNE1HB2LD2B-13WD5tvabUA5a1A4f1A2G3C2A-21cihKE3FE2DB2cccJE1iC-7G-7tD-17tVD6A-9qC-7QC7a1E4B4je1E3E2G2ecmsAA1xH-8HB11C1D1lgzQA3dTB8od1D4XE3ohb1B4E4D3mbLA10NA7C-21d1genodKC11PD9PE5tA-8UI3ZC5XB5B-11qXF2F-7wtwjAG3NA1IB1OD1HC1RD4QJ4evUF2D5XG2G4XA8pqocH1F3G2J2hcpHC4D1MD4C1MB8PD5klcQD1A8A6e2A3ed1E2A24A7HC5C3qA-9tiA-61dcC3MD1LE1D4SA3A9ZZXSE4g1C3Pa2C5ufbcGI3I2B4skLF2CA1vxB-22wgUC4kdH-8cVB5iwe1A2D3H3G-7DD5JC2ED2OH2JB10D3C2xHE1KA29PB11wdC-11C4cixb2C7a1C4YYE3B2A15uB-21wpCA1MF1NuC-21dyzD6pPG4I-7pmjc1A4yte1F3B-22yvCC3VbC-7qC-22qNE2hC1vH-8zad1RF6WF3DpI-7C8A-16hpf1F3D2ylalB-13BB2lpA-63IB3uOF6D5G4gabC-21UD2A3PH4ZA20B11b2C6ED4A2H3I1A15DB4KD2laC-8LA5B8B7==",y=_[0]||-1}}var E=new Image;!0===t.ul&&(p(),E.src=g?o(s(c))+"e="+y:o(s(c))+"u"),!0===t.ul&&(t.events.on("contentChanged",function(){(u(i)||u(a)||f(i)||f(a))&&p()}),t.events.on("html.get",function(e){return e+'<p data-f-id="pbf" style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.froala.com/wysiwyg-editor?pb=1" title="Froala Editor">Froala Editor</a></p>'})),t.events.on("html.set",function(){var n=t.el.querySelector('[data-f-id="pbf"]');n&&e(n).remove()}),t.events.on("destroy",function(){i&&i.length&&i.remove()},!0)}}},e.extend(e.FE.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id","style"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),e.FE.MODULES.paste=function(t){var n,r,o,i;function a(e,n){try{t.win.localStorage.setItem("fr-copied-html",e),t.win.localStorage.setItem("fr-copied-text",n)}catch(e){}}function s(n){var r=t.html.getSelected();a(r,e("<div>").html(r).text()),"cut"==n.type&&(t.undo.saveStep(),setTimeout(function(){t.selection.save(),t.html.wrap(),t.selection.restore(),t.events.focus(),t.undo.saveStep()},0))}var l=!1;function c(i){if(t.edit.isDisabled())return!1;if(l)return!1;if(i.originalEvent&&(i=i.originalEvent),!1===t.events.trigger("paste.before",[i]))return i.preventDefault(),!1;if(t.$win.scrollTop(),i&&i.clipboardData&&i.clipboardData.getData){var a="",s=i.clipboardData.types;if(t.helpers.isArray(s))for(var c=0;c<s.length;c++)a+=s[c]+";";else a=s;if(n="",/text\/rtf/.test(a)&&(r=i.clipboardData.getData("text/rtf")),/text\/html/.test(a)&&!t.browser.safari?n=i.clipboardData.getData("text/html"):/text\/rtf/.test(a)&&t.browser.safari?n=r:/public.rtf/.test(a)&&t.browser.safari&&(n=i.clipboardData.getData("text/rtf")),""!==n)return f(),i.preventDefault&&(i.stopPropagation(),i.preventDefault()),!1;n=null}return function(){var r;t.selection.save(),t.events.disableBlur(),n=null,o?(o.html(""),t.browser.edge&&t.opts.iframe&&t.$el.append(o)):(o=e('<div contenteditable="true" style="position: fixed; top: 0; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>'),t.browser.webkit||t.browser.mozilla?(o.css("top",t.$sc.scrollTop()),t.$el.after(o)):t.browser.edge&&t.opts.iframe?t.$el.append(o):t.$box.after(o),t.events.on("destroy",function(){o.remove()})),t.helpers.isIOS()&&t.$sc&&(r=t.$sc.scrollTop()),t.opts.iframe&&t.$el.attr("contenteditable","false"),o.focus(),t.helpers.isIOS()&&t.$sc&&t.$sc.scrollTop(r),t.win.setTimeout(f,1)}(),!1}function u(o){if(o.originalEvent&&(o=o.originalEvent),o&&o.dataTransfer&&o.dataTransfer.getData){var a="",s=o.dataTransfer.types;if(t.helpers.isArray(s))for(var l=0;l<s.length;l++)a+=s[l]+";";else a=s;if(n="",/text\/rtf/.test(a)&&(r=o.dataTransfer.getData("text/rtf")),/text\/html/.test(a)?n=o.dataTransfer.getData("text/html"):/text\/rtf/.test(a)&&t.browser.safari?n=r:/text\/plain/.test(a)&&!this.browser.mozilla&&(n=t.html.escapeEntities(o.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>")),""!==n){t.keys.forceUndo(),i=t.snapshot.get(),t.selection.save(),t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var c=t.markers.insertAtPoint(o);if(t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),t.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),t.selection.restore(),t.selection.remove(),t.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==c){var u=t.el.querySelector(".fr-marker");return e(u).replaceWith(e.FE.MARKERS),t.selection.restore(),f(),o.preventDefault&&(o.stopPropagation(),o.preventDefault()),!1}}else n=null}}function f(){t.opts.iframe&&t.$el.attr("contenteditable","true"),t.browser.edge&&t.opts.iframe&&t.$box.after(o),i||(t.keys.forceUndo(),i=t.snapshot.get()),n||(n=o.get(0).innerHTML,t.selection.restore(),t.events.enableBlur());var e=n.match(/(class=\"?Mso|class=\'?Mso|class="?Xl|class='?Xl|class=Xl|style=\"[^\"]*\bmso\-|style=\'[^\']*\bmso\-|w:WordDocument)/gi),r=t.events.chainTrigger("paste.beforeCleanup",n);r&&"string"==typeof r&&(n=r),(!e||e&&!1!==t.events.trigger("paste.wordPaste",[n]))&&p(n,e)}function d(e){for(var t="",n=0;n++<e;)t+="&nbsp;";return t}function p(r,o,a){var s,l=null,c=null;if(0<=r.toLowerCase().indexOf("<body")){var u="";0<=r.indexOf("<style")&&(u=r.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),r=u+r.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1");var f=0,p="";r.replace(/<pre.*?>([\s\S]*?)<\/pre>/gi,function(e,t,n){f<n&&(p+=r.substring(f,n).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")),p+=e,f=n+e.length}),r.length>f+1&&(p+=r.substring(f,r.length).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")),r=p}var h=!1;0<=r.indexOf('id="docs-internal-guid')&&(r=r.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),h=!0),0<=r.indexOf('content="Sheets"')&&(r=r.replace(/width:0px;/g,""));var v=!1,g=!1;if(!o)if(v=function(n){var r=null;try{r=t.win.localStorage.getItem("fr-copied-text")}catch(e){}return!(!r||e("<div>").html(n).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=r.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(r),g=function(){var r=null;try{r=t.win.localStorage.getItem("fr-dragged-content-text")}catch(e){}return!(!r||e("<div>").html(n).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=r.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(),v&&(r=t.win.localStorage.getItem("fr-copied-html")),g&&(v=!0,r=t.win.localStorage.getItem("fr-dragged-content-html")),v)r=t.clean.html(r,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs);else{var y=t.opts.htmlAllowedStyleProps;t.opts.htmlAllowedStyleProps=t.opts.pasteAllowedStyleProps,t.opts.htmlAllowComments=!1,r=(r=(r=r.replace(/<span class="Apple-tab-span">\s*<\/span>/g,d(t.opts.tabSpaces||4))).replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,function(e,n){return d(n.length*(t.opts.tabSpaces||4))})).replace(/\t/g,d(t.opts.tabSpaces||4)),r=t.clean.html(r,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs),t.opts.htmlAllowedStyleProps=y,t.opts.htmlAllowComments=!0,r=(r=(r=m(r)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!o||t.wordPaste&&a||(0===(r=r.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("<colgroup>")&&(r="<table>"+r+"</table>"),r=m(r=function(e){var n;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>")).replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>")).replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>")).replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span")).replace(/<!--\[if \!supportLists\]-->([\s\S]*?)<!--\[endif\]-->/gi,"")).replace(/<!\[if \!supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(/<!--[\s\S]*?-->/gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var r,o=["style","script","applet","embed","noframes","noscript"];for(n=0;n<o.length;n++){var i=new RegExp("<"+o[n]+".*?"+o[n]+"(.*?)>","gi");e=e.replace(i,"")}for(e=(e=(e=e.replace(/&nbsp;/gi," ")).replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>")).replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");(e=(r=e).replace(/<[^\/>][^>]*><\/[^>]+>/gi,""))!=r;);e=(e=e.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>')).replace(/<lilevel1([^>]*)>/gi,"<li$1>"),e=(e=(e=t.clean.html(e,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs)).replace(/<a>(.[^<]+)<\/a>/gi,"$1")).replace(/<br> */g,"<br>");var a=t.o_doc.createElement("div");a.innerHTML=e;var s=a.querySelectorAll("li[data-indent]");for(n=0;n<s.length;n++){var l=s[n],c=l.previousElementSibling;if(c&&"LI"==c.tagName){var u=c.querySelector(":scope > ul, :scope > ol");u||(u=document.createElement("ul"),c.appendChild(u)),u.appendChild(l)}else l.removeAttribute("data-indent")}return t.html.cleanBlankSpaces(a),e=a.innerHTML}(r))),t.opts.pastePlain&&!v&&(r=function(e){var n,r=null,o=t.doc.createElement("div");o.innerHTML=e;var i=o.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(n=0;n<i.length;n++)(r=i[n]).outerHTML="<"+(t.html.defaultTag()||"DIV")+">"+r.innerHTML+"</"+(t.html.defaultTag()||"DIV")+">";for(n=(i=o.querySelectorAll("*:not("+"p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not(")+")")).length-1;0<=n;n--)(r=i[n]).outerHTML=r.innerHTML;var a=function(e){for(var n=t.node.contents(e),r=0;r<n.length;r++)n[r].nodeType!=Node.TEXT_NODE&&n[r].nodeType!=Node.ELEMENT_NODE?n[r].parentNode.removeChild(n[r]):a(n[r])};return a(o),o.innerHTML}(r));var b=t.events.chainTrigger("paste.afterCleanup",r);if("string"==typeof b&&(r=b),""!==r){var _=t.o_doc.createElement("div");0<=(_.innerHTML=r).indexOf("<body>")?(t.html.cleanBlankSpaces(_),t.spaces.normalize(_,!0)):t.spaces.normalize(_);var w=_.getElementsByTagName("span");for(s=w.length-1;0<=s;s--){var E=w[s];0===E.attributes.length&&(E.outerHTML=E.innerHTML)}if(!0===t.opts.linkAlwaysBlank){var x=_.getElementsByTagName("a");for(s=x.length-1;0<=s;s--){var k=x[s];k.getAttribute("target")||k.setAttribute("target","_blank")}}var S=t.selection.element(),T=!1;if(S&&e(S).parentsUntil(t.el,"ul, ol").length&&(T=!0),T){var C=_.children;1==C.length&&0<=["OL","UL"].indexOf(C[0].tagName)&&(C[0].outerHTML=C[0].innerHTML)}if(!h){var O=_.getElementsByTagName("br");for(s=O.length-1;0<=s;s--){var j=O[s];t.node.isBlock(j.previousSibling)&&j.parentNode.removeChild(j)}}if(t.opts.enter==e.FE.ENTER_BR)for(s=(l=_.querySelectorAll("p, div")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML=c.innerHTML+(c.nextSibling&&!t.node.isEmpty(c)?"<br>":""));else if(t.opts.enter==e.FE.ENTER_DIV)for(s=(l=_.getElementsByTagName("p")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML="<div>"+c.innerHTML+"</div>");else t.opts.enter==e.FE.ENTER_P&&1==_.childNodes.length&&"P"==_.childNodes[0].tagName&&0===_.childNodes[0].attributes.length&&(_.childNodes[0].outerHTML=_.childNodes[0].innerHTML);r=_.innerHTML,v&&(r=function(n){var r,o=t.o_doc.createElement("div");o.innerHTML=n;for(var i=o.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")");i.length;){for(r=0;r<i.length;r++)i[r].parentNode.removeChild(i[r]);i=o.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")")}return o.innerHTML}(r)),t.html.insert(r,!0)}t.events.trigger("paste.after"),t.undo.saveStep(i),i=null,t.undo.saveStep()}function h(e){for(var t=e.length-1;0<=t;t--)e[t].attributes&&e[t].attributes.length&&e.splice(t,1);return e}function m(e){var n,r=t.o_doc.createElement("div");r.innerHTML=e;for(var o=h(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));o.length;){var i=o[o.length-1];if(t.html.defaultTag()&&"div"!=t.html.defaultTag())i.querySelector(t.html.blockTagsQuery())?i.outerHTML=i.innerHTML:i.outerHTML="<"+t.html.defaultTag()+">"+i.innerHTML+"</"+t.html.defaultTag()+">";else{var a=i.querySelectorAll("*");!a.length||"BR"!==a[a.length-1].tagName&&0===i.innerText.length?i.outerHTML=i.innerHTML+(i.nextSibling?"<br>":""):!a.length||"BR"!==a[a.length-1].tagName||a[a.length-1].nextSibling?i.outerHTML=i.innerHTML+(i.nextSibling?"<br>":""):i.outerHTML=i.innerHTML}o=h(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(o=h(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")));o.length;){for(n=0;n<o.length;n++){var s=o[n],l=s.innerHTML.replace(/\u0009/gi,"").trim();try{s.outerHTML=l}catch(e){}}o=h(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")))}return r.innerHTML}function v(e){if(e.originalEvent&&e.originalEvent.target&&e.originalEvent.target.nodeType==Node.TEXT_NODE)try{t.win.localStorage.setItem("fr-dragged-content-html",e.originalEvent.dataTransfer.getData("text/html")),t.win.localStorage.setItem("fr-dragged-content-text",e.originalEvent.dataTransfer.getData("text/plain"))}catch(e){}}function g(){t.el.removeEventListener("copy",s),t.el.removeEventListener("cut",s),t.el.removeEventListener("paste",c)}return{_init:function(){t.el.addEventListener("copy",s),t.el.addEventListener("cut",s),t.el.addEventListener("paste",c,{capture:!0}),t.events.on("drop",u),t.browser.msie&&t.browser.version<11&&(t.events.on("mouseup",function(e){2==e.button&&(setTimeout(function(){l=!1},50),l=!0)},!0),t.events.on("beforepaste",c)),t.events.on("dragstart",v,!0),t.events.on("destroy",g)},cleanEmptyTagsAndDivs:m,getRtfClipboard:function(){return r},saveCopiedText:a,clean:p}},e.extend(e.FE.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0}),e.FE.SHORTCUTS_MAP={},e.FE.RegisterShortcut=function(t,n,r,o,i,a){e.FE.SHORTCUTS_MAP[(i?"^":"")+(a?"@":"")+t]={cmd:n,val:r,letter:o,shift:i,option:a},e.FE.DEFAULTS.shortcutsEnabled.push(n)},e.FE.RegisterShortcut(e.FE.KEYCODE.E,"show",null,"E",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.B,"bold",null,"B",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.I,"italic",null,"I",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.U,"underline",null,"U",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.S,"strikeThrough",null,"S",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.OPEN_SQUARE_BRACKET,"outdent",null,"[",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"undo",null,"Z",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"redo",null,"Z",!0,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Y,"redo",null,"Y",!1,!1),e.FE.MODULES.shortcuts=function(t){var n=null,r=!1;function o(n){if(!t.core.hasFocus())return!0;var o=n.which,i=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if("keyup"==n.type&&r&&o!=e.FE.KEYCODE.META)return r=!1;"keydown"==n.type&&(r=!1);var a=(n.shiftKey?"^":"")+(n.altKey?"@":"")+o;if(i&&e.FE.SHORTCUTS_MAP[a]){var s=e.FE.SHORTCUTS_MAP[a].cmd;if(s&&0<=t.opts.shortcutsEnabled.indexOf(s)){var l,c=e.FE.SHORTCUTS_MAP[a].val;if(s&&!c?l=t.$tb.find('.fr-command[data-cmd="'+s+'"]'):s&&c&&(l=t.$tb.find('.fr-command[data-cmd="'+s+'"][data-param1="'+c+'"]')),l.length)return n.preventDefault(),n.stopPropagation(),l.parents(".fr-toolbar").data("instance",t),"keydown"==n.type&&(t.button.exec(l),r=!0),!1;if(s&&(t.commands[s]||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].callback))return n.preventDefault(),n.stopPropagation(),"keydown"==n.type&&((t.commands[s]||e.FE.COMMANDS[s].callback)(),r=!0),!1}}}return{_init:function(){t.events.on("keydown",o,!0),t.events.on("keyup",o,!0)},get:function(r){if(!t.opts.shortcutsHint)return null;if(!n)for(var o in n={},e.FE.SHORTCUTS_MAP)e.FE.SHORTCUTS_MAP.hasOwnProperty(o)&&0<=t.opts.shortcutsEnabled.indexOf(e.FE.SHORTCUTS_MAP[o].cmd)&&(n[e.FE.SHORTCUTS_MAP[o].cmd+"."+(e.FE.SHORTCUTS_MAP[o].val||"")]={shift:e.FE.SHORTCUTS_MAP[o].shift,option:e.FE.SHORTCUTS_MAP[o].option,letter:e.FE.SHORTCUTS_MAP[o].letter});var i=n[r];return i?(t.helpers.isMac()?String.fromCharCode(8984):t.language.translate("Ctrl")+"+")+(i.shift?t.helpers.isMac()?String.fromCharCode(8679):t.language.translate("Shift")+"+":"")+(i.option?t.helpers.isMac()?String.fromCharCode(8997):t.language.translate("Alt")+"+":"")+i.letter:null}}},e.FE.MODULES.snapshot=function(e){function t(e){for(var t=e.parentNode.childNodes,n=0,r=null,o=0;o<t.length;o++){if(r){var i=t[o].nodeType===Node.TEXT_NODE&&""===t[o].textContent,a=r.nodeType===Node.TEXT_NODE&&t[o].nodeType===Node.TEXT_NODE,s=r.nodeType===Node.TEXT_NODE&&""===r.textContent;i||a||s||n++}if(t[o]==e)return n;r=t[o]}}function n(n){var r=[];if(!n.parentNode)return[];for(;!e.node.isElement(n);)r.push(t(n)),n=n.parentNode;return r.reverse()}function r(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;){var n=e.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&(t+=n.textContent.length),e=n}return t}function o(t){for(var n=e.el,r=0;r<t.length;r++)n=n.childNodes[t[r]];return n}function i(t,n){try{var r=o(n.scLoc),i=n.scOffset,a=o(n.ecLoc),s=n.ecOffset,l=e.doc.createRange();l.setStart(r,i),l.setEnd(a,s),t.addRange(l)}catch(e){}}return{get:function(){var t,o={};if(e.events.trigger("snapshot.before"),o.html=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),o.ranges=[],e.$wp&&e.selection.inEditor()&&e.core.hasFocus())for(var i=e.selection.ranges(),a=0;a<i.length;a++)o.ranges.push({scLoc:n((t=i[a]).startContainer),scOffset:r(t.startContainer,t.startOffset),ecLoc:n(t.endContainer),ecOffset:r(t.endContainer,t.endOffset)});return e.events.trigger("snapshot.after",[o]),o},restore:function(t){e.$el.html()!=t.html&&(e.opts.htmlExecuteScripts?e.$el.html(t.html):e.el.innerHTML=t.html);var n=e.selection.get();e.selection.clear(),e.events.focus(!0);for(var r=0;r<t.ranges.length;r++)i(n,t.ranges[r])},equal:function(t,n){return t.html==n.html&&(!e.core.hasFocus()||JSON.stringify(t.ranges)==JSON.stringify(n.ranges))}}},e.FE.MODULES.undo=function(e){function t(t){var n=t.which;e.keys.ctrlKey(t)&&(90==n&&t.shiftKey&&t.preventDefault(),90==n&&t.preventDefault())}var n=null;function r(){if(!e.undo_stack||e.undoing)return!1;for(;e.undo_stack.length>e.undo_index;)e.undo_stack.pop()}function o(){n=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),e.undo_index=0,e.undo_stack=[]}function i(){e.undo_stack=[]}return{_init:function(){o(),e.events.on("initialized",function(){n=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),e.events.on("blur",function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()}),e.events.on("keydown",t),e.events.on("destroy",i)},run:function(){if(1<e.undo_index){e.undoing=!0;var t=e.undo_stack[--e.undo_index-1];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),n=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.undo"),e.undoing=!1}},redo:function(){if(e.undo_index<e.undo_stack.length){e.undoing=!0;var t=e.undo_stack[e.undo_index++];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),n=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.redo"),e.undoing=!1}},canDo:function(){return!(0===e.undo_stack.length||e.undo_index<=1)},canRedo:function(){return e.undo_index!=e.undo_stack.length},dropRedo:r,reset:o,saveStep:function(t){if(!e.undo_stack||e.undoing||e.el.querySelector(".fr-marker"))return!1;void 0===t?(t=e.snapshot.get(),e.undo_stack[e.undo_index-1]&&e.snapshot.equal(e.undo_stack[e.undo_index-1],t)||(r(),e.undo_stack.push(t),e.undo_index++,t.html!=n&&(e.events.trigger("contentChanged"),n=t.html))):(r(),0<e.undo_index?e.undo_stack[e.undo_index-1]=t:(e.undo_stack.push(t),e.undo_index++))}}},e.FE.ICON_TEMPLATES={font_awesome:'<i class="fa fa-[NAME]" aria-hidden="true"></i>',font_awesome_5:'<i class="fas fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5r:'<i class="far fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5l:'<i class="fal fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5b:'<i class="fab fa-[FA5NAME]" aria-hidden="true"></i>',text:'<span style="text-align: center;">[NAME]</span>',image:"<img src=[SRC] alt=[ALT] />",svg:'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">[PATH]</svg>',empty:" "},e.FE.ICONS={bold:{NAME:"bold"},italic:{NAME:"italic"},underline:{NAME:"underline"},strikeThrough:{NAME:"strikethrough"},subscript:{NAME:"subscript"},superscript:{NAME:"superscript"},color:{NAME:"tint"},outdent:{NAME:"outdent"},indent:{NAME:"indent"},undo:{NAME:"rotate-left",FA5NAME:"undo"},redo:{NAME:"rotate-right",FA5NAME:"redo"},insertHR:{NAME:"minus"},clearFormatting:{NAME:"eraser"},selectAll:{NAME:"mouse-pointer"}},e.FE.DefineIconTemplate=function(t,n){e.FE.ICON_TEMPLATES[t]=n},e.FE.DefineIcon=function(t,n){e.FE.ICONS[t]=n},e.extend(e.FE.DEFAULTS,{iconsTemplate:"font_awesome"}),e.FE.MODULES.icon=function(t){return{create:function(n){var r=null,o=e.FE.ICONS[n];if(void 0!==o){var i=o.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate;i&&i.apply&&(i=i.apply(t)),o.FA5NAME||(o.FA5NAME=o.NAME),i&&(i=e.FE.ICON_TEMPLATES[i])&&(r=i.replace(/\[([a-zA-Z0-9]*)\]/g,function(e,t){return"NAME"==t?o[t]||n:o[t]}))}return r||n},getTemplate:function(n){var r=e.FE.ICONS[n],o=t.opts.iconsTemplate;return void 0!==r?o=r.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate:o}}},e.extend(e.FE.DEFAULTS,{tooltips:!0}),e.FE.MODULES.tooltip=function(t){function n(){if(t.helpers.isMobile())return!1;t.$tooltip&&t.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed")}function r(n,r){if(t.helpers.isMobile())return!1;if(n.data("title")||n.data("title",n.attr("title")),!n.data("title"))return!1;t.$tooltip||t.opts.tooltips&&!t.helpers.isMobile()&&(t.shared.$tooltip?t.$tooltip=t.shared.$tooltip:(t.shared.$tooltip=e('<div class="fr-tooltip"></div>'),t.$tooltip=t.shared.$tooltip,t.opts.theme&&t.$tooltip.addClass(t.opts.theme+"-theme"),e(t.o_doc).find("body:first").append(t.$tooltip)),t.events.on("shared.destroy",function(){t.$tooltip.html("").removeData().remove(),t.$tooltip=null},!0)),n.removeAttr("title"),t.$tooltip.text(t.language.translate(n.data("title"))),t.$tooltip.addClass("fr-visible");var o=n.offset().left+(n.outerWidth()-t.$tooltip.outerWidth())/2;o<0&&(o=0),o+t.$tooltip.outerWidth()>e(t.o_win).width()&&(o=e(t.o_win).width()-t.$tooltip.outerWidth()),void 0===r&&(r=t.opts.toolbarBottom),n.offset().top-e(window).scrollTop()+n.outerHeight()+10>=e(window).height()&&(r=!0);var i=r?n.offset().top-t.$tooltip.height():n.offset().top+n.outerHeight();t.$tooltip.css("position",""),t.$tooltip.css("left",o),t.$tooltip.css("top",Math.ceil(i)),"static"!=e(t.o_doc).find("body:first").css("position")?(t.$tooltip.css("margin-left",-e(t.o_doc).find("body:first").offset().left),t.$tooltip.css("margin-top",-e(t.o_doc).find("body:first").offset().top)):(t.$tooltip.css("margin-left",""),t.$tooltip.css("margin-top",""))}return{hide:n,to:r,bind:function(o,i,a){t.opts.tooltips&&!t.helpers.isMobile()&&(t.events.$on(o,"mouseenter",i,function(n){t.node.hasClass(n.currentTarget,"fr-disabled")||t.edit.isDisabled()||r(e(n.currentTarget),a)},!0),t.events.$on(o,"mouseleave "+t._mousedown+" "+t._mouseup,i,function(){n()},!0))}}},e.FE.MODULES.button=function(t){var n=[];(t.opts.toolbarInline||t.opts.toolbarContainer)&&(t.shared.buttons||(t.shared.buttons=[]),n=t.shared.buttons);var r=[];function o(t,n,r){for(var o=e(),i=0;i<t.length;i++){var a=e(t[i]);if(a.is(n)&&(o=o.add(a)),r&&a.is(".fr-dropdown")){var s=a.next().find(n);o=o.add(s)}}return o}function i(i,a){var s,l=e();if(!i)return l;for(s in l=(l=l.add(o(n,i,a))).add(o(r,i,a)),t.shared.popups)if(t.shared.popups.hasOwnProperty(s)){var c=t.shared.popups[s].children().find(i);l=l.add(c)}for(s in t.shared.modals)if(t.shared.modals.hasOwnProperty(s)){var u=t.shared.modals[s].$modal.find(i);l=l.add(u)}return l}function a(e){e.addClass("fr-blink"),setTimeout(function(){e.removeClass("fr-blink")},500);for(var t=e.data("cmd"),n=[];void 0!==e.data("param"+(n.length+1));)n.push(e.data("param"+(n.length+1)));var r=i(".fr-dropdown.fr-active");r.length&&(r.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),r.prev(".fr-expanded").removeClass("fr-expanded"),r.parent(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function s(n){var r=n.parents(".fr-popup, .fr-toolbar").data("instance");if(0!==n.parents(".fr-popup").length||n.data("popup")||r.popups.hideAll(),r.popups.areVisible()&&!r.popups.areVisible(r)){for(var o=0;o<e.FE.INSTANCES.length;o++)e.FE.INSTANCES[o]!=r&&e.FE.INSTANCES[o].popups&&e.FE.INSTANCES[o].popups.areVisible()&&e.FE.INSTANCES[o].$el.find(".fr-marker").remove();r.popups.hideAll()}t.node.hasClass(n.get(0),"fr-dropdown")?function(n){var r=n.next(),o=t.node.hasClass(n.get(0),"fr-active"),a=i(".fr-dropdown.fr-active").not(n),s=n.parents(".fr-toolbar, .fr-popup").data("instance")||t;if(s.helpers.isIOS()&&!s.el.querySelector(".fr-marker")&&(s.selection.save(),s.selection.clear(),s.selection.restore()),!o){var l=n.data("cmd");r.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),e.FE.COMMANDS[l]&&e.FE.COMMANDS[l].refreshOnShow&&e.FE.COMMANDS[l].refreshOnShow.apply(s,[n,r]),r.css("left",n.offset().left-n.parent().offset().left-("rtl"==t.opts.direction?r.width()-n.outerWidth():0)),r.addClass("test-height");var c=r.outerHeight();r.removeClass("test-height"),r.css("top","").css("bottom",""),!t.opts.toolbarBottom&&r.offset().top+n.outerHeight()+c<e(t.o_doc).height()?r.css("top",n.position().top+n.outerHeight()):r.css("bottom",n.parents(".fr-popup, .fr-toolbar").first().height()-n.position().top)}n.addClass("fr-blink").toggleClass("fr-active"),n.hasClass("fr-options")&&n.prev().toggleClass("fr-expanded"),n.hasClass("fr-active")?(r.attr("aria-hidden",!1),n.attr("aria-expanded",!0)):(r.attr("aria-hidden",!0),n.attr("aria-expanded",!1)),setTimeout(function(){n.removeClass("fr-blink")},300),r.css("margin-left",""),r.offset().left+r.outerWidth()>t.$sc.offset().left+t.$sc.width()&&r.css("margin-left",-(r.offset().left+r.outerWidth()-t.$sc.offset().left-t.$sc.width())),r.offset().left<t.$sc.offset().left&&"rtl"==t.opts.direction&&r.css("margin-left",t.$sc.offset().left),a.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),a.prev(".fr-expanded").removeClass("fr-expanded"),a.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==n.parents(".fr-popup").length||t.opts.toolbarInline||(t.node.hasClass(n.get(0),"fr-active")?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):t.$tb.css("zIndex",""));var u=r.find("a.fr-command.fr-active:first");t.helpers.isMobile()||(u.length?t.accessibility.focusToolbarElement(u):t.accessibility.focusToolbarElement(n))}(n):(a(n),e.FE.COMMANDS[n.data("cmd")]&&!1!==e.FE.COMMANDS[n.data("cmd")].refreshAfterCallback&&r.button.bulkRefresh())}function l(t){s(e(t.currentTarget))}function c(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),t.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),t.prev().removeClass("fr-expanded"))}function u(e){e.preventDefault(),e.stopPropagation()}function f(e){if(e.stopPropagation(),!t.helpers.isMobile())return!1}function d(n,r,o){if(r=e.extend(!0,{},r),t.helpers.isMobile()&&!1===r.showOnMobile)return"";var i=r.displaySelection;"function"==typeof i&&(i=i(t));var a="";if("options"!==r.type)if(i){var s="function"==typeof r.defaultSelection?r.defaultSelection(t):r.defaultSelection;a='<span style="width:'+(r.displaySelectionWidth||100)+'px">'+t.language.translate(s||r.title)+"</span>"}else a=t.icon.create(r.icon||n),a+='<span class="fr-sr-only">'+(t.language.translate(r.title)||"")+"</span>";var l=r.popup?' data-popup="true"':"",c=r.modal?' data-modal="true"':"",u=t.shortcuts.get(n+".");u=u?" ("+u+")":"";var f=n+"-"+t.id,p="dropdown-menu-"+f,h='<button id="'+f+'"type="button" tabIndex="-1" role="button"'+(r.toggle?' aria-pressed="false"':"")+("dropdown"==r.type||"options"==r.type?' aria-controls="'+p+'" aria-expanded="false" aria-haspopup="true"':"")+(r.disabled?' aria-disabled="true"':"")+' title="'+(t.language.translate(r.title)||"")+u+'" class="fr-command fr-btn'+("dropdown"==r.type||"options"==r.type?" fr-dropdown":"")+("options"==r.type?" fr-options":"")+" fr-btn-"+t.icon.getTemplate(r.icon)+(r.displaySelection?" fr-selection":"")+(r.back?" fr-back":"")+(r.disabled?" fr-disabled":"")+(o?"":" fr-hidden")+'" data-cmd="'+n+'"'+l+c+">"+a+"</button>";if("dropdown"==r.type||"options"==r.type){var m='<div id="'+p+'" class="fr-dropdown-menu" role="listbox" aria-labelledby="'+f+'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">';m+=function(e,n){var r="";if(n.html)"function"==typeof n.html?r+=n.html.call(t):r+=n.html;else{var o=n.options;for(var i in"function"==typeof o&&(o=o()),r+='<ul class="fr-dropdown-list" role="presentation">',o)if(o.hasOwnProperty(i)){var a=t.shortcuts.get(e+"."+i);a=a?'<span class="fr-shortcut">'+a+"</span>":"",r+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'+("options"===n.type?e.replace(/Options/g,""):e)+'" data-param1="'+i+'" title="'+o[i]+'">'+t.language.translate(o[i])+"</a></li>"}r+="</ul>"}return r}(n,r),h+=m+="</div></div></div>"}return r.hasOptions&&r.hasOptions.apply(t)&&(r.type="options",r.hasOptions=!1,h='<div class="fr-btn-wrap">'+h+d(n+"Options",r,o)+"</div>"),h}function p(n){var r=t.$tb&&t.$tb.data("instance")||t;if(!1===t.events.trigger("buttons.refresh"))return!0;setTimeout(function(){for(var o=r.selection.inEditor()&&r.core.hasFocus(),i=0;i<n.length;i++){var a=e(n[i]),s=a.data("cmd");0===a.parents(".fr-popup").length?o||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].forcedRefresh?r.button.refresh(a):t.node.hasClass(a.get(0),"fr-dropdown")||(a.removeClass("fr-active"),a.attr("aria-pressed")&&a.attr("aria-pressed",!1)):a.parents(".fr-popup").is(":visible")&&r.button.refresh(a)}},0)}function h(){p(n),p(r)}function m(){n=[],r=[]}t.shared.popup_buttons||(t.shared.popup_buttons=[]),r=t.shared.popup_buttons;var v=null;function g(){clearTimeout(v),v=setTimeout(h,50)}return{_init:function(){t.opts.toolbarInline?t.events.on("toolbar.show",h):(t.events.on("mouseup",g),t.events.on("keyup",g),t.events.on("blur",g),t.events.on("focus",g),t.events.on("contentChanged",g),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",h)),t.events.on("shared.destroy",m)},buildList:function(n,r){for(var o="",i=0;i<n.length;i++){var a=n[i],s=e.FE.COMMANDS[a];s&&void 0!==s.plugin&&t.opts.pluginsEnabled.indexOf(s.plugin)<0||(s?o+=d(a,s,void 0===r||0<=r.indexOf(a)):"|"==a?o+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==a&&(o+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'))}return o},bindCommands:function(o,i){t.events.bindClick(o,".fr-command:not(.fr-disabled)",l),t.events.$on(o,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu",u,!0),t.events.$on(o,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu .fr-dropdown-wrapper",f,!0);var a=o.get(0).ownerDocument,s="defaultView"in a?a.defaultView:a.parentWindow,d=function(n){(!n||n.type==t._mouseup&&n.target!=e("html").get(0)||"keydown"==n.type&&(t.keys.isCharacter(n.which)&&!t.keys.ctrlKey(n)||n.which==e.FE.KEYCODE.ESC))&&c(o)};t.events.$on(e(s),t._mouseup+" resize keydown",d,!0),t.opts.iframe&&t.events.$on(t.$win,t._mouseup,d,!0),t.node.hasClass(o.get(0),"fr-popup")?e.merge(r,o.find(".fr-btn").toArray()):e.merge(n,o.find(".fr-btn").toArray()),t.tooltip.bind(o,".fr-btn, .fr-title",i)},refresh:function(n){var r,o=n.parents(".fr-popup, .fr-toolbar").data("instance")||t,i=n.data("cmd");t.node.hasClass(n.get(0),"fr-dropdown")?r=n.next():(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)),e.FE.COMMANDS[i]&&e.FE.COMMANDS[i].refresh?e.FE.COMMANDS[i].refresh.apply(o,[n,r]):t.refresh[i]&&o.refresh[i](n,r)},bulkRefresh:h,exec:a,click:s,hideActiveDropdowns:c,getButtons:i}},e.FE.MODULES.modals=function(t){t.shared.modals||(t.shared.modals={});var n,r=t.shared.modals;function o(){for(var e in r){var t=r[e];t&&t.$modal&&t.$modal.removeData().remove()}n&&n.removeData().remove(),r={}}function i(o,i){if(r[o]){var a=r[o].$modal,s=a.data("instance")||t;s.events.enableBlur(),a.hide(),n.hide(),e(s.o_doc).find("body:first").removeClass("prevent-scroll fr-mobile"),a.removeClass("fr-active"),i||(s.accessibility.restoreSelection(),s.events.trigger("modals.hide"))}}function a(e){var n;if("string"==typeof e){if(!r[e])return;n=r[e].$modal}else n=e;return n&&t.node.hasClass(n,"fr-active")&&t.core.sameInstance(n)||!1}return{_init:function(){t.events.on("shared.destroy",o,!0)},get:function(e){return r[e]},create:function(o,a,s){if(t.shared.$overlay||(t.shared.$overlay=e('<div class="fr-overlay">').appendTo("body:first")),n=t.shared.$overlay,t.opts.theme&&n.addClass(t.opts.theme+"-theme"),!r[o]){var l=(c=a,u=s,f='<div tabIndex="-1" class="fr-modal'+(t.opts.theme?" "+t.opts.theme+"-theme":"")+'"><div class="fr-modal-wrapper">',f+='<div class="fr-modal-head">'+c+'<span title="'+t.language.translate("Cancel")+'" class="fr-modal-close">&times;</span></div>',f+='<div tabIndex="-1" class="fr-modal-body">'+u+"</div>",e(f+="</div></div>"));r[o]={$modal:l,$head:l.find(".fr-modal-head"),$body:l.find(".fr-modal-body")},t.helpers.isMobile()||l.addClass("fr-desktop"),l.appendTo("body:first"),t.events.$on(l,"click",".fr-modal-close",function(){i(o)},!0),r[o].$body.css("margin-top",r[o].$head.outerHeight()),t.events.$on(l,"keydown",function(n){var r=n.which;return r==e.FE.KEYCODE.ESC?(i(o),t.accessibility.focusModalButton(l),!1):!(!e(n.target).is("input[type=text], textarea")&&r!=e.FE.KEYCODE.ARROW_UP&&r!=e.FE.KEYCODE.ARROW_DOWN&&!t.keys.isBrowserAction(n)&&(n.preventDefault(),n.stopPropagation(),1))},!0),i(o,!0)}var c,u,f;return r[o]},show:function(o){if(r[o]){var i=r[o].$modal;i.data("instance",t),i.show(),n.show(),e(t.o_doc).find("body:first").addClass("prevent-scroll"),t.helpers.isMobile()&&e(t.o_doc).find("body:first").addClass("fr-mobile"),i.addClass("fr-active"),t.accessibility.focusModal(i)}},hide:i,resize:function(n){if(r[n]){var o=r[n],i=o.$modal,a=o.$body,s=e(t.o_win).height(),l=i.find(".fr-modal-wrapper"),c=s-l.outerHeight(!0)+(l.height()-(a.outerHeight(!0)-a.height())),u="auto";c<a.get(0).scrollHeight&&(u=c),a.height(u)}},isVisible:a,areVisible:function(e){for(var t in r)if(r.hasOwnProperty(t)&&a(t)&&(void 0===e||r[t].$modal.data("instance")==e))return r[t].$modal;return!1}}},e.FE.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"},e.FE.RegisterTemplate=function(t,n){e.FE.POPUP_TEMPLATES[t]=n},e.FE.MODULES.popups=function(t){t.shared.popups||(t.shared.popups={});var n=t.shared.popups;function r(e,r){r.is(":visible")||(r=t.$sc),r.is(n[e].data("container"))||(n[e].data("container",r),r.append(n[e]))}function o(e){return n[e]&&t.node.hasClass(n[e],"fr-active")&&t.core.sameInstance(n[e])||!1}function i(e){for(var t in n)if(n.hasOwnProperty(t)&&o(t)&&(void 0===e||n[t].data("instance")==e))return n[t];return!1}function a(e){var r=null;(r="string"!=typeof e?e:n[e])&&t.node.hasClass(r,"fr-active")&&(r.removeClass("fr-active fr-above"),t.events.trigger("popups.hide."+e),t.$tb&&(1<t.opts.zIndex?t.$tb.css("zIndex",t.opts.zIndex+1):t.$tb.css("zIndex","")),t.events.disableBlur(),r.find("input, textarea, button").filter(":focus").blur(),r.find("input, textarea").attr("disabled","disabled"))}function s(e){for(var t in void 0===e&&(e=[]),n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&a(t)}function l(){t.shared.exit_flag=!0}function c(){t.shared.exit_flag=!1}function u(){return t.shared.exit_flag}function f(r){var i=n[r];return{_windowResize:function(){var e=i.data("instance")||t;!e.helpers.isMobile()&&i.is(":visible")&&(e.events.disableBlur(),e.popups.hide(r),e.events.enableBlur())},_inputFocus:function(n){var r=i.data("instance")||t,o=e(n.currentTarget);if(o.is("input:file")&&o.closest(".fr-layer").addClass("fr-input-focus"),n.preventDefault(),n.stopPropagation(),setTimeout(function(){r.events.enableBlur()},t.browser.msie?100:0),r.helpers.isMobile()){var a=e(r.o_win).scrollTop();setTimeout(function(){e(r.o_win).scrollTop(a)},0)}},_inputBlur:function(n){var r=i.data("instance")||t,o=e(n.currentTarget);o.is("input:file")&&o.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!=this&&e(this).is(":visible")&&(r.events.blurActive()&&r.events.trigger("blur"),r.events.enableBlur())},_editorKeydown:function(n){var a=i.data("instance")||t;a.keys.ctrlKey(n)||n.which==e.FE.KEYCODE.ALT||n.which==e.FE.KEYCODE.ESC||(o(r)&&i.find(".fr-back:visible").length?a.button.exec(i.find(".fr-back:visible:first")):n.which!=e.FE.KEYCODE.ALT&&a.popups.hide(r))},_preventFocus:function(n){var r=i.data("instance")||t,o=n.originalEvent?n.originalEvent.target||n.originalEvent.originalTarget:null;"mouseup"==n.type||e(o).is(":focus")||r.events.disableBlur(),"mouseup"!=n.type||e(o).hasClass("fr-command")||0<e(o).parents(".fr-command").length||e(o).hasClass("fr-dropdown-content")||t.button.hideActiveDropdowns(i),(t.browser.safari||t.browser.mozilla)&&"mousedown"==n.type&&e(o).is("input[type=file]")&&r.events.disableBlur();var a="input, textarea, button, select, label, .fr-command";if(o&&!e(o).is(a)&&0===e(o).parents(a).length)return n.stopPropagation(),!1;o&&e(o).is(a)&&n.stopPropagation(),c()},_editorMouseup:function(){i.is(":visible")&&u()&&0<i.find("input:focus, textarea:focus, button:focus, select:focus").filter(":visible").length&&t.events.disableBlur()},_windowMouseup:function(e){if(!t.core.sameInstance(i))return!0;var n=i.data("instance")||t;i.is(":visible")&&u()&&(e.stopPropagation(),n.markers.remove(),n.popups.hide(r),c())},_windowKeydown:function(n){if(!t.core.sameInstance(i))return!0;var o=i.data("instance")||t,a=n.which;if(e.FE.KEYCODE.ESC==a){if(o.popups.isVisible(r)&&o.opts.toolbarInline)return n.stopPropagation(),o.popups.isVisible(r)&&(i.find(".fr-back:visible").length?(o.button.exec(i.find(".fr-back:visible:first")),o.accessibility.focusPopupButton(i)):i.find(".fr-dismiss:visible").length?o.button.exec(i.find(".fr-dismiss:visible:first")):(o.popups.hide(r),o.toolbar.showInline(null,!0),o.accessibility.focusPopupButton(i))),!1;if(o.popups.isVisible(r))return i.find(".fr-back:visible").length?(o.button.exec(i.find(".fr-back:visible:first")),o.accessibility.focusPopupButton(i)):i.find(".fr-dismiss:visible").length?o.button.exec(i.find(".fr-dismiss:visible:first")):(o.popups.hide(r),o.accessibility.focusPopupButton(i)),!1}},_doPlaceholder:function(){0===e(this).next().length&&e(this).attr("placeholder")&&e(this).after('<label for="'+e(this).attr("id")+'">'+e(this).attr("placeholder")+"</label>"),e(this).toggleClass("fr-not-empty",""!==e(this).val())},_repositionPopup:function(){if(!t.opts.height&&!t.opts.heightMax||t.opts.toolbarInline)return!0;if(t.$wp&&o(r)&&i.parent().get(0)==t.$sc.get(0)){var e=i.offset().top-t.$wp.offset().top,n=t.$wp.outerHeight();t.node.hasClass(i.get(0),"fr-above")&&(e+=i.outerHeight()),n<e||e<0?i.addClass("fr-hidden"):i.removeClass("fr-hidden")}}}}function d(e,r){t.events.on("mouseup",e._editorMouseup,!0),t.$wp&&t.events.on("keydown",e._editorKeydown),t.events.on("blur",function(){i()&&t.markers.remove(),s()}),t.$wp&&!t.helpers.isMobile()&&t.events.$on(t.$wp,"scroll.popup"+r,e._repositionPopup),t.events.on("window.mouseup",e._windowMouseup,!0),t.events.on("window.keydown",e._windowKeydown,!0),n[r].data("inst"+t.id,!0),t.events.on("destroy",function(){t.core.sameInstance(n[r])&&n[r].removeClass("fr-active").appendTo("body:first")},!0)}function p(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];t&&(t.html("").removeData().remove(),n[e]=null)}n=[]}return t.shared.exit_flag=!1,{_init:function(){t.events.on("shared.destroy",p,!0),t.events.on("window.mousedown",l),t.events.on("window.touchmove",c),t.events.$on(e(t.o_win),"scroll",c),t.events.on("mousedown",function(e){i()&&(e.stopPropagation(),t.$el.find(".fr-marker").remove(),l(),t.events.disableBlur())})},create:function(r,o){var i=function(r,o){var i,a,s=function(n,r){var o=e.FE.POPUP_TEMPLATES[n];if(!o)return null;for(var i in"function"==typeof o&&(o=o.apply(t)),r)r.hasOwnProperty(i)&&(o=o.replace("[_"+i.toUpperCase()+"_]",r[i]));return o}(r,o);return s?(i=e('<div class="fr-popup'+(t.helpers.isMobile()?" fr-mobile":" fr-desktop")+(t.opts.toolbarInline?" fr-inline":"")+'"><span class="fr-arrow"></span>'+s+"</div>"),t.opts.theme&&i.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&(t.opts.editInPopup?i.css("z-index",t.opts.zIndex+2):t.$tb.css("z-index",t.opts.zIndex+2)),"auto"!=t.opts.direction&&i.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),i.find("input, textarea").attr("dir",t.opts.direction).attr("disabled","disabled"),(a=e("body:first")).append(i),i.data("container",a),n[r]=i,t.button.bindCommands(i,!1),i):(i=e('<div class="fr-popup fr-empty"></div>'),(a=e("body:first")).append(i),i.data("container",a),n[r]=i)}(r,o),a=f(r);return d(a,r),t.events.$on(i,"mousedown mouseup touchstart touchend touch","*",a._preventFocus,!0),t.events.$on(i,"focus","input, textarea, button, select",a._inputFocus,!0),t.events.$on(i,"blur","input, textarea, button, select",a._inputBlur,!0),t.accessibility.registerPopup(r),t.events.$on(i,"keydown keyup change input","input, textarea",a._doPlaceholder,!0),t.helpers.isIOS()&&t.events.$on(i,"touchend","label",function(){e("#"+e(this).attr("for")).prop("checked",function(e,t){return!t})},!0),t.events.$on(e(t.o_win),"resize",a._windowResize,!0),i},get:function(e){var r=n[e];return r&&!r.data("inst"+t.id)&&d(f(e),e),r},show:function(e,a,l,u){if(o(e)||(i()&&0<t.$el.find(".fr-marker").length?(t.events.disableBlur(),t.selection.restore()):i()||(t.events.disableBlur(),t.events.focus(),t.events.enableBlur())),s([e]),!n[e])return!1;var d=t.button.getButtons(".fr-dropdown.fr-active");d.removeClass("fr-active").attr("aria-expanded",!1).parent(".fr-toolbar").css("zIndex",""),d.next().attr("aria-hidden",!0),n[e].data("instance",t),t.$tb&&t.$tb.data("instance",t);var p=n[e].outerWidth(),h=o(e);n[e].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var m,v,g=n[e].data("container");m=e,(v=g).is(":visible")||(v=t.$sc),0===v.find([n[m]]).length&&v.append(n[m]),t.opts.toolbarInline&&g&&t.$tb&&g.get(0)==t.$tb.get(0)&&(r(e,t.$sc),l=t.$tb.offset().top-t.helpers.getPX(t.$tb.css("margin-top")),a=t.$tb.offset().left+t.$tb.outerWidth()/2+(parseFloat(t.$tb.find(".fr-arrow").css("margin-left"))||0)+t.$tb.find(".fr-arrow").outerWidth()/2,t.node.hasClass(t.$tb.get(0),"fr-above")&&l&&(l+=t.$tb.outerHeight()),u=0),g=n[e].data("container"),!t.opts.iframe||u||h||(a&&(a-=t.$iframe.offset().left),l&&(l-=t.$iframe.offset().top)),g.is(t.$tb)?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):n[e].css("zIndex",(t.opts.zIndex||1)+4),a&&(a-=p/2),t.opts.toolbarBottom&&g&&t.$tb&&g.get(0)==t.$tb.get(0)&&(n[e].addClass("fr-above"),l&&(l-=n[e].outerHeight())),n[e].removeClass("fr-active"),t.position.at(a,l,n[e],u||0),n[e].addClass("fr-active"),h||t.accessibility.focusPopup(n[e]),t.opts.toolbarInline&&t.toolbar.hide(),t.events.trigger("popups.show."+e),f(e)._repositionPopup(),c()},hide:a,onHide:function(e,n){t.events.on("popups.hide."+e,n)},hideAll:s,setContainer:r,refresh:function(r){n[r].data("instance",t),t.events.trigger("popups.refresh."+r);for(var o=n[r].find(".fr-command"),i=0;i<o.length;i++){var a=e(o[i]);0===a.parents(".fr-dropdown-menu").length&&t.button.refresh(a)}},onRefresh:function(e,n){t.events.on("popups.refresh."+e,n)},onShow:function(e,n){t.events.on("popups.show."+e,n)},isVisible:o,areVisible:i}},e.FE.MODULES.position=function(t){function n(){var e=t.selection.ranges(0).getBoundingClientRect();if(0===e.top&&0===e.left&&0===e.width||0===e.height){var n=!1;0===t.$el.find(".fr-marker").length&&(t.selection.save(),n=!0);var r=t.$el.find(".fr-marker:first");r.css("display","inline"),r.css("line-height","");var o=r.offset(),i=r.outerHeight();r.css("display","none"),r.css("line-height",0),(e={}).left=o.left,e.width=0,e.height=i,e.top=o.top-(t.opts.iframe?0:t.helpers.scrollTop()),e.right=1,e.bottom=1,e.ok=!0,n&&t.selection.restore()}return e}function r(e,n,r,o){var i=r.data("container");!i||"BODY"===i.get(0).tagName&&"static"==i.css("position")||(e&&(e-=i.offset().left),n&&(n-=i.offset().top),"BODY"!=i.get(0).tagName?(e&&(e+=i.get(0).scrollLeft),n&&(n+=i.get(0).scrollTop)):"absolute"==i.css("position")&&(e&&(e+=i.position().left),n&&(n+=i.position().top))),t.opts.iframe&&i&&t.$tb&&i.get(0)!=t.$tb.get(0)&&(e&&(e+=t.$iframe.offset().left),n&&(n+=t.$iframe.offset().top));var a,s,l,c,u=(s=e,l=(a=r).outerWidth(!0),c=a.parent().offset().left,a.parent().get(0)==t.$sc.get(0)&&(c-=a.parent().position().left),c+s+l>t.$sc.get(0).clientWidth-10&&(s=t.$sc.get(0).clientWidth-l-c-10),s<0&&(s=10),s);if(e){r.css("left",u);var f=r.data("fr-arrow");f||(f=r.find(".fr-arrow"),r.data("fr-arrow",f)),f.data("margin-left")||f.data("margin-left",t.helpers.getPX(f.css("margin-left"))),f.css("margin-left",e-u+f.data("margin-left"))}n&&r.css("top",function(e,n,r){var o=e.outerHeight(!0);if(!t.helpers.isMobile()&&t.$tb&&e.parent().get(0)!=t.$tb.get(0)){var i=e.parent().offset().top,a=n-o-(r||0);e.parent().get(0)==t.$sc.get(0)&&(i-=e.parent().position().top);var s=t.$sc.get(0).clientHeight;i+n+o>t.$sc.offset().top+s&&0<e.parent().offset().top+a&&0<a?a>t.$wp.scrollTop()&&(n=a,e.addClass("fr-above")):e.removeClass("fr-above")}return n}(r,n,o))}function o(n){var r=e(n),o=r.is(".fr-sticky-on"),i=r.data("sticky-top"),a=r.data("sticky-scheduled");if(void 0===i){r.data("sticky-top",0);var s=e('<div class="fr-sticky-dummy" style="height: '+r.outerHeight()+'px;"></div>');t.$box.prepend(s)}else t.$box.find(".fr-sticky-dummy").css("height",r.outerHeight());if(t.core.hasFocus()||0<t.$tb.find("input:visible:focus").length){var l=t.helpers.scrollTop(),c=Math.min(Math.max(l-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());c!=i&&c!=a&&(clearTimeout(r.data("sticky-timeout")),r.data("sticky-scheduled",c),r.outerHeight()<l-t.$tb.parent().offset().top&&r.addClass("fr-opacity-0"),r.data("sticky-timeout",setTimeout(function(){var e=t.helpers.scrollTop(),n=Math.min(Math.max(e-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());0<n&&"BODY"==t.$tb.parent().get(0).tagName&&(n+=t.$tb.parent().position().top),n!=i&&(r.css("top",Math.max(n,0)),r.data("sticky-top",n),r.data("sticky-scheduled",n)),r.removeClass("fr-opacity-0")},100))),o||(r.css("top","0"),r.width(t.$tb.parent().width()),r.addClass("fr-sticky-on"),t.$box.addClass("fr-sticky-box"))}else clearTimeout(e(n).css("sticky-timeout")),r.css("top","0"),r.css("position",""),r.width(""),r.data("sticky-top",0),r.removeClass("fr-sticky-on"),t.$box.removeClass("fr-sticky-box")}function i(n){if(n.offsetWidth){var r,o,i=e(n),a=i.outerHeight(),s=i.data("sticky-top"),l=i.data("sticky-position"),c=e("body"==t.opts.scrollableContainer?t.o_win:t.opts.scrollableContainer).outerHeight(),u=0,f=0;"body"!==t.opts.scrollableContainer&&(u=t.$sc.offset().top,f=e(t.o_win).outerHeight()-u-c);var d="body"==t.opts.scrollableContainer?t.helpers.scrollTop():u,p=i.is(".fr-sticky-on");i.data("sticky-parent")||i.data("sticky-parent",i.parent());var h=i.data("sticky-parent"),m=h.offset().top,v=h.outerHeight();if(i.data("sticky-offset")||void 0!==s?t.$box.find(".fr-sticky-dummy").css("height",a+"px"):(i.data("sticky-offset",!0),i.after('<div class="fr-sticky-dummy" style="height: '+a+'px;"></div>')),!l){var g="auto"!==i.css("top")||"auto"!==i.css("bottom");g||i.css("position","fixed"),l={top:t.node.hasClass(i.get(0),"fr-top"),bottom:t.node.hasClass(i.get(0),"fr-bottom")},g||i.css("position",""),i.data("sticky-position",l),i.data("top",t.node.hasClass(i.get(0),"fr-top")?i.css("top"):"auto"),i.data("bottom",t.node.hasClass(i.get(0),"fr-bottom")?i.css("bottom"):"auto")}r=t.helpers.getPX(i.data("top")),o=t.helpers.getPX(i.data("bottom"));var y=l.top&&m<d+r&&d+r<=m+v-a&&(t.helpers.isInViewPort(t.$sc.get(0))||"body"==t.opts.scrollableContainer),b=l.bottom&&m+a<d+c-o&&d+c-o<m+v;y||b?(i.css("width",h.get(0).getBoundingClientRect().width+"px"),p||(i.addClass("fr-sticky-on"),i.removeClass("fr-sticky-off"),i.css("top")&&("auto"!=i.data("top")?i.css("top",t.helpers.getPX(i.data("top"))+u):i.data("top","auto")),i.css("bottom")&&("auto"!=i.data("bottom")?i.css("bottom",t.helpers.getPX(i.data("bottom"))+f):i.css("bottom","auto")))):t.node.hasClass(i.get(0),"fr-sticky-off")||(i.width(""),i.removeClass("fr-sticky-on"),i.addClass("fr-sticky-off"),i.css("top")&&"auto"!=i.data("top")&&l.top&&i.css("top",0),i.css("bottom")&&"auto"!=i.data("bottom")&&l.bottom&&i.css("bottom",0))}}function a(){if(t._stickyElements)for(var e=0;e<t._stickyElements.length;e++)i(t._stickyElements[e])}return{_init:function(){!function(){if(t._stickyElements=[],t.helpers.isIOS()){var n=function(){if(t.helpers.requestAnimationFrame()(n),!1!==t.events.trigger("position.refresh"))for(var e=0;e<t._stickyElements.length;e++)o(t._stickyElements[e])};n(),t.events.$on(e(t.o_win),"scroll",function(){if(t.core.hasFocus())for(var n=0;n<t._stickyElements.length;n++){var r=e(t._stickyElements[n]),o=r.parent(),i=t.helpers.scrollTop();r.outerHeight()<i-o.offset().top&&(r.addClass("fr-opacity-0"),r.data("sticky-top",-1),r.data("sticky-scheduled",-1))}},!0)}else"body"!==t.opts.scrollableContainer&&t.events.$on(e(t.opts.scrollableContainer),"scroll",a,!0),t.events.$on(e(t.o_win),"scroll",a,!0),t.events.$on(e(t.o_win),"resize",a,!0),t.events.on("initialized",a),t.events.on("focus",a),t.events.$on(e(t.o_win),"resize","textarea",a,!0);t.events.on("destroy",function(){t._stickyElements=[]})}()},forSelection:function(e){var o=n();e.css({top:0,left:0});var i=o.top+o.height,a=o.left+o.width/2-e.get(0).offsetWidth/2+t.helpers.scrollLeft();t.opts.iframe||(i+=t.helpers.scrollTop()),r(a,i,e,o.height)},addSticky:function(e){e.addClass("fr-sticky"),t.helpers.isIOS()&&e.addClass("fr-sticky-ios"),e.removeClass("fr-sticky"),t._stickyElements.push(e.get(0))},refresh:a,at:r,getBoundingRect:n}},e.FE.MODULES.refresh=function(t){function n(e,t){e.toggleClass("fr-disabled",t).attr("aria-disabled",t)}return{undo:function(e){n(e,!t.undo.canDo())},redo:function(e){n(e,!t.undo.canRedo())},outdent:function(r){if(t.node.hasClass(r.get(0),"fr-no-refresh"))return!1;for(var o=t.selection.blocks(),i=0;i<o.length;i++){var a="rtl"==t.opts.direction||"rtl"==e(o[i]).css("direction")?"margin-right":"margin-left";if("LI"==o[i].tagName||"LI"==o[i].parentNode.tagName)return n(r,!1),!0;if(0<t.helpers.getPX(e(o[i]).css(a)))return n(r,!1),!0}n(r,!0)},indent:function(e){if(t.node.hasClass(e.get(0),"fr-no-refresh"))return!1;for(var r=t.selection.blocks(),o=0;o<r.length;o++){for(var i=r[o].previousSibling;i&&i.nodeType==Node.TEXT_NODE&&0===i.textContent.length;)i=i.previousSibling;if("LI"!=r[o].tagName||i)return n(e,!1),!0;n(e,!0)}}}},e.extend(e.FE.DEFAULTS,{editInPopup:!1}),e.FE.MODULES.textEdit=function(e){return{_init:function(){var t;e.opts.editInPopup&&(t={edit:'<div id="fr-text-edit-'+e.id+'" class="fr-layer fr-text-edit-layer"><div class="fr-input-line"><input type="text" placeholder="'+e.language.translate("Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="updateText" tabIndex="2">'+e.language.translate("Update")+"</button></div></div>"},e.popups.create("text.edit",t),e.events.$on(e.$el,e._mouseup,function(){setTimeout(function(){var t,n;n=e.popups.get("text.edit"),t="INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder"):e.$el.text(),n.find("input").val(t).trigger("change"),e.popups.setContainer("text.edit",e.$sc),e.popups.show("text.edit",e.$el.offset().left+e.$el.outerWidth()/2,e.$el.offset().top+e.$el.outerHeight(),e.$el.outerHeight())},10)}))},update:function(){var t=e.popups.get("text.edit").find("input").val();0===t.length&&(t=e.opts.placeholderText),"INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder",t):e.$el.text(t),e.events.trigger("contentChanged"),e.popups.hide("text.edit")}}},e.FE.RegisterCommand("updateText",{focus:!1,undo:!1,callback:function(){this.textEdit.update()}}),e.extend(e.FE.DEFAULTS,{toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1}),e.FE.TOOLBAR_BUTTONS=["fullscreen","bold","italic","underline","strikeThrough","subscript","superscript","|","fontFamily","fontSize","color","inlineClass","inlineStyle","paragraphStyle","lineHeight","|","paragraphFormat","align","formatOL","formatUL","outdent","indent","quote","-","insertLink","insertImage","insertVideo","embedly","insertFile","insertTable","|","emoticons","fontAwesome","specialCharacters","insertHR","selectAll","clearFormatting","|","print","getPDF","spellChecker","help","html","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_MD=null,e.FE.TOOLBAR_BUTTONS_SM=["bold","italic","underline","|","fontFamily","fontSize","insertLink","insertImage","table","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_XS=["bold","italic","fontFamily","fontSize","|","undo","redo"],e.FE.MODULES.toolbar=function(t){var n=[];function r(e,t){for(var n=0;n<t.length;n++)"-"!=t[n]&&"|"!=t[n]&&e.indexOf(t[n])<0&&e.push(t[n])}function o(){var e=t.helpers.screenSize();return n[e]}function i(){var e=o();t.$tb.find(".fr-separator").remove(),t.$tb.find("> .fr-command, > div.fr-btn-wrap").addClass("fr-hidden");for(var n=0;n<e.length;n++)if("|"==e[n]||"-"==e[n])t.$tb.append(t.button.buildList([e[n]]));else{var r=t.$tb.find('> .fr-command[data-cmd="'+e[n]+'"], > div.fr-btn-wrap > .fr-command[data-cmd="'+e[n]+'"]'),i=null;t.node.hasClass(r.next().get(0),"fr-dropdown-menu")&&(i=r.next()),t.node.hasClass(r.next().get(0),"fr-options")&&(r=r.parent()),r.removeClass("fr-hidden").appendTo(t.$tb),i&&i.appendTo(t.$tb)}}function a(n,r){setTimeout(function(){if((!n||n.which!=e.FE.KEYCODE.ESC)&&t.selection.inEditor()&&t.core.hasFocus()&&!t.popups.areVisible()&&(t.opts.toolbarVisibleWithoutSelection||!t.selection.isCollapsed()&&!t.keys.isIME()||r)){if(t.$tb.data("instance",t),!1===t.events.trigger("toolbar.show",[n]))return!1;t.$tb.show(),t.opts.toolbarContainer||t.position.forSelection(t.$tb),1<t.opts.zIndex?t.$tb.css("z-index",t.opts.zIndex+1):t.$tb.css("z-index",null)}},0)}function s(e){return(!e||"blur"!==e.type||document.activeElement!==t.el)&&(!(!e||"keydown"!==e.type||!t.keys.ctrlKey(e))||!!t.button.getButtons(".fr-dropdown.fr-active").next().find(t.o_doc.activeElement).length||void(!1!==t.events.trigger("toolbar.hide")&&t.$tb.hide()))}n[e.FE.XS]=t.opts.toolbarButtonsXS||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_XS||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.SM]=t.opts.toolbarButtonsSM||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_SM||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.MD]=t.opts.toolbarButtonsMD||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_MD||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.LG]=t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS||[];var l=null;function c(n){clearTimeout(l),n&&n.which==e.FE.KEYCODE.ESC||(l=setTimeout(a,t.opts.typingTimer))}function u(){t.events.on("window.mousedown",s),t.events.on("keydown",s),t.events.on("blur",s),t.helpers.isMobile()||t.events.on("window.mouseup",a),t.helpers.isMobile()?t.helpers.isIOS()||(t.events.on("window.touchend",a),t.browser.mozilla&&setInterval(a,200)):t.events.on("window.keyup",c),t.events.on("keydown",function(t){t&&t.which==e.FE.KEYCODE.ESC&&s()}),t.events.on("keydown",function(t){if(t.which==e.FE.KEYCODE.ALT)return t.stopPropagation(),!1},!0),t.events.$on(t.$wp,"scroll.toolbar",a),t.events.$on(t.$sc,"scroll.toolbar",a),t.events.on("commands.after",a),t.helpers.isMobile()&&(t.events.$on(t.$doc,"selectionchange",c),t.events.$on(t.$doc,"orientationchange",a))}function f(){t.$tb.html("").removeData().remove(),t.$tb=null}function d(){t.$box.removeClass("fr-top fr-bottom fr-inline fr-basic"),t.$box.find(".fr-sticky-dummy").remove()}function p(){t.opts.theme&&t.$tb.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&t.$tb.css("z-index",t.opts.zIndex+1),"auto"!=t.opts.direction&&t.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.helpers.isMobile()?t.$tb.addClass("fr-mobile"):t.$tb.addClass("fr-desktop"),t.opts.toolbarContainer?(t.opts.toolbarInline&&(u(),s()),t.opts.toolbarBottom?t.$tb.addClass("fr-bottom"):t.$tb.addClass("fr-top")):t.opts.toolbarInline?(t.$sc.append(t.$tb),t.$tb.data("container",t.$sc),t.$tb.addClass("fr-inline"),t.$tb.prepend('<span class="fr-arrow"></span>'),u(),t.opts.toolbarBottom=!1):(t.opts.toolbarBottom&&!t.helpers.isIOS()?(t.$box.append(t.$tb),t.$tb.addClass("fr-bottom"),t.$box.addClass("fr-bottom")):(t.opts.toolbarBottom=!1,t.$box.prepend(t.$tb),t.$tb.addClass("fr-top"),t.$box.addClass("fr-top")),t.$tb.addClass("fr-basic"),t.opts.toolbarSticky&&(t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset)),t.position.addSticky(t.$tb))),function(){var i=e.merge([],o());r(i,n[e.FE.XS]),r(i,n[e.FE.SM]),r(i,n[e.FE.MD]),r(i,n[e.FE.LG]);for(var a=i.length-1;0<=a;a--)"-"!=i[a]&&"|"!=i[a]&&i.indexOf(i[a])<a&&i.splice(a,1);var s=t.button.buildList(i,o());t.$tb.append(s),t.button.bindCommands(t.$tb)}(),t.events.$on(e(t.o_win),"resize",i),t.events.$on(e(t.o_win),"orientationchange",i),t.accessibility.registerToolbar(t.$tb),t.events.$on(t.$tb,t._mousedown+" "+t._mouseup,function(e){var n=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;if(n&&"INPUT"!=n.tagName&&!t.edit.isDisabled())return e.stopPropagation(),e.preventDefault(),!1},!0)}var h=!1;return{_init:function(){if(t.$sc=e(t.opts.scrollableContainer).first(),!t.$wp)return!1;t.opts.toolbarContainer?(t.shared.$tb?(t.$tb=t.shared.$tb,t.opts.toolbarInline&&u()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,e(t.opts.toolbarContainer).append(t.$tb),p(),t.$tb.data("instance",t)),t.opts.toolbarInline?t.$box.addClass("fr-inline"):t.$box.addClass("fr-basic"),t.events.on("focus",function(){t.$tb.data("instance",t)},!0),t.opts.toolbarInline=!1):t.opts.toolbarInline?(t.$box.addClass("fr-inline"),t.shared.$tb?(t.$tb=t.shared.$tb,u()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,p())):(t.$box.addClass("fr-basic"),t.$tb=e('<div class="fr-toolbar"></div>'),p(),t.$tb.data("instance",t)),t.events.on("destroy",d,!0),t.events.on(t.opts.toolbarInline||t.opts.toolbarContainer?"shared.destroy":"destroy",f,!0)},hide:s,show:function(){if(!1===t.events.trigger("toolbar.show"))return!1;t.$tb.show()},showInline:a,disable:function(){!h&&t.$tb&&(t.$tb.find("> .fr-command, .fr-btn-wrap > .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),h=!0)},enable:function(){h&&t.$tb&&(t.$tb.find("> .fr-command, .fr-btn-wrap > .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),h=!1),t.button.bulkRefresh()}}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),e.FE.PLUGINS.charCounter=function(t){var n;function r(){return(t.el.textContent||"").replace(/\u200B/g,"").length}function o(n){if(t.opts.charCounterMax<0)return!0;if(r()<t.opts.charCounterMax)return!0;var o=n.which;return!(!t.keys.ctrlKey(n)&&t.keys.isCharacter(o)||o===e.FE.KEYCODE.IME)||(n.preventDefault(),n.stopPropagation(),t.events.trigger("charCounter.exceeded"),!1)}function i(n){return t.opts.charCounterMax<0?n:e("<div>").html(n).text().length+r()<=t.opts.charCounterMax?n:(t.events.trigger("charCounter.exceeded"),"")}function a(){if(t.opts.charCounterCount){var e=r()+(0<t.opts.charCounterMax?"/"+t.opts.charCounterMax:"");n.text(e),t.opts.toolbarBottom&&n.css("margin-bottom",t.$tb.outerHeight(!0));var o=t.$wp.get(0).offsetWidth-t.$wp.get(0).clientWidth;0<=o&&("rtl"==t.opts.direction?n.css("margin-left",o):n.css("margin-right",o))}}return{_init:function(){return!!t.$wp&&!!t.opts.charCounterCount&&((n=e('<span class="fr-counter"></span>')).css("bottom",t.$wp.css("border-bottom-width")),t.$box.append(n),t.events.on("keydown",o,!0),t.events.on("paste.afterCleanup",i),t.events.on("keyup contentChanged input",function(){t.events.trigger("charCounter.update")}),t.events.on("charCounter.update",a),t.events.trigger("charCounter.update"),void t.events.on("destroy",function(){e(t.o_win).off("resize.char"+t.id),n.removeData().remove(),n=null}))},count:r}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.FE.PLUGINS.codeBeautifier=function(){var e,t,n,r,o={};function i(e,t){var n={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},r={"@media":!0,"@supports":!0,"@document":!0};t=t||{},e=(e=e||"").replace(/\r\n|[\r\u2028\u2029]/g,"\n");var o=t.indent_size||4,i=t.indent_char||" ",a=void 0===t.selector_separator_newline||t.selector_separator_newline,s=void 0!==t.end_with_newline&&t.end_with_newline,l=void 0===t.newline_between_rules||t.newline_between_rules,c=t.eol?t.eol:"\n";"string"==typeof o&&(o=parseInt(o,10)),t.indent_with_tabs&&(i="\t",o=1),c=c.replace(/\\r/,"\r").replace(/\\n/,"\n");var u,f=/^\s+$/,d=-1,p=0;function h(){return(u=e.charAt(++d))||""}function m(t){var n,r=d;return t&&g(),n=e.charAt(d+1)||"",d=r-1,h(),n}function v(t){for(var n=d;h();)if("\\"===u)h();else{if(-1!==t.indexOf(u))break;if("\n"===u)break}return e.substring(n,d+1)}function g(){for(var e="";f.test(m());)h(),e+=u;return e}function y(){var e="";for(u&&f.test(u)&&(e=u);f.test(h());)e+=u;return e}function b(t){var n=d;for(t="/"===m(),h();h();){if(!t&&"*"===u&&"/"===m()){h();break}if(t&&"\n"===u)return e.substring(n,d)}return e.substring(n,d)+u}function _(t){return e.substring(d-t.length,d).toLowerCase()===t}function w(){for(var t=0,n=d+1;n<e.length;n++){var r=e.charAt(n);if("{"===r)return!0;if("("===r)t+=1;else if(")"===r){if(0==t)return!1;t-=1}else if(";"===r||"}"===r)return!1}return!1}for(var E,x,k=e.match(/^[\t ]*/)[0],S=new Array(o+1).join(i),T=0,C=0,O={"{":function(e){O.singleSpace(),j.push(e),O.newLine()},"}":function(e){O.newLine(),j.push(e),O.newLine()},_lastCharWhitespace:function(){return f.test(j[j.length-1])},newLine:function(e){j.length&&(e||"\n"===j[j.length-1]||O.trim(),j.push("\n"),k&&j.push(k))},singleSpace:function(){j.length&&!O._lastCharWhitespace()&&j.push(" ")},preserveSingleSpace:function(){D&&O.singleSpace()},trim:function(){for(;O._lastCharWhitespace();)j.pop()}},j=[],A=!1,N=!1,M=!1,I="",L="";;){var P=y(),D=""!==P,R=-1!==P.indexOf("\n");if(L=I,!(I=u))break;if("/"===u&&"*"===m()){var F=0===T;(R||F)&&O.newLine(),j.push(b()),O.newLine(),F&&O.newLine(!0)}else if("/"===u&&"/"===m())R||"{"===L||O.trim(),O.singleSpace(),j.push(b()),O.newLine();else if("@"===u){O.preserveSingleSpace(),j.push(u);var B=(E=d,x=v(": ,;{}()[]/='\""),d=E-1,h(),x);B.match(/[ :]$/)&&(h(),B=v(": ").replace(/\s$/,""),j.push(B),O.singleSpace()),(B=B.replace(/\s$/,""))in n&&(C+=1,B in r&&(M=!0))}else"#"===u&&"{"===m()?(O.preserveSingleSpace(),j.push(v("}"))):"{"===u?"}"===m(!0)?(g(),h(),O.singleSpace(),j.push("{}"),O.newLine(),l&&0===T&&O.newLine(!0)):(T++,k+=S,O["{"](u),M?(M=!1,A=C<T):A=C<=T):"}"===u?(T--,k=k.slice(0,-o),O["}"](u),N=A=!1,C&&C--,l&&0===T&&O.newLine(!0)):":"===u?(g(),!A&&!M||_("&")||w()?":"===m()?(h(),j.push("::")):j.push(":"):(N=!0,j.push(":"),O.singleSpace())):'"'===u||"'"===u?(O.preserveSingleSpace(),j.push(v(u))):";"===u?(N=!1,j.push(u),O.newLine()):"("===u?_("url")?(j.push(u),g(),h()&&(")"!==u&&'"'!==u&&"'"!==u?j.push(v(")")):d--)):(p++,O.preserveSingleSpace(),j.push(u),g()):")"===u?(j.push(u),p--):","===u?(j.push(u),g(),a&&!N&&p<1?O.newLine():O.singleSpace()):("]"===u||("["===u?O.preserveSingleSpace():"="===u?(g(),u="="):O.preserveSingleSpace()),j.push(u))}var U="";return k&&(U+=k),U+=j.join("").replace(/[\r\n\t ]+$/,""),s&&(U+="\n"),"\n"!=c&&(U=U.replace(/[\n]/g,c)),U}function a(e,t){for(var n=0;n<t.length;n+=1)if(t[n]===e)return!0;return!1}function s(e){return e.replace(/^\s+|\s+$/g,"")}function l(e,t){return new u(e,t).beautify()}e=o,t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",n=new RegExp("["+t+"]"),r=new RegExp("["+t+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏０-９＿]"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g"),e.isIdentifierStart=function(e){return e<65?36===e||64===e:e<91||(e<97?95===e:e<123||170<=e&&n.test(String.fromCharCode(e)))},e.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||170<=e&&r.test(String.fromCharCode(e))))};var c={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function u(e,t){var n,r,i,l,u,f,p,m,v,g,y,b,_,w=[],E="";function x(e,t){var r=0;return e&&(r=e.indentation_level,!n.just_added_newline()&&e.line_indent_level>r&&(r=e.line_indent_level)),{mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:r,line_indent_level:e?e.line_indent_level:r,start_line_index:n.get_line_number(),ternary_depth:0}}for(b={TK_START_EXPR:function(){D();var e=c.Expression;if("["===l.text){if("TK_WORD"===u||")"===m.last_text)return"TK_RESERVED"===u&&a(m.last_text,i.line_starters)&&(n.space_before_token=!0),N(e),j(),A(),void(_.space_in_paren&&(n.space_before_token=!0));e=c.ArrayLiteral,M(m.mode)&&("["!==m.last_text&&(","!==m.last_text||"]"!==f&&"}"!==f)||_.keep_array_indentation||C())}else"TK_RESERVED"===u&&"for"===m.last_text?e=c.ForInitializer:"TK_RESERVED"===u&&a(m.last_text,["if","while"])&&(e=c.Conditional);";"===m.last_text||"TK_START_BLOCK"===u?C():"TK_END_EXPR"===u||"TK_START_EXPR"===u||"TK_END_BLOCK"===u||"."===m.last_text?T(l.wanted_newline):"TK_RESERVED"===u&&"("===l.text||"TK_WORD"===u||"TK_OPERATOR"===u?"TK_RESERVED"===u&&("function"===m.last_word||"typeof"===m.last_word)||"*"===m.last_text&&"function"===f?_.space_after_anon_function&&(n.space_before_token=!0):"TK_RESERVED"!==u||!a(m.last_text,i.line_starters)&&"catch"!==m.last_text||_.space_before_conditional&&(n.space_before_token=!0):n.space_before_token=!0,"("===l.text&&"TK_RESERVED"===u&&"await"===m.last_word&&(n.space_before_token=!0),"("===l.text&&("TK_EQUALS"!==u&&"TK_OPERATOR"!==u||P()||T()),N(e),j(),_.space_in_paren&&(n.space_before_token=!0),A()},TK_END_EXPR:function(){for(;m.mode===c.Statement;)L();m.multiline_frame&&T("]"===l.text&&M(m.mode)&&!_.keep_array_indentation),_.space_in_paren&&("TK_START_EXPR"!==u||_.space_in_empty_paren?n.space_before_token=!0:(n.trim(),n.space_before_token=!1)),"]"===l.text&&_.keep_array_indentation?(j(),L()):(L(),j()),n.remove_redundant_indentation(v),m.do_while&&v.mode===c.Conditional&&(v.mode=c.Expression,m.do_block=!1,m.do_while=!1)},TK_START_BLOCK:function(){var e=F(1),t=F(2);t&&(":"===t.text&&a(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||a(e.text,["get","set"])&&a(t.type,["TK_WORD","TK_RESERVED"]))?a(f,["class","interface"])?N(c.BlockStatement):N(c.ObjectLiteral):N(c.BlockStatement);var r=!e.comments_before.length&&"}"===e.text&&"function"===m.last_word&&"TK_END_EXPR"===u;"expand"===_.brace_style||"none"===_.brace_style&&l.wanted_newline?"TK_OPERATOR"!==u&&(r||"TK_EQUALS"===u||"TK_RESERVED"===u&&R(m.last_text)&&"else"!==m.last_text)?n.space_before_token=!0:C(!1,!0):"TK_OPERATOR"!==u&&"TK_START_EXPR"!==u?"TK_START_BLOCK"===u?C():n.space_before_token=!0:M(v.mode)&&","===m.last_text&&("}"===f?n.space_before_token=!0:C()),j(),A()},TK_END_BLOCK:function(){for(;m.mode===c.Statement;)L();var e="TK_START_BLOCK"===u;"expand"===_.brace_style?e||C():e||(M(m.mode)&&_.keep_array_indentation?(_.keep_array_indentation=!1,C(),_.keep_array_indentation=!0):C()),L(),j()},TK_WORD:B,TK_RESERVED:B,TK_SEMICOLON:function(){for(D()&&(n.space_before_token=!1);m.mode===c.Statement&&!m.if_block&&!m.do_block;)L();j()},TK_STRING:function(){D()?n.space_before_token=!0:"TK_RESERVED"===u||"TK_WORD"===u?n.space_before_token=!0:"TK_COMMA"===u||"TK_START_EXPR"===u||"TK_EQUALS"===u||"TK_OPERATOR"===u?P()||T():C(),j()},TK_EQUALS:function(){D(),m.declaration_statement&&(m.declaration_assignment=!0),n.space_before_token=!0,j(),n.space_before_token=!0},TK_OPERATOR:function(){if(D(),"TK_RESERVED"===u&&R(m.last_text))return n.space_before_token=!0,void j();if("*"!==l.text||"TK_DOT"!==u){if(":"===l.text&&m.in_case)return m.case_body=!0,A(),j(),C(),void(m.in_case=!1);if("::"!==l.text){"TK_OPERATOR"===u&&T();var e=!0,t=!0;a(l.text,["--","++","!","~"])||a(l.text,["-","+"])&&(a(u,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||a(m.last_text,i.line_starters)||","===m.last_text)?(t=e=!1,!l.wanted_newline||"--"!==l.text&&"++"!==l.text||C(!1,!0),";"===m.last_text&&I(m.mode)&&(e=!0),"TK_RESERVED"===u?e=!0:"TK_END_EXPR"===u?e=!("]"===m.last_text&&("--"===l.text||"++"===l.text)):"TK_OPERATOR"===u&&(e=a(l.text,["--","-","++","+"])&&a(m.last_text,["--","-","++","+"]),a(l.text,["+","-"])&&a(m.last_text,["--","++"])&&(t=!0)),m.mode!==c.BlockStatement&&m.mode!==c.Statement||"{"!==m.last_text&&";"!==m.last_text||C()):":"===l.text?0===m.ternary_depth?e=!1:m.ternary_depth-=1:"?"===l.text?m.ternary_depth+=1:"*"===l.text&&"TK_RESERVED"===u&&"function"===m.last_text&&(t=e=!1),n.space_before_token=n.space_before_token||e,j(),n.space_before_token=t}else j()}else j()},TK_COMMA:function(){if(m.declaration_statement)return I(m.parent.mode)&&(m.declaration_assignment=!1),j(),void(m.declaration_assignment?C(m.declaration_assignment=!1,!0):(n.space_before_token=!0,_.comma_first&&T()));j(),m.mode===c.ObjectLiteral||m.mode===c.Statement&&m.parent.mode===c.ObjectLiteral?(m.mode===c.Statement&&L(),C()):(n.space_before_token=!0,_.comma_first&&T())},TK_BLOCK_COMMENT:function(){if(n.raw)return n.add_raw_token(l),void(l.directives&&"end"===l.directives.preserve&&(_.test_output_raw||(n.raw=!1)));if(l.directives)return C(!1,!0),j(),"start"===l.directives.preserve&&(n.raw=!0),void C(!1,!0);if(!o.newline.test(l.text)&&!l.wanted_newline)return n.space_before_token=!0,j(),void(n.space_before_token=!0);var e,t=function(e){e=e.replace(/\x0d/g,"");for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf("\n");return e.length&&t.push(e),t}(l.text),r=!1,i=!1,a=l.whitespace_before,c=a.length;for(C(!1,!0),1<t.length&&(function(e,t){for(var n=0;n<e.length;n++){var r=s(e[n]);if("*"!==r.charAt(0))return!1}return!0}(t.slice(1))?r=!0:function(e,t){for(var n,r=0,o=e.length;r<o;r++)if((n=e[r])&&0!==n.indexOf(t))return!1;return!0}(t.slice(1),a)&&(i=!0)),j(t[0]),e=1;e<t.length;e++)C(!1,!0),r?j(" "+t[e].replace(/^\s+/g,"")):i&&t[e].length>c?j(t[e].substring(c)):n.add_token(t[e]);C(!1,!0)},TK_COMMENT:function(){l.wanted_newline?C(!1,!0):n.trim(!0),n.space_before_token=!0,j(),C(!1,!0)},TK_DOT:function(){D(),"TK_RESERVED"===u&&R(m.last_text)?n.space_before_token=!0:T(")"===m.last_text&&_.break_chained_methods),j()},TK_UNKNOWN:function(){j(),"\n"===l.text[l.text.length-1]&&C()},TK_EOF:function(){for(;m.mode===c.Statement;)L()}},_={},void 0!==(t=t||{}).braces_on_own_line&&(_.brace_style=t.braces_on_own_line?"expand":"collapse"),_.brace_style=t.brace_style?t.brace_style:_.brace_style?_.brace_style:"collapse","expand-strict"===_.brace_style&&(_.brace_style="expand"),_.indent_size=t.indent_size?parseInt(t.indent_size,10):4,_.indent_char=t.indent_char?t.indent_char:" ",_.eol=t.eol?t.eol:"\n",_.preserve_newlines=void 0===t.preserve_newlines||t.preserve_newlines,_.break_chained_methods=void 0!==t.break_chained_methods&&t.break_chained_methods,_.max_preserve_newlines=void 0===t.max_preserve_newlines?0:parseInt(t.max_preserve_newlines,10),_.space_in_paren=void 0!==t.space_in_paren&&t.space_in_paren,_.space_in_empty_paren=void 0!==t.space_in_empty_paren&&t.space_in_empty_paren,_.jslint_happy=void 0!==t.jslint_happy&&t.jslint_happy,_.space_after_anon_function=void 0!==t.space_after_anon_function&&t.space_after_anon_function,_.keep_array_indentation=void 0!==t.keep_array_indentation&&t.keep_array_indentation,_.space_before_conditional=void 0===t.space_before_conditional||t.space_before_conditional,_.unescape_strings=void 0!==t.unescape_strings&&t.unescape_strings,_.wrap_line_length=void 0===t.wrap_line_length?0:parseInt(t.wrap_line_length,10),_.e4x=void 0!==t.e4x&&t.e4x,_.end_with_newline=void 0!==t.end_with_newline&&t.end_with_newline,_.comma_first=void 0!==t.comma_first&&t.comma_first,_.test_output_raw=void 0!==t.test_output_raw&&t.test_output_raw,_.jslint_happy&&(_.space_after_anon_function=!0),t.indent_with_tabs&&(_.indent_char="\t",_.indent_size=1),_.eol=_.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),p="";0<_.indent_size;)p+=_.indent_char,_.indent_size-=1;var k=0;if(e&&e.length){for(;" "===e.charAt(k)||"\t"===e.charAt(k);)E+=e.charAt(k),k+=1;e=e.substring(k)}function S(e){var t=e.newlines;if(_.keep_array_indentation&&M(m.mode))for(n=0;n<t;n+=1)C(0<n);else if(_.max_preserve_newlines&&t>_.max_preserve_newlines&&(t=_.max_preserve_newlines),_.preserve_newlines&&1<e.newlines){C();for(var n=1;n<t;n+=1)C(!0)}b[(l=e).type]()}function T(e){e=void 0!==e&&e,n.just_added_newline()||(_.preserve_newlines&&l.wanted_newline||e?C(!1,!0):_.wrap_line_length&&n.current_line.get_character_count()+l.text.length+(n.space_before_token?1:0)>=_.wrap_line_length&&C(!1,!0))}function C(e,t){if(!t&&";"!==m.last_text&&","!==m.last_text&&"="!==m.last_text&&"TK_OPERATOR"!==u)for(;m.mode===c.Statement&&!m.if_block&&!m.do_block;)L();n.add_new_line(e)&&(m.multiline_frame=!0)}function O(){n.just_added_newline()&&(_.keep_array_indentation&&M(m.mode)&&l.wanted_newline?(n.current_line.push(l.whitespace_before),n.space_before_token=!1):n.set_indent(m.indentation_level)&&(m.line_indent_level=m.indentation_level))}function j(e){n.raw?n.add_raw_token(l):(_.comma_first&&"TK_COMMA"===u&&n.just_added_newline()&&","===n.previous_line.last()&&(n.previous_line.pop(),O(),n.add_token(","),n.space_before_token=!0),e=e||l.text,O(),n.add_token(e))}function A(){m.indentation_level+=1}function N(e){m?(g.push(m),v=m):v=x(null,e),m=x(v,e)}function M(e){return e===c.ArrayLiteral}function I(e){return a(e,[c.Expression,c.ForInitializer,c.Conditional])}function L(){0<g.length&&(v=m,m=g.pop(),v.mode===c.Statement&&n.remove_redundant_indentation(v))}function P(){return m.parent.mode===c.ObjectLiteral&&m.mode===c.Statement&&(":"===m.last_text&&0===m.ternary_depth||"TK_RESERVED"===u&&a(m.last_text,["get","set"]))}function D(){return!!("TK_RESERVED"===u&&a(m.last_text,["var","let","const"])&&"TK_WORD"===l.type||"TK_RESERVED"===u&&"do"===m.last_text||"TK_RESERVED"===u&&"return"===m.last_text&&!l.wanted_newline||"TK_RESERVED"===u&&"else"===m.last_text&&("TK_RESERVED"!==l.type||"if"!==l.text)||"TK_END_EXPR"===u&&(v.mode===c.ForInitializer||v.mode===c.Conditional)||"TK_WORD"===u&&m.mode===c.BlockStatement&&!m.in_case&&"--"!==l.text&&"++"!==l.text&&"function"!==f&&"TK_WORD"!==l.type&&"TK_RESERVED"!==l.type||m.mode===c.ObjectLiteral&&(":"===m.last_text&&0===m.ternary_depth||"TK_RESERVED"===u&&a(m.last_text,["get","set"])))&&(N(c.Statement),A(),"TK_RESERVED"===u&&a(m.last_text,["var","let","const"])&&"TK_WORD"===l.type&&(m.declaration_statement=!0),P()||T("TK_RESERVED"===l.type&&a(l.text,["do","for","if","while"])),!0)}function R(e){return a(e,["case","return","do","if","throw","else"])}function F(e){var t=r+(e||0);return t<0||t>=w.length?null:w[t]}function B(){if("TK_RESERVED"===l.type&&m.mode!==c.ObjectLiteral&&a(l.text,["set","get"])&&(l.type="TK_WORD"),"TK_RESERVED"===l.type&&m.mode===c.ObjectLiteral&&":"==F(1).text&&(l.type="TK_WORD"),D()||!l.wanted_newline||I(m.mode)||"TK_OPERATOR"===u&&"--"!==m.last_text&&"++"!==m.last_text||"TK_EQUALS"===u||!_.preserve_newlines&&"TK_RESERVED"===u&&a(m.last_text,["var","let","const","set","get"])||C(),m.do_block&&!m.do_while){if("TK_RESERVED"===l.type&&"while"===l.text)return n.space_before_token=!0,j(),n.space_before_token=!0,void(m.do_while=!0);C(),m.do_block=!1}if(m.if_block)if(m.else_block||"TK_RESERVED"!==l.type||"else"!==l.text){for(;m.mode===c.Statement;)L();m.if_block=!1,m.else_block=!1}else m.else_block=!0;return"TK_RESERVED"===l.type&&("case"===l.text||"default"===l.text&&m.in_case_statement)?(C(),(m.case_body||_.jslint_happy)&&(0<m.indentation_level&&(!m.parent||m.indentation_level>m.parent.indentation_level)&&(m.indentation_level-=1),m.case_body=!1),j(),m.in_case=!0,void(m.in_case_statement=!0)):("TK_RESERVED"===l.type&&"function"===l.text&&((a(m.last_text,["}",";"])||n.just_added_newline()&&!a(m.last_text,["[","{",":","=",","]))&&(n.just_added_blankline()||l.comments_before.length||(C(),C(!0))),"TK_RESERVED"===u||"TK_WORD"===u?"TK_RESERVED"===u&&a(m.last_text,["get","set","new","return","export","async"])?n.space_before_token=!0:"TK_RESERVED"===u&&"default"===m.last_text&&"export"===f?n.space_before_token=!0:C():"TK_OPERATOR"===u||"="===m.last_text?n.space_before_token=!0:(m.multiline_frame||!I(m.mode)&&!M(m.mode))&&C()),"TK_COMMA"!==u&&"TK_START_EXPR"!==u&&"TK_EQUALS"!==u&&"TK_OPERATOR"!==u||P()||T(),"TK_RESERVED"===l.type&&a(l.text,["function","get","set"])?(j(),void(m.last_word=l.text)):(y="NONE","TK_END_BLOCK"===u?"TK_RESERVED"===l.type&&a(l.text,["else","catch","finally"])?"expand"===_.brace_style||"end-expand"===_.brace_style||"none"===_.brace_style&&l.wanted_newline?y="NEWLINE":(y="SPACE",n.space_before_token=!0):y="NEWLINE":"TK_SEMICOLON"===u&&m.mode===c.BlockStatement?y="NEWLINE":"TK_SEMICOLON"===u&&I(m.mode)?y="SPACE":"TK_STRING"===u?y="NEWLINE":"TK_RESERVED"===u||"TK_WORD"===u||"*"===m.last_text&&"function"===f?y="SPACE":"TK_START_BLOCK"===u?y="NEWLINE":"TK_END_EXPR"===u&&(n.space_before_token=!0,y="NEWLINE"),"TK_RESERVED"===l.type&&a(l.text,i.line_starters)&&")"!==m.last_text&&(y="else"===m.last_text||"export"===m.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===l.type&&a(l.text,["else","catch","finally"])?"TK_END_BLOCK"!==u||"expand"===_.brace_style||"end-expand"===_.brace_style||"none"===_.brace_style&&l.wanted_newline?C():(n.trim(!0),"}"!==n.current_line.last()&&C(),n.space_before_token=!0):"NEWLINE"===y?"TK_RESERVED"===u&&R(m.last_text)?n.space_before_token=!0:"TK_END_EXPR"!==u?"TK_START_EXPR"===u&&"TK_RESERVED"===l.type&&a(l.text,["var","let","const"])||":"===m.last_text||("TK_RESERVED"===l.type&&"if"===l.text&&"else"===m.last_text?n.space_before_token=!0:C()):"TK_RESERVED"===l.type&&a(l.text,i.line_starters)&&")"!==m.last_text&&C():m.multiline_frame&&M(m.mode)&&","===m.last_text&&"}"===f?C():"SPACE"===y&&(n.space_before_token=!0),j(),m.last_word=l.text,"TK_RESERVED"===l.type&&"do"===l.text&&(m.do_block=!0),void("TK_RESERVED"===l.type&&"if"===l.text&&(m.if_block=!0))))}u="TK_START_BLOCK",f="",(n=new d(p,E)).raw=_.test_output_raw,g=[],N(c.BlockStatement),this.beautify=function(){var t,o;for(i=new h(e,_,p),w=i.tokenize(),r=0;t=F();){for(var a=0;a<t.comments_before.length;a++)S(t.comments_before[a]);S(t),f=m.last_text,u=t.type,m.last_text=t.text,r+=1}return o=n.get_code(),_.end_with_newline&&(o+="\n"),"\n"!=_.eol&&(o=o.replace(/[\n]/g,_.eol)),o}}function f(e){var t=0,n=-1,r=[],o=!0;this.set_indent=function(r){t=e.baseIndentLength+r*e.indent_length,n=r},this.get_character_count=function(){return t},this.is_empty=function(){return o},this.last=function(){return this._empty?null:r[r.length-1]},this.push=function(e){r.push(e),t+=e.length,o=!1},this.pop=function(){var e=null;return o||(e=r.pop(),t-=e.length,o=0===r.length),e},this.remove_indent=function(){0<n&&(n-=1,t-=e.indent_length)},this.trim=function(){for(;" "===this.last();)r.pop(),t-=1;o=0===r.length},this.toString=function(){var t="";return this._empty||(0<=n&&(t=e.indent_cache[n]),t+=r.join("")),t}}function d(e,t){t=t||"",this.indent_cache=[t],this.baseIndentLength=t.length,this.indent_length=e.length,this.raw=!1;var n=[];this.baseIndentString=t,this.indent_string=e,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new f(this),n.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return n.length},this.add_new_line=function(e){return!(1===this.get_line_number()&&this.just_added_newline()||!e&&this.just_added_newline()||(this.raw||this.add_outputline(),0))},this.get_code=function(){return n.join("\n").replace(/[\r\n\t ]+$/,"")},this.set_indent=function(e){if(1<n.length){for(;e>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.add_outputline();this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1},this.add_token=function(e){this.add_space_before_token(),this.current_line.push(e)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(e){if(!e.multiline_frame&&e.mode!==c.ForInitializer&&e.mode!==c.Conditional)for(var t=e.start_line_index,r=n.length;t<r;)n[t].remove_indent(),t++},this.trim=function(r){for(r=void 0!==r&&r,this.current_line.trim(e,t);r&&1<n.length&&this.current_line.is_empty();)n.pop(),this.current_line=n[n.length-1],this.current_line.trim();this.previous_line=1<n.length?n[n.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){return!!this.just_added_newline()&&(1===n.length||n[n.length-2].is_empty())}}var p=function(e,t,n,r,o,i){this.type=e,this.text=t,this.comments_before=[],this.newlines=n||0,this.wanted_newline=0<n,this.whitespace_before=r||"",this.parent=null,this.directives=null};function h(e,t,n){var r="\n\r\t ".split(""),i=/[0-9]/,l=/[01234567]/,c=/[0123456789abcdefABCDEF]/,u="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" ");this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var f,d,h,m,v,g,y=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),b=/([\s\S]*?)((?:\*\/)|$)/g,_=/([^\n\r\u2028\u2029]*)/g,w=/\/\* beautify( \w+[:]\w+)+ \*\//g,E=/ (\w+)[:](\w+)/g,x=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,k=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;function S(){var n,S,T=[];if(f=0,d="",g<=v)return["","TK_EOF"];S=m.length?m[m.length-1]:new p("TK_START_BLOCK","{");var C=e.charAt(v);for(v+=1;a(C,r);){if(o.newline.test(C)?"\n"===C&&"\r"===e.charAt(v-2)||(f+=1,T=[]):T.push(C),g<=v)return["","TK_EOF"];C=e.charAt(v),v+=1}if(T.length&&(d=T.join("")),i.test(C)){var O=!0,j=!0,A=i;for("0"===C&&v<g&&/[Xxo]/.test(e.charAt(v))?(j=O=!1,C+=e.charAt(v),v+=1,A=/[o]/.test(e.charAt(v))?l:c):(C="",v-=1);v<g&&A.test(e.charAt(v));)C+=e.charAt(v),v+=1,O&&v<g&&"."===e.charAt(v)&&(C+=e.charAt(v),v+=1,O=!1),j&&v<g&&/[Ee]/.test(e.charAt(v))&&(C+=e.charAt(v),(v+=1)<g&&/[+-]/.test(e.charAt(v))&&(C+=e.charAt(v),v+=1),O=j=!1);return[C,"TK_WORD"]}if(o.isIdentifierStart(e.charCodeAt(v-1))){if(v<g)for(;o.isIdentifierChar(e.charCodeAt(v))&&(C+=e.charAt(v),(v+=1)!==g););return"TK_DOT"===S.type||"TK_RESERVED"===S.type&&a(S.text,["set","get"])||!a(C,y)?[C,"TK_WORD"]:"in"===C?[C,"TK_OPERATOR"]:[C,"TK_RESERVED"]}if("("===C||"["===C)return[C,"TK_START_EXPR"];if(")"===C||"]"===C)return[C,"TK_END_EXPR"];if("{"===C)return[C,"TK_START_BLOCK"];if("}"===C)return[C,"TK_END_BLOCK"];if(";"===C)return[C,"TK_SEMICOLON"];if("/"===C){var N="";if("*"===e.charAt(v)){var M;v+=1,b.lastIndex=v,N="/*"+(M=b.exec(e))[0],v+=M[0].length;var I=function(e){if(!e.match(w))return null;var t={};E.lastIndex=0;for(var n=E.exec(e);n;)t[n[1]]=n[2],n=E.exec(e);return t}(N);return I&&"start"===I.ignore&&(x.lastIndex=v,N+=(M=x.exec(e))[0],v+=M[0].length),[N=N.replace(o.lineBreak,"\n"),"TK_BLOCK_COMMENT",I]}if("/"===e.charAt(v))return v+=1,_.lastIndex=v,N="//"+(M=_.exec(e))[0],v+=M[0].length,[N,"TK_COMMENT"]}if("`"===C||"'"===C||'"'===C||("/"===C||t.e4x&&"<"===C&&e.slice(v-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&("TK_RESERVED"===S.type&&a(S.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===S.type&&")"===S.text&&S.parent&&"TK_RESERVED"===S.parent.type&&a(S.parent.text,["if","while","for"])||a(S.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var L=C,P=!1,D=!1;if(n=C,"/"===L)for(var R=!1;v<g&&(P||R||e.charAt(v)!==L)&&!o.newline.test(e.charAt(v));)n+=e.charAt(v),P?P=!1:(P="\\"===e.charAt(v),"["===e.charAt(v)?R=!0:"]"===e.charAt(v)&&(R=!1)),v+=1;else if(t.e4x&&"<"===L){var F=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,B=e.slice(v-1),U=F.exec(B);if(U&&0===U.index){for(var q=U[2],z=0;U;){var H=!!U[1],W=U[2],$=!!U[U.length-1]||"![CDATA["===W.slice(0,8);if(W!==q||$||(H?--z:++z),z<=0)break;U=F.exec(B)}var Y=U?U.index+U[0].length:B.length;return B=B.slice(0,Y),v+=Y-1,[B=B.replace(o.lineBreak,"\n"),"TK_STRING"]}}else for(;v<g&&(P||e.charAt(v)!==L&&("`"===L||!o.newline.test(e.charAt(v))));)(P||"`"===L)&&o.newline.test(e.charAt(v))?("\r"===e.charAt(v)&&"\n"===e.charAt(v+1)&&(v+=1),n+="\n"):n+=e.charAt(v),P?("x"!==e.charAt(v)&&"u"!==e.charAt(v)||(D=!0),P=!1):P="\\"===e.charAt(v),v+=1;if(D&&t.unescape_strings&&(n=function(e){for(var t,n=!1,r="",o=0,i="",a=0;n||o<e.length;)if(t=e.charAt(o),o++,n){if(n=!1,"x"===t)i=e.substr(o,2),o+=2;else{if("u"!==t){r+="\\"+t;continue}i=e.substr(o,4),o+=4}if(!i.match(/^[0123456789abcdefABCDEF]+$/))return e;if(0<=(a=parseInt(i,16))&&a<32){r+="x"===t?"\\x"+i:"\\u"+i;continue}if(34===a||39===a||92===a)r+="\\"+String.fromCharCode(a);else{if("x"===t&&126<a&&a<=255)return e;r+=String.fromCharCode(a)}}else"\\"===t?n=!0:r+=t;return r}(n)),v<g&&e.charAt(v)===L&&(n+=L,v+=1,"/"===L))for(;v<g&&o.isIdentifierStart(e.charCodeAt(v));)n+=e.charAt(v),v+=1;return[n,"TK_STRING"]}if("#"===C){if(0===m.length&&"!"===e.charAt(v)){for(n=C;v<g&&"\n"!==C;)n+=C=e.charAt(v),v+=1;return[s(n)+"\n","TK_UNKNOWN"]}var K="#";if(v<g&&i.test(e.charAt(v))){for(;K+=C=e.charAt(v),(v+=1)<g&&"#"!==C&&"="!==C;);return"#"===C||("["===e.charAt(v)&&"]"===e.charAt(v+1)?(K+="[]",v+=2):"{"===e.charAt(v)&&"}"===e.charAt(v+1)&&(K+="{}",v+=2)),[K,"TK_WORD"]}}if("<"===C&&("?"===e.charAt(v)||"%"===e.charAt(v))){k.lastIndex=v-1;var V=k.exec(e);if(V)return C=V[0],v+=C.length-1,[C=C.replace(o.lineBreak,"\n"),"TK_STRING"]}if("<"===C&&"\x3c!--"===e.substring(v-1,v+3)){for(v+=3,C="\x3c!--";!o.newline.test(e.charAt(v))&&v<g;)C+=e.charAt(v),v++;return h=!0,[C,"TK_COMMENT"]}if("-"===C&&h&&"--\x3e"===e.substring(v-1,v+2))return h=!1,v+=2,["--\x3e","TK_COMMENT"];if("."===C)return[C,"TK_DOT"];if(a(C,u)){for(;v<g&&a(C+e.charAt(v),u)&&(C+=e.charAt(v),!(g<=(v+=1))););return","===C?[C,"TK_COMMA"]:"="===C?[C,"TK_EQUALS"]:[C,"TK_OPERATOR"]}return[C,"TK_UNKNOWN"]}this.tokenize=function(){var t,n,r;g=e.length,v=0,h=!1,m=[];for(var o=null,i=[],a=[];!n||"TK_EOF"!==n.type;){for(r=S(),t=new p(r[1],r[0],f,d);"TK_COMMENT"===t.type||"TK_BLOCK_COMMENT"===t.type||"TK_UNKNOWN"===t.type;)"TK_BLOCK_COMMENT"===t.type&&(t.directives=r[2]),a.push(t),r=S(),t=new p(r[1],r[0],f,d);a.length&&(t.comments_before=a,a=[]),"TK_START_BLOCK"===t.type||"TK_START_EXPR"===t.type?(t.parent=n,i.push(o),o=t):("TK_END_BLOCK"===t.type||"TK_END_EXPR"===t.type)&&o&&("]"===t.text&&"["===o.text||")"===t.text&&"("===o.text||"}"===t.text&&"{"===o.text)&&(t.parent=o.parent,o=i.pop()),m.push(t),n=t}return m}}return{run:function(e,t){function n(e){return e.replace(/\s+$/g,"")}var r,o,a,s,c,u,f,d,p,h,m,v,g,y;for(void 0!==(t=t||{}).wrap_line_length&&0!==parseInt(t.wrap_line_length,10)||void 0===t.max_char||0===parseInt(t.max_char,10)||(t.wrap_line_length=t.max_char),o=void 0!==t.indent_inner_html&&t.indent_inner_html,a=void 0===t.indent_size?4:parseInt(t.indent_size,10),s=void 0===t.indent_char?" ":t.indent_char,u=void 0===t.brace_style?"collapse":t.brace_style,c=0===parseInt(t.wrap_line_length,10)?32786:parseInt(t.wrap_line_length||250,10),f=t.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","address","pre"],d=void 0===t.preserve_newlines||t.preserve_newlines,p=d?isNaN(parseInt(t.max_preserve_newlines,10))?32786:parseInt(t.max_preserve_newlines,10):0,h=void 0!==t.indent_handlebars&&t.indent_handlebars,m=void 0===t.wrap_attributes?"auto":t.wrap_attributes,v=void 0===t.wrap_attributes_indent_size?a:parseInt(t.wrap_attributes_indent_size,10)||a,g=void 0!==t.end_with_newline&&t.end_with_newline,y=Array.isArray(t.extra_liners)?t.extra_liners.concat():"string"==typeof t.extra_liners?t.extra_liners.split(","):"head,body,/html".split(","),t.indent_with_tabs&&(s="\t",a=1),(r=new function(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=o,this.Utils={whitespace:"\n\r\t ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:y,in_array:function(e,t){for(var n=0;n<t.length;n++)if(e==t[n])return!0;return!1}},this.is_whitespace=function(e){for(;0<e.length;e++)if(!this.Utils.in_array(e.charAt(0),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var e="";if(e=this.input.charAt(this.pos),this.Utils.in_array(e,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(e,this.Utils.whitespace);)d&&"\n"==e&&this.newlines<=p&&(this.newlines+=1),this.pos++,e=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(e){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,e),this.print_indentation(e)):(this.line_char_count++,e.push(" "))},this.get_content=function(){for(var e="",t=[];"<"!=this.input.charAt(this.pos);){if(this.pos>=this.input.length)return t.length?t.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(t);else{if(h){var n=this.input.substr(this.pos,3);if("{{#"==n||"{{/"==n)break;if("{{!"==n)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"==this.input.substr(this.pos,2)&&"{{else}}"==this.get_tag(!0))break}e=this.input.charAt(this.pos),this.pos++,this.line_char_count++,t.push(e)}}return t.length?t.join(""):""},this.get_contents_to=function(e){if(this.pos==this.input.length)return["","TK_EOF"];var t="",n=new RegExp("</"+e+"\\s*>","igm");n.lastIndex=this.pos;var r=n.exec(this.input),o=r?r.index:this.input.length;return this.pos<o&&(t=this.input.substring(this.pos,o),this.pos=o),t},this.record_tag=function(e){this.tags[e+"count"]?this.tags[e+"count"]++:this.tags[e+"count"]=1,this.tags[e+this.tags[e+"count"]]=this.indent_level,this.tags[e+this.tags[e+"count"]+"parent"]=this.tags.parent,this.tags.parent=e+this.tags[e+"count"]},this.retrieve_tag=function(e){if(this.tags[e+"count"]){for(var t=this.tags.parent;t&&e+this.tags[e+"count"]!=t;)t=this.tags[t+"parent"];t&&(this.indent_level=this.tags[e+this.tags[e+"count"]],this.tags.parent=this.tags[t+"parent"]),delete this.tags[e+this.tags[e+"count"]+"parent"],delete this.tags[e+this.tags[e+"count"]],1==this.tags[e+"count"]?delete this.tags[e+"count"]:this.tags[e+"count"]--}},this.indent_to_tag=function(e){if(this.tags[e+"count"]){for(var t=this.tags.parent;t&&e+this.tags[e+"count"]!=t;)t=this.tags[t+"parent"];t&&(this.indent_level=this.tags[e+this.tags[e+"count"]])}},this.get_tag=function(e){var t,n,r="",o=[],i="",a=!1,l=!0,c=this.pos,u=this.line_char_count;e=void 0!==e&&e;do{if(this.pos>=this.input.length)return e&&(this.pos=c,this.line_char_count=u),o.length?o.join(""):["","TK_EOF"];if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace))a=!0;else{if("'"!=r&&'"'!=r||(r+=this.get_unformatted(r),a=!0),"="==r&&(a=!1),o.length&&"="!=o[o.length-1]&&">"!=r&&a){if(this.space_or_wrap(o),a=!1,!l&&"force"==m&&"/"!=r){this.print_newline(!0,o),this.print_indentation(o);for(var d=0;d<v;d++)o.push(s)}for(var p=0;p<o.length;p++)if(" "==o[p]){l=!1;break}}if(h&&"<"==n&&r+this.input.charAt(this.pos)=="{{"&&(r+=this.get_unformatted("}}"),o.length&&" "!=o[o.length-1]&&"<"!=o[o.length-1]&&(r=" "+r),a=!0),"<"!=r||n||(t=this.pos-1,n="<"),h&&!n&&2<=o.length&&"{"==o[o.length-1]&&"{"==o[o.length-2]&&(t="#"==r||"/"==r||"!"==r?this.pos-3:this.pos-2,n="{"),this.line_char_count++,o.push(r),o[1]&&("!"==o[1]||"?"==o[1]||"%"==o[1])){o=[this.get_comment(t)];break}if(h&&o[1]&&"{"==o[1]&&o[2]&&"!"==o[2]){o=[this.get_comment(t)];break}if(h&&"{"==n&&2<o.length&&"}"==o[o.length-2]&&"}"==o[o.length-1])break}}while(">"!=r);var g,y,b=o.join("");g=-1!=b.indexOf(" ")?b.indexOf(" "):"{"==b[0]?b.indexOf("}"):b.indexOf(">"),y="<"!=b[0]&&h?"#"==b[2]?3:2:1;var _=b.substring(y,g).toLowerCase();return"/"==b.charAt(b.length-2)||this.Utils.in_array(_,this.Utils.single_token)?e||(this.tag_type="SINGLE"):h&&"{"==b[0]&&"else"==_?e||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(_,f)?(i=this.get_unformatted("</"+_+">",b),o.push(i),this.pos,this.tag_type="SINGLE"):"script"==_&&(-1==b.search("type")||-1<b.search("type")&&-1<b.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/))?e||(this.record_tag(_),this.tag_type="SCRIPT"):"style"==_&&(-1==b.search("type")||-1<b.search("type")&&-1<b.search("text/css"))?e||(this.record_tag(_),this.tag_type="STYLE"):"!"==_.charAt(0)?e||(this.tag_type="SINGLE",this.traverse_whitespace()):e||("/"==_.charAt(0)?(this.retrieve_tag(_.substring(1)),this.tag_type="END"):(this.record_tag(_),"html"!=_.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(o),this.Utils.in_array(_,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!=this.output[this.output.length-2]&&this.print_newline(!0,this.output))),e&&(this.pos=c,this.line_char_count=u),o.join("")},this.get_comment=function(e){var t="",n=">",r=!1;this.pos=e;var o=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&((t+=o)[t.length-1]!=n[n.length-1]||-1==t.indexOf(n));)!r&&t.length<10&&(0===t.indexOf("<![if")?(n="<![endif]>",r=!0):0===t.indexOf("<![cdata[")?(n="]]>",r=!0):0===t.indexOf("<![")?(n="]>",r=!0):0===t.indexOf("\x3c!--")?(n="--\x3e",r=!0):0===t.indexOf("{{!")?(n="}}",r=!0):0===t.indexOf("<?")?(n="?>",r=!0):0===t.indexOf("<%")&&(n="%>",r=!0)),o=this.input.charAt(this.pos),this.pos++;return t},this.get_unformatted=function(e,t){if(t&&-1!=t.toLowerCase().indexOf(e))return"";var n="",r="",o=0,i=!0;do{if(this.pos>=this.input.length)return r;if(n=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(n,this.Utils.whitespace)){if(!i){this.line_char_count--;continue}if("\n"==n||"\r"==n){r+="\n",this.line_char_count=0;continue}}r+=n,this.line_char_count++,i=!0,h&&"{"==n&&r.length&&"{"==r[r.length-2]&&(o=(r+=this.get_unformatted("}}")).length)}while(-1==r.toLowerCase().indexOf(e,o));return r},this.get_token=function(){var e;if("TK_TAG_SCRIPT"==this.last_token||"TK_TAG_STYLE"==this.last_token){var t=this.last_token.substr(7);return"string"!=typeof(e=this.get_contents_to(t))?e:[e,"TK_"+t]}return"CONTENT"==this.current_mode?"string"!=typeof(e=this.get_content())?e:[e,"TK_CONTENT"]:"TAG"==this.current_mode?"string"!=typeof(e=this.get_tag())?e:[e,"TK_TAG_"+this.tag_type]:void 0},this.get_full_indent=function(e){return(e=this.indent_level+e||0)<1?"":new Array(e+1).join(this.indent_string)},this.is_unformatted=function(e,t){if(!this.Utils.in_array(e,t))return!1;if("a"!=e.toLowerCase()||!this.Utils.in_array("a",t))return!0;var n=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!(n&&!this.Utils.in_array(n,t))},this.printer=function(e,t,r,o,i){this.input=e||"",this.output=[],this.indent_character=t,this.indent_string="",this.indent_size=r,this.brace_style=i,this.indent_level=0,this.wrap_line_length=o;for(var a=this.line_char_count=0;a<this.indent_size;a++)this.indent_string+=this.indent_character;this.print_newline=function(e,t){this.line_char_count=0,t&&t.length&&(e||"\n"!=t[t.length-1])&&("\n"!=t[t.length-1]&&(t[t.length-1]=n(t[t.length-1])),t.push("\n"))},this.print_indentation=function(e){for(var t=0;t<this.indent_level;t++)e.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(e){this.is_whitespace(e)&&!this.output.length||((e||""!==e)&&this.output.length&&"\n"==this.output[this.output.length-1]&&(this.print_indentation(this.output),e=e.replace(/^\s+/g,"")),this.print_token_raw(e))},this.print_token_raw=function(e){0<this.newlines&&(e=n(e)),e&&""!==e&&(1<e.length&&"\n"==e[e.length-1]?(this.output.push(e.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(e));for(var t=0;t<this.newlines;t++)this.print_newline(0<t,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){0<this.indent_level&&this.indent_level--}},this}).printer(e,s,a,c,u);;){var b=r.get_token();if(r.token_text=b[0],r.token_type=b[1],"TK_EOF"==r.token_type)break;switch(r.token_type){case"TK_TAG_START":r.print_newline(!1,r.output),r.print_token(r.token_text),r.indent_content&&(r.indent(),r.indent_content=!1),r.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":r.print_newline(!1,r.output),r.print_token(r.token_text),r.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"==r.last_token&&""===r.last_text){var _=r.token_text.match(/\w+/)[0],w=null;r.output.length&&(w=r.output[r.output.length-1].match(/(?:<|{{#)\/?\s*(\w+)/)),(null==w||w[1]!=_&&!r.Utils.in_array(w[1],f))&&r.print_newline(!1,r.output)}r.print_token(r.token_text),r.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var E=r.token_text.match(/^\s*<([a-z-]+)/i);E&&r.Utils.in_array(E[1],f)||r.print_newline(!1,r.output),r.print_token(r.token_text),r.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":r.print_token(r.token_text),r.indent_content&&(r.indent(),r.indent_content=!1),r.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":case"TK_CONTENT":r.print_token(r.token_text),r.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==r.token_text){r.print_newline(!1,r.output);var x,k=r.token_text,S=1;"TK_SCRIPT"==r.token_type?x=l:"TK_STYLE"==r.token_type&&(x=i),"keep"==t.indent_scripts?S=0:"separate"==t.indent_scripts&&(S=-r.indent_level);var T=r.get_full_indent(S);if(x)k=x(k.replace(/^\s*/,T),t);else{var C=k.match(/^\s*/)[0].match(/[^\n\r]*$/)[0].split(r.indent_string).length-1,O=r.get_full_indent(S-C);k=k.replace(/^\s*/,T).replace(/\r\n|\r|\n/g,"\n"+O).replace(/\s+$/,"")}k&&(r.print_token_raw(k),r.print_newline(!0,r.output))}r.current_mode="TAG";break;default:""!==r.token_text&&r.print_token(r.token_text)}r.last_token=r.token_type,r.last_text=r.token_text}var j=r.output.join("").replace(/[\r\n\t ]+$/,"");return g&&(j+="\n"),j}}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:"\t",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),e.FE.PLUGINS.codeView=function(t){var n,r;function o(){return t.$box.hasClass("fr-code-view")}function i(){return r?r.getValue():n.val()}function a(){o()&&(r&&r.setSize(null,t.opts.height?t.opts.height:"auto"),t.opts.heightMin||t.opts.height?t.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",t.opts.heightMin||t.opts.height):t.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}var s,l=!1;function c(){o()&&t.events.trigger("blur")}function u(){o()&&l&&t.events.trigger("focus")}function f(p){void 0===p&&(p=!o());var h,m,v=t.$tb.find('.fr-command[data-cmd="html"]');p?(t.popups.hideAll(),function(p){n||(function(){n=e('<textarea class="fr-code" tabIndex="-1">'),t.$wp.append(n),n.attr("dir",t.opts.direction),t.$box.hasClass("fr-basic")||(s=e('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'+(t.helpers.isMobile()?"":" fr-desktop")+'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>'),t.$box.append(s),t.events.bindClick(t.$box,"a.html-switch",function(){t.events.trigger("commands.before",["html"]),f(!1),t.events.trigger("commands.after",["html"])}));var r=function(){return!o()};t.events.on("buttons.refresh",r),t.events.on("copy",r,!0),t.events.on("cut",r,!0),t.events.on("paste",r,!0),t.events.on("destroy",d,!0),t.events.on("html.set",function(){o()&&f(!0)}),t.events.on("codeView.update",a),t.events.on("form.submit",function(){o()&&(t.html.set(i()),t.events.trigger("contentChanged",[],!0))},!0)}(),!r&&t.opts.codeMirror?((r=t.opts.codeMirror.fromTextArea(n.get(0),t.opts.codeMirrorOptions)).on("blur",c),r.on("focus",u)):(t.events.$on(n,"keydown keyup change input",function(){t.opts.height?this.removeAttribute("rows"):(this.rows=1,0===this.value.length?this.style.height="auto":this.style.height=this.scrollHeight+"px")}),t.events.$on(n,"blur",c),t.events.$on(n,"focus",u))),t.undo.saveStep(),t.html.cleanEmptyTags(),t.html.cleanWhiteTags(!0),t.core.hasFocus()&&(t.core.isEmpty()||(t.selection.save(),t.$el.find('.fr-marker[data-type="true"]:first').replaceWith('<span class="fr-tmp fr-sm">F</span>'),t.$el.find('.fr-marker[data-type="false"]:last').replaceWith('<span class="fr-tmp fr-em">F</span>')));var h=t.html.get(!1,!0);t.$el.find("span.fr-tmp").remove(),t.$box.toggleClass("fr-code-view",!0);var m,v,g=!1;if(t.core.hasFocus()&&(g=!0,t.events.disableBlur(),t.$el.blur()),h=(h=h.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM")).replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),t.codeBeautifier&&(h=t.codeBeautifier.run(h,t.opts.codeBeautifierOptions)),r){m=h.indexOf("FROALA-SM"),(v=h.indexOf("FROALA-EM"))<m?m=v:v-=9;var y=(h=h.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).substring(0,m).length-h.substring(0,m).replace(/\n/g,"").length,b=h.substring(0,v).length-h.substring(0,v).replace(/\n/g,"").length;m=h.substring(0,m).length-h.substring(0,h.substring(0,m).lastIndexOf("\n")+1).length,v=h.substring(0,v).length-h.substring(0,h.substring(0,v).lastIndexOf("\n")+1).length,r.setSize(null,t.opts.height?t.opts.height:"auto"),t.opts.heightMin&&t.$box.find(".CodeMirror-scroll").css("min-height",t.opts.heightMin),r.setValue(h),l=!g,r.focus(),l=!0,r.setSelection({line:y,ch:m},{line:b,ch:v}),r.refresh(),r.clearHistory()}else{m=h.indexOf("FROALA-SM"),v=h.indexOf("FROALA-EM")-9,t.opts.heightMin&&n.css("min-height",t.opts.heightMin),t.opts.height&&n.css("height",t.opts.height),n.val(h.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change");var _=e(t.o_doc).scrollTop();l=!g,n.focus(),l=!0,n.get(0).setSelectionRange(m,v),e(t.o_doc).scrollTop(_)}t.$tb.find(" > .fr-command, > .fr-btn-wrap > .fr-command").not(p).filter(function(){return t.opts.codeViewKeepActiveButtons.indexOf(e(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),p.addClass("fr-active").attr("aria-pressed",!0),!t.helpers.isMobile()&&t.opts.toolbarInline&&t.toolbar.hide()}(v)):(t.$box.toggleClass("fr-code-view",!1),h=v,m=i(),t.html.set(m),t.$el.blur(),t.$tb.find(" > .fr-command, > .fr-btn-wrap > .fr-command").not(h).removeClass("fr-disabled").attr("aria-disabled",!1),h.removeClass("fr-active").attr("aria-pressed",!1),t.selection.setAtStart(t.el),t.selection.restore(),t.placeholder.refresh(),t.undo.saveStep())}function d(){o()&&f(!1),r&&r.toTextArea(),n.val("").removeData().remove(),n=null,s&&(s.remove(),s=null)}return{_init:function(){if(t.events.on("focus",function(){var n;t.opts.toolbarContainer&&(n=t.$tb.find('.fr-command[data-cmd="html"]'),o()?(t.$tb.find(" > .fr-command").not(n).filter(function(){return t.opts.codeViewKeepActiveButtons.indexOf(e(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!1),n.addClass("fr-active").attr("aria-pressed",!1)):(t.$tb.find(" > .fr-command").not(n).removeClass("fr-disabled").attr("aria-disabled",!1),n.removeClass("fr-active").attr("aria-pressed",!1)))}),!t.$wp)return!1},toggle:f,isActive:o,get:i}},e.FE.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),e.FE.DefineIcon("html",{NAME:"code"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"colors.picker":"[_BUTTONS_][_TEXT_COLORS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),e.extend(e.FE.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsDefaultTab:"text",colorsButtons:["colorsBack","|","-"]});var t=["text","background"];e.FE.PLUGINS.colors=function(n){function r(){n.popups.hide("colors.picker")}function o(e){for(var t="text"==e?n.opts.colorsText:n.opts.colorsBackground,r='<div class="fr-color-set fr-'+e+"-color"+(n.opts.colorsDefaultTab==e||"text"!=n.opts.colorsDefaultTab&&"background"!=n.opts.colorsDefaultTab&&"text"==e?" fr-selected-set":"")+'">',o=0;o<t.length;o++)0!==o&&o%n.opts.colorsStep==0&&(r+="<br>"),"REMOVE"!=t[o]?r+='<span class="fr-command fr-select-color" style="background: '+t[o]+';" tabIndex="-1" aria-selected="false" role="button" data-cmd="'+e+'Color" data-param1="'+t[o]+'"><span class="fr-sr-only">'+n.language.translate("Color")+" "+t[o]+"&nbsp;&nbsp;&nbsp;</span></span>":r+='<span class="fr-command fr-select-color" data-cmd="'+e+'Color" tabIndex="-1" role="button" data-param1="REMOVE" title="'+n.language.translate("Clear Formatting")+'">'+n.icon.create("remove")+'<span class="fr-sr-only">'+n.language.translate("Clear Formatting")+"</span></span>";return r+"</div>"}function i(e){var t=n.popups.get("colors.picker"),r=t.find(".fr-"+e+"-color .fr-active-item").attr("data-param1"),o=t.find(".fr-color-hex-layer input"),i=t.find('.fr-colors-tab[data-param1="'+e+'"]');o.length&&i.hasClass("fr-selected-tab")&&o.val(r).trigger("change")}function a(e){"REMOVE"!=e?n.format.applyStyle("background-color",n.helpers.HEXtoRGB(e)):n.format.removeStyle("background-color"),r()}function s(e){"REMOVE"!=e?n.format.applyStyle("color",n.helpers.HEXtoRGB(e)):n.format.removeStyle("color"),r()}return{showColorsPopup:function(){var r=n.$tb.find('.fr-command[data-cmd="color"]'),a=n.popups.get("colors.picker");if(a||(a=function(){var t,r='<div class="fr-buttons fr-colors-buttons">';n.opts.toolbarInline&&0<n.opts.colorsButtons.length&&(r+=n.button.buildList(n.opts.colorsButtons)),r+=(t='<div class="fr-colors-tabs fr-group">',t+='<span class="fr-colors-tab '+("background"==n.opts.colorsDefaultTab?"":"fr-selected-tab ")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"!=n.opts.colorsDefaultTab)+'" data-param1="text" data-cmd="colorChangeSet" title="'+n.language.translate("Text")+'">'+n.language.translate("Text")+"</span>",(t+='<span class="fr-colors-tab '+("background"==n.opts.colorsDefaultTab?"fr-selected-tab":"")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==n.opts.colorsDefaultTab)+'" data-param1="background" data-cmd="colorChangeSet" title="'+n.language.translate("Background")+'">'+n.language.translate("Background")+"</span>")+"</div></div>");var i="";n.opts.colorsHEXInput&&(i='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer-'+n.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-color-hex-layer-text-'+n.id+'" type="text" placeholder="'+n.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="customColor" tabIndex="2" role="button">'+n.language.translate("OK")+"</button></div></div>");var a,s={buttons:r,text_colors:o("text"),background_colors:o("background"),custom_color:i},l=n.popups.create("colors.picker",s);return a=l,n.events.on("popup.tab",function(t){var r=e(t.currentTarget);if(!n.popups.isVisible("colors.picker")||!r.is("span"))return!0;var o=t.which,i=!0;if(e.FE.KEYCODE.TAB==o){var s=a.find(".fr-buttons");i=!n.accessibility.focusToolbar(s,!!t.shiftKey)}else if(e.FE.KEYCODE.ARROW_UP==o||e.FE.KEYCODE.ARROW_DOWN==o||e.FE.KEYCODE.ARROW_LEFT==o||e.FE.KEYCODE.ARROW_RIGHT==o){if(r.is("span.fr-select-color")){var l=r.parent().find("span.fr-select-color"),c=l.index(r),u=n.opts.colorsStep,f=Math.floor(l.length/u),d=c%u,p=Math.floor(c/u),h=p*u+d,m=f*u;e.FE.KEYCODE.ARROW_UP==o?h=((h-u)%m+m)%m:e.FE.KEYCODE.ARROW_DOWN==o?h=(h+u)%m:e.FE.KEYCODE.ARROW_LEFT==o?h=((h-1)%m+m)%m:e.FE.KEYCODE.ARROW_RIGHT==o&&(h=(h+1)%m);var v=e(l.get(h));n.events.disableBlur(),v.focus(),i=!1}}else e.FE.KEYCODE.ENTER==o&&(n.button.exec(r),i=!1);return!1===i&&(t.preventDefault(),t.stopPropagation()),i},!0),l}()),!a.hasClass("fr-active"))if(n.popups.setContainer("colors.picker",n.$tb),t.map(function(t){!function(t){var r,o=n.popups.get("colors.picker"),a=e(n.selection.element());r="background"==t?"background-color":"color";var s=o.find(".fr-"+t+"-color .fr-select-color");for(s.find(".fr-selected-color").remove(),s.removeClass("fr-active-item"),s.not('[data-param1="REMOVE"]').attr("aria-selected",!1);a.get(0)!=n.el;){if("transparent"!=a.css(r)&&"rgba(0, 0, 0, 0)"!=a.css(r)){var l=o.find(".fr-"+t+'-color .fr-select-color[data-param1="'+n.helpers.RGBToHex(a.css(r))+'"]');l.append('<span class="fr-selected-color" aria-hidden="true"></span>'),l.addClass("fr-active-item").attr("aria-selected",!0);break}a=a.parent()}i(t)}(t)}),r.is(":visible")){var s=r.offset().left+r.outerWidth()/2,l=r.offset().top+(n.opts.toolbarBottom?10:r.outerHeight()-10);n.popups.show("colors.picker",s,l,r.outerHeight())}else n.position.forSelection(a),n.popups.show("colors.picker")},hideColorsPopup:r,changeSet:function(e,t){e.hasClass("fr-selected-tab")||(e.siblings().removeClass("fr-selected-tab").attr("aria-pressed",!1),e.addClass("fr-selected-tab").attr("aria-pressed",!0),e.parents(".fr-popup").find(".fr-color-set").removeClass("fr-selected-set"),e.parents(".fr-popup").find(".fr-color-set.fr-"+t+"-color").addClass("fr-selected-set"),i(t)),n.accessibility.focusPopup(e.parents(".fr-popup"))},background:a,customColor:function(){var e=n.popups.get("colors.picker"),t=e.find(".fr-color-hex-layer input");if(t.length){var r=t.val();"background"==e.find(".fr-selected-tab").attr("data-param1")?a(r):s(r)}},text:s,back:function(){n.popups.hide("colors.picker"),n.toolbar.showInline()}}},e.FE.DefineIcon("colors",{NAME:"tint"}),e.FE.RegisterCommand("color",{title:"Colors",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("colors.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("colors.picker")):this.colors.showColorsPopup()},plugin:"colors"}),e.FE.RegisterCommand("textColor",{undo:!0,callback:function(e,t){this.colors.text(t)}}),e.FE.RegisterCommand("backgroundColor",{undo:!0,callback:function(e,t){this.colors.background(t)}}),e.FE.RegisterCommand("colorChangeSet",{undo:!1,focus:!1,callback:function(e,t){var n=this.popups.get("colors.picker").find('.fr-command[data-cmd="'+e+'"][data-param1="'+t+'"]');this.colors.changeSet(n,t)}}),e.FE.DefineIcon("colorsBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),e.FE.RegisterCommand("customColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor()}}),e.FE.DefineIcon("remove",{NAME:"eraser"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{dragInline:!0}),e.FE.PLUGINS.draggable=function(t){function n(n){return!(!n.originalEvent||!n.originalEvent.target||n.originalEvent.target.nodeType!=Node.TEXT_NODE)||(n.target&&"A"==n.target.tagName&&1==n.target.childNodes.length&&"IMG"==n.target.childNodes[0].tagName&&(n.target=n.target.childNodes[0]),e(n.target).hasClass("fr-draggable")?(t.undo.canDo()||t.undo.saveStep(),t.opts.dragInline?t.$el.attr("contenteditable",!0):t.$el.attr("contenteditable",!1),t.opts.toolbarInline&&t.toolbar.hide(),e(n.target).addClass("fr-dragging"),t.browser.msie||t.browser.edge||t.selection.clear(),void n.originalEvent.dataTransfer.setData("text","Froala")):(t.browser.msie||n.preventDefault(),!1))}function r(e){return!(e&&("HTML"==e.tagName||"BODY"==e.tagName||t.node.isElement(e)))}function o(e,n,r){t.opts.iframe&&(e+=t.$iframe.offset().top,n+=t.$iframe.offset().left),u.offset().top!=e&&u.css("top",e),u.offset().left!=n&&u.css("left",n),u.width()!=r&&u.css("width",r)}function i(n){n.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline?function(){for(var t=null,n=0;n<e.FE.INSTANCES.length;n++)if((t=e.FE.INSTANCES[n].$el.find(".fr-dragging")).length)return t.get(0)}()||!t.browser.msie&&!t.browser.edge||n.preventDefault():(n.preventDefault(),function(n){var i=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset);if(!r(i)){for(var a=0,s=i;!r(s)&&s==i&&0<n.originalEvent.pageY-t.win.pageYOffset-a;)a++,s=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset-a);(!r(s)||u&&0===t.$el.find(s).length&&s!=u.get(0))&&(s=null);for(var l=0,c=i;!r(c)&&c==i&&n.originalEvent.pageY-t.win.pageYOffset+l<e(t.doc).height();)l++,c=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset+l);(!r(c)||u&&0===t.$el.find(c).length&&c!=u.get(0))&&(c=null),i=null==c&&s?s:c&&null==s?c:c&&s?a<l?s:c:null}if(!e(i).hasClass("fr-drag-helper"))if(i&&!t.node.isBlock(i)&&(i=t.node.blockParent(i)),i&&0<=["TD","TH","TR","THEAD","TBODY"].indexOf(i.tagName)&&(i=e(i).parents("table").get(0)),i&&0<=["LI"].indexOf(i.tagName)&&(i=e(i).parents("UL, OL").get(0)),i&&!e(i).hasClass("fr-drag-helper")){var f;u||(e.FE.$draggable_helper||(e.FE.$draggable_helper=e('<div class="fr-drag-helper"></div>')),u=e.FE.$draggable_helper,t.events.on("shared.destroy",function(){u.html("").removeData().remove(),u=null},!0)),f=n.originalEvent.pageY<e(i).offset().top+e(i).outerHeight()/2;var d=e(i),p=0;f||0!==d.next().length?(f||(d=d.next()),"before"==u.data("fr-position")&&d.is(u.data("fr-tag"))||(0<d.prev().length&&(p=parseFloat(d.prev().css("margin-bottom"))||0),p=Math.max(p,parseFloat(d.css("margin-top"))||0),o(d.offset().top-p/2-t.$box.offset().top,d.offset().left-t.win.pageXOffset-t.$box.offset().left,d.width()),u.data("fr-position","before"))):"after"==u.data("fr-position")&&d.is(u.data("fr-tag"))||(p=parseFloat(d.css("margin-bottom"))||0,o(d.offset().top+e(i).height()+p/2-t.$box.offset().top,d.offset().left-t.win.pageXOffset-t.$box.offset().left,d.width()),u.data("fr-position","after")),u.data("fr-tag",d),u.addClass("fr-visible"),u.appendTo(t.$box)}else u&&0<t.$box.find(u).length&&u.removeClass("fr-visible")}(n))}function a(e){e.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline||e.preventDefault()}function s(e){t.$el.attr("contenteditable",!0);var n=t.$el.find(".fr-dragging");u&&u.hasClass("fr-visible")&&t.$box.find(u).length?l(e):n.length&&(e.preventDefault(),e.stopPropagation()),u&&t.$box.find(u).length&&u.removeClass("fr-visible"),n.removeClass("fr-dragging")}function l(n){var r,o;"true"!==t.$el.attr("contenteditable")&&t.$el.attr("contenteditable",!0);for(var i=0;i<e.FE.INSTANCES.length;i++)if((r=e.FE.INSTANCES[i].$el.find(".fr-dragging")).length){o=e.FE.INSTANCES[i];break}if(r.length){if(n.preventDefault(),n.stopPropagation(),u&&u.hasClass("fr-visible")&&t.$box.find(u).length)u.data("fr-tag")[u.data("fr-position")]('<span class="fr-marker"></span>'),u.removeClass("fr-visible");else if(!1===t.markers.insertAtPoint(n.originalEvent))return!1;if(r.removeClass("fr-dragging"),!1===(r=t.events.chainTrigger("element.beforeDrop",r)))return!1;var a=r;if(r.parent().is("A")&&1==r.parent().get(0).childNodes.length&&(a=r.parent()),t.core.isEmpty()?t.events.focus():(t.$el.find(".fr-marker").replaceWith(e.FE.MARKERS),t.selection.restore()),o==t||t.undo.canDo()||t.undo.saveStep(),t.core.isEmpty())t.$el.html(a);else{var s=t.markers.insert();0===a.find(s).length?e(s).replaceWith(a):0===r.find(s).length&&e(s).replaceWith(r),r.after(e.FE.MARKERS),t.selection.restore()}return t.popups.hideAll(),t.selection.save(),t.$el.find(t.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(t.opts.htmlAllowedEmptyTags.join(",")).remove(),t.html.wrap(),t.html.fillEmptyBlocks(),t.selection.restore(),t.undo.saveStep(),t.opts.iframe&&t.size.syncIframe(),o!=t&&(o.popups.hideAll(),o.$el.find(o.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),o.html.wrap(),o.html.fillEmptyBlocks(),o.undo.saveStep(),o.events.trigger("element.dropped"),o.opts.iframe&&o.size.syncIframe()),t.events.trigger("element.dropped",[a]),!1}u&&u.removeClass("fr-visible"),t.undo.canDo()||t.undo.saveStep(),setTimeout(function(){t.undo.saveStep()},0)}function c(e){if(e&&"DIV"==e.tagName&&t.node.hasClass(e,"fr-drag-helper"))e.parentNode.removeChild(e);else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var n=e.querySelectorAll("div.fr-drag-helper"),r=0;r<n.length;r++)n[r].parentNode.removeChild(n[r])}var u;return{_init:function(){t.opts.enter==e.FE.ENTER_BR&&(t.opts.dragInline=!0),t.events.on("dragstart",n,!0),t.events.on("dragover",i,!0),t.events.on("dragenter",a,!0),t.events.on("document.dragend",s,!0),t.events.on("document.drop",s,!0),t.events.on("drop",l,!0),t.events.on("html.processGet",c)}}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{entities:"&quot;&#39;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&shy;&reg;&macr;&deg;&plusmn;&sup2;&sup3;&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;&OElig;&oelig;&Scaron;&scaron;&Yuml;&fnof;&circ;&tilde;&Alpha;&Beta;&Gamma;&Delta;&Epsilon;&Zeta;&Eta;&Theta;&Iota;&Kappa;&Lambda;&Mu;&Nu;&Xi;&Omicron;&Pi;&Rho;&Sigma;&Tau;&Upsilon;&Phi;&Chi;&Psi;&Omega;&alpha;&beta;&gamma;&delta;&epsilon;&zeta;&eta;&theta;&iota;&kappa;&lambda;&mu;&nu;&xi;&omicron;&pi;&rho;&sigmaf;&sigma;&tau;&upsilon;&phi;&chi;&psi;&omega;&thetasym;&upsih;&piv;&ensp;&emsp;&thinsp;&zwnj;&zwj;&lrm;&rlm;&ndash;&mdash;&lsquo;&rsquo;&sbquo;&ldquo;&rdquo;&bdquo;&dagger;&Dagger;&bull;&hellip;&permil;&prime;&Prime;&lsaquo;&rsaquo;&oline;&frasl;&euro;&image;&weierp;&real;&trade;&alefsym;&larr;&uarr;&rarr;&darr;&harr;&crarr;&lArr;&uArr;&rArr;&dArr;&hArr;&forall;&part;&exist;&empty;&nabla;&isin;&notin;&ni;&prod;&sum;&minus;&lowast;&radic;&prop;&infin;&ang;&and;&or;&cap;&cup;&int;&there4;&sim;&cong;&asymp;&ne;&equiv;&le;&ge;&sub;&sup;&nsub;&sube;&supe;&oplus;&otimes;&perp;&sdot;&lceil;&rceil;&lfloor;&rfloor;&lang;&rang;&loz;&spades;&clubs;&hearts;&diams;"}),e.FE.PLUGINS.entities=function(t){var n,r;function o(e){var t=e.textContent;if(t.match(n)){for(var o="",i=0;i<t.length;i++)r[t[i]]?o+=r[t[i]]:o+=t[i];e.textContent=o}}function i(e){if(e&&0<=["STYLE","SCRIPT","svg","IFRAME"].indexOf(e.tagName))return!0;for(var n=t.node.contents(e),r=0;r<n.length;r++)n[r].nodeType==Node.TEXT_NODE?o(n[r]):i(n[r]);e.nodeType==Node.TEXT_NODE&&o(e)}function a(e){return 0===e.length?"":t.clean.exec(e,i).replace(/\&amp;/g,"&")}return{_init:function(){t.opts.htmlSimpleAmpersand||(t.opts.entities=t.opts.entities+"&amp;");var o=e("<div>").html(t.opts.entities).text(),i=t.opts.entities.split(";");r={},n="";for(var s=0;s<o.length;s++){var l=o.charAt(s);r[l]=i[s]+";",n+="\\"+l+(s<o.length-1?"|":"")}n=new RegExp("("+n+")","g"),t.events.on("html.get",a,!0)}}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),e.FE.PLUGINS.fontSize=function(t){return{apply:function(e){t.format.applyStyle("font-size",e)},refreshOnShow:function(n,r){var o=e(t.selection.element()).css("font-size");"pt"===t.opts.fontSizeUnit&&(o=Math.round(72*parseFloat(o,10)/96)+"pt"),r.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),r.find('.fr-command[data-param1="'+o+'"]').addClass("fr-active").attr("aria-selected",!0);var i=r.find(".fr-dropdown-list"),a=r.find(".fr-active").parent();a.length?i.parent().scrollTop(a.offset().top-i.offset().top-(i.parent().outerHeight()/2-a.outerHeight()/2)):i.parent().scrollTop(0)},refresh:function(n){if(t.opts.fontSizeSelection){var r=t.helpers.getPX(e(t.selection.element()).css("font-size"));"pt"===t.opts.fontSizeUnit&&(r=Math.round(72*parseFloat(r,10)/96)+"pt"),n.find("> span").text(r)}}}},e.FE.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontSize,n=0;n<t.length;n++){var r=t[n];e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'+r+this.opts.fontSizeUnit+'" title="'+r+'">'+r+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),e.FE.DefineIcon("fontSize",{NAME:"text-height"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.FE.PLUGINS.fullscreen=function(t){var n,r,o,i;function a(){return t.$box.hasClass("fr-fullscreen")}function s(){if(t.helpers.isIOS()&&t.core.hasFocus())return t.$el.blur(),setTimeout(c,250),!1;n=t.helpers.scrollTop(),t.$box.toggleClass("fr-fullscreen"),e("body:first").toggleClass("fr-fullscreen"),t.helpers.isMobile()&&(t.$tb.data("parent",t.$tb.parent()),t.$tb.prependTo(t.$box),t.$tb.data("sticky-dummy")&&t.$tb.after(t.$tb.data("sticky-dummy"))),r=t.opts.height,o=t.opts.heightMax,i=t.opts.zIndex,t.position.refresh(),t.opts.height=t.o_win.innerHeight-(t.opts.toolbarInline?0:t.$tb.outerHeight()),t.opts.zIndex=2147483641,t.opts.heightMax=null,t.size.refresh(),t.opts.toolbarInline&&t.toolbar.showInline();for(var a=t.$box.parent();!a.is("body:first");)a.addClass("fr-fullscreen-wrapper"),a=a.parent();t.opts.toolbarContainer&&t.$box.prepend(t.$tb),t.events.trigger("charCounter.update"),t.events.trigger("codeView.update"),t.$win.trigger("scroll")}function l(){if(t.helpers.isIOS()&&t.core.hasFocus())return t.$el.blur(),setTimeout(c,250),!1;t.$box.toggleClass("fr-fullscreen"),e("body:first").toggleClass("fr-fullscreen"),t.$tb.prependTo(t.$tb.data("parent")),t.$tb.data("sticky-dummy")&&t.$tb.after(t.$tb.data("sticky-dummy")),t.opts.height=r,t.opts.heightMax=o,t.opts.zIndex=i,t.size.refresh(),e(t.o_win).scrollTop(n),t.opts.toolbarInline&&t.toolbar.showInline(),t.events.trigger("charCounter.update"),t.opts.toolbarSticky&&t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset).data("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset).data("top",t.opts.toolbarStickyOffset));for(var a=t.$box.parent();!a.is("body:first");)a.removeClass("fr-fullscreen-wrapper"),a=a.parent();t.opts.toolbarContainer&&e(t.opts.toolbarContainer).append(t.$tb),e(t.o_win).trigger("scroll"),t.events.trigger("codeView.update")}function c(){a()?l():s(),u(t.$tb.find('.fr-command[data-cmd="fullscreen"]'))}function u(e){var n=a();e.toggleClass("fr-active",n).attr("aria-pressed",n),e.find("> *:not(.fr-sr-only)").replaceWith(n?t.icon.create("fullscreenCompress"):t.icon.create("fullscreen"))}return{_init:function(){if(!t.$wp)return!1;t.events.$on(e(t.o_win),"resize",function(){a()&&(l(),s())}),t.events.on("toolbar.hide",function(){if(a()&&t.helpers.isMobile())return!1}),t.events.on("position.refresh",function(){if(t.helpers.isIOS())return!a()}),t.events.on("destroy",function(){a()&&l()},!0)},toggle:c,refresh:u,isActive:a}},e.FE.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(e){this.fullscreen.refresh(e)},plugin:"fullscreen"}),e.FE.DefineIcon("fullscreen",{NAME:"expand"}),e.FE.DefineIcon("fullscreenCompress",{NAME:"compress"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),e.FE.PLUGINS.inlineStyle=function(t){return{apply:function(n){if(""!==t.selection.text())for(var r=n.split(";"),o=0;o<r.length;o++){var i=r[o].split(":");r[o].length&&2==i.length&&t.format.applyStyle(i[0].trim(),i[1].trim())}else t.html.insert('<span style="'+n+'">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>")}}},e.FE.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.inlineStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><span style="'+t[n]+(-1===t[n].indexOf("display:block;")?" display:block;":"")+'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="'+t[n]+'" title="'+this.language.translate(n)+'">'+this.language.translate(n)+"</a></span></li>");return e+="</ul>"},title:"Inline Style",callback:function(e,t){this.inlineStyle.apply(t)},plugin:"inlineStyle"}),e.FE.DefineIcon("inlineStyle",{NAME:"paint-brush"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),e.FE.PLUGINS.lineBreaker=function(t){var n,r,o;function i(r,o){var i,a,s,l,c,u,f,d;if(null==r)c=(l=o.parent()).offset().top,i=(f=o.offset().top)-Math.min((f-c)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),a=l.offset().left;else if(null==o)(u=(l=r.parent()).offset().top+l.outerHeight())<(d=r.offset().top+r.outerHeight())&&(u=(l=e(l).parent()).offset().top+l.outerHeight()),i=d+Math.min(Math.abs(u-d)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),a=l.offset().left;else{l=r.parent();var p=r.offset().top+r.height(),h=o.offset().top;if(h<p)return!1;i=(p+h)/2,s=l.outerWidth(),a=l.offset().left}t.opts.iframe&&(a+=t.$iframe.offset().left-t.helpers.scrollLeft(),i+=t.$iframe.offset().top-t.helpers.scrollTop()),t.$box.append(n),n.css("top",i-t.win.pageYOffset),n.css("left",a-t.win.pageXOffset),n.css("width",s),n.data("tag1",r),n.data("tag2",o),n.addClass("fr-visible").data("instance",t)}function a(n){if(n){var r=e(n);if(0===t.$el.find(r).length)return null;if(n.nodeType!=Node.TEXT_NODE&&r.is(t.opts.lineBreakerTags.join(",")))return r;if(0<r.parents(t.opts.lineBreakerTags.join(",")).length)return n=r.parents(t.opts.lineBreakerTags.join(",")).get(0),0!==t.$el.find(n).length&&e(n).is(t.opts.lineBreakerTags.join(","))?e(n):null}return null}function s(n,r){var o=t.doc.elementFromPoint(n,r);return o&&!e(o).closest(".fr-line-breaker").length&&!t.node.isElement(o)&&o!=t.$wp.get(0)&&function(e){if(void 0!==e.inFroalaWrapper)return e.inFroalaWrapper;for(var n=e;e.parentNode&&e.parentNode!==t.$wp.get(0);)e=e.parentNode;return n.inFroalaWrapper=e.parentNode==t.$wp.get(0),n.inFroalaWrapper}(o)?o:null}function l(e,n,r){for(var o=r,i=null;o<=t.opts.lineBreakerOffset&&!i;)(i=s(e,n-o))||(i=s(e,n+o)),o+=r;return i}function c(e,n,r){for(var o=null,i=100;!o&&e>t.$box.offset().left&&e<t.$box.offset().left+t.$box.outerWidth()&&0<i;)(o=s(e,n))||(o=l(e,n,5)),"left"==r?e-=t.opts.lineBreakerHorizontalOffset:e+=t.opts.lineBreakerHorizontalOffset,i-=t.opts.lineBreakerHorizontalOffset;return o}function u(e){var r=o=null,s=null,u=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset);u&&("HTML"==u.tagName||"BODY"==u.tagName||t.node.isElement(u)||0<=(u.getAttribute("class")||"").indexOf("fr-line-breaker"))?((s=l(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset,1))||(s=c(e.pageX-t.win.pageXOffset-t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"left")),s||(s=c(e.pageX-t.win.pageXOffset+t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"right")),r=a(s)):r=a(u),r?function(e,r){var o,s,l=e.offset().top,c=e.offset().top+e.outerHeight();if(Math.abs(c-r)<=t.opts.lineBreakerOffset||Math.abs(r-l)<=t.opts.lineBreakerOffset)if(Math.abs(c-r)<Math.abs(r-l)){for(var u=(s=e.get(0)).nextSibling;u&&u.nodeType==Node.TEXT_NODE&&0===u.textContent.length;)u=u.nextSibling;if(!u)return i(e,null);if(o=a(u))return i(e,o)}else{if(!(s=e.get(0)).previousSibling)return i(null,e);if(o=a(s.previousSibling))return i(o,e)}n.removeClass("fr-visible").removeData("instance")}(r,e.pageY):t.core.sameInstance(n)&&n.removeClass("fr-visible").removeData("instance")}function f(e){return!(n.hasClass("fr-visible")&&!t.core.sameInstance(n))&&(t.popups.areVisible()||t.el.querySelector(".fr-selected-cell")?(n.removeClass("fr-visible"),!0):void(!1!==r||t.edit.isDisabled()||(o&&clearTimeout(o),o=setTimeout(u,30,e))))}function d(){o&&clearTimeout(o),n&&n.hasClass("fr-visible")&&n.removeClass("fr-visible").removeData("instance")}function p(){r=!0,d()}function h(){r=!1}function m(r){r.preventDefault();var o=n.data("instance")||t;n.removeClass("fr-visible").removeData("instance");var i=n.data("tag1"),a=n.data("tag2"),s=t.html.defaultTag();null==i?s&&"TD"!=a.parent().get(0).tagName&&0===a.parents(s).length?a.before("<"+s+">"+e.FE.MARKERS+"<br></"+s+">"):a.before(e.FE.MARKERS+"<br>"):s&&"TD"!=i.parent().get(0).tagName&&0===i.parents(s).length?i.after("<"+s+">"+e.FE.MARKERS+"<br></"+s+">"):i.after(e.FE.MARKERS+"<br>"),o.selection.restore()}return{_init:function(){if(!t.$wp)return!1;t.shared.$line_breaker||(t.shared.$line_breaker=e('<div class="fr-line-breaker"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Break")+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="21" y="11" width="2" height="8"/><rect x="14" y="17" width="7" height="2"/><path d="M14.000,14.000 L14.000,22.013 L9.000,18.031 L14.000,14.000 Z"/></svg></a></div>')),n=t.shared.$line_breaker,t.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null},!0),t.events.on("destroy",function(){n.removeData("instance").removeClass("fr-visible").appendTo("body:first"),clearTimeout(o)},!0),t.events.$on(n,"mousemove",function(e){e.stopPropagation()},!0),t.events.bindClick(n,"a",m),r=!1,t.events.$on(t.$win,"mousemove",f),t.events.$on(e(t.win),"scroll",d),t.events.on("popups.show.table.edit",d),t.events.on("commands.after",d),t.events.$on(e(t.win),"mousedown",p),t.events.$on(e(t.win),"mouseup",h)}}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),e.extend(e.FE.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),e.FE.PLUGINS.link=function(t){function n(){var n=t.image?t.image.get():null;if(!n&&t.$wp){var r=t.selection.ranges(0).commonAncestorContainer;try{r&&(r.contains&&r.contains(t.el)||!t.el.contains(r)||t.el==r)&&(r=null)}catch(e){r=null}if(r&&"A"===r.tagName)return r;var o=t.selection.element(),i=t.selection.endElement();"A"==o.tagName||t.node.isElement(o)||(o=e(o).parentsUntil(t.$el,"a:first").get(0)),"A"==i.tagName||t.node.isElement(i)||(i=e(i).parentsUntil(t.$el,"a:first").get(0));try{i&&(i.contains&&i.contains(t.el)||!t.el.contains(i)||t.el==i)&&(i=null)}catch(e){i=null}try{o&&(o.contains&&o.contains(t.el)||!t.el.contains(o)||t.el==o)&&(o=null)}catch(e){o=null}return i&&i==o&&"A"==i.tagName?(t.browser.msie||t.helpers.isMobile())&&(t.selection.info(o).atEnd||t.selection.info(o).atStart)?null:o:null}return"A"==t.el.tagName?t.el:n&&n.get(0).parentNode&&"A"==n.get(0).parentNode.tagName?n.get(0).parentNode:void 0}function r(){var e,n,r,o,i=t.image?t.image.get():null,a=[];if(i)"A"==i.get(0).parentNode.tagName&&a.push(i.get(0).parentNode);else if(t.win.getSelection){var s=t.win.getSelection();if(s.getRangeAt&&s.rangeCount){o=t.doc.createRange();for(var l=0;l<s.rangeCount;++l)if((n=(e=s.getRangeAt(l)).commonAncestorContainer)&&1!=n.nodeType&&(n=n.parentNode),n&&"a"==n.nodeName.toLowerCase())a.push(n);else{r=n.getElementsByTagName("a");for(var c=0;c<r.length;++c)o.selectNodeContents(r[c]),o.compareBoundaryPoints(e.END_TO_START,e)<1&&-1<o.compareBoundaryPoints(e.START_TO_END,e)&&a.push(r[c])}}}else if(t.doc.selection&&"Control"!=t.doc.selection.type)if("a"==(n=(e=t.doc.selection.createRange()).parentElement()).nodeName.toLowerCase())a.push(n);else{r=n.getElementsByTagName("a"),o=t.doc.body.createTextRange();for(var u=0;u<r.length;++u)o.moveToElementText(r[u]),-1<o.compareEndPoints("StartToEnd",e)&&o.compareEndPoints("EndToStart",e)<1&&a.push(r[u])}return a}function o(r){if(t.core.hasFocus()){if(i(),r&&"keyup"===r.type&&(r.altKey||r.which==e.FE.KEYCODE.ALT))return!0;setTimeout(function(){if(!r||r&&(1==r.which||"mouseup"!=r.type)){var o=n(),i=t.image?t.image.get():null;if(o&&!i){if(t.image){var a=t.node.contents(o);if(1==a.length&&"IMG"==a[0].tagName){var s=t.selection.ranges(0);return 0===s.startOffset&&0===s.endOffset?e(o).before(e.FE.MARKERS):e(o).after(e.FE.MARKERS),t.selection.restore(),!1}}r&&r.stopPropagation(),function r(o){var i=t.popups.get("link.edit");i||(i=function(){var e="";1<=t.opts.linkEditButtons.length&&("A"==t.el.tagName&&0<=t.opts.linkEditButtons.indexOf("linkRemove")&&t.opts.linkEditButtons.splice(t.opts.linkEditButtons.indexOf("linkRemove"),1),e='<div class="fr-buttons">'+t.button.buildList(t.opts.linkEditButtons)+"</div>");var o={buttons:e},i=t.popups.create("link.edit",o);return t.$wp&&t.events.$on(t.$wp,"scroll.link-edit",function(){n()&&t.popups.isVisible("link.edit")&&r(n())}),i}());var a=e(o);t.popups.isVisible("link.edit")||t.popups.refresh("link.edit"),t.popups.setContainer("link.edit",t.$sc);var s=a.offset().left+e(o).outerWidth()/2,l=a.offset().top+a.outerHeight();t.popups.show("link.edit",s,l,a.outerHeight())}(o)}}},t.helpers.isIOS()?100:0)}}function i(){t.popups.hide("link.edit")}function a(){}function s(){var r=t.popups.get("link.insert"),o=n();if(o){var i,a,s=e(o),l=r.find('input.fr-link-attr[type="text"]'),c=r.find('input.fr-link-attr[type="checkbox"]');for(i=0;i<l.length;i++)(a=e(l[i])).val(s.attr(a.attr("name")||""));for(c.prop("checked",!1),i=0;i<c.length;i++)a=e(c[i]),s.attr(a.attr("name"))==a.data("checked")&&a.prop("checked",!0);r.find('input.fr-link-attr[type="text"][name="text"]').val(s.text())}else r.find('input.fr-link-attr[type="text"]').val(""),r.find('input.fr-link-attr[type="checkbox"]').prop("checked",!1),r.find('input.fr-link-attr[type="text"][name="text"]').val(t.selection.text());r.find("input.fr-link-attr").trigger("change"),t.image&&t.image.get()?r.find('.fr-link-attr[name="text"]').parent().hide():r.find('.fr-link-attr[name="text"]').parent().show()}function l(e){if(e)return t.popups.onRefresh("link.insert",s),t.popups.onHide("link.insert",a),!0;var n="";1<=t.opts.linkInsertButtons.length&&(n='<div class="fr-buttons">'+t.button.buildList(t.opts.linkInsertButtons)+"</div>");var r="",o=0;for(var i in r='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'+t.id+'">',r+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'+t.id+'" name="href" type="text" class="fr-link-attr" placeholder="'+t.language.translate("URL")+'" tabIndex="'+ ++o+'"></div>',t.opts.linkText&&(r+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'+t.id+'" name="text" type="text" class="fr-link-attr" placeholder="'+t.language.translate("Text")+'" tabIndex="'+ ++o+'"></div>'),t.opts.linkAttributes)if(t.opts.linkAttributes.hasOwnProperty(i)){var l=t.opts.linkAttributes[i];r+='<div class="fr-input-line"><input name="'+i+'" type="text" class="fr-link-attr" placeholder="'+t.language.translate(l)+'" tabIndex="'+ ++o+'"></div>'}t.opts.linkAlwaysBlank||(r+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'+t.id+'" tabIndex="'+ ++o+'"><span><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg></span></span><label for="fr-link-target-'+t.id+'">'+t.language.translate("Open in new tab")+"</label></div>");var c={buttons:n,input_layer:r+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'+ ++o+'" type="button">'+t.language.translate("Insert")+"</button></div></div>"},d=t.popups.create("link.insert",c);return t.$wp&&t.events.$on(t.$wp,"scroll.link-insert",function(){(t.image?t.image.get():null)&&t.popups.isVisible("link.insert")&&f(),t.popups.isVisible("link.insert")&&u()}),d}function c(i,a,s){if(void 0===s&&(s={}),!1===t.events.trigger("link.beforeInsert",[i,a,s]))return!1;var l=t.image?t.image.get():null;l||"A"==t.el.tagName?"A"==t.el.tagName&&t.$el.focus():(t.selection.restore(),t.popups.hide("link.insert"));var c=i;if(t.opts.linkConvertEmailAddress&&t.helpers.isEmail(i)&&!/^mailto:.*/i.test(i)&&(i="mailto:"+i),""===t.opts.linkAutoPrefix||new RegExp("^("+e.FE.LinkProtocols.join("|")+"):.","i").test(i)||/^data:image.*/i.test(i)||/^(https?:|ftps?:|file:|)\/\//i.test(i)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(i)||["/","{","[","#","(","."].indexOf((i||"")[0])<0&&(i=t.opts.linkAutoPrefix+t.helpers.sanitizeURL(i)),i=t.helpers.sanitizeURL(i),t.opts.linkAlwaysBlank&&(s.target="_blank"),t.opts.linkAlwaysNoFollow&&(s.rel="nofollow"),t.helpers.isEmail(c)&&(s.target=null,s.rel=null),"_blank"==s.target?(t.opts.linkNoOpener&&(s.rel?s.rel+=" noopener":s.rel="noopener"),t.opts.linkNoReferrer&&(s.rel?s.rel+=" noreferrer":s.rel="noreferrer")):null==s.target&&(s.rel?s.rel=s.rel.replace(/noopener/,"").replace(/noreferrer/,""):s.rel=null),a=a||"",i===t.opts.linkAutoPrefix)return t.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),t.events.trigger("link.bad",[c]),!1;var u,f=n();if(f){if((u=e(f)).attr("href",i),0<a.length&&u.text()!=a&&!l){for(var d=u.get(0);1===d.childNodes.length&&d.childNodes[0].nodeType==Node.ELEMENT_NODE;)d=d.childNodes[0];e(d).text(a)}l||u.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),u.attr(s),l||t.selection.restore()}else{l?(l.wrap('<a href="'+i+'"></a>'),t.image.hasCaption()&&l.parent().append(l.parents(".fr-img-caption").find(".fr-inner"))):(t.format.remove("a"),t.selection.isCollapsed()?(a=0===a.length?c:a,t.html.insert('<a href="'+i+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;").replace(/</,"&lt;",">","&gt;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):0<a.length&&a!=t.selection.text().replace(/\n/g,"")?(t.selection.remove(),t.html.insert('<a href="'+i+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):(function(){if(!t.selection.isCollapsed()){t.selection.save();for(var n=t.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();n.length;){var r=e(n.pop());r.removeClass("fr-unprocessed");var o=t.node.deepestParent(r.get(0));if(o){for(var i=r.get(0),a="",s="";i=i.parentNode,t.node.isBlock(i)||(a+=t.node.closeTagString(i),s=t.node.openTagString(i)+s),i!=o;);var l=t.node.openTagString(r.get(0))+r.html()+t.node.closeTagString(r.get(0));r.replaceWith('<span id="fr-break"></span>');var c=o.outerHTML;c=(c=c.replace(/<span id="fr-break"><\/span>/g,a+l+s)).replace(s+a,""),o.outerHTML=c}n=t.$el.find(".fr-marker.fr-unprocessed").toArray()}t.html.cleanEmptyTags(),t.selection.restore()}}(),t.format.apply("a",{href:i})));for(var p=r(),h=0;h<p.length;h++)(u=e(p[h])).attr(s),u.removeAttr("_moz_dirty");1==p.length&&t.$wp&&!l&&(e(p[0]).prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),t.selection.restore())}if(l){var m=t.popups.get("link.insert");m&&m.find("input:focus").blur(),t.image.edit(l)}else o()}function u(){i();var r=n();if(r){var o=t.popups.get("link.insert");o||(o=l()),t.popups.isVisible("link.insert")||(t.popups.refresh("link.insert"),t.selection.save(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur())),t.popups.setContainer("link.insert",t.$sc);var a=(t.image?t.image.get():null)||e(r),s=a.offset().left+a.outerWidth()/2,c=a.offset().top+a.outerHeight();t.popups.show("link.insert",s,c,a.outerHeight())}}function f(){var e=t.image?t.image.getEl():null;if(e){var n=t.popups.get("link.insert");t.image.hasCaption()&&(e=e.find(".fr-img-wrap")),n||(n=l()),s(),t.popups.setContainer("link.insert",t.$sc);var r=e.offset().left+e.outerWidth()/2,o=e.offset().top+e.outerHeight();t.popups.show("link.insert",r,o,e.outerHeight())}}return{_init:function(){t.events.on("keyup",function(t){t.which!=e.FE.KEYCODE.ESC&&o(t)}),t.events.on("window.mouseup",o),t.events.$on(t.$el,"click","a",function(e){t.edit.isDisabled()&&e.preventDefault()}),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",o),l(!0),"A"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.on("toolbar.esc",function(){if(t.popups.isVisible("link.edit"))return t.events.disableBlur(),t.events.focus(),!1},!0)},remove:function(){var r=n(),o=t.image?t.image.get():null;if(!1===t.events.trigger("link.beforeRemove",[r]))return!1;o&&r?(o.unwrap(),t.image.edit(o)):r&&(t.selection.save(),e(r).replaceWith(e(r).html()),t.selection.restore(),i())},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertLink"]'),n=t.popups.get("link.insert");if(n||(n=l()),!n.hasClass("fr-active"))if(t.popups.refresh("link.insert"),t.popups.setContainer("link.insert",t.$tb||t.$sc),e.is(":visible")){var r=e.offset().left+e.outerWidth()/2,o=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("link.insert",r,o,e.outerHeight())}else t.position.forSelection(n),t.popups.show("link.insert")},usePredefined:function(n){var r,o,i=t.opts.linkList[n],a=t.popups.get("link.insert"),s=a.find('input.fr-link-attr[type="text"]'),l=a.find('input.fr-link-attr[type="checkbox"]');for(o=0;o<s.length;o++)i[(r=e(s[o])).attr("name")]?r.val(i[r.attr("name")]):"text"!=r.attr("name")&&r.val("");for(o=0;o<l.length;o++)(r=e(l[o])).prop("checked",r.data("checked")==i[r.attr("name")]);t.accessibility.focusPopup(a)},insertCallback:function(){var n,r,o=t.popups.get("link.insert"),i=o.find('input.fr-link-attr[type="text"]'),a=o.find('input.fr-link-attr[type="checkbox"]'),s=(i.filter('[name="href"]').val()||"").trim(),l=i.filter('[name="text"]').val(),u={};for(r=0;r<i.length;r++)n=e(i[r]),["href","text"].indexOf(n.attr("name"))<0&&(u[n.attr("name")]=n.val());for(r=0;r<a.length;r++)(n=e(a[r])).is(":checked")?u[n.attr("name")]=n.data("checked"):u[n.attr("name")]=n.data("unchecked")||null;var f=t.helpers.scrollTop();c(s,l,u),e(t.o_win).scrollTop(f)},insert:c,update:u,get:n,allSelected:r,back:function(){t.image&&t.image.get()?t.image.back():(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),n()&&t.$wp?(t.selection.restore(),i(),o()):"A"==t.el.tagName?(t.$el.focus(),o()):(t.popups.hide("link.insert"),t.toolbar.showInline()))},imageLink:f,applyStyle:function(r,i,a){void 0===a&&(a=t.opts.linkMultipleStyles),void 0===i&&(i=t.opts.linkStyles);var s=n();if(!s)return!1;if(!a){var l=Object.keys(i);l.splice(l.indexOf(r),1),e(s).removeClass(l.join(" "))}e(s).toggleClass(r),o()}}},e.FE.DefineIcon("insertLink",{NAME:"link"}),e.FE.RegisterShortcut(e.FE.KEYCODE.K,"insertLink",null,"K"),e.FE.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),e.FE.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt"}),e.FE.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},callback:function(){var e=this.link.get();e&&(-1!==e.href.indexOf("mailto:")?this.o_win.open(e.href).close():this.o_win.open(e.href,"_blank","noopener"),this.popups.hide("link.edit"))},plugin:"link"}),e.FE.DefineIcon("linkEdit",{NAME:"edit"}),e.FE.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkRemove",{NAME:"unlink"}),e.FE.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(e){var t=this.link.get()&&this.doc.hasFocus();this.image&&this.image.get()||t||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkList",{NAME:"search"}),e.FE.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkList,n=0;n<t.length;n++)e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'+n+'">'+(t[n].displayText||t[n].text)+"</a></li>";return e+="</ul>"},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),e.FE.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),e.FE.DefineIcon("imageLink",{NAME:"link"}),e.FE.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkStyle",{NAME:"magic"}),e.FE.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'+n+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(t,n){var r=this.link.get();if(r){var o=e(r);n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=o.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{listAdvancedTypes:!0}),e.FE.PLUGINS.lists=function(t){function n(e){return'<span class="fr-open-'+e.toLowerCase()+'"></span>'}function r(e){return'<span class="fr-close-'+e.toLowerCase()+'"></span>'}function o(o){var i,a;for(i=o.length-1;0<=i;i--)for(a=i-1;0<=a;a--)if(e(o[a]).find(o[i]).length||o[a]==o[i]){o.splice(i,1);break}var s=[];for(i=0;i<o.length;i++){var l=e(o[i]),c=o[i].parentNode,u=l.attr("class");if(l.before(r(c.tagName)),"LI"==c.parentNode.tagName)l.before(r("LI")),l.after(n("LI"));else{var f="";u&&(f+=' class="'+u+'"');var d="rtl"==t.opts.direction||"rtl"==l.css("direction")?"margin-right":"margin-left";t.helpers.getPX(e(c).css(d))&&0<=(e(c).attr("style")||"").indexOf(d+":")&&(f+=' style="'+d+":"+t.helpers.getPX(e(c).css(d))+'px;"'),t.html.defaultTag()&&0===l.find(t.html.blockTagsQuery()).length&&l.wrapInner("<"+t.html.defaultTag()+f+"></"+t.html.defaultTag()+">"),t.node.isEmpty(l.get(0),!0)||0!==l.find(t.html.blockTagsQuery()).length||l.append("<br>"),l.append(n("LI")),l.prepend(r("LI"))}l.after(n(c.tagName)),"LI"==c.parentNode.tagName&&(c=c.parentNode.parentNode),s.indexOf(c)<0&&s.push(c)}for(i=0;i<s.length;i++){var p=e(s[i]),h=p.html();h=(h=h.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>")).replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),p.replaceWith(t.node.openTagString(p.get(0))+h+t.node.closeTagString(p.get(0)))}t.$el.find("li:empty").remove(),t.$el.find("ul:empty, ol:empty").remove(),t.clean.lists(),t.html.wrap()}function i(n){t.selection.save();for(var r=0;r<n.length;r++){var o=n[r].previousSibling;if(o){var i=e(n[r]).find("> ul, > ol").last().get(0);if(i){for(var a=e("<li>").prependTo(e(i)),s=t.node.contents(n[r])[0];s&&!t.node.isList(s);){var l=s.nextSibling;a.append(s),s=l}e(o).append(e(i)),e(n[r]).remove()}else{var c=e(o).find("> ul, > ol").last().get(0);if(c)e(c).append(e(n[r]));else{var u=e("<"+n[r].parentNode.tagName+">");e(o).append(u),u.append(e(n[r]))}}}}t.clean.lists(),t.selection.restore()}function a(e){t.selection.save(),o(e),t.selection.restore()}function s(e){if("indent"==e||"outdent"==e){for(var n=!1,r=t.selection.blocks(),o=[],s=0;s<r.length;s++)"LI"==r[s].tagName?(n=!0,o.push(r[s])):"LI"==r[s].parentNode.tagName&&(n=!0,o.push(r[s].parentNode));n&&("indent"==e?i(o):a(o))}}return{_init:function(){t.events.on("commands.after",s),t.events.on("keydown",function(n){if(n.which==e.FE.KEYCODE.TAB){for(var r=t.selection.blocks(),o=[],s=0;s<r.length;s++)"LI"==r[s].tagName?o.push(r[s]):"LI"==r[s].parentNode.tagName&&o.push(r[s].parentNode);if(1<o.length||o.length&&(t.selection.info(o[0]).atStart||t.node.isEmpty(o[0])))return n.preventDefault(),n.stopPropagation(),n.shiftKey?a(o):i(o),!1}},!0)},format:function(n,r){var i,a;for(t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore(),a=t.selection.blocks(),i=0;i<a.length;i++)"LI"!=a[i].tagName&&"LI"==a[i].parentNode.tagName&&(a[i]=a[i].parentNode);if(t.selection.save(),function(e,t){for(var n=!0,r=0;r<e.length;r++){if("LI"!=e[r].tagName)return!1;e[r].parentNode.tagName!=t&&(n=!1)}return n}(a,n)?r||o(a):function(n,r){!function(n,r){for(var o=[],i=0;i<n.length;i++){var a=n[i].parentNode;"LI"==n[i].tagName&&a.tagName!=r&&o.indexOf(a)<0&&o.push(a)}for(i=o.length-1;0<=i;i--){var s=e(o[i]);s.replaceWith("<"+r.toLowerCase()+" "+t.node.attributes(s.get(0))+">"+s.html()+"</"+r.toLowerCase()+">")}}(n,r);var o,i=t.html.defaultTag(),a=null;n.length&&(o="rtl"==t.opts.direction||"rtl"==e(n[0]).css("direction")?"margin-right":"margin-left");for(var s=0;s<n.length;s++)if("TD"!=n[s].tagName&&"TH"!=n[s].tagName&&"LI"!=n[s].tagName){var l=t.helpers.getPX(e(n[s]).css(o))||0;(n[s].style.marginLeft=null)===a&&(a=l);var c=0<a?"<"+r+' style="'+o+": "+a+'px;">':"<"+r+">",u="</"+r+">";for(l-=a;0<l/t.opts.indentMargin;)c+="<"+r+">",u+=u,l-=t.opts.indentMargin;i&&n[s].tagName.toLowerCase()==i?e(n[s]).replaceWith(c+"<li"+t.node.attributes(n[s])+">"+e(n[s]).html()+"</li>"+u):e(n[s]).wrap(c+"<li></li>"+u)}t.clean.lists()}(a,n),t.html.unwrap(),t.selection.restore(),r=r||"default"){for(a=t.selection.blocks(),i=0;i<a.length;i++)"LI"!=a[i].tagName&&"LI"==a[i].parentNode.tagName&&(a[i]=a[i].parentNode);for(i=0;i<a.length;i++)"LI"==a[i].tagName&&(e(a[i].parentNode).css("list-style-type","default"===r?"":r),0===(e(a[i].parentNode).attr("style")||"").length&&e(a[i].parentNode).removeAttr("style"))}},refresh:function(n,r){var o=e(t.selection.element());if(o.get(0)!=t.el){var i=o.get(0);(i="LI"!=i.tagName&&i.firstElementChild&&"LI"!=i.firstElementChild.tagName?o.parents("li").get(0):"LI"==i.tagName||i.firstElementChild?i.firstElementChild&&"LI"==i.firstElementChild.tagName?o.get(0).firstChild:o.get(0):o.parents("li").get(0))&&i.parentNode.tagName==r&&t.el.contains(i.parentNode)&&n.addClass("fr-active")}}}},e.FE.RegisterCommand("formatUL",{title:"Unordered List",type:"button",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(e){this.lists.refresh(e,"UL")},callback:function(e,t){this.lists.format("UL",t)},plugin:"lists"}),e.FE.RegisterCommand("formatOL",{title:"Ordered List",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},refresh:function(e){this.lists.refresh(e,"OL")},callback:function(e,t){this.lists.format("OL",t)},plugin:"lists"}),e.FE.DefineIcon("formatUL",{NAME:"list-ul"}),e.FE.DefineIcon("formatOL",{NAME:"list-ol"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),e.FE.QUICK_INSERT_BUTTONS={},e.FE.DefineIcon("quickInsert",{PATH:'<path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/>',template:"svg"}),e.FE.RegisterQuickInsertButton=function(t,n){e.FE.QUICK_INSERT_BUTTONS[t]=e.extend({undo:!0},n)},e.FE.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var t=this;t.shared.$qi_image_input||(t.shared.$qi_image_input=e('<input accept="image/'+t.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" name="quickInsertImage'+this.id+'" style="display: none;" type="file">'),e("body:first").append(t.shared.$qi_image_input),t.events.$on(t.shared.$qi_image_input,"change",function(){var t=e(this).data("inst");this.files&&(t.quickInsert.hide(),t.image.upload(this.files)),e(this).val("")},!0)),t.$qi_image_input=t.shared.$qi_image_input,t.helpers.isMobile()&&t.selection.save(),t.events.disableBlur(),t.$qi_image_input.data("inst",t).trigger("click")}}),e.FE.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),e.FE.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),e.FE.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),e.FE.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),e.FE.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),e.FE.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),e.FE.PLUGINS.quickInsert=function(t){var n,r;function o(o){var i,a,s;i=o.offset().top-t.$box.offset().top,a=(t.$iframe&&t.$iframe.offset().left||0)+o.offset().left<n.outerWidth()?o.offset().left+n.outerWidth():0-n.outerWidth(),t.opts.enter!=e.FE.ENTER_BR?s=(n.outerHeight()-o.outerHeight())/2:(e("<span>"+e.FE.INVISIBLE_SPACE+"</span>").insertAfter(o),s=(n.outerHeight()-o.next().outerHeight())/2,o.next().remove()),t.opts.iframe&&(i+=t.$iframe.offset().top),n.hasClass("fr-on")&&0<=i&&r.css("top",i-s),0<=i&&i-Math.abs(s)<=t.$box.outerHeight()-o.outerHeight()?(n.hasClass("fr-hidden")&&(n.hasClass("fr-on")&&l(),n.removeClass("fr-hidden")),n.css("top",i-s)):n.hasClass("fr-visible")&&(n.addClass("fr-hidden"),c()),n.css("left",a)}function i(i){n||(t.shared.$quick_insert||(t.shared.$quick_insert=e('<div class="fr-quick-insert"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Quick Insert")+'">'+t.icon.create("quickInsert")+"</a></div>")),n=t.shared.$quick_insert,t.tooltip.bind(t.$box,".fr-quick-insert > a.fr-floating-btn"),t.events.on("destroy",function(){n.removeClass("fr-on").appendTo(e("body:first")).css("left",-9999).css("top",-9999),r&&(c(),r.appendTo(e("body:first")))},!0),t.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null,r&&(r.html("").removeData().remove(),r=null)},!0),t.events.on("commands.before",s),t.events.on("commands.after",function(){t.popups.areVisible()||a()}),t.events.bindClick(t.$box,".fr-quick-insert > a",l),t.events.bindClick(t.$box,".fr-qi-helper > a.fr-btn",function(n){var r=e(n.currentTarget).data("cmd");if(!1===t.events.trigger("quickInsert.commands.before",[r]))return!1;e.FE.QUICK_INSERT_BUTTONS[r].callback.apply(t,[n.currentTarget]),e.FE.QUICK_INSERT_BUTTONS[r].undo&&t.undo.saveStep(),t.events.trigger("quickInsert.commands.after",[r]),t.quickInsert.hide()}),t.events.$on(t.$wp,"scroll",function(){n.hasClass("fr-visible")&&o(n.data("tag"))})),n.hasClass("fr-on")&&c(),t.$box.append(n),o(i),n.data("tag",i),n.addClass("fr-visible")}function a(){if(t.core.hasFocus()){var r=t.selection.element();if(t.opts.enter==e.FE.ENTER_BR||t.node.isBlock(r)||(r=t.node.blockParent(r)),t.opts.enter==e.FE.ENTER_BR&&!t.node.isBlock(r)){var o=t.node.deepestParent(r);o&&(r=o)}r&&(t.opts.enter!=e.FE.ENTER_BR&&t.node.isEmpty(r)&&0<=t.opts.quickInsertTags.indexOf(r.tagName.toLowerCase())||t.opts.enter==e.FE.ENTER_BR&&("BR"==r.tagName&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))||t.node.isEmpty(r)&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))&&(!r.nextSibling||"BR"==r.nextSibling.tagName||t.node.isBlock(r.nextSibling))))?n&&n.data("tag").is(e(r))&&n.hasClass("fr-on")?c():t.selection.isCollapsed()&&i(e(r)):s()}}function s(){n&&(n.hasClass("fr-on")&&c(),n.removeClass("fr-visible fr-on"),n.css("left",-9999).css("top",-9999))}function l(o){if(o&&o.preventDefault(),n.hasClass("fr-on")&&!n.hasClass("fr-hidden"))c();else{if(!t.shared.$qi_helper){for(var i=t.opts.quickInsertButtons,a='<div class="fr-qi-helper">',s=0,l=0;l<i.length;l++){var u=e.FE.QUICK_INSERT_BUTTONS[i[l]];u&&(!u.requiredPlugin||e.FE.PLUGINS[u.requiredPlugin]&&0<=t.opts.pluginsEnabled.indexOf(u.requiredPlugin))&&(a+='<a class="fr-btn fr-floating-btn" role="button" title="'+t.language.translate(u.title)+'" tabIndex="-1" data-cmd="'+i[l]+'" style="transition-delay: '+.025*s+++'s;">'+t.icon.create(u.icon)+"</a>")}a+="</div>",t.shared.$qi_helper=e(a),t.tooltip.bind(t.shared.$qi_helper,"> a.fr-btn"),t.events.$on(t.shared.$qi_helper,"mousedown",function(e){e.preventDefault()},!0)}(r=t.shared.$qi_helper).appendTo(t.$box),setTimeout(function(){r.css("top",parseFloat(n.css("top"))),r.css("left",parseFloat(n.css("left"))+n.outerWidth()),r.find("a").addClass("fr-size-1"),n.addClass("fr-on")},10)}}function c(){var e=t.$box.find(".fr-qi-helper");e.length&&(e.find("a").removeClass("fr-size-1"),e.css("left",-9999),n.hasClass("fr-hidden")||n.removeClass("fr-on"))}return{_init:function(){if(!t.$wp||!t.opts.quickInsertEnabled)return!1;t.popups.onShow("image.edit",s),t.events.on("mouseup",a),t.helpers.isMobile()&&t.events.$on(e(t.o_doc),"selectionchange",a),t.events.on("blur",s),t.events.on("keyup",a),t.events.on("keydown",function(){setTimeout(function(){a()},0)})},hide:s}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),e.FE.PLUGINS.paragraphFormat=function(t){function n(n,r){var o=t.html.defaultTag();if(r&&r.toLowerCase()!=o)if(0<n.find("ul, ol").length){var i=e("<"+r+">");n.prepend(i);for(var a=t.node.contents(n.get(0))[0];a&&["UL","OL"].indexOf(a.tagName)<0;){var s=a.nextSibling;i.append(a),a=s}}else n.html("<"+r+">"+n.html()+"</"+r+">")}return{apply:function(r){"N"==r&&(r=t.html.defaultTag()),t.selection.save(),t.html.wrap(!0,!0,!t.opts.paragraphFormat.BLOCKQUOTE,!0,!0),t.selection.restore();var o,i,a,s,l,c,u,f,d=t.selection.blocks();t.selection.save(),t.$el.find("pre").attr("skip",!0);for(var p=0;p<d.length;p++)if(d[p].tagName!=r&&!t.node.isList(d[p])){var h=e(d[p]);"LI"==d[p].tagName?n(h,r):"LI"==d[p].parentNode.tagName&&d[p]?(c=h,u=r,f=t.html.defaultTag(),u&&u.toLowerCase()!=f||(u='div class="fr-temp-div"'),c.replaceWith(e("<"+u+">").html(c.html()))):0<=["TD","TH"].indexOf(d[p].parentNode.tagName)?(a=h,s=r,l=t.html.defaultTag(),s||(s='div class="fr-temp-div"'+(t.node.isEmpty(a.get(0),!0)?' data-empty="true"':"")),s.toLowerCase()==l?(t.node.isEmpty(a.get(0),!0)||a.append("<br/>"),a.replaceWith(a.html())):a.replaceWith(e("<"+s+">").html(a.html()))):(o=h,(i=r)||(i='div class="fr-temp-div"'+(t.node.isEmpty(o.get(0),!0)?' data-empty="true"':"")),o.replaceWith(e("<"+i+" "+t.node.attributes(o.get(0))+">").html(o.html()).removeAttr("data-empty")))}t.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){e(this).prev().append("<br>"+e(this).html()),e(this).remove()}),t.$el.find("pre").removeAttr("skip"),t.html.unwrap(),t.selection.restore()},refreshOnShow:function(e,n){var r=t.selection.blocks();if(r.length){var o=r[0],i="N",a=t.html.defaultTag();o.tagName.toLowerCase()!=a&&o!=t.el&&(i=o.tagName),n.find('.fr-command[data-param1="'+i+'"]').addClass("fr-active").attr("aria-selected",!0)}else n.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(e){if(t.opts.paragraphFormatSelection){var n=t.selection.blocks();if(n.length){var r=n[0],o="N",i=t.html.defaultTag();r.tagName.toLowerCase()!=i&&r!=t.el&&(o=r.tagName),0<=["LI","TD","TH"].indexOf(o)&&(o="N"),e.find("> span").text(t.language.translate(t.opts.paragraphFormat[o]))}else e.find("> span").text(t.language.translate(t.opts.paragraphFormat.N))}}}},e.FE.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(e){return e.opts.paragraphFormatSelection},defaultSelection:function(e){return e.language.translate(e.opts.paragraphDefaultSelection)},displaySelectionWidth:125,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.paragraphFormat;for(var n in t)if(t.hasOwnProperty(n)){var r=this.shortcuts.get("paragraphFormat."+n);r=r?'<span class="fr-shortcut">'+r+"</span>":"",e+='<li role="presentation"><'+("N"==n?this.html.defaultTag()||"DIV":n)+' style="padding: 0 !important; margin: 0 !important;" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></"+("N"==n?this.html.defaultTag()||"DIV":n)+"></li>"}return e+="</ul>"},title:"Paragraph Format",callback:function(e,t){this.paragraphFormat.apply(t)},refresh:function(e){this.paragraphFormat.refresh(e)},refreshOnShow:function(e,t){this.paragraphFormat.refreshOnShow(e,t)},plugin:"paragraphFormat"}),e.FE.DefineIcon("paragraphFormat",{NAME:"paragraph"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),e.FE.PLUGINS.save=function(t){var n=null,r=null,o=!1,i=1,a=2,s={};function l(e,n){t.events.trigger("save.error",[{code:e,message:s[e]},n])}function c(n){void 0===n&&(n=t.html.get());var o=n,s=t.events.trigger("save.before",[n]);if(!1===s)return!1;if("string"==typeof s&&(n=s),t.opts.saveURL){var c={};for(var u in t.opts.saveParams)if(t.opts.saveParams.hasOwnProperty(u)){var f=t.opts.saveParams[u];c[u]="function"==typeof f?f.call(this):f}var d={};d[t.opts.saveParam]=n,e.ajax({type:t.opts.saveMethod,url:t.opts.saveURL,data:e.extend(d,c),crossDomain:t.opts.requestWithCORS,xhrFields:{withCredentials:t.opts.requestWithCredentials},headers:t.opts.requestHeaders}).done(function(e){r=o,t.events.trigger("save.after",[e])}).fail(function(e){l(a,e.response||e.responseText)})}else l(i)}function u(){clearTimeout(n),n=setTimeout(function(){var e=t.html.get();(r!=e||o)&&(o=!1,c(r=e))},t.opts.saveInterval)}return s[i]="Missing saveURL option.",s[a]="Something went wrong during save.",{_init:function(){t.opts.saveInterval&&(r=t.html.get(),t.events.on("contentChanged",u),t.events.on("keydown destroy",function(){clearTimeout(n)}))},save:c,reset:function(){u(),o=!1},force:function(){o=!0}}},e.FE.DefineIcon("save",{NAME:"floppy-o",FA5NAME:"save"}),e.FE.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),e.extend(e.FE.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","|","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"100%",tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),e.FE.PLUGINS.table=function(t){var n,r,o,i,a,s,l;function c(){var e=w();if(e){var n=t.popups.get("table.edit");if(n||(n=p()),n){t.popups.setContainer("table.edit",t.$sc);var r=O(e),o=(r.left+r.right)/2,i=r.bottom;t.popups.show("table.edit",o,i,r.bottom-r.top),t.edit.isDisabled()&&(1<X().length&&t.toolbar.disable(),t.$el.removeClass("fr-no-selection"),t.edit.on(),t.button.bulkRefresh(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell:last").get(0)),t.selection.restore())}}}function u(){0===X().length&&t.toolbar.enable()}function f(n){if(n)return t.popups.onHide("table.insert",function(){t.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseenter")}),!0;var r="";0<t.opts.tableInsertButtons.length&&(r='<div class="fr-buttons">'+t.button.buildList(t.opts.tableInsertButtons)+"</div>");var o,i={buttons:r,rows_columns:function(){for(var e='<div class="fr-table-size"><div class="fr-table-size-info">1 &times; 1</div><div class="fr-select-table-size">',n=1;n<=t.opts.tableInsertMaxSize;n++){for(var r=1;r<=t.opts.tableInsertMaxSize;r++){var o="inline-block";2<n&&!t.helpers.isMobile()&&(o="none");var i="fr-table-cell ";1==n&&1==r&&(i+=" hover"),e+='<span class="fr-command '+i+'" tabIndex="-1" data-cmd="tableInsert" data-row="'+n+'" data-col="'+r+'" data-param1="'+n+'" data-param2="'+r+'" style="display: '+o+';" role="button"><span></span><span class="fr-sr-only">'+n+" &times; "+r+"&nbsp;&nbsp;&nbsp;</span></span>"}e+='<div class="new-line"></div>'}return e+="</div></div>"}()},a=t.popups.create("table.insert",i);return t.events.$on(a,"mouseenter",".fr-table-size .fr-select-table-size .fr-table-cell",function(t){d(e(t.currentTarget))},!0),o=a,t.events.$on(o,"focus","[tabIndex]",function(t){var n=e(t.currentTarget);d(n)}),t.events.on("popup.tab",function(n){var r=e(n.currentTarget);if(!t.popups.isVisible("table.insert")||!r.is("span, a"))return!0;var o,i=n.which;if(e.FE.KEYCODE.ARROW_UP==i||e.FE.KEYCODE.ARROW_DOWN==i||e.FE.KEYCODE.ARROW_LEFT==i||e.FE.KEYCODE.ARROW_RIGHT==i){if(r.is("span.fr-table-cell")){var a=r.parent().find("span.fr-table-cell"),s=a.index(r),l=t.opts.tableInsertMaxSize,c=s%l,u=Math.floor(s/l);e.FE.KEYCODE.ARROW_UP==i?u=Math.max(0,u-1):e.FE.KEYCODE.ARROW_DOWN==i?u=Math.min(t.opts.tableInsertMaxSize-1,u+1):e.FE.KEYCODE.ARROW_LEFT==i?c=Math.max(0,c-1):e.FE.KEYCODE.ARROW_RIGHT==i&&(c=Math.min(t.opts.tableInsertMaxSize-1,c+1));var f=u*l+c,p=e(a.get(f));d(p),t.events.disableBlur(),p.focus(),o=!1}}else e.FE.KEYCODE.ENTER==i&&(t.button.exec(r),o=!1);return!1===o&&(n.preventDefault(),n.stopPropagation()),o},!0),a}function d(e){var n=e.data("row"),r=e.data("col"),o=e.parent();o.siblings(".fr-table-size-info").html(n+" &times; "+r),o.find("> span").removeClass("hover fr-active-item");for(var i=1;i<=t.opts.tableInsertMaxSize;i++)for(var a=0;a<=t.opts.tableInsertMaxSize;a++){var s=o.find('> span[data-row="'+i+'"][data-col="'+a+'"]');i<=n&&a<=r?s.addClass("hover"):i<=n+1||i<=2&&!t.helpers.isMobile()?s.css("display","inline-block"):2<i&&!t.helpers.isMobile()&&s.css("display","none")}e.addClass("fr-active-item")}function p(e){if(e)return t.popups.onHide("table.edit",u),!0;if(0<t.opts.tableEditButtons.length){var n={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.tableEditButtons)+"</div>"},r=t.popups.create("table.edit",n);return t.events.$on(t.$wp,"scroll.table-edit",function(){t.popups.isVisible("table.edit")&&c()}),r}return!1}function h(){if(0<X().length){var e=Z();t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),t.selection.restore(),t.popups.hide("table.edit"),e.remove(),t.toolbar.enable()}}function m(n){var r=Z();if(0<r.length){if(0<t.$el.find("th.fr-selected-cell").length&&"above"==n)return;var o,i,a,s=w(),l=C(s);i="above"==n?l.min_i:l.max_i;var u="<tr>";for(o=0;o<s[i].length;o++)if("below"==n&&i<s.length-1&&s[i][o]==s[i+1][o]||"above"==n&&0<i&&s[i][o]==s[i-1][o]){if(0===o||0<o&&s[i][o]!=s[i][o-1]){var f=e(s[i][o]);f.attr("rowspan",parseInt(f.attr("rowspan"),10)+1)}}else u+='<td style="'+e(s[i][o]).attr("style")+'" ><br></td>';u+="</tr>",a=0<t.$el.find("th.fr-selected-cell").length&&"below"==n?e(r.find("tbody").not(r.find("table tbody"))):e(r.find("tr").not(r.find("table tr")).get(i)),"below"==n?"TBODY"==a.prop("tagName")?a.prepend(u):a.after(u):"above"==n&&(a.before(u),t.popups.isVisible("table.edit")&&c())}}function v(e,t,n){var r,o,i,a,s,l=0,c=w(n);if(e<(t=Math.min(t,c[0].length-1)))for(o=e;o<=t;o++)if(!(e<o&&c[0][o]==c[0][o-1])&&1<(a=Math.min(parseInt(c[0][o].getAttribute("colspan"),10)||1,t-e+1))&&c[0][o]==c[0][o+1])for(l=a-1,r=1;r<c.length;r++)if(c[r][o]!=c[r-1][o]){for(i=o;i<o+a;i++)if(1<(s=parseInt(c[r][i].getAttribute("colspan"),10)||1)&&c[r][i]==c[r][i+1])i+=l=Math.min(l,s-1);else if(!(l=Math.max(0,l-1)))break;if(!l)break}l&&y(c,l,"colspan",0,c.length-1,e,t)}function g(e,t,n){var r,o,i,a,s,l=0,c=w(n);if(e<(t=Math.min(t,c.length-1)))for(r=e;r<=t;r++)if(!(e<r&&c[r][0]==c[r-1][0])&&1<(a=Math.min(parseInt(c[r][0].getAttribute("rowspan"),10)||1,t-e+1))&&c[r][0]==c[r+1][0])for(l=a-1,o=1;o<c[0].length;o++)if(c[r][o]!=c[r][o-1]){for(i=r;i<r+a;i++)if(1<(s=parseInt(c[i][o].getAttribute("rowspan"),10)||1)&&c[i][o]==c[i+1][o])i+=l=Math.min(l,s-1);else if(!(l=Math.max(0,l-1)))break;if(!l)break}l&&y(c,l,"rowspan",e,t,0,c[0].length-1)}function y(e,t,n,r,o,i,a){var s,l,c;for(s=r;s<=o;s++)for(l=i;l<=a;l++)r<s&&e[s][l]==e[s-1][l]||i<l&&e[s][l]==e[s][l-1]||1<(c=parseInt(e[s][l].getAttribute(n),10)||1)&&(1<c-t?e[s][l].setAttribute(n,c-t):e[s][l].removeAttribute(n))}function b(e,t,n,r,o){g(e,t,o),v(n,r,o)}function _(e){var n=t.$el.find(".fr-selected-cell");"REMOVE"!=e?n.css("background-color",t.helpers.HEXtoRGB(e)):n.css("background-color",""),c()}function w(t){var n=[];return null==(t=t||null)&&0<X().length&&(t=Z()),t&&t.find("tr:visible").not(t.find("table tr")).each(function(t,r){var o=e(r),i=0;o.find("> th, > td").each(function(r,o){for(var a=e(o),s=parseInt(a.attr("colspan"),10)||1,l=parseInt(a.attr("rowspan"),10)||1,c=t;c<t+l;c++)for(var u=i;u<i+s;u++)n[c]||(n[c]=[]),n[c][u]?i++:n[c][u]=o;i+=s})}),n}function E(e,t){for(var n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++)if(t[n][r]==e)return{row:n,col:r}}function x(e,t,n){for(var r=e+1,o=t+1;r<n.length;){if(n[r][t]!=n[e][t]){r--;break}r++}for(r==n.length&&r--;o<n[e].length;){if(n[e][o]!=n[e][t]){o--;break}o++}return o==n[e].length&&o--,{row:r,col:o}}function k(){t.el.querySelector(".fr-cell-fixed")&&t.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")&&t.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function S(){var n=t.$el.find(".fr-selected-cell");0<n.length&&n.each(function(){var t=e(this);t.removeClass("fr-selected-cell"),""===t.attr("class")&&t.removeAttr("class")}),k()}function T(){t.events.disableBlur(),t.selection.clear(),t.$el.addClass("fr-no-selection"),t.$el.blur(),t.events.enableBlur()}function C(e){var n=t.$el.find(".fr-selected-cell");if(0<n.length){var r,o=e.length,i=0,a=e[0].length,s=0;for(r=0;r<n.length;r++){var l=E(n[r],e),c=x(l.row,l.col,e);o=Math.min(l.row,o),i=Math.max(c.row,i),a=Math.min(l.col,a),s=Math.max(c.col,s)}return{min_i:o,max_i:i,min_j:a,max_j:s}}return null}function O(t){var n=C(t),r=e(t[n.min_i][n.min_j]),o=e(t[n.min_i][n.max_j]),i=e(t[n.max_i][n.min_j]);return{left:r.offset().left,right:o.offset().left+o.outerWidth(),top:r.offset().top,bottom:i.offset().top+i.outerHeight()}}function j(n,r){if(e(n).is(r))S(),e(n).addClass("fr-selected-cell");else{T(),t.edit.off();var o=w(),i=E(n,o),a=E(r,o),s=function t(n,r,o,i,a){var s,l,c,u,f=n,d=r,p=o,h=i;for(s=f;s<=d;s++)(1<(parseInt(e(a[s][p]).attr("rowspan"),10)||1)||1<(parseInt(e(a[s][p]).attr("colspan"),10)||1))&&(u=x((c=E(a[s][p],a)).row,c.col,a),f=Math.min(c.row,f),d=Math.max(u.row,d),p=Math.min(c.col,p),h=Math.max(u.col,h)),(1<(parseInt(e(a[s][h]).attr("rowspan"),10)||1)||1<(parseInt(e(a[s][h]).attr("colspan"),10)||1))&&(u=x((c=E(a[s][h],a)).row,c.col,a),f=Math.min(c.row,f),d=Math.max(u.row,d),p=Math.min(c.col,p),h=Math.max(u.col,h));for(l=p;l<=h;l++)(1<(parseInt(e(a[f][l]).attr("rowspan"),10)||1)||1<(parseInt(e(a[f][l]).attr("colspan"),10)||1))&&(u=x((c=E(a[f][l],a)).row,c.col,a),f=Math.min(c.row,f),d=Math.max(u.row,d),p=Math.min(c.col,p),h=Math.max(u.col,h)),(1<(parseInt(e(a[d][l]).attr("rowspan"),10)||1)||1<(parseInt(e(a[d][l]).attr("colspan"),10)||1))&&(u=x((c=E(a[d][l],a)).row,c.col,a),f=Math.min(c.row,f),d=Math.max(u.row,d),p=Math.min(c.col,p),h=Math.max(u.col,h));return f==n&&d==r&&p==o&&h==i?{min_i:n,max_i:r,min_j:o,max_j:i}:t(f,d,p,h,a)}(Math.min(i.row,a.row),Math.max(i.row,a.row),Math.min(i.col,a.col),Math.max(i.col,a.col),o);S(),n.classList.add("fr-cell-fixed"),r.classList.add("fr-cell-handler");for(var l=s.min_i;l<=s.max_i;l++)for(var c=s.min_j;c<=s.max_j;c++)e(o[l][c]).addClass("fr-selected-cell")}}function A(n){var r=null,o=e(n.target);return"TD"==n.target.tagName||"TH"==n.target.tagName?r=n.target:0<o.closest("td").length?r=o.closest("td").get(0):0<o.closest("th").length&&(r=o.closest("th").get(0)),0===t.$el.find(r).length?null:r}function N(){S(),t.popups.hide("table.edit")}function M(n){var r=A(n);if("false"==e(r).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(0<X().length&&!r&&N(),!t.edit.isDisabled()||t.popups.isVisible("table.edit"))if(1!=n.which||1==n.which&&t.helpers.isMac()&&n.ctrlKey)(3==n.which||1==n.which&&t.helpers.isMac()&&n.ctrlKey)&&r&&N();else if(i=!0,r){0<X().length&&!n.shiftKey&&N(),n.stopPropagation(),t.events.trigger("image.hideResizer"),t.events.trigger("video.hideResizer"),o=!0;var s=r.tagName.toLowerCase();n.shiftKey&&0<t.$el.find(s+".fr-selected-cell").length?e(t.$el.find(s+".fr-selected-cell").closest("table")).is(e(r).closest("table"))?j(a,r):T():((t.keys.ctrlKey(n)||n.shiftKey)&&(1<X().length||0===e(r).find(t.selection.element()).length&&!e(r).is(t.selection.element()))&&T(),a=r,0<t.opts.tableEditButtons.length&&j(a,a))}}function I(r){if(t.popups.areVisible())return!0;if(o||t.$tb.is(r.target)||t.$tb.is(e(r.target).closest(t.$tb.get(0)))||(0<X().length&&t.toolbar.enable(),S()),!(1!=r.which||1==r.which&&t.helpers.isMac()&&r.ctrlKey)&&(i=!1,o&&(o=!1,A(r)||1!=X().length?0<X().length&&(t.selection.isCollapsed()?c():S()):S()),l)){l=!1,n.removeClass("fr-moving"),t.$el.removeClass("fr-no-selection"),t.edit.on();var a=parseFloat(n.css("left"))+t.opts.tableResizerOffset+t.$wp.offset().left;t.opts.iframe&&(a-=t.$iframe.offset().left),n.data("release-position",a),n.removeData("max-left"),n.removeData("max-right"),function(){var r=n.data("origin"),o=n.data("release-position");if(r!==o){var i=n.data("first"),a=n.data("second"),s=n.data("table"),l=s.outerWidth();if(t.undo.canDo()||t.undo.saveStep(),null!==i&&null!==a){var c,u,f,d=w(s),p=[],h=[],m=[],v=[];for(c=0;c<d.length;c++)u=e(d[c][i]),f=e(d[c][a]),p[c]=u.outerWidth(),m[c]=f.outerWidth(),h[c]=p[c]/l*100,v[c]=m[c]/l*100;for(c=0;c<d.length;c++)if(u=e(d[c][i]),f=e(d[c][a]),d[c][i]!=d[c][a]){var g=(h[c]*(p[c]+o-r)/p[c]).toFixed(4);u.css("width",g+"%"),f.css("width",(h[c]+v[c]-g).toFixed(4)+"%")}}else{var y,b=s.parent(),_=l/b.width()*100,E=(parseInt(s.css("margin-left"),10)||0)/b.width()*100,x=(parseInt(s.css("margin-right"),10)||0)/b.width()*100;"rtl"==t.opts.direction&&0===a||"rtl"!=t.opts.direction&&0!==a?(y=(l+o-r)/l*_,s.css("margin-right","calc(100% - "+Math.round(y).toFixed(4)+"% - "+Math.round(E).toFixed(4)+"%)")):("rtl"==t.opts.direction&&0!==a||"rtl"!=t.opts.direction&&0===a)&&(y=(l-o+r)/l*_,s.css("margin-left","calc(100% - "+Math.round(y).toFixed(4)+"% - "+Math.round(x).toFixed(4)+"%)")),s.css("width",Math.round(y).toFixed(4)+"%")}t.selection.restore(),t.undo.saveStep(),t.events.trigger("table.resized",[s.get(0)])}n.removeData("origin"),n.removeData("release-position"),n.removeData("first"),n.removeData("second"),n.removeData("table")}(),F()}}function L(n){if(!0===o&&0<t.opts.tableEditButtons.length){if(e(n.currentTarget).closest("table").is(Z())){if("TD"==n.currentTarget.tagName&&0===t.$el.find("th.fr-selected-cell").length)return void j(a,n.currentTarget);if("TH"==n.currentTarget.tagName&&0===t.$el.find("td.fr-selected-cell").length)return void j(a,n.currentTarget)}T()}}function P(n,r,o,i){for(var a,s=r;s!=t.el&&"TD"!=s.tagName&&"TH"!=s.tagName&&("up"==i?a=s.previousElementSibling:"down"==i&&(a=s.nextElementSibling),!a);)s=s.parentNode;"TD"==s.tagName||"TH"==s.tagName?function(n,r){for(var o=n;o&&"TABLE"!=o.tagName&&o.parentNode!=t.el;)o=o.parentNode;if(o&&"TABLE"==o.tagName){var i=w(e(o));"up"==r?D(E(n,i),o,i):"down"==r&&R(E(n,i),o,i)}}(s,i):a&&("up"==i&&t.selection.setAtEnd(a),"down"==i&&t.selection.setAtStart(a))}function D(e,n,r){0<e.row?t.selection.setAtEnd(r[e.row-1][e.col]):P(0,n,0,"up")}function R(e,n,r){var o=parseInt(r[e.row][e.col].getAttribute("rowspan"),10)||1;e.row<r.length-o?t.selection.setAtStart(r[e.row+o][e.col]):P(0,n,0,"down")}function F(){n&&(n.find("div").css("opacity",0),n.css("top",0),n.css("left",0),n.css("height",0),n.find("div").css("height",0),n.hide())}function B(){r&&r.removeClass("fr-visible").css("left","-9999px")}function U(n,o){if(t.$box.find(".fr-line-breaker").is(":visible"))return!1;r||V(),t.$box.append(r),r.data("instance",t);var i,a=e(o).find("tr:first"),s=n.pageX,l=0,c=0;t.opts.iframe&&(l+=t.$iframe.offset().left-t.helpers.scrollLeft(),c+=t.$iframe.offset().top-t.helpers.scrollTop()),a.find("th, td").each(function(){var n=e(this);return n.offset().left<=s&&s<n.offset().left+n.outerWidth()/2?(i=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top-i-5),r.css("left",l+n.offset().left-t.$box.offset().left-i/2),r.data("selected-cell",n),r.data("position","before"),r.addClass("fr-visible"),!1):n.offset().left+n.outerWidth()/2<=s&&s<n.offset().left+n.outerWidth()?(i=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top-i-5),r.css("left",l+n.offset().left-t.$box.offset().left+n.outerWidth()-i/2),r.data("selected-cell",n),r.data("position","after"),r.addClass("fr-visible"),!1):void 0})}function q(n,o){if(t.$box.find(".fr-line-breaker").is(":visible"))return!1;r||V(),t.$box.append(r),r.data("instance",t);var i,a=e(o),s=n.pageY,l=0,c=0;t.opts.iframe&&(l+=t.$iframe.offset().left-t.helpers.scrollLeft(),c+=t.$iframe.offset().top-t.helpers.scrollTop()),a.find("tr").each(function(){var n=e(this);return n.offset().top<=s&&s<n.offset().top+n.outerHeight()/2?(i=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top-i/2),r.css("left",l+n.offset().left-t.$box.offset().left-i-5),r.data("selected-cell",n.find("td:first")),r.data("position","above"),r.addClass("fr-visible"),!1):n.offset().top+n.outerHeight()/2<=s&&s<n.offset().top+n.outerHeight()?(i=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top+n.outerHeight()-i/2),r.css("left",l+n.offset().left-t.$box.offset().left-i-5),r.data("selected-cell",n.find("td:first")),r.data("position","below"),r.addClass("fr-visible"),!1):void 0})}function z(o){s=null;var i=t.doc.elementFromPoint(o.pageX-t.win.pageXOffset,o.pageY-t.win.pageYOffset);t.opts.tableResizer&&(!t.popups.areVisible()||t.popups.areVisible()&&t.popups.isVisible("table.edit"))&&function(r,o){var i=e(o),a=i.closest("table"),s=a.parent();if(o&&"TD"!=o.tagName&&"TH"!=o.tagName&&(0<i.closest("td").length?o=i.closest("td"):0<i.closest("th").length&&(o=i.closest("th"))),!o||"TD"!=o.tagName&&"TH"!=o.tagName)n&&i.get(0)!=n.get(0)&&i.parent().get(0)!=n.get(0)&&t.core.sameInstance(n)&&F();else{if(i=e(o),0===t.$el.find(i).length)return!1;var c=i.offset().left-1,u=c+i.outerWidth();if(Math.abs(r.pageX-c)<=t.opts.tableResizerOffset||Math.abs(u-r.pageX)<=t.opts.tableResizerOffset){var f,d,p,h,m,v=w(a),g=E(o,v),y=x(g.row,g.col,v),b=a.offset().top,_=a.outerHeight()-1;"rtl"!=t.opts.direction?r.pageX-c<=t.opts.tableResizerOffset?(p=c,0<g.col?(h=c-W(g.col-1,v)+t.opts.tableResizingLimit,m=c+W(g.col,v)-t.opts.tableResizingLimit,f=g.col-1,d=g.col):(f=null,d=0,h=a.offset().left-1-parseInt(a.css("margin-left"),10),m=a.offset().left-1+a.width()-v[0].length*t.opts.tableResizingLimit)):u-r.pageX<=t.opts.tableResizerOffset&&(p=u,y.col<v[y.row].length&&v[y.row][y.col+1]?(h=u-W(y.col,v)+t.opts.tableResizingLimit,m=u+W(y.col+1,v)-t.opts.tableResizingLimit,f=y.col,d=y.col+1):(f=y.col,d=null,h=a.offset().left-1+v[0].length*t.opts.tableResizingLimit,m=s.offset().left-1+s.width()+parseFloat(s.css("padding-left")))):u-r.pageX<=t.opts.tableResizerOffset?(p=u,0<g.col?(h=u-W(g.col,v)+t.opts.tableResizingLimit,m=u+W(g.col-1,v)-t.opts.tableResizingLimit,f=g.col,d=g.col-1):(f=null,d=0,h=a.offset().left+v[0].length*t.opts.tableResizingLimit,m=s.offset().left-1+s.width()+parseFloat(s.css("padding-left")))):r.pageX-c<=t.opts.tableResizerOffset&&(p=c,y.col<v[y.row].length&&v[y.row][y.col+1]?(h=c-W(y.col+1,v)+t.opts.tableResizingLimit,m=c+W(y.col,v)-t.opts.tableResizingLimit,f=y.col+1,d=y.col):(f=y.col,d=null,h=s.offset().left+parseFloat(s.css("padding-left")),m=a.offset().left-1+a.width()-v[0].length*t.opts.tableResizingLimit)),n||(t.shared.$table_resizer||(t.shared.$table_resizer=e('<div class="fr-table-resizer"><div></div></div>')),n=t.shared.$table_resizer,t.events.$on(n,"mousedown",function(e){return!t.core.sameInstance(n)||(0<X().length&&N(),1==e.which?(t.selection.save(),l=!0,n.addClass("fr-moving"),T(),t.edit.off(),n.find("div").css("opacity",1),!1):void 0)}),t.events.$on(n,"mousemove",function(e){if(!t.core.sameInstance(n))return!0;l&&(t.opts.iframe&&(e.pageX-=t.$iframe.offset().left),Y(e))}),t.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null},!0),t.events.on("destroy",function(){t.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),n.hide().appendTo(e("body:first"))},!0)),n.data("table",a),n.data("first",f),n.data("second",d),n.data("instance",t),t.$wp.append(n);var k=p-t.win.pageXOffset-t.opts.tableResizerOffset-t.$wp.offset().left,S=b-t.$wp.offset().top+t.$wp.scrollTop();t.opts.iframe&&(k+=t.$iframe.offset().left,S+=t.$iframe.offset().top,h+=t.$iframe.offset().left,m+=t.$iframe.offset().left),n.data("max-left",h),n.data("max-right",m),n.data("origin",p-t.win.pageXOffset),n.css("top",S),n.css("left",k),n.css("height",_),n.find("div").css("height",_),n.css("padding-left",t.opts.tableResizerOffset),n.css("padding-right",t.opts.tableResizerOffset),n.show()}else t.core.sameInstance(n)&&F()}}(o,i),!t.opts.tableInsertHelper||t.popups.areVisible()||t.$tb.hasClass("fr-inline")&&t.$tb.is(":visible")||function(n,o){if(0===X().length){var i,a,s;if(o&&("HTML"==o.tagName||"BODY"==o.tagName||t.node.isElement(o)))for(i=1;i<=t.opts.tableInsertHelperOffset;i++){if(a=t.doc.elementFromPoint(n.pageX-t.win.pageXOffset,n.pageY-t.win.pageYOffset+i),e(a).hasClass("fr-tooltip"))return;if(a&&("TH"==a.tagName||"TD"==a.tagName||"TABLE"==a.tagName)&&(e(a).parents(".fr-wrapper").length||t.opts.iframe))return U(n,e(a).closest("table"));if(s=t.doc.elementFromPoint(n.pageX-t.win.pageXOffset+i,n.pageY-t.win.pageYOffset),e(s).hasClass("fr-tooltip"))return;if(s&&("TH"==s.tagName||"TD"==s.tagName||"TABLE"==s.tagName)&&(e(s).parents(".fr-wrapper").length||t.opts.iframe))return q(n,e(s).closest("table"))}t.core.sameInstance(r)&&B()}}(o,i)}function H(){if(l){var e=n.data("table").offset().top-t.win.pageYOffset;t.opts.iframe&&(e+=t.$iframe.offset().top-t.helpers.scrollTop()),n.css("top",e)}}function W(t,n){var r,o=e(n[0][t]).outerWidth();for(r=1;r<n.length;r++)o=Math.min(o,e(n[r][t]).outerWidth());return o}function $(e,t,n){var r,o=0;for(r=e;r<=t;r++)o+=W(r,n);return o}function Y(e){if(1<X().length&&i&&T(),!1===i&&!1===o&&!1===l)s&&clearTimeout(s),t.edit.isDisabled()&&!t.popups.isVisible("table.edit")||(s=setTimeout(z,30,e));else if(l){var r=e.pageX-t.win.pageXOffset;t.opts.iframe&&(r+=t.$iframe.offset().left);var a=n.data("max-left"),c=n.data("max-right");a<=r&&r<=c?n.css("left",r-t.opts.tableResizerOffset-t.$wp.offset().left):r<a&&parseFloat(n.css("left"),10)>a-t.opts.tableResizerOffset?n.css("left",a-t.opts.tableResizerOffset-t.$wp.offset().left):c<r&&parseFloat(n.css("left"),10)<c-t.opts.tableResizerOffset&&n.css("left",c-t.opts.tableResizerOffset-t.$wp.offset().left)}else i&&B()}function K(n){t.node.isEmpty(n.get(0))?n.prepend(e.FE.MARKERS):n.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER)}function V(){t.shared.$ti_helper||(t.shared.$ti_helper=e('<div class="fr-insert-helper"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Insert")+'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a></div>'),t.events.bindClick(t.shared.$ti_helper,"a",function(){var e=r.data("selected-cell"),n=r.data("position"),o=r.data("instance")||t;"before"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),o.table.insertColumn(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"after"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),o.table.insertColumn(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"above"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),o.table.insertRow(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"below"==n&&(t.undo.saveStep(),e.addClass("fr-selected-cell"),o.table.insertRow(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()),B()}),t.events.on("shared.destroy",function(){t.shared.$ti_helper.html("").removeData().remove(),t.shared.$ti_helper=null},!0),t.events.$on(t.shared.$ti_helper,"mousemove",function(e){e.stopPropagation()},!0),t.events.$on(e(t.o_win),"scroll",function(){B()},!0),t.events.$on(t.$wp,"scroll",function(){B()},!0)),r=t.shared.$ti_helper,t.events.on("destroy",function(){r=null}),t.tooltip.bind(t.$box,".fr-insert-helper > a.fr-floating-btn")}function G(){a=null,clearTimeout(s)}function X(){return t.el.querySelectorAll(".fr-selected-cell")}function Z(){var n=X();if(n.length){for(var r=n[0];r&&"TABLE"!=r.tagName&&r.parentNode!=t.el;)r=r.parentNode;return r&&"TABLE"==r.tagName?e(r):e([])}return e([])}return{_init:function(){if(!t.$wp)return!1;if(!t.helpers.isMobile()){l=o=i=!1,t.events.$on(t.$el,"mousedown",M),t.popups.onShow("image.edit",function(){S(),o=i=!1}),t.popups.onShow("link.edit",function(){S(),o=i=!1}),t.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&S()}),t.events.$on(t.$el,"mouseenter","th, td",L),t.events.$on(t.$win,"mouseup",I),t.opts.iframe&&t.events.$on(e(t.o_win),"mouseup",I),t.events.$on(t.$win,"mousemove",Y),t.events.$on(e(t.o_win),"scroll",H),t.events.on("contentChanged",function(){0<X().length&&(c(),t.$el.find("img").on("load.selected-cells",function(){e(this).off("load.selected-cells"),0<X().length&&c()}))}),t.events.$on(e(t.o_win),"resize",function(){S()}),t.events.on("toolbar.esc",function(){if(0<X().length)return t.events.disableBlur(),t.events.focus(),!1},!0),t.events.$on(e(t.o_win),"keydown",function(){i&&o&&(o=i=!1,t.$el.removeClass("fr-no-selection"),t.edit.on(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell:last").get(0)),t.selection.restore(),S())}),t.events.$on(t.$el,"keydown",function(n){n.shiftKey?!1===function(n){var r=X();if(0<r.length){var o,i,a=w(),s=n.which;1==r.length?i=o=r[0]:(o=t.el.querySelector(".fr-cell-fixed"),i=t.el.querySelector(".fr-cell-handler"));var l=E(i,a);if(e.FE.KEYCODE.ARROW_RIGHT==s){if(l.col<a[0].length-1)return j(o,a[l.row][l.col+1]),!1}else if(e.FE.KEYCODE.ARROW_DOWN==s){if(l.row<a.length-1)return j(o,a[l.row+1][l.col]),!1}else if(e.FE.KEYCODE.ARROW_LEFT==s){if(0<l.col)return j(o,a[l.row][l.col-1]),!1}else if(e.FE.KEYCODE.ARROW_UP==s&&0<l.row)return j(o,a[l.row-1][l.col]),!1}}(n)&&setTimeout(function(){c()},0):function(n){var r=n.which,o=t.selection.blocks();if(o.length&&("TD"==(o=o[0]).tagName||"TH"==o.tagName)){for(var i=o;i&&"TABLE"!=i.tagName&&i.parentNode!=t.el;)i=i.parentNode;if(i&&"TABLE"==i.tagName&&(e.FE.KEYCODE.ARROW_LEFT==r||e.FE.KEYCODE.ARROW_UP==r||e.FE.KEYCODE.ARROW_RIGHT==r||e.FE.KEYCODE.ARROW_DOWN==r)&&(0<X().length&&N(),t.browser.webkit&&(e.FE.KEYCODE.ARROW_UP==r||e.FE.KEYCODE.ARROW_DOWN==r))){var a=t.selection.ranges(0).startContainer;if(a.nodeType==Node.TEXT_NODE&&(e.FE.KEYCODE.ARROW_UP==r&&(a.previousSibling&&"BR"!==a.previousSibling.tagName||a.previousSibling&&"BR"===a.previousSibling.tagName&&a.previousSibling.previousSibling)||e.FE.KEYCODE.ARROW_DOWN==r&&(a.nextSibling&&"BR"!==a.nextSibling.tagName||a.nextSibling&&"BR"===a.nextSibling.tagName&&a.nextSibling.nextSibling)))return;n.preventDefault(),n.stopPropagation();var s=w(e(i)),l=E(o,s);e.FE.KEYCODE.ARROW_UP==r?D(l,i,s):e.FE.KEYCODE.ARROW_DOWN==r&&R(l,i,s),t.selection.restore()}}}(n)}),t.events.on("keydown",function(n){if(!1===function(n){if(n.which==e.FE.KEYCODE.TAB){var r;if(0<X().length)r=t.$el.find(".fr-selected-cell:last");else{var o=t.selection.element();"TD"==o.tagName||"TH"==o.tagName?r=e(o):o!=t.el&&(0<e(o).parentsUntil(t.$el,"td").length?r=e(o).parents("td:first"):0<e(o).parentsUntil(t.$el,"th").length&&(r=e(o).parents("th:first")))}if(r)return n.preventDefault(),!!(0===t.selection.get().focusOffset&&0<e(t.selection.element()).parentsUntil(t.$el,"ol, ul").length&&(0<e(t.selection.element()).closest("li").prev().length||e(t.selection.element()).is("li")&&0<e(t.selection.element()).prev().length))||(N(),n.shiftKey?0<r.prev().length?K(r.prev()):0<r.closest("tr").length&&0<r.closest("tr").prev().length?K(r.closest("tr").prev().find("td:last")):0<r.closest("tbody").length&&0<r.closest("table").find("thead tr").length&&K(r.closest("table").find("thead tr th:last")):0<r.next().length?K(r.next()):0<r.closest("tr").length&&0<r.closest("tr").next().length?K(r.closest("tr").next().find("td:first")):0<r.closest("thead").length&&0<r.closest("table").find("tbody tr").length?K(r.closest("table").find("tbody tr td:first")):(r.addClass("fr-selected-cell"),m("below"),S(),K(r.closest("tr").next().find("td:first"))),t.selection.restore(),!1)}}(n))return!1;var r=X();if(0<r.length){if(0<r.length&&t.keys.ctrlKey(n)&&n.which==e.FE.KEYCODE.A)return S(),t.popups.isVisible("table.edit")&&t.popups.hide("table.edit"),r=[],!0;if(n.which==e.FE.KEYCODE.ESC&&t.popups.isVisible("table.edit"))return S(),t.popups.hide("table.edit"),n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),!(r=[]);if(1<r.length&&(n.which==e.FE.KEYCODE.BACKSPACE||n.which==e.FE.KEYCODE.DELETE)){t.undo.saveStep();for(var o=0;o<r.length;o++)e(r[o]).html("<br>"),o==r.length-1&&e(r[o]).prepend(e.FE.MARKERS);return t.selection.restore(),t.undo.saveStep(),!(r=[])}if(1<r.length&&n.which!=e.FE.KEYCODE.F10&&!t.keys.isBrowserAction(n))return n.preventDefault(),!(r=[])}else if(!(r=[])===function(n){if(n.altKey&&n.which==e.FE.KEYCODE.SPACE){var r,o=t.selection.element();if("TD"==o.tagName||"TH"==o.tagName?r=o:0<e(o).closest("td").length?r=e(o).closest("td").get(0):0<e(o).closest("th").length&&(r=e(o).closest("th").get(0)),r)return n.preventDefault(),j(r,r),c(),!1}}(n))return!1},!0);var n=[];t.events.on("html.beforeGet",function(){n=X();for(var e=0;e<n.length;e++)n[e].className=(n[e].className||"").replace(/fr-selected-cell/g,"")}),t.events.on("html.afterGet",function(){for(var e=0;e<n.length;e++)n[e].className=(n[e].className?n[e].className.trim()+" ":"")+"fr-selected-cell";n=[]}),f(!0),p(!0)}t.events.on("destroy",G)},insert:function(n,r){var o,i,a="<table "+(t.opts.tableDefaultWidth?'style="width: '+t.opts.tableDefaultWidth+';" ':"")+'class="fr-inserted-table"><tbody>',s=100/r;for(o=0;o<n;o++){for(a+="<tr>",i=0;i<r;i++)a+="<td"+(t.opts.tableDefaultWidth?' style="width: '+s.toFixed(4)+'%;"':"")+">",0===o&&0===i&&(a+=e.FE.MARKERS),a+="<br></td>";a+="</tr>"}a+="</tbody></table>",t.html.insert(a),t.selection.restore();var l=t.$el.find(".fr-inserted-table");l.removeClass("fr-inserted-table"),t.events.trigger("table.inserted",[l.get(0)])},remove:h,insertRow:m,deleteRow:function(){var n=Z();if(0<n.length){var r,o,i,a=w(),s=C(a);if(0===s.min_i&&s.max_i==a.length-1)h();else{for(r=s.max_i;r>=s.min_i;r--){for(i=e(n.find("tr").not(n.find("table tr")).get(r)),o=0;o<a[r].length;o++)if(0===o||a[r][o]!=a[r][o-1]){var l=e(a[r][o]);if(1<parseInt(l.attr("rowspan"),10)){var c=parseInt(l.attr("rowspan"),10)-1;1==c?l.removeAttr("rowspan"):l.attr("rowspan",c)}if(r<a.length-1&&a[r][o]==a[r+1][o]&&(0===r||a[r][o]!=a[r-1][o])){for(var u=a[r][o],f=o;0<f&&a[r][f]==a[r][f-1];)f--;0===f?e(n.find("tr").not(n.find("table tr")).get(r+1)).prepend(u):e(a[r+1][f-1]).after(u)}}var d=i.parent();i.remove(),0===d.find("tr").length&&d.remove(),a=w(n)}b(0,a.length-1,0,a[0].length-1,n),0<s.min_i?t.selection.setAtEnd(a[s.min_i-1][0]):t.selection.setAtEnd(a[0][0]),t.selection.restore(),t.popups.hide("table.edit")}}},insertColumn:function(n){var r=Z();if(0<r.length){var o,i=w(),a=C(i);o="before"==n?a.min_j:a.max_j;var s,l=100/i[0].length,u=100/(i[0].length+1);r.find("th, td").each(function(){(s=e(this)).data("old-width",s.outerWidth()/r.outerWidth()*100)}),r.find("tr").not(r.find("table tr")).each(function(t){for(var r,a=e(this),s=0,c=0;s-1<o;){if(!(r=a.find("> th, > td").get(c))){r=null;break}r==i[t][s]?(s+=parseInt(e(r).attr("colspan"),10)||1,c++):(s+=parseInt(e(i[t][s]).attr("colspan"),10)||1,"after"==n&&(r=0===c?-1:a.find("> th, > td").get(c-1)))}var f,d=e(r);if("after"==n&&o<s-1||"before"==n&&0<o&&i[t][o]==i[t][o-1]){if(0===t||0<t&&i[t][o]!=i[t-1][o]){var p=parseInt(d.attr("colspan"),10)+1;d.attr("colspan",p),d.css("width",(d.data("old-width")*u/l+u).toFixed(4)+"%"),d.removeData("old-width")}}else f=0<a.find("th").length?'<th style="width: '+u.toFixed(4)+'%;"><br></th>':'<td style="width: '+u.toFixed(4)+'%;"><br></td>',-1==r?a.prepend(f):null==r?a.append(f):"before"==n?d.before(f):"after"==n&&d.after(f)}),r.find("th, td").each(function(){(s=e(this)).data("old-width")&&(s.css("width",(s.data("old-width")*u/l).toFixed(4)+"%"),s.removeData("old-width"))}),t.popups.isVisible("table.edit")&&c()}},deleteColumn:function(){var n=Z();if(0<n.length){var r,o,i,a=w(),s=C(a);if(0===s.min_j&&s.max_j==a[0].length-1)h();else{var l=0;for(r=0;r<a.length;r++)for(o=0;o<a[0].length;o++)(i=e(a[r][o])).hasClass("fr-selected-cell")||(i.data("old-width",i.outerWidth()/n.outerWidth()*100),(o<s.min_j||o>s.max_j)&&(l+=i.outerWidth()/n.outerWidth()*100));for(l/=a.length,o=s.max_j;o>=s.min_j;o--)for(r=0;r<a.length;r++)if(0===r||a[r][o]!=a[r-1][o])if(i=e(a[r][o]),1<(parseInt(i.attr("colspan"),10)||1)){var c=parseInt(i.attr("colspan"),10)-1;1==c?i.removeAttr("colspan"):i.attr("colspan",c),i.css("width",(100*(i.data("old-width")-W(o,a))/l).toFixed(4)+"%"),i.removeData("old-width")}else{var u=e(i.parent().get(0));i.remove(),0===u.find("> th, > td").length&&(0===u.prev().length||0===u.next().length||u.prev().find("> th[rowspan], > td[rowspan]").length<u.prev().find("> th, > td").length)&&u.remove()}b(0,a.length-1,0,a[0].length-1,n),0<s.min_j?t.selection.setAtEnd(a[s.min_i][s.min_j-1]):t.selection.setAtEnd(a[s.min_i][0]),t.selection.restore(),t.popups.hide("table.edit"),n.find("th, td").each(function(){(i=e(this)).data("old-width")&&(i.css("width",(100*i.data("old-width")/l).toFixed(4)+"%"),i.removeData("old-width"))})}}},mergeCells:function(){if(1<X().length&&(0===t.$el.find("th.fr-selected-cell").length||0===t.$el.find("td.fr-selected-cell").length)){k();var n,r,o=C(w()),i=t.$el.find(".fr-selected-cell"),a=e(i[0]),s=a.parent().find(".fr-selected-cell"),l=a.closest("table"),u=a.html(),f=0;for(n=0;n<s.length;n++)f+=e(s[n]).outerWidth();for(a.css("width",Math.min(100,f/l.outerWidth()*100).toFixed(4)+"%"),o.min_j<o.max_j&&a.attr("colspan",o.max_j-o.min_j+1),o.min_i<o.max_i&&a.attr("rowspan",o.max_i-o.min_i+1),n=1;n<i.length;n++)"<br>"!=(r=e(i[n])).html()&&""!==r.html()&&(u+="<br>"+r.html()),r.remove();a.html(u),t.selection.setAtEnd(a.get(0)),t.selection.restore(),t.toolbar.enable(),g(o.min_i,o.max_i,l);var d=l.find("tr:empty");for(n=d.length-1;0<=n;n--)e(d[n]).remove();v(o.min_j,o.max_j,l),c()}},splitCellVertically:function(){if(1==X().length){var n=t.$el.find(".fr-selected-cell"),r=parseInt(n.attr("colspan"),10)||1,o=n.parent().outerWidth(),i=n.outerWidth(),a=n.clone().html("<br>"),s=w(),l=E(n.get(0),s);if(1<r){var c=Math.ceil(r/2);i=$(l.col,l.col+c-1,s)/o*100;var u=$(l.col+c,l.col+r-1,s)/o*100;1<c?n.attr("colspan",c):n.removeAttr("colspan"),1<r-c?a.attr("colspan",r-c):a.removeAttr("colspan"),n.css("width",i.toFixed(4)+"%"),a.css("width",u.toFixed(4)+"%")}else{var f;for(f=0;f<s.length;f++)if(0===f||s[f][l.col]!=s[f-1][l.col]){var d=e(s[f][l.col]);if(!d.is(n)){var p=(parseInt(d.attr("colspan"),10)||1)+1;d.attr("colspan",p)}}i=i/o*100/2,n.css("width",i.toFixed(4)+"%"),a.css("width",i.toFixed(4)+"%")}n.after(a),S(),t.popups.hide("table.edit")}},splitCellHorizontally:function(){if(1==X().length){var n=t.$el.find(".fr-selected-cell"),r=n.parent(),o=n.closest("table"),i=parseInt(n.attr("rowspan"),10),a=w(),s=E(n.get(0),a),l=n.clone().html("<br>");if(1<i){var c=Math.ceil(i/2);1<c?n.attr("rowspan",c):n.removeAttr("rowspan"),1<i-c?l.attr("rowspan",i-c):l.removeAttr("rowspan");for(var u=s.row+c,f=0===s.col?s.col:s.col-1;0<=f&&(a[u][f]==a[u][f-1]||0<u&&a[u][f]==a[u-1][f]);)f--;-1==f?e(o.find("tr").not(o.find("table tr")).get(u)).prepend(l):e(a[u][f]).after(l)}else{var d,p=e("<tr>").append(l);for(d=0;d<a[0].length;d++)if(0===d||a[s.row][d]!=a[s.row][d-1]){var h=e(a[s.row][d]);h.is(n)||h.attr("rowspan",(parseInt(h.attr("rowspan"),10)||1)+1)}r.after(p)}S(),t.popups.hide("table.edit")}},addHeader:function(){var t=Z();if(0<t.length&&0===t.find("th").length){var n,r="<thead><tr>",o=0;for(t.find("tr:first > td").each(function(){var t=e(this);o+=parseInt(t.attr("colspan"),10)||1}),n=0;n<o;n++)r+="<th><br></th>";r+="</tr></thead>",t.prepend(r),c()}},removeHeader:function(){var e=Z(),n=e.find("thead");if(0<n.length)if(0===e.find("tbody tr").length)h();else if(n.remove(),0<X().length)c();else{t.popups.hide("table.edit");var r=e.find("tbody tr:first td:first").get(0);r&&(t.selection.setAtEnd(r),t.selection.restore())}},setBackground:_,showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertTable"]'),n=t.popups.get("table.insert");if(n||(n=f()),!n.hasClass("fr-active")){t.popups.refresh("table.insert"),t.popups.setContainer("table.insert",t.$tb);var r=e.offset().left+e.outerWidth()/2,o=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("table.insert",r,o,e.outerHeight())}},showEditPopup:c,showColorsPopup:function n(){var r,o,i,a,s=w();if(s){var l=t.popups.get("table.colors");l||(l=function(){var r="";0<t.opts.tableColorsButtons.length&&(r='<div class="fr-buttons fr-table-colors-buttons">'+t.button.buildList(t.opts.tableColorsButtons)+"</div>");var o="";t.opts.colorsHEXInput&&(o='<div class="fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'+t.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="tableCellBackgroundCustomColor" tabIndex="2" role="button">'+t.language.translate("OK")+"</button></div></div>");var i,a={buttons:r,colors:function(){for(var e='<div class="fr-table-colors">',n=0;n<t.opts.tableColors.length;n++)0!==n&&n%t.opts.tableColorsStep==0&&(e+="<br>"),"REMOVE"!=t.opts.tableColors[n]?e+='<span class="fr-command" style="background: '+t.opts.tableColors[n]+';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="'+t.opts.tableColors[n]+'"><span class="fr-sr-only">'+t.language.translate("Color")+" "+t.opts.tableColors[n]+"&nbsp;&nbsp;&nbsp;</span></span>":e+='<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'+t.language.translate("Clear Formatting")+'">'+t.icon.create("tableColorRemove")+'<span class="fr-sr-only">'+t.language.translate("Clear Formatting")+"</span></span>";return e+="</div>"}(),custom_color:o},s=t.popups.create("table.colors",a);return t.events.$on(t.$wp,"scroll.table-colors",function(){t.popups.isVisible("table.colors")&&n()}),i=s,t.events.on("popup.tab",function(n){var r=e(n.currentTarget);if(!t.popups.isVisible("table.colors")||!r.is("span"))return!0;var o=n.which,a=!0;if(e.FE.KEYCODE.TAB==o){var s=i.find(".fr-buttons");a=!t.accessibility.focusToolbar(s,!!n.shiftKey)}else if(e.FE.KEYCODE.ARROW_UP==o||e.FE.KEYCODE.ARROW_DOWN==o||e.FE.KEYCODE.ARROW_LEFT==o||e.FE.KEYCODE.ARROW_RIGHT==o){var l=r.parent().find("span.fr-command"),c=l.index(r),u=t.opts.colorsStep,f=Math.floor(l.length/u),d=c%u,p=Math.floor(c/u),h=p*u+d,m=f*u;e.FE.KEYCODE.ARROW_UP==o?h=((h-u)%m+m)%m:e.FE.KEYCODE.ARROW_DOWN==o?h=(h+u)%m:e.FE.KEYCODE.ARROW_LEFT==o?h=((h-1)%m+m)%m:e.FE.KEYCODE.ARROW_RIGHT==o&&(h=(h+1)%m);var v=e(l.get(h));t.events.disableBlur(),v.focus(),a=!1}else e.FE.KEYCODE.ENTER==o&&(t.button.exec(r),a=!1);return!1===a&&(n.preventDefault(),n.stopPropagation()),a},!0),s}()),t.popups.setContainer("table.colors",t.$sc);var c=O(s),u=(c.left+c.right)/2,f=c.bottom;r=t.popups.get("table.colors"),o=t.$el.find(".fr-selected-cell:first"),i=t.helpers.RGBToHex(o.css("background-color")),a=r.find(".fr-table-colors-hex-layer input"),r.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),r.find('span[data-param1="'+i+'"]').addClass("fr-selected-color fr-active-item"),a.val(i).trigger("change"),t.popups.show("table.colors",u,f,c.bottom-c.top)}},back:function(){0<X().length?c():(t.popups.hide("table.insert"),t.toolbar.showInline())},verticalAlign:function(e){t.$el.find(".fr-selected-cell").css("vertical-align",e)},horizontalAlign:function(e){t.$el.find(".fr-selected-cell").css("text-align",e)},applyStyle:function(e,t,n,r){if(0<t.length){if(!n){var o=Object.keys(r);o.splice(o.indexOf(e),1),t.removeClass(o.join(" "))}t.toggleClass(e)}},selectedTable:Z,selectedCells:X,customColor:function(){var e=t.popups.get("table.colors").find(".fr-table-colors-hex-layer input");e.length&&_(e.val())},selectCells:j}},e.FE.DefineIcon("insertTable",{NAME:"table"}),e.FE.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):this.table.showInsertPopup()},plugin:"table"}),e.FE.RegisterCommand("tableInsert",{callback:function(e,t,n){this.table.insert(t,n),this.popups.hide("table.insert")}}),e.FE.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading"}),e.FE.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]').hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(e){var t=this.table.selectedTable();0<t.length&&(0===t.find("th").length?e.removeClass("fr-active").attr("aria-pressed",!1):e.addClass("fr-active").attr("aria-pressed",!0))}}),e.FE.DefineIcon("tableRows",{NAME:"bars"}),e.FE.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below",delete:"Delete row"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableRows.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+="</ul>"},callback:function(e,t){"above"==t||"below"==t?this.table.insertRow(t):this.table.deleteRow()}}),e.FE.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90"}),e.FE.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after",delete:"Delete column"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableColumns.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+="</ul>"},callback:function(e,t){"before"==t||"after"==t?this.table.insertColumn(t):this.table.deleteColumn()}}),e.FE.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square"}),e.FE.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableCells.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+="</ul>"},callback:function(e,t){"merge"==t?this.table.mergeCells():"vertical-split"==t?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(e,t){1<this.$el.find(".fr-selected-cell").length?(t.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(t.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),t.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}}),e.FE.DefineIcon("tableRemove",{NAME:"trash"}),e.FE.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),e.FE.DefineIcon("tableStyle",{NAME:"paint-brush"}),e.FE.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(t,n){var r=this.$el.find(".fr-selected-cell").closest("table");r&&n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=r.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}}),e.FE.DefineIcon("tableCellBackground",{NAME:"tint"}),e.FE.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),e.FE.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(e,t){this.table.setBackground(t)}}),e.FE.DefineIcon("tableBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(e){0!==this.table.selectedCells().length||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.FE.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v"}),e.FE.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableCellVerticalAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'+r.toLowerCase()+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(r)+"</a></li>");return t+="</ul>"},callback:function(e,t){this.table.verticalAlign(t)},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.FE.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left"}),e.FE.DefineIcon("align-left",{NAME:"align-left"}),e.FE.DefineIcon("align-right",{NAME:"align-right"}),e.FE.DefineIcon("align-center",{NAME:"align-center"}),e.FE.DefineIcon("align-justify",{NAME:"align-justify"}),e.FE.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableCellHorizontalAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.icon.create("align-"+r)+'<span class="fr-sr-only">'+this.language.translate(n[r])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.table.horizontalAlign(t)},refresh:function(t){var n=this.table.selectedCells();n.length&&t.find("> *:first").replaceWith(this.icon.create("align-"+this.helpers.getAlignment(e(n[0]))))},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell:first"))+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.FE.DefineIcon("tableCellStyle",{NAME:"magic"}),e.FE.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableCellStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(t,n){var r=this.$el.find(".fr-selected-cell:first");r&&n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=r.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}}),e.FE.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),e.FE.DefineIcon("tableColorRemove",{NAME:"eraser"})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.FE.URLRegEx="(^| |\\u00A0)("+e.FE.LinkRegEx+"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$",e.FE.PLUGINS.url=function(t){var n=null;function r(e,r,o){for(var i="";o.length&&"."==o[o.length-1];)i+=".",o=o.substring(0,o.length-1);var a=o;if(t.opts.linkConvertEmailAddress)t.helpers.isEmail(a)&&!/^mailto:.*/i.test(a)&&(a="mailto:"+a);else if(t.helpers.isEmail(a))return r+o;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(a)||(a="//"+a),(r||"")+"<a"+(t.opts.linkAlwaysBlank?' target="_blank"':"")+(n?' rel="'+n+'"':"")+' data-fr-linked="true" href="'+a+'">'+o.replace(/&amp;/g,"&").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</a>"+i}function o(){return new RegExp(e.FE.URLRegEx,"gi")}function i(e){return t.opts.linkAlwaysNoFollow&&(n="nofollow"),t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),e.replace(o(),r)}function a(e){var t=e.split(" ");return t[t.length-1]}function s(){var n=t.selection.ranges(0),r=n.startContainer;if(!r||r.nodeType!==Node.TEXT_NODE||n.startOffset!==(r.textContent||"").length)return!1;if(function e(n){return!!n&&("A"===n.tagName||!(!n.parentNode||n.parentNode==t.el)&&e(n.parentNode))}(r))return!1;if(o().test(a(r.textContent))){e(r).before(i(r.textContent));var s=e(r.parentNode).find("a[data-fr-linked]");s.removeAttr("data-fr-linked"),r.parentNode.removeChild(r),t.events.trigger("url.linked",[s.get(0)])}else if(r.textContent.split(" ").length<=2&&r.previousSibling&&"A"===r.previousSibling.tagName){var l=r.previousSibling.innerText+r.textContent;o().test(a(l))&&(e(r.previousSibling).replaceWith(i(l)),r.parentNode.removeChild(r))}}return{_init:function(){t.events.on("keypress",function(e){!t.selection.isCollapsed()||"."!=e.key&&")"!=e.key&&"("!=e.key||s()},!0),t.events.on("keydown",function(n){var r=n.which;!t.selection.isCollapsed()||r!=e.FE.KEYCODE.ENTER&&r!=e.FE.KEYCODE.SPACE||s()},!0),t.events.on("paste.beforeCleanup",function(e){if(t.helpers.isURL(e)){var n=null;return t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),"<a"+(t.opts.linkAlwaysBlank?' target="_blank"':"")+(n?' rel="'+n+'"':"")+' href="'+e+'" >'+e+"</a>"}})}}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */o=[n(53)],void 0===(i="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),e.FE.PLUGINS.wordPaste=function(t){var n,r,o="word_paste";function i(n){var i=t.opts.wordAllowedStyleProps;n||(t.opts.wordAllowedStyleProps=[]),0===r.indexOf("<colgroup>")&&(r="<table>"+r+"</table>"),r=function(n,r){0<=n.indexOf("<html")&&(n=n.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1")),function(e){for(var t=e.split("v:shape"),n=1;n<t.length;n++){var r=t[n],o=r.split(' id="')[1];if(o&&1<o.length){o=o.split('"')[0];var i=r.split(' o:spid="')[1];i&&1<i.length&&(i=i.split('"')[0],g[o]=i)}}}(n);var o=(new DOMParser).parseFromString(n,"text/html"),i=o.head,f=o.body,p=function(e){var t={},n=e.getElementsByTagName("style");if(n.length){var r=n[0],o=r.innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(o)for(var i=0;i<o.length;i++){var a=o[i],s=a.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),l=a.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1");s=s.replace(/^[\s]|[\s]$/gm,""),l=l.replace(/^[\s]|[\s]$/gm,""),s=s.replace(/\n|\r|\n\r/g,""),l=l.replace(/\n|\r|\n\r/g,"");for(var c=s.split(", "),u=0;u<c.length;u++)t[c[u]]=l}}return t}(i);s(f,function(t){if(t.nodeType==Node.TEXT_NODE&&/\n|\u00a0|\r/.test(t.data)){if(!/\S| /.test(t.data)&&!/[\u00a0]+/.test(t.data))return t.data==e.FE.UNICODE_NBSP?(t.data="​",!0):1==t.data.length&&10==t.data.charCodeAt(0)?(t.data=" ",!0):(a(t),!1);t.data=t.data.replace(/\n|\r/gi," ")}return!0}),s(f,function(n){return n.nodeType!=Node.ELEMENT_NODE||"V:IMAGEDATA"!=n.tagName&&"IMG"!=n.tagName||function(n,r){if(r){var o;if("IMG"==n.tagName){var i=n.getAttribute("src");if(!i||-1==i.indexOf("file://"))return;if(0===i.indexOf("file://")&&t.helpers.isURL(n.getAttribute("alt")))return n.setAttribute("src",n.getAttribute("alt"));(o=g[n.getAttribute("v:shapes")])||(o=n.getAttribute("v:shapes"),n.parentNode&&n.parentNode.parentNode&&0<=n.parentNode.parentNode.innerHTML.indexOf("msEquation")&&(o=null))}else o=n.parentNode.getAttribute("o:spid");if(n.removeAttribute("height"),o){var a;h={},m(a=r,"i","\\shppict"),m(a,"s","\\shp{");var s=h[o.substring(7)];if(s){var l=function(e){for(var t=e.match(/[0-9a-f]{2}/gi),n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(parseInt(t[r],16)));var o=n.join("");return btoa(o)}(s.image_hex),c="data:"+s.image_type+";base64,"+l;"IMG"===n.tagName?(n.src=c,n.setAttribute("data-fr-image-pasted",!0)):e(n.parentNode).before('<img data-fr-image-pasted="true" src="'+c+'" style="'+n.parentNode.getAttribute("style")+'">').remove()}}}}(n,r),!0});for(var y=f.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),b=y.length-1;0<=b;b--)y[b].previousElementSibling&&"LI"===y[b].previousElementSibling.tagName&&y[b].previousElementSibling.appendChild(y[b]);s(f,function(e){if(e.nodeType==Node.TEXT_NODE)return e.data=e.data.replace(/<br>(\n|\r)/gi,"<br>"),!1;if(e.nodeType==Node.ELEMENT_NODE){if(l(e)){var t=e.parentNode,n=e.previousSibling,r=function e(t,n,r){var o,i,a,s,u,f=/[0-9a-zA-Z]./gi,d=!1,p=t.querySelector('span[style="mso-list:Ignore"]');p&&(d=d||f.test(p.textContent));for(var h=d?"ol":"ul",m="<"+h+">";t;){if(!l(t)){if(t.outerHTML&&0<t.outerHTML.indexOf("mso-bookmark")&&0===(t.textContent||"").length){t=t.nextElementSibling;continue}break}var v=t.getAttribute("style").replace(/\n/gi,"").replace(/.*level([0-9]+?).*/gi,"$1");if((r=r||v)<v)u=e(t,n,v),m+=u.el.outerHTML,t=u.currentNode;else{if(v<r)break;t.firstElementChild&&t.firstElementChild.firstElementChild&&t.firstElementChild.firstElementChild.firstChild&&(f.lastIndex=0,i=f.test(t.firstElementChild.firstElementChild.firstChild.data||"")),o&&o.firstElementChild&&o.firstElementChild.firstElementChild&&o.firstElementChild.firstElementChild.firstChild&&(f.lastIndex=0,a=f.test(o.firstElementChild.firstElementChild.firstChild.data||"")),void 0===a||a===i?(s=c(t,n),m+="<li>"+s+"</li>"):(u=e(t,n,v),m+=u.el.outerHTML,t=u.currentNode);var g=t&&t.nextElementSibling;g&&(o=g.previousElementSibling),t&&t.parentNode&&t.parentNode.removeChild(t),t=g}}m+="</"+h+">";var y=document.createElement("div");y.innerHTML=m;var b=y.firstElementChild;return{el:b,currentNode:t}}(e,p).el,o=null;return(o=n?n.nextSibling:t.firstChild)?t.insertBefore(r,o):t.appendChild(r),!1}return"FONT"===e.tagName&&p["."+e.getAttribute("class")]&&(e=u(e,"span")),v(e,p)}if(e.nodeType==Node.COMMENT_NODE){if(-1<e.data.indexOf("[if !supportLineBreakNewLine]"))for(var i=e.nextSibling;i;)(i=e.nextSibling)&&a(i),i.data&&-1<i.data.indexOf("[endif]")&&(i=null);return a(e),!1}return!0}),s(f,function(e){if(e.nodeType==Node.ELEMENT_NODE){var t=e.tagName;if(!e.innerHTML&&-1==["BR","IMG"].indexOf(t)){for(var n=e.parentNode;n&&(a(e),!(e=n).innerHTML);)n=e.parentNode;return!1}!function(e){var t=e.getAttribute("style");if(t){(t=d(t))&&";"!=t.slice(-1)&&(t+=";");var n=t.match(/(^|\S+?):.+?;{1,1}/gi);if(n){for(var r={},o=0;o<n.length;o++){var i=n[o],a=i.split(":");2==a.length&&("text-align"==a[0]&&"SPAN"==e.tagName||(r[a[0]]=a[1]))}var s="";for(var l in r)if(r.hasOwnProperty(l)){if("font-size"==l&&"pt;"==r[l].slice(-3)){var c=null;try{c=parseFloat(r[l].slice(0,-3),10)}catch(e){}c&&(c=Math.round(1.33*c),r[l]=c+"px;")}s+=l+":"+r[l]}s&&e.setAttribute("style",s)}}}(e)}return!0}),s(f,function(e){if(e&&"A"===e.nodeName&&""===e.href){for(var t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)}return!0});var _=f.outerHTML,w=t.opts.htmlAllowedStyleProps;return t.opts.htmlAllowedStyleProps=t.opts.wordAllowedStyleProps,_=t.clean.html(_,t.opts.wordDeniedTags,t.opts.wordDeniedAttrs,!1),t.opts.htmlAllowedStyleProps=w,_}(r=r.replace(/<span[\n\r ]*style='mso-spacerun:yes'>([\r\n\u00a0 ]*)<\/span>/g,function(e,t){for(var n="",r=0;r++<t.length;)n+="&nbsp;";return n}),t.paste.getRtfClipboard());var f=t.doc.createElement("DIV");f.innerHTML=r,t.html.cleanBlankSpaces(f),r=f.innerHTML,r=(r=t.paste.cleanEmptyTagsAndDivs(r)).replace(/\u200b/g,""),t.modals.hide(o),t.paste.clean(r,!0,!0),t.opts.wordAllowedStyleProps=i}function a(e){e.parentNode&&e.parentNode.removeChild(e)}function s(e,t){if(t(e))for(var n=e.firstChild;n;){var r=n,o=n.previousSibling;n=n.nextSibling,s(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||o==n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(o?n=o.nextSibling?o.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=o?o.nextSibling:e.firstChild}}function l(e){if(!e.getAttribute("style")||!/mso-list:[\s]*l/gi.test(e.getAttribute("style").replace(/\n/gi,"")))return!1;try{if(!e.querySelector('[style="mso-list:Ignore"]'))return!!(e.outerHTML&&0<=e.outerHTML.indexOf("\x3c!--[if !supportLists]--\x3e"))}catch(e){return!1}return!0}function c(e,n){var r=e.cloneNode(!0);if(-1!=["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName)){var o=document.createElement(e.tagName.toLowerCase());o.setAttribute("style",e.getAttribute("style")),o.innerHTML=r.innerHTML,r.innerHTML=o.outerHTML}s(r,function(e){if(e.nodeType==Node.COMMENT_NODE&&(t.browser.msie||t.browser.safari||t.browser.edge))try{if("[if !supportLists]"===e.data){for(e=e.nextSibling;e&&e.nodeType!==Node.COMMENT_NODE;){var o=e.nextSibling;e.parentNode.removeChild(e),e=o}e&&e.nodeType==Node.COMMENT_NODE&&e.parentNode.removeChild(e)}}catch(e){}var i,a;return e.nodeType==Node.ELEMENT_NODE&&("mso-list:Ignore"==e.getAttribute("style")&&e.parentNode.removeChild(e),e.setAttribute("style",(i="",a=r.getAttribute("style"),["line-height","font-family","font-size"].forEach(function(e){var t=a.match(new RegExp(e+":.*;"));t&&(i+=t[0]+";")}),i)),v(e,n)),!0});var i=r.innerHTML;return i=i.replace(/<!--[\s\S]*?-->/gi,"")}function u(e,t){for(var n=document.createElement(t),r=0;r<e.attributes.length;r++){var o=e.attributes[r].name;n.setAttribute(o,e.getAttribute(o))}return n.innerHTML=e.innerHTML,e.parentNode.replaceChild(n,e),n}function f(e){var t=e.getAttribute("align");t&&(e.style["text-align"]=t,e.removeAttribute("align"))}function d(e){return e.replace(/\n|\r|\n\r|&quot;/g,"")}function p(e,t,n){if(t){var r=e.getAttribute("style");r&&";"!=r.slice(-1)&&(r+=";"),t&&";"!=t.slice(-1)&&(t+=";"),t=t.replace(/\n/gi,"");var o=null;o=n?(r||"")+t:t+(r||""),e.setAttribute("style",o)}}var h=null;function m(e,t,n){for(var r=e.split(n),o=1;o<r.length;o++){var i=r[o];if(1<(i=i.split("shplid")).length){i=i[1];for(var a="",s=0;s<i.length&&"\\"!=i[s]&&"{"!=i[s]&&" "!=i[s]&&"\r"!=i[s]&&"\n"!=i[s];)a+=i[s],s++;var l=i.split("bliptag");if(l&&l.length<2)continue;var c=null;if(-1!=l[0].indexOf("pngblip")?c="image/png":-1!=l[0].indexOf("jpegblip")&&(c="image/jpeg"),!c)continue;var u,f=l[1].split("}");if(f&&f.length<2)continue;if(2<f.length&&-1!=f[0].indexOf("blipuid"))u=f[1].split(" ");else{if((u=f[0].split(" "))&&u.length<2)continue;u.shift()}var d=u.join("");h[t+a]={image_hex:d,image_type:c}}}}function v(n,r){var o=n.tagName,i=o.toLowerCase();if(n.firstElementChild&&("I"==n.firstElementChild.tagName?u(n.firstElementChild,"em"):"B"==n.firstElementChild.tagName&&u(n.firstElementChild,"strong")),-1!=["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"].indexOf(o))return a(n),!1;var s=-1,c=["META","LINK","XML","ST1:","O:","W:","FONT"];for(s=0;s<c.length;s++)if(-1!=o.indexOf(c[s]))return n.innerHTML&&(n.outerHTML=n.innerHTML),a(n),!1;if("TD"!=o){var h=n.getAttribute("class")||"MsoNormal";if(r&&h){var m=(h=d(h)).split(" ");for(s=0;s<m.length;s++){var v=[],g="."+m[s];v.push(g),g=i+g,v.push(g);for(var y=0;y<v.length;y++)r[v[y]]&&p(n,r[v[y]])}n.removeAttribute("class")}r&&r[i]&&p(n,r[i])}if(-1!=["P","H1","H2","H3","H4","H5","H6","PRE"].indexOf(o)){var b=n.getAttribute("class");if(b&&(r&&r[o.toLowerCase()+"."+b]&&p(n,r[o.toLowerCase()+"."+b]),-1!=b.toLowerCase().indexOf("mso"))){var _=d(b);(_=_.replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""))?n.setAttribute("class",_):n.removeAttribute("class")}var w=n.getAttribute("style");if(w){var E=w.match(/text-align:.+?[; "]{1,1}/gi);E&&E[E.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1")}f(n)}if("TR"==o&&function(n,r){t.node.clearAttributes(n);for(var o=n.firstElementChild,i=0,s=!1,c=null;o;){o.firstElementChild&&-1!=o.firstElementChild.tagName.indexOf("W:")&&(o.innerHTML=o.firstElementChild.innerHTML),(c=o.getAttribute("width"))||s||(s=!0),i+=parseInt(c,10),(!o.firstChild||o.firstChild&&o.firstChild.data==e.FE.UNICODE_NBSP)&&(o.firstChild&&a(o.firstChild),o.innerHTML="<br>");for(var u=o.firstElementChild,h=1==o.children.length;u;)"P"!=u.tagName||l(u)||h&&f(u),u=u.nextElementSibling;if(r){var m=o.getAttribute("class");if(m){var v=(m=d(m)).match(/xl[0-9]+/gi);if(v){var g="."+v[0];r[g]&&p(o,r[g])}}r.td&&p(o,r.td)}var y=o.getAttribute("style");y&&(y=d(y))&&";"!=y.slice(-1)&&(y+=";");var b=o.getAttribute("valign");if(!b&&y){var _=y.match(/vertical-align:.+?[; "]{1,1}/gi);_&&(b=_[_.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var w=null;if(y){var E=y.match(/text-align:.+?[; "]{1,1}/gi);E&&(w=E[E.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"==w&&(w=null)}var x=null;if(y){var k=y.match(/background:.+?[; "]{1,1}/gi);k&&(x=k[k.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var S=o.getAttribute("colspan"),T=o.getAttribute("rowspan");S&&o.setAttribute("colspan",S),T&&o.setAttribute("rowspan",T),b&&(o.style["vertical-align"]=b),w&&(o.style["text-align"]=w),x&&(o.style["background-color"]=x),c&&o.setAttribute("width",c),o=o.nextElementSibling}for(o=n.firstElementChild;o;)c=o.getAttribute("width"),s?o.removeAttribute("width"):o.setAttribute("width",100*parseInt(c,10)/i+"%"),o=o.nextElementSibling}(n,r),"A"!=o||n.attributes.getNamedItem("href")||n.attributes.getNamedItem("name")||!n.innerHTML||(n.outerHTML=n.innerHTML),"A"==o&&n.getAttribute("href")&&n.querySelector("img")){var x=n.querySelectorAll("span");for(s=0;s<x.length;s++)x[s].innerText||(x[s].outerHTML=x[s].innerHTML)}if("TD"!=o&&"TH"!=o||n.innerHTML||(n.innerHTML="<br>"),"TABLE"==o&&(n.style.width=n.style.width||"100%"),n.getAttribute("lang")&&n.removeAttribute("lang"),n.getAttribute("style")&&-1!=n.getAttribute("style").toLowerCase().indexOf("mso")){var k=d(n.getAttribute("style"));(k=k.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""))?n.setAttribute("style",k):n.removeAttribute("style")}return!0}var g={};return{_init:function(){t.events.on("paste.wordPaste",function(a){return r=a,t.opts.wordPasteModal?function(){if(!n){var r='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+t.language.translate("Word Paste Detected")+"</h4>",i=(l='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">',l+='<p style="text-align: left;">'+t.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>",l+='<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+t.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+t.language.translate("Keep")+"</button></div>",l+="</div>"),a=t.modals.create(o,r,i),s=a.$body;n=a.$modal,a.$modal.addClass("fr-middle"),t.events.bindClick(s,"button.fr-remove-word",function(){var e=n.data("instance")||t;e.wordPaste.clean()}),t.events.bindClick(s,"button.fr-keep-word",function(){var e=n.data("instance")||t;e.wordPaste.clean(!0)}),t.events.$on(e(t.o_win),"resize",function(){t.modals.resize(o)})}var l;t.modals.show(o),t.modals.resize(o)}():i(t.opts.wordPasteKeepFormatting),!1})},clean:i}}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";var r=n(1172),o=n.n(r),i=n(4),a=n.n(i),s=n(53),l=n.n(s),c=n(20),u=n.n(c),f=n(5),d=n.n(f),p=n(41),h=n.n(p),m=n(35),v=n.n(m),g=n(736),y=n.n(g),b=n(90),_=n.n(b),w=n(218),E=n.n(w),x=n(102),k=n.n(x),S=n(185),T=n.n(S),C=n(69),O=n.n(C),j=n(91),A=n.n(j),N=function(e){return _()(v()("none"),u()('<i class="fa fa-ban"></i>'),u()('<i class="fa fa-align-'.concat(e,'"></i>')))(e)},M=function(e,t){var n;return a()(n='<li role="presentation">\n    <a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="alignWithDefault" data-param1="'.concat(t,'">\n      ')).call(n,N(t),"\n    </a>\n  </li>")},I=function(e){return function(t){return h()([[v()("left"),function(){return l()(t).css("text-align","left")}],[v()("right"),function(){return l()(t).css("text-align","right")}],[v()("center"),function(){return l()(t).css("text-align","center")}],[v()("justify"),function(){return l()(t).css("text-align","justify")}],[A.a,function(){return l()(t).removeAttr("style")}]])(e)}};l.a.FroalaEditor.PLUGINS.alignWithDefault=function(e){return{apply:function(t){var n=e.selection.blocks(),r=I(t);y()(r,n),e.selection.save(),e.selection.restore()},refresh:function(t){var n=e.selection.blocks();if(n.length){var r=e.helpers.getAlignment(l()(n[0])),i=N(r||"left");o()(t).call(t,"> *:first").replaceWith(i)}}}},l.a.FroalaEditor.DefineIcon("alignWithDefault",{NAME:"ban"}),l.a.FroalaEditor.RegisterCommand("alignWithDefault",{callback:function(e,t){this.alignWithDefault.apply(t)},html:function(){var e=l.a.FroalaEditor.COMMANDS.alignWithDefault.options,t=d()(E()(""),O.a,k()(M));return T()(/{html}/,t(e),'<ul class="fr-dropdown-list" role="presentation">{html}</ul>')},icon:"alignWithDefault",options:{none:"No Align",left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},plugin:"alignWithDefault",refresh:function(e){this.alignWithDefault.refresh(e)},title:"Align",type:"dropdown"})},function(e,t,n){e.exports=n(1893)},function(e,t,n){var r=n(1894),o=Array.prototype;e.exports=function(e){var t=e.find;return e===o||e instanceof Array&&t===o.find?r:t}},function(e,t,n){n(1895),e.exports=n(136)("Array").find},function(e,t,n){"use strict";var r=n(439)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(68)({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(425)("find")},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(1900)()},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(1901);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){e.exports=n(1904)},function(e,t,n){n(1905),e.exports=n(116).parseInt},function(e,t,n){var r=n(1906);n(68)({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){var r=n(128).parseInt,o=n(669),i=n(529),a=/^[-+]?0[xX]/,s=8!==r(i+"08")||22!==r(i+"0x16");e.exports=s?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0;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},o=c(n(1)),i=n(1909),a=c(n(1916)),s=c(n(1918)),l=n(545);function c(e){return e&&e.__esModule?e:{default:e}}var u=(0,l.canUseDOM)()&&n(1919),f=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,e.call(this,n));return r.innerSliderRefHandler=function(e){return r.innerSlider=e},r.slickPrev=function(){return r.innerSlider.slickPrev()},r.slickNext=function(){return r.innerSlider.slickNext()},r.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)},r.slickPause=function(){return r.innerSlider.pause("paused")},r.slickPlay=function(){return r.innerSlider.autoPlay("play")},r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return function(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,e),t.prototype.media=function(e,t){u.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},t.prototype.componentWillMount=function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o=void 0;o=0===r?(0,a.default)({minWidth:0,maxWidth:n}):(0,a.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,l.canUseDOM)()&&e.media(o,function(){e.setState({breakpoint:n})})});var n=(0,a.default)({minWidth:t.slice(-1)[0]});(0,l.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}},t.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(e){u.unregister(e.query,e.handler)})},t.prototype.render=function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":r({},s.default,this.props,t[0].settings):r({},s.default,this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=o.default.Children.toArray(this.props.children);a=a.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,u=0;u<a.length;u+=e.rows*e.slidesPerRow){for(var f=[],d=u;d<u+e.rows*e.slidesPerRow;d+=e.slidesPerRow){for(var p=[],h=d;h<d+e.slidesPerRow&&(e.variableWidth&&a[h].props.style&&(c=a[h].props.style.width),!(h>=a.length));h+=1)p.push(o.default.cloneElement(a[h],{key:100*u+10*d+h,tabIndex:-1,style:{width:100/e.slidesPerRow+"%",display:"inline-block"}}));f.push(o.default.createElement("div",{key:10*u+d},p))}e.variableWidth?l.push(o.default.createElement("div",{key:u,style:{width:c}},f)):l.push(o.default.createElement("div",{key:u},f))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return o.default.createElement("div",{className:m},l)}return l.length<=e.slidesToShow&&(e.unslick=!0),o.default.createElement(i.InnerSlider,r({ref:this.innerSliderRefHandler},e),l)},t}(o.default.Component);t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.InnerSlider=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=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=m(n(1)),a=m(n(96)),s=m(n(1910)),l=m(n(1911)),c=m(n(2)),u=n(545),f=n(1912),d=n(1913),p=n(1914),h=m(n(1915));function m(e){return e&&e.__esModule?e:{default:e}}t.InnerSlider=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var m=function(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}(this,e.call(this,n));return m.listRefHandler=function(e){return m.list=e},m.trackRefHandler=function(e){return m.track=e},m.adaptHeight=function(){if(m.props.adaptiveHeight&&m.list){var e=m.list.querySelector('[data-index="'+m.state.currentSlide+'"]');m.list.style.height=(0,u.getHeight)(e)+"px"}},m.componentWillMount=function(){if(m.ssrInit(),m.props.onInit&&m.props.onInit(),m.props.lazyLoad){var e=(0,u.getOnDemandLazySlides)(o({},m.props,m.state));e.length>0&&(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e))}},m.componentDidMount=function(){var e=o({listRef:m.list,trackRef:m.track},m.props);m.updateState(e,!0,function(){m.adaptHeight(),m.props.autoplay&&m.autoPlay("update")}),"progressive"===m.props.lazyLoad&&(m.lazyLoadTimer=setInterval(m.progressiveLazyLoad,1e3)),m.ro=new h.default(function(){m.state.animating?(m.onWindowResized(!1),m.callbackTimers.push(setTimeout(function(){return m.onWindowResized()},m.props.speed))):m.onWindowResized()}),m.ro.observe(m.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=m.props.pauseOnFocus?m.onSlideFocus:null,e.onblur=m.props.pauseOnFocus?m.onSlideBlur:null}),window&&(window.addEventListener?window.addEventListener("resize",m.onWindowResized):window.attachEvent("onresize",m.onWindowResized))},m.componentWillUnmount=function(){m.animationEndCallback&&clearTimeout(m.animationEndCallback),m.lazyLoadTimer&&clearInterval(m.lazyLoadTimer),m.callbackTimers.length&&(m.callbackTimers.forEach(function(e){return clearTimeout(e)}),m.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",m.onWindowResized):window.detachEvent("onresize",m.onWindowResized),m.autoplayTimer&&clearInterval(m.autoplayTimer)},m.componentWillReceiveProps=function(e){var t=o({listRef:m.list,trackRef:m.track},e,m.state),n=!1,a=Object.keys(m.props),s=Array.isArray(a),l=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var u=c;if(!e.hasOwnProperty(u)){n=!0;break}if("object"!==r(e[u])&&"function"!=typeof e[u]&&e[u]!==m.props[u]){n=!0;break}}m.updateState(t,n,function(){m.state.currentSlide>=i.default.Children.count(e.children)&&m.changeSlide({message:"index",index:i.default.Children.count(e.children)-e.slidesToShow,currentSlide:m.state.currentSlide}),e.autoplay?m.autoPlay("update"):m.pause("paused")})},m.componentDidUpdate=function(){if(m.checkImagesLoad(),m.props.onReInit&&m.props.onReInit(),m.props.lazyLoad){var e=(0,u.getOnDemandLazySlides)(o({},m.props,m.state));e.length>0&&(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e))}m.adaptHeight()},m.onWindowResized=function(e){m.debouncedResize&&m.debouncedResize.cancel(),m.debouncedResize=(0,l.default)(function(){return m.resizeWindow(e)},50),m.debouncedResize()},m.resizeWindow=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(a.default.findDOMNode(m.track)){var t=o({listRef:m.list,trackRef:m.track},m.props,m.state);m.updateState(t,e,function(){m.props.autoplay?m.autoPlay("update"):m.pause("paused")}),m.setState({animating:!1}),clearTimeout(m.animationEndCallback),delete m.animationEndCallback}},m.updateState=function(e,t,n){var r=(0,u.initializedState)(e);e=o({},e,r,{slideIndex:r.currentSlide});var a=(0,u.getTrackLeft)(e);e=o({},e,{left:a});var s=(0,u.getTrackCSS)(e);(t||i.default.Children.count(m.props.children)!==i.default.Children.count(e.children))&&(r.trackStyle=s),m.setState(r,n)},m.ssrInit=function(){if(m.props.variableWidth){var e=0,t=0,n=[],r=(0,u.getPreClones)(o({},m.props,m.state,{slideCount:m.props.children.length})),a=(0,u.getPostClones)(o({},m.props,m.state,{slideCount:m.props.children.length}));m.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var s=0;s<r;s++)t+=n[n.length-1-s],e+=n[n.length-1-s];for(var l=0;l<a;l++)e+=n[l];for(var c=0;c<m.state.currentSlide;c++)t+=n[c];var f={width:e+"px",left:-t+"px"};if(m.props.centerMode){var d=n[m.state.currentSlide]+"px";f.left="calc("+f.left+" + (100% - "+d+") / 2 ) "}m.setState({trackStyle:f})}else{var p=i.default.Children.count(m.props.children),h=o({},m.props,m.state,{slideCount:p}),v=(0,u.getPreClones)(h)+(0,u.getPostClones)(h)+p,g=100/m.props.slidesToShow*v,y=100/v,b=-y*((0,u.getPreClones)(h)+m.state.currentSlide)*g/100;m.props.centerMode&&(b+=(100-y*g/100)/2);var _={width:g+"%",left:b+"%"};m.setState({slideWidth:y+"%",trackStyle:_})}},m.checkImagesLoad=function(){var e=document.querySelectorAll(".slick-slide img"),t=e.length,n=0;Array.prototype.forEach.call(e,function(e){var r=function(){return++n&&n>=t&&m.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(m.props.lazyLoad?e.onload=function(){m.adaptHeight(),m.callbackTimers.push(setTimeout(m.onWindowResized,m.props.speed))}:(e.onload=r,e.onerror=function(){r(),m.props.onLazyLoadError&&m.props.onLazyLoadError()}))})},m.progressiveLazyLoad=function(){for(var e=[],t=o({},m.props,m.state),n=m.state.currentSlide;n<m.state.slideCount+(0,u.getPostClones)(t);n++)if(m.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=m.state.currentSlide-1;r>=-(0,u.getPreClones)(t);r--)if(m.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e)):m.lazyLoadTimer&&(clearInterval(m.lazyLoadTimer),delete m.lazyLoadTimer)},m.slideHandler=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=m.props,r=n.asNavFor,i=n.beforeChange,a=n.onLazyLoad,s=n.speed,l=n.afterChange,c=m.state.currentSlide,f=(0,u.slideHandler)(o({index:e},m.props,m.state,{trackRef:m.track,useCSS:m.props.useCSS&&!t})),d=f.state,p=f.nextState;if(d){i&&i(c,d.currentSlide);var h=d.lazyLoadedList.filter(function(e){return m.state.lazyLoadedList.indexOf(e)<0});a&&h.length>0&&a(h),m.setState(d,function(){r&&r.innerSlider.state.currentSlide!==c&&r.innerSlider.slideHandler(e),p&&(m.animationEndCallback=setTimeout(function(){var e=p.animating,t=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["animating"]);m.setState(t,function(){m.callbackTimers.push(setTimeout(function(){return m.setState({animating:e})},10)),l&&l(d.currentSlide),delete m.animationEndCallback})},s))})}},m.changeSlide=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o({},m.props,m.state),r=(0,u.changeSlide)(n,e);(0===r||r)&&(!0===t?m.slideHandler(r,t):m.slideHandler(r))},m.clickHandler=function(e){!1===m.clickable&&(e.stopPropagation(),e.preventDefault()),m.clickable=!0},m.keyHandler=function(e){var t=(0,u.keyHandler)(e,m.props.accessibility,m.props.rtl);""!==t&&m.changeSlide({message:t})},m.selectHandler=function(e){m.changeSlide(e)},m.disableBodyScroll=function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},m.enableBodyScroll=function(){window.ontouchmove=null},m.swipeStart=function(e){m.props.verticalSwiping&&m.disableBodyScroll();var t=(0,u.swipeStart)(e,m.props.swipe,m.props.draggable);""!==t&&m.setState(t)},m.swipeMove=function(e){var t=(0,u.swipeMove)(e,o({},m.props,m.state,{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));t&&(t.swiping&&(m.clickable=!1),m.setState(t))},m.swipeEnd=function(e){var t=(0,u.swipeEnd)(e,o({},m.props,m.state,{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,m.setState(t),void 0!==n&&(m.slideHandler(n),m.props.verticalSwiping&&m.enableBodyScroll())}},m.slickPrev=function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"previous"})},0))},m.slickNext=function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"next"})},0))},m.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"index",index:e,currentSlide:m.state.currentSlide},t)},0))},m.play=function(){var e;if(m.props.rtl)e=m.state.currentSlide-m.props.slidesToScroll;else{if(!(0,u.canGoNext)(o({},m.props,m.state)))return!1;e=m.state.currentSlide+m.props.slidesToScroll}m.slideHandler(e)},m.autoPlay=function(e){m.autoplayTimer&&clearInterval(m.autoplayTimer);var t=m.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;m.autoplayTimer=setInterval(m.play,m.props.autoplaySpeed+50),m.setState({autoplaying:"playing"})},m.pause=function(e){m.autoplayTimer&&(clearInterval(m.autoplayTimer),m.autoplayTimer=null);var t=m.state.autoplaying;"paused"===e?m.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||m.setState({autoplaying:"focused"}):"playing"===t&&m.setState({autoplaying:"hovered"})},m.onDotsOver=function(){return m.props.autoplay&&m.pause("hovered")},m.onDotsLeave=function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")},m.onTrackOver=function(){return m.props.autoplay&&m.pause("hovered")},m.onTrackLeave=function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")},m.onSlideFocus=function(){return m.props.autoplay&&m.pause("focused")},m.onSlideBlur=function(){return m.props.autoplay&&"focused"===m.state.autoplaying&&m.autoPlay("blur")},m.render=function(){var e,t,n,r=(0,c.default)("slick-slider",m.props.className,{"slick-vertical":m.props.vertical,"slick-initialized":!0}),a=o({},m.props,m.state),s=(0,u.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]),l=m.props.pauseOnHover;if(s=o({},s,{onMouseEnter:l?m.onTrackOver:null,onMouseLeave:l?m.onTrackLeave:null,onMouseOver:l?m.onTrackOver:null,focusOnSelect:m.props.focusOnSelect?m.selectHandler:null}),!0===m.props.dots&&m.state.slideCount>=m.props.slidesToShow){var h=(0,u.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),v=m.props.pauseOnDotsHover;h=o({},h,{clickHandler:m.changeSlide,onMouseEnter:v?m.onDotsLeave:null,onMouseOver:v?m.onDotsOver:null,onMouseLeave:v?m.onDotsLeave:null}),e=i.default.createElement(d.Dots,h)}var g=(0,u.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=m.changeSlide,m.props.arrows&&(t=i.default.createElement(p.PrevArrow,g),n=i.default.createElement(p.NextArrow,g));var y=null;m.props.vertical&&(y={height:m.state.listHeight});var b=null;!1===m.props.vertical?!0===m.props.centerMode&&(b={padding:"0px "+m.props.centerPadding}):!0===m.props.centerMode&&(b={padding:m.props.centerPadding+" 0px"});var _=o({},y,b),w=m.props.touchMove,E={className:"slick-list",style:_,onClick:m.clickHandler,onMouseDown:w?m.swipeStart:null,onMouseMove:m.state.dragging&&w?m.swipeMove:null,onMouseUp:w?m.swipeEnd:null,onMouseLeave:m.state.dragging&&w?m.swipeEnd:null,onTouchStart:w?m.swipeStart:null,onTouchMove:m.state.dragging&&w?m.swipeMove:null,onTouchEnd:w?m.swipeEnd:null,onTouchCancel:m.state.dragging&&w?m.swipeEnd:null,onKeyDown:m.props.accessibility?m.keyHandler:null},x={className:r,dir:"ltr"};return m.props.unslick&&(E={className:"slick-list"},x={className:r}),i.default.createElement("div",x,m.props.unslick?"":t,i.default.createElement("div",o({ref:m.listRefHandler},E),i.default.createElement(f.Track,o({ref:m.trackRefHandler},s),m.props.children)),m.props.unslick?"":n,m.props.unslick?"":e)},m.list=null,m.track=null,m.state=o({},s.default,{currentSlide:m.props.initialSlide,slideCount:i.default.Children.count(m.props.children)}),m.callbackTimers=[],m.clickable=!0,m.debouncedResize=null,m}return function(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,e),t}(i.default.Component)},function(e,t,n){"use strict";t.__esModule=!0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0}},function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=u||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,v=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o,i,a,s,l,c,u=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function _(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=a}function w(){var e=v();if(_(e))return E(e);l=setTimeout(w,function(e){var n=t-(e-c);return d?m(n,a-(e-u)):n}(e))}function E(e){return l=void 0,p&&o?b(e):(o=i=void 0,s)}function x(){var e=v(),n=_(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),f?b(e):s}(c);if(d)return l=setTimeout(w,t),b(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=y(t)||0,g(r)&&(f=!!r.leading,a=(d="maxWait"in r)?h(y(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},x.flush=function(){return void 0===l?s:E(v())},x}}).call(this,n(71))},function(e,t,n){"use strict";t.__esModule=!0,t.Track=void 0;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},o=s(n(1)),i=s(n(2)),a=n(545);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===e.currentSlide}},c=function(e,t){return e.key||t},u=function(e){var t,n=[],s=[],u=[],f=o.default.Children.count(e.children),d=(0,a.lazyStartIndex)(e),p=(0,a.lazyEndIndex)(e);return o.default.Children.forEach(e.children,function(h,m){var v=void 0,g={message:"children",index:m,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};v=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(m)>=0?h:o.default.createElement("div",null);var y=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t}(r({},e,{index:m})),b=v.props.className||"",_=l(r({},e,{index:m}));if(n.push(o.default.cloneElement(v,{key:"original"+c(v,m),"data-index":m,className:(0,i.default)(_,b),tabIndex:"-1","aria-hidden":!_["slick-active"],style:r({outline:"none"},v.props.style||{},y),onClick:function(t){v.props&&v.props.onClick&&v.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(g)}})),e.infinite&&!1===e.fade){var w=f-m;w<=(0,a.getPreClones)(e)&&f!==e.slidesToShow&&((t=-w)>=d&&(v=h),_=l(r({},e,{index:t})),s.push(o.default.cloneElement(v,{key:"precloned"+c(v,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(_,b),"aria-hidden":!_["slick-active"],style:r({},v.props.style||{},y),onClick:function(t){v.props&&v.props.onClick&&v.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(g)}}))),f!==e.slidesToShow&&((t=f+m)<p&&(v=h),_=l(r({},e,{index:t})),u.push(o.default.cloneElement(v,{key:"postcloned"+c(v,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(_,b),"aria-hidden":!_["slick-active"],style:r({},v.props.style||{},y),onClick:function(t){v.props&&v.props.onClick&&v.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(g)}})))}}),e.rtl?s.concat(n,u).reverse():s.concat(n,u)};t.Track=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.render=function(){var e=u(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return o.default.createElement("div",r({className:"slick-track",style:this.props.trackStyle},n),e)},t}(o.default.PureComponent)},function(e,t,n){"use strict";t.__esModule=!0,t.Dots=void 0;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},o=a(n(1)),i=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}t.Dots=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.clickHandler=function(e,t){t.preventDefault(),this.props.clickHandler(e)},t.prototype.render=function(){var e,t=this,n=(e={slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,a=this.props,s={onMouseEnter:a.onMouseEnter,onMouseOver:a.onMouseOver,onMouseLeave:a.onMouseLeave},l=Array.apply(null,Array(n+1).join("0").split("")).map(function(e,n){var r=n*t.props.slidesToScroll,a=n*t.props.slidesToScroll+(t.props.slidesToScroll-1),s=(0,i.default)({"slick-active":t.props.currentSlide>=r&&t.props.currentSlide<=a}),l={message:"dots",index:n,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide},c=t.clickHandler.bind(t,l);return o.default.createElement("li",{key:n,className:s},o.default.cloneElement(t.props.customPaging(n),{onClick:c}))});return o.default.cloneElement(this.props.appendDots(l),r({className:this.props.dotsClass},s))},t}(o.default.PureComponent)},function(e,t,n){"use strict";t.__esModule=!0,t.NextArrow=t.PrevArrow=void 0;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},o=s(n(1)),i=s(n(2)),a=n(545);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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.PrevArrow=function(e){function t(){return l(this,t),c(this,e.apply(this,arguments))}return u(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,r({},n,a)):o.default.createElement("button",r({key:"0",type:"button"},n)," ","Previous")},t}(o.default.PureComponent),t.NextArrow=function(e){function t(){return l(this,t),c(this,e.apply(this,arguments))}return u(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,r({},n,s)):o.default.createElement("button",r({key:"1",type:"button"},n)," ","Next")},t}(o.default.PureComponent)},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var o=r[n];e.call(t,o[1],o[0])}},Object.defineProperties(t.prototype,n),t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2,s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&c()}function l(){i(s)}function c(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=e}return c}(this.refresh.bind(this),20)};c.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},c.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},c.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},c.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},c.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},c.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},c.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),s.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},c.getInstance=function(){return this.instance_||(this.instance_=new c),this.instance_},c.instance_=null;var u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n+=1){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=y(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=h(r,"left","right")+i),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return y(o.left,o.top,s,l)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e};b.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},b.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var _=function(e,t){var n,r,o,i,a,s,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);u(this,{target:e,contentRect:c})},w=function(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r};w.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},w.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},w.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},w.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},w.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new _(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},w.prototype.clearActive=function(){this.activeObservations_.splice(0)},w.prototype.hasActive=function(){return this.activeObservations_.length>0};var E="undefined"!=typeof WeakMap?new WeakMap:new n,x=function(e){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=c.getInstance(),n=new w(e,t,this);E.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){x.prototype[e]=function(){return(t=E.get(this))[e].apply(t,arguments);var t}});var k=void 0!==o.ResizeObserver?o.ResizeObserver:x;t.default=k}.call(this,n(71))},function(e,t,n){var r=n(1917),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r};var a={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=a},function(e,t,n){var r=n(1920);e.exports=new r},function(e,t,n){var r=n(1921),o=n(935),i=o.each,a=o.isFunction,s=o.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var o=this.queries,l=n&&this.browserIsIncapable;return o[e]||(o[e]=new r(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),i(t,function(t){a(t)&&(t={match:t}),o[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},function(e,t,n){var r=n(1922),o=n(935).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,function(t){t[e]()})}},e.exports=i},function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){e.exports=n(1924)},function(e,t,n){var r=n(1925),o=String.prototype;e.exports=function(e){var t=e.endsWith;return"string"==typeof e||e===o||e instanceof String&&t===o.endsWith?r:t}},function(e,t,n){n(1926),e.exports=n(136)("String").endsWith},function(e,t,n){"use strict";var r=n(195),o=n(640),i="".endsWith,a=Math.min,s=n(643)("endsWith");n(68)({target:"String",proto:!0,forced:!s},{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,s=r(t.length),l=void 0===n?s:a(r(n),s),c=String(e);return i?i.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),a=p(i),s=n(0),l=p(n(546)),c=n(702),u=n(936),f=p(n(1931)),d=p(n(1932));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){return null!=e},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isDisabled:!1,isZoomed:!1,src:e.image.src},n._handleKeyDown=n._handleKeyDown.bind(n),n._handleLoad=n._handleLoad.bind(n),n._handleLoadError=n._handleLoadError.bind(n),n._handleUnzoom=n._handleUnzoom.bind(n),n._handleZoom=n._handleZoom.bind(n),n}return function(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,i.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){if(!h(this.props.isZoomed)&&h(e.isZoomed))throw new Error(l.default.errors.uncontrolled);if(h(this.props.isZoomed)&&!h(e.isZoomed))throw new Error(l.default.errors.controlled);this.props.isZoomed&&!e.isZoomed&&(this.isClosing=!0);var t=this.props.image.src,n=e.image.src;t!==n&&this.setState({src:n})}},{key:"componentDidUpdate",value:function(e,t){var n=h(e.isZoomed)?e.isZoomed:t.isZoomed,r=h(this.props.isZoomed)?this.props.isZoomed:this.state.isZoomed;n!==r&&!r&&this.portalInstance&&this.portalInstance.unzoom({force:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.defaultStyles,o=t.image,i=t.isZoomed,s=t.shouldRespectMaxDimension,l=t.zoomImage,c=t.zoomMargin,u=this.state,p=u.isDisabled,m=u.isZoomed,v=u.src,g=r({},!p&&{tabIndex:0},o,{src:v,style:this._getImageStyle()},!p&&{onMouseDown:this._preventFocus,onClick:this._handleZoom,onKeyDown:this._handleKeyDown}),y=h(i)?i:m;return[a.default.createElement("img",r({},g,{key:"image",ref:function(t){e.image=t},onLoad:this._handleLoad,onError:this._handleLoadError})),this.image&&(y||this.isClosing)?a.default.createElement(f.default,{key:"portal",ref:function(t){e.portalInstance=t},controlledEventFn:this._getControlledEventFn(),allowAccessibilityClose:this._allowTabNavigation()},a.default.createElement(d.default,{defaultStyles:n,image:this.image,shouldRespectMaxDimension:s,zoomImage:l,zoomMargin:Number(c),onUnzoom:this._handleUnzoom})):null]}},{key:"_checkShouldDisableComponent",value:function(){var e=this.props,t=e.shouldRespectMaxDimension,n=e.zoomImage,r=t&&!n&&(0,c.isMaxDimension)(this.image);this.setState({isDisabled:r})}},{key:"_getImageStyle",value:function(){var e=this.isClosing,t=this.props,n=t.defaultStyles,o=t.image,i=t.isZoomed,a=this.state,s=a.isDisabled,c=a.isZoomed||i||e;return r({},l.default.styles.image,c&&{visibility:"hidden"},n.image,o.style,s&&{cursor:"inherit"})}},{key:"_handleLoad",value:function(e){this._checkShouldDisableComponent(),(this.props.image.onLoad||Function.prototype)(e)}},{key:"_handleLoadError",value:function(e){this.setState({isDisabled:!0}),(this.props.image.onError||Function.prototype)(e)}},{key:"_handleKeyDown",value:function(e){(0,u.isEnterOrSpaceBarKey)(e)&&(e.preventDefault(),this._handleZoom(e))}},{key:"_preventFocus",value:function(e){e.preventDefault()}},{key:"_handleZoom",value:function(e){!h(this.props.isZoomed)&&this.props.shouldHandleZoom(e)?this.setState({isZoomed:!0},this.props.onZoom):this.props.onZoom()}},{key:"_handleUnzoom",value:function(e,t){var n=this;return function(){var o=r({isZoomed:!1},n.props.shouldReplaceImage&&{src:e});delete n.isClosing,n.setState(o,n.props.onUnzoom),t&&n._allowTabNavigation()&&n.image.focus()}}},{key:"_getControlledEventFn",value:function(){return h(this.props.isZoomed)?this.props.onUnzoom:null}},{key:"_allowTabNavigation",value:function(){return-1!==this.image.tabIndex}}],[{key:"defaultProps",get:function(){return{shouldReplaceImage:!0,shouldRespectMaxDimension:!1,zoomMargin:40,defaultStyles:{zoomContainer:{},overlay:{},image:{},zoomImage:{}},shouldHandleZoom:function(){return!0},onZoom:function(){},onUnzoom:function(){}}}}]),t}();t.default=m,m.propTypes={image:(0,s.shape)({src:s.string.isRequired,alt:s.string,className:s.string,style:s.object}).isRequired,zoomImage:(0,s.shape)({src:s.string,alt:s.string,className:s.string,style:s.object}),defaultStyles:s.object,isZoomed:s.bool,shouldHandleZoom:s.func,shouldReplaceImage:s.bool,shouldRespectMaxDimension:s.bool,onZoom:s.func,onUnzoom:s.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),i=f(o),a=n(96),s=n(0),l=f(n(546)),c=n(702),u=n(936);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.portal=(0,c.createPortalContainer)("div"),e.unzoom=e.unzoom.bind(e),e._handleScroll=e._handleScroll.bind(e),e._handleKeyDown=e._handleKeyDown.bind(e),e._handleResize=e._handleResize.bind(e),e._handleTouchStart=e._handleTouchStart.bind(e),e._handleTouchMove=e._handleTouchMove.bind(e),e._handleTouchEnd=e._handleTouchEnd.bind(e),e}return function(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,o.Component),r(t,[{key:"componentDidMount",value:function(){var e=this;this.pageYOffset=window.pageYOffset,this.loadTimeout=setTimeout(function(){window.addEventListener("scroll",e._handleScroll),window.addEventListener("keydown",e._handleKeyDown),window.addEventListener("ontouchstart",e._handleTouchStart),window.addEventListener("ontouchmove",e._handleTouchMove),window.addEventListener("ontouchend",e._handleTouchEnd),window.addEventListener("ontouchcancel",e._handleTouchEnd),window.addEventListener("resize",e._handleResize)},l.default.transitionDuration)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.loadTimeout),window.removeEventListener("scroll",this._handleScroll),window.removeEventListener("keydown",this._handleKeyDown),window.removeEventListener("ontouchstart",this._handleTouchStart),window.removeEventListener("ontouchmove",this._handleTouchMove),window.removeEventListener("ontouchend",this._handleTouchEnd),window.removeEventListener("ontouchcancel",this._handleTouchEnd),window.removeEventListener("resize",this._handleResize),(0,c.removePortalContainer)(this.portal)}},{key:"render",value:function(){return this.portal?(0,a.createPortal)(i.default.createElement("div",{onClick:this.unzoom},this._cloneChild()),this.portal):null}},{key:"unzoom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.force,n=e.allowRefocus;return this.props.controlledEventFn&&!t?this.props.controlledEventFn():this.child.unzoom(n)}},{key:"_cloneChild",value:function(){var e=this;return i.default.cloneElement(i.default.Children.only(this.props.children),{ref:function(t){e.child=t}})}},{key:"_handleKeyDown",value:function(e){if((0,u.isTabKey)(e))e.preventDefault();else{var t=this.props.allowAccessibilityClose&&(0,u.isEnterOrSpaceBarKey)(e),n=(0,u.isEscapeKey)(e);t&&e.preventDefault(),(t||n)&&this.unzoom({allowRefocus:!0})}}},{key:"_handleResize",value:function(){this.forceUpdate()}},{key:"_handleScroll",value:function(){this.forceUpdate(),Math.abs(window.pageYOffset-this.pageYOffset)>10&&this.unzoom()}},{key:"_handleTouchStart",value:function(e){this.yTouchPosition=e.touches[0].clientY}},{key:"_handleTouchMove",value:function(e){this.forceUpdate(),Math.abs(e.touches[0].clientY-this.yTouchPosition)>10&&this.unzoom()}},{key:"_handleTouchEnd",value:function(){delete this.yTouchPosition}}]),t}();t.default=d,d.propTypes={children:s.element.isRequired,getControlledEventFn:s.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),a=f(i),s=n(0),l=f(n(546)),c=n(702),u=f(n(1933));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasLoaded:!1,isZoomed:!0,src:e.image.currentSrc||e.image.src,tmpSrc:null},n.unzoom=n.unzoom.bind(n),n._handleImageLoad=n._handleImageLoad.bind(n),n}return function(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,i.Component),o(t,[{key:"componentDidMount",value:function(){var e=this.props.zoomImage,t=e.src,n=e.srcSet;this.setState({hasLoaded:!0}),(t||n)&&(0,c.fetchImage)(this.props.zoomImage,this._handleImageLoad)}},{key:"componentDidUpdate",value:function(e,t){var n=this;!t.tmpSrc&&this.state.tmpSrc&&setTimeout(function(){n.setState({src:n.state.tmpSrc,tmpSrc:null})},100)}},{key:"render",value:function(){var e=this.props,t=e.defaultStyles,n=e.zoomImage,o=this.state,i=o.tmpSrc,s=o.isZoomed,l=o.src,c=this._getZoomImageStyle();return a.default.createElement("div",{style:this._getZoomContainerStyle()},a.default.createElement(u.default,{isVisible:s,defaultStyles:t}),a.default.createElement("img",r({},n,{src:l,style:c})),a.default.createElement(p,r({},n,{src:i,style:c})))}},{key:"unzoom",value:function(e){var t=this.props.onUnzoom(this.state.src,e);this.setState({isZoomed:!1},function(){return setTimeout(t,l.default.transitionDuration)})}},{key:"_handleImageLoad",value:function(e){this.state.isZoomed&&this.setState({tmpSrc:e.currentSrc||e.src})}},{key:"_getZoomContainerStyle",value:function(){return r({},l.default.styles.zoomContainer,this.props.defaultStyles.zoomContainer)}},{key:"_getZoomImageStyle",value:function(){var e=this.props,t=e.image,n=e.shouldRespectMaxDimension,o=e.src,i=e.zoomMargin,a=t.getBoundingClientRect(),s=a.top,u=a.left,f=t.width,d=t.height,p=t.naturalWidth,h=t.naturalHeight,m={top:s,left:u,width:f,height:d};if(!this.state.hasLoaded||!this.state.isZoomed)return r({},l.default.styles.zoomImage,this.props.defaultStyles.zoomImage,this.props.style,m);var v=document.body.clientWidth/2,g=window.innerHeight/2,y={transform:"translate3d("+(v-(a.left+f/2))+"px, "+(g-(a.top+d/2))+"px, 0) scale("+(n&&!o?(0,c.getMaxDimensionScale)({width:f,height:d,naturalWidth:p,naturalHeight:h,zoomMargin:i}):(0,c.getScale)({width:f,height:d,zoomMargin:i}))+")"};return r({},l.default.styles.zoomImage,this.props.defaultStyles.zoomImage,this.props.style,m,y)}}],[{key:"defaultProps",get:function(){return{zoomImage:{}}}}]),t}();t.default=d,d.propTypes={defaultStyles:s.object.isRequired,image:s.object.isRequired,shouldRespectMaxDimension:s.bool,zoomImage:(0,s.shape)({src:s.string,alt:s.string,className:s.string,style:s.object}).isRequired,zoomMargin:s.number.isRequired,onUnzoom:s.func.isRequired};var p=function(e){var t=e.src,n=e.style,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["src","style"]);return t?a.default.createElement("img",r({},o,{src:t,style:m(n)})):null},h={position:"fixed",visibility:"hidden"},m=function(e){return r({},e,h)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),a=c(i),s=n(0),l=c(n(546));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isVisible:!1},n}return function(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,i.Component),o(t,[{key:"componentDidMount",value:function(){this.setState({isVisible:!0})}},{key:"componentWillReceiveProps",value:function(e){e.isVisible||this.setState({isVisible:!1})}},{key:"shouldComponentUpdate",value:function(e){return this.props.isVisible!==e.isVisible||this.state.isVisible!==e.isVisible}},{key:"render",value:function(){return a.default.createElement("div",{style:this._getStyle()})}},{key:"_getStyle",value:function(){var e=1&this.state.isVisible;return r({},l.default.styles.overlay,{opacity:e},this.props.defaultStyles.overlay)}}]),t}();t.default=u,u.propTypes={isVisible:s.bool.isRequired,defaultStyles:s.object.isRequired}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(1942)()},function(e,t,n){"use strict";var r=n(1943);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}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,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.hasLoaded=t.autoSetupTimeout=t.autoSetup=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(264)),o=a(n(129)),i=a(n(141));function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=void 0,c=function(){var e=o.default.getElementsByTagName("video"),t=o.default.getElementsByTagName("audio"),n=[];if(e&&e.length>0)for(var r=0,i=e.length;r<i;r++)n.push(e[r]);if(t&&t.length>0)for(var a=0,c=t.length;a<c;a++)n.push(t[a]);if(n&&n.length>0)for(var f=0,d=n.length;f<d;f++){var p=n[f];if(!p||!p.getAttribute){u(1);break}void 0===p.player&&null!==p.getAttribute("data-setup")&&l(p)}else s||u(1)};function u(e,t){t&&(l=t),setTimeout(c,e)}"complete"===o.default.readyState?s=!0:r.one(i.default,"load",function(){s=!0});t.autoSetup=c,t.autoSetupTimeout=u,t.hasLoaded=function(){return s}},function(e,t,n){var r=n(940),o=n(1947),i=n(549),a=n(446),s=n(300),l=n(339),c=n(944),u=n(1958);e.exports=function e(t,n,f,d,p){if(!s(t))return t;var h=a(n)&&(i(n)||c(n)),m=h?void 0:u(n);return r(m||n,function(r,i){if(m&&(r=n[i=r]),l(r))d||(d=[]),p||(p=[]),o(t,n,i,e,f,d,p);else{var a=t[i],s=f?f(a,r,i,t,n):void 0,c=void 0===s;c&&(s=r),void 0===s&&(!h||i in t)||!c&&(s==s?s===a:a!=a)||(t[i]=s)}}),t}},function(e,t,n){var r=n(1948),o=n(547),i=n(549),a=n(446),s=n(1952),l=n(944),c=n(1956);e.exports=function(e,t,n,u,f,d,p){for(var h=d.length,m=t[n];h--;)if(d[h]==m)return void(e[n]=p[h]);var v=e[n],g=f?f(v,m,n,e,t):void 0,y=void 0===g;y&&(g=m,a(m)&&(i(m)||l(m))?g=i(v)?v:a(v)?r(v):[]:s(m)||o(m)?g=o(v)?c(v):s(v)?v:{}:y=!1),d.push(m),p.push(g),y?e[n]=u(g,m,f,d,p):(g==g?g!==v:v==v)&&(e[n]=g)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(1950)("length");e.exports=r},function(e,t,n){var r=n(941);e.exports=function(e){return function(t){return null==t?void 0:r(t)[e]}}},function(e,t,n){var r=n(942),o=n(943),i=n(339),a=/^\[object .+?Constructor\]$/,s=Object.prototype,l=Function.prototype.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return null!=e&&(r(e)?u.test(l.call(e)):i(e)&&(o(e)?u:a).test(e))}},function(e,t,n){var r=n(1953),o=n(547),i=n(943),a=n(339),s=n(548),l="[object Object]",c=Object.prototype,u=c.hasOwnProperty,f=c.toString;e.exports=function(e){var t,n;return!(!a(e)||f.call(e)!=l||i(e)||o(e)||!(u.call(e,"constructor")||"function"!=typeof(t=e.constructor)||t instanceof t))&&(s.ownLast?(r(e,function(e,t,r){return n=u.call(r,t),!1}),!1!==n):(r(e,function(e,t){n=t}),void 0===n||u.call(e,n)))}},function(e,t,n){var r=n(1954),o=n(705);e.exports=function(e,t){return r(e,t,o)}},function(e,t,n){var r=n(1955)();e.exports=r},function(e,t,n){var r=n(941);e.exports=function(e){return function(t,n,o){for(var i=r(t),a=o(t),s=a.length,l=e?s:-1;e?l--:++l<s;){var c=a[l];if(!1===n(i[c],c,i))break}return t}}},function(e,t,n){var r=n(1957),o=n(705);e.exports=function(e){return r(e,o(e))}},function(e,t){e.exports=function(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var i=t[r];n[i]=e[i]}return n}},function(e,t,n){var r=n(704),o=n(446),i=n(300),a=n(1959),s=n(548),l=r(Object,"keys"),c=l?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||("function"==typeof e?s.enumPrototypes:o(e))?a(e):i(e)?l(e):[]}:a;e.exports=c},function(e,t,n){var r=n(547),o=n(549),i=n(706),a=n(447),s=n(703),l=n(705),c=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=l(e),n=t.length,u=n&&e.length,f=!!u&&a(u)&&(o(e)||r(e)||s(e)),d=-1,p=[];++d<n;){var h=t[d];(f&&i(h,u)||c.call(e,h))&&p.push(h)}return p}},function(e,t,n){var r=n(1961),o=n(1963),i=n(1964);e.exports=function(e){return i(function(t,n){var i=-1,a=null==t?0:n.length,s=a>2?n[a-2]:void 0,l=a>2?n[2]:void 0,c=a>1?n[a-1]:void 0;for("function"==typeof s?(s=r(s,c,5),a-=2):a-=(s="function"==typeof c?c:void 0)?1:0,l&&o(n[0],n[1],l)&&(s=a<3?void 0:s,a=1);++i<a;){var u=n[i];u&&e(t,u,s)}return t})}},function(e,t,n){var r=n(1962);e.exports=function(e,t,n){if("function"!=typeof e)return r;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(446),o=n(706),i=n(300);e.exports=function(e,t,n){if(!i(n))return!1;var a=typeof t;if("number"==a?r(n)&&o(t,n.length):"string"==a&&t in n){var s=n[t];return e==e?e===s:s!=s}return!1}},function(e,t){var n="Expected a function",r=Math.max;e.exports=function(e,t){if("function"!=typeof e)throw new TypeError(n);return t=r(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,o=-1,i=r(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var s=Array(t+1);for(o=-1;++o<t;)s[o]=n[o];return s[t]=a,e.apply(this,s)}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(129),i=(r=o)&&r.__esModule?r:{default:r};for(var a={},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=s[0],c=void 0,u=0;u<s.length;u++)if(s[u][1]in i.default){c=s[u];break}if(c)for(var f=0;f<c.length;f++)a[l[f]]=c[f];t.default=a},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)t.call(o,e[a],a,e);else for(var s in e)n.call(e,s)&&t.call(o,e[s],s,e)}},function(e,t,n){"use strict";var r=n(1969);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=r.call(arguments,1),a=Math.max(0,t.length-i.length),s=[],l=0;l<a;l++)s.push("$"+l);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var o=t.apply(this,i.concat(r.call(arguments)));return Object(o)===o?o:this}return t.apply(e,i.concat(r.call(arguments)))}),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(948),o=n(951);e.exports=function(){var e=o();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};t.default={textTracksToJson:function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=r(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(r))},jsonToTextTracks:function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},trackToJson_:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154)),o=s(n(129)),i=s(n(550)),a=s(n(707));function s(e){return e&&e.__esModule?e:{default:e}}function l(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}var c=0,u=2,f=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=l(this,e.call(this)),s=void 0,f=i;if(r.IS_IE8)for(var d in f=o.default.createElement("custom"),t.prototype)"constructor"!==d&&(f[d]=t.prototype[d]);var p=new a.default(n);return f.kind=p.kind,f.src=p.src,f.srclang=p.language,f.label=p.label,f.default=p.default,Object.defineProperty(f,"readyState",{get:function(){return s}}),Object.defineProperty(f,"track",{get:function(){return p}}),s=c,p.addEventListener("loadeddata",function(){s=u,f.trigger({type:"load",target:f})}),r.IS_IE8?l(i,f):i}return function(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,e),t}(i.default);f.prototype.allowedEvents_={load:"load"},f.NONE=c,f.LOADING=1,f.LOADED=u,f.ERROR=3,t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154)),i=n(129),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this;if(o.IS_IE8)for(var r in n=a.default.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),o.IS_IE8)return n}return e.prototype.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var o=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)o.call(this,n)},e.prototype.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===e){t=o;break}}return t},e}();t.default=s},function(e,t){function n(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}e.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},function(e,t,n){var r=n(1977),o=n(1978);e.exports=function(e){if(!e)return{};var t={};return o(r(e).split("\n"),function(e){var n,o=e.indexOf(":"),i=r(e.slice(0,o)).toLowerCase(),a=r(e.slice(o+1));void 0===t[i]?t[i]=a:(n=t[i],"[object Array]"===Object.prototype.toString.call(n)?t[i].push(a):t[i]=[t[i],a])}),t}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){var r=n(955);e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this);"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&t.call(n,e[r],r,e)}(e,t,n):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)t.call(n,e.charAt(r),r,e)}(e,t,n):function(e,t,n){for(var r in e)i.call(e,r)&&t.call(n,e[r],r,e)}(e,t,n)};var o=Object.prototype.toString,i=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154)),i=n(129),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this;if(o.IS_IE8)for(var r in n=a.default.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var i=0,s=t.length;i<s;i++)n.addTrackElement_(t[i]);if(o.IS_IE8)return n}return e.prototype.addTrackElement_=function(e){this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(710)),o=s(n(108)),i=s(n(154)),a=l(n(129));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=void 0;if(i.IS_IE8){for(var l in s=a.default.createElement("custom"),r.default.prototype)"constructor"!==l&&(s[l]=r.default.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return n=c(this,e.call(this,o,s)),c(n,s=n)}return function(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,e),t.prototype.addTrack_=function(t){e.prototype.addTrack_.call(this,t),t.addEventListener("modechange",o.bind(this,function(){this.trigger("change")}))},t.prototype.removeTrack_=function(e){for(var t=void 0,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var o=this[n];if(o.id===e){t=o;break}}return t},t}(r.default);t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=a(n(449)),i=a(n(376));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(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}(this,e.call(this,n,a,s));if(a.playerOptions.sources&&0!==a.playerOptions.sources.length)n.src(a.playerOptions.sources);else for(var c=0,u=a.playerOptions.techOrder;c<u.length;c++){var f=(0,i.default)(u[c]),d=o.default.getTech(f);if(f||(d=r.default.getComponent(f)),d&&d.isSupported()){n.loadTech_(f);break}}return l}return function(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,e),t}(r.default);r.default.registerComponent("MediaLoader",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=d(n(449)),o=f(n(124)),i=f(n(551)),a=n(448),s=d(n(1983)),l=d(n(48)),c=d(n(141)),u=d(n(301));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var p=c.default.navigator,h=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return n.source&&o.ready(function(){this.setSource(n.source)},!0),n.startTime&&o.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),c.default.videojs=c.default.videojs||{},c.default.videojs.Flash=c.default.videojs.Flash||{},c.default.videojs.Flash.onReady=t.onReady,c.default.videojs.Flash.onEvent=t.onEvent,c.default.videojs.Flash.onError=t.onError,o.on("seeked",function(){this.lastSeekTarget_=void 0}),o}return function(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,e),t.prototype.createEl=function(){var e=this.options_;if(!e.swf){e.swf="//vjs.zencdn.net/swf/5.1.0/video-js.swf"}var n=e.techId,r=(0,u.default)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),o=(0,u.default)({wmode:"opaque",bgcolor:"#000000"},e.params),i=(0,u.default)({id:n,name:n,class:"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,r,o,i),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(e){return void 0===e?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var t=this;e=i.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return t.play()},0)},t.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},t.prototype.setCurrentTime=function(t){var n=this.seekable();n.length&&(t=(t=t>n.start(0)?t:n.start(0))<n.end(n.length-1)?t:n.end(n.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),e.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(e){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(0===this.readyState())return NaN;var e=this.el_.vjs_getProperty("duration");return e>=0?e:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var e=this.duration();return 0===e?(0,a.createTimeRange)():(0,a.createTimeRange)(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return 0===e.length?(0,a.createTimeRange)():(0,a.createTimeRange)(e[0][0],e[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(r.default),m=h.prototype,v="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),g="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function y(e){var t=e.charAt(0).toUpperCase()+e.slice(1);m["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function b(e){m[e]=function(){return this.el_.vjs_getProperty(e)}}for(var _=0;_<v.length;_++)b(v[_]),y(v[_]);for(var w=0;w<g.length;w++)b(g[w]);h.isSupported=function(){return h.version()[0]>=10},r.default.withSourceHandlers(h),h.nativeSourceHandler={},h.nativeSourceHandler.canPlayType=function(e){return e in h.formats?"maybe":""},h.nativeSourceHandler.canHandleSource=function(e,t){var n,r,o=void 0;return e.type?o=e.type.replace(/;.*/,"").toLowerCase():(n=e.src,o=(r=i.getFileExtension(n))?"video/"+r:""),h.nativeSourceHandler.canPlayType(o)},h.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},h.nativeSourceHandler.dispose=function(){},h.registerSourceHandler(h.nativeSourceHandler),h.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},h.onReady=function(e){var t=o.getEl(e),n=t&&t.tech;n&&n.el()&&h.checkReady(n)},h.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){h.checkReady(e)},50))},h.onEvent=function(e,t){o.getEl(e).tech.trigger(t,Array.prototype.slice.call(arguments,2))},h.onError=function(e,t){var n=o.getEl(e).tech;if("srcnotfound"===t)return n.error(4);n.error("FLASH: "+t)},h.version=function(){var e="0,0,0";try{e=new c.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{p.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(p.plugins["Shockwave Flash 2.0"]||p.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(e){}}return e.split(",")},h.embed=function(e,t,n,r){var i=h.getEmbedCode(e,t,n,r);return o.createEl("div",{innerHTML:i}).childNodes[0]},h.getEmbedCode=function(e,t,n,r){var o="",i="",a="";return t&&Object.getOwnPropertyNames(t).forEach(function(e){o+=e+"="+t[e]+"&amp;"}),n=(0,u.default)({movie:e,flashvars:o,allowScriptAccess:"always",allowNetworking:"all"},n),Object.getOwnPropertyNames(n).forEach(function(e){i+='<param name="'+e+'" value="'+n[e]+'" />'}),r=(0,u.default)({data:e,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(e){a+=e+'="'+r[e]+'" '}),'<object type="application/x-shockwave-flash" '+a+">"+i+"</object>"},(0,s.default)(h),l.default.registerComponent("Flash",h),r.default.registerTech("Flash",h),t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(e,t){return e+"&"+t},e.streamToParts=function(e){var t={connection:"",stream:""};if(!e)return t;var n=e.search(/&(?!\w+=)/),r=void 0;return-1!==n?r=n+1:0===(n=r=e.lastIndexOf("/")+1)&&(n=r=e.length),t.connection=e.substring(0,n),t.stream=e.substring(r,e.length),t},e.isStreamingType=function(t){return t in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(t){return e.isStreamingType(t)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(t,n){var r=e.rtmpSourceHandler.canPlayType(t.type);return r||(e.isStreamingSrc(t.src)?"maybe":"")},e.rtmpSourceHandler.handleSource=function(t,n,r){var o=e.streamToParts(t.src);n.setRtmpConnection(o.connection),n.setRtmpStream(o.stream)},e.registerSourceHandler(e.rtmpSourceHandler),e}},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(450)),o=c(n(48)),i=l(n(108)),a=l(n(124)),s=l(n(154));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.update(),n.on("posterchange",i.bind(o,o.update)),o}return function(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,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=a.createEl("div",{className:"vjs-poster",tabIndex:-1});return s.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=a.createEl("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t}(r.default);o.default.registerComponent("PosterImage",u),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),i=a(n(141));function a(e){return e&&e.__esModule?e:{default:e}}var s={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function l(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function c(e,t,n){try{e.style[t]=n}catch(e){return}}var u=function(e){function t(n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,e.call(this,n,r,i));return n.on("loadstart",o.bind(a,a.toggleDisplay)),n.on("texttrackchange",o.bind(a,a.updateDisplay)),n.ready(o.bind(a,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",o.bind(this,this.updateDisplay));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t]);var r={captions:1,subtitles:1},i=this.player_.textTracks(),a=void 0,s=void 0;if(i){for(var l=0;l<i.length;l++){var c=i[l];c.default&&("descriptions"!==c.kind||a?c.kind in r&&!s&&(s=c):a=c)}s?s.mode="showing":a&&(a.mode="showing")}}})),a}return function(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,e),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof i.default.WebVTT&&i.default.WebVTT.processCues(i.default,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();if(this.clearDisplay(),e){for(var t=null,n=null,r=e.length;r--;){var o=e[r];"showing"===o.mode&&("descriptions"===o.kind?t=o:n=o)}n?this.updateForTrack(n):t&&this.updateForTrack(t)}},t.prototype.updateForTrack=function(e){if("function"==typeof i.default.WebVTT&&e.activeCues){for(var t=this.player_.textTrackSettings.getValues(),n=[],r=0;r<e.activeCues.length;r++)n.push(e.activeCues[r]);i.default.WebVTT.processCues(i.default,n,this.el_);for(var o=n.length;o--;){var a=n[o];if(a){var u=a.displayState;if(t.color&&(u.firstChild.style.color=t.color),t.textOpacity&&c(u.firstChild,"color",l(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(u.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&c(u.firstChild,"backgroundColor",l(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?c(u,"backgroundColor",l(t.windowColor,t.windowOpacity)):u.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?u.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?u.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?u.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(u.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var f=i.default.parseFloat(u.style.fontSize);u.style.fontSize=f*t.fontPercent+"px",u.style.height="auto",u.style.top="auto",u.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?u.firstChild.style.fontVariant="small-caps":u.firstChild.style.fontFamily=s[t.fontFamily])}}}},t}(r.default);r.default.registerComponent("TextTrackDisplay",u),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(i.default);i.default.registerComponent("LoadingSpinner",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(451)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.call(this,n,r))}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(){this.player_.play()},t}(r.default);a.prototype.controlText_="Play Video",o.default.registerComponent("BigPlayButton",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(451)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.controlText(r&&r.controlText||o.localize("Close")),o}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},t}(r.default);o.default.registerComponent("CloseButton",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};n(1990),n(1991),n(1992),n(1993),n(1994),n(1995),n(1996),n(2005),n(2006),n(2008),n(960),n(2011),n(2014),n(2015),n(2016),n(2018),n(2020),n(2022);var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(i.default);a.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},i.default.registerComponent("ControlBar",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(451)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"play",o.handlePlay),o.on(n,"pause",o.handlePause),o}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t}(r.default);a.prototype.controlText_="Play",o.default.registerComponent("PlayToggle",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124)),i=a(n(302));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"timeupdate",o.updateContent),o}return function(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,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),t=this.localize("Current Time"),n=(0,i.default)(e,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> "+n)},t}(r.default);r.default.registerComponent("CurrentTimeDisplay",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124)),i=a(n(302));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"durationchange",o.updateContent),o.on(n,"timeupdate",o.updateContent),o.on(n,"loadedmetadata",o.updateContent),o}return function(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,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var e=this.player_.duration();if(e&&this.duration_!==e){this.duration_=e;var t=this.localize("Duration Time"),n=(0,i.default)(e);this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> "+n}},t}(r.default);r.default.registerComponent("DurationDisplay",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(i.default);i.default.registerComponent("TimeDivider",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124)),i=a(n(302));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"timeupdate",o.updateContent),o.on(n,"durationchange",o.updateContent),o}return function(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,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){if(this.player_.duration()){var e=this.localize("Remaining Time"),t=(0,i.default)(this.player_.remainingTime());t!==this.formattedTime_&&(this.formattedTime_=t,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> -"+t)}},t}(r.default);r.default.registerComponent("RemainingTimeDisplay",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124));var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.updateShowing(),o.on(o.player(),"durationchange",o.updateShowing),o}return function(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,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},t}(i.default);i.default.registerComponent("LiveDisplay",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};n(1997),n(2001);var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(i.default);a.prototype.options_={children:["seekBar"]},i.default.registerComponent("ProgressControl",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(141)),o=l(n(958)),i=l(n(48)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),s=l(n(302));function l(e){return e&&e.__esModule?e:{default:e}}n(1998),n(1999),n(2e3);var c=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"timeupdate",o.updateProgress),o.on(n,"ended",o.updateProgress),n.ready(a.bind(o,o.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(o.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),o.keepTooltipsInside&&(o.tooltipProgressBar=o.addChild("TooltipProgressBar")),o}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},t.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var e=parseFloat(r.default.getComputedStyle(this.player().el()).width),t=parseFloat(r.default.getComputedStyle(this.tooltipProgressBar.tooltip).width),n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(e-t/2)+"px",n.minWidth=Math.ceil(t/2)+"px",n.right="-"+t/2+"px"}},t.prototype.updateAriaAttributes=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",(0,s.default)(t,this.player_.duration()))},t.prototype.getPercent=function(){var e=this.player_.currentTime()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){e.prototype.handleMouseDown.call(this,t),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},t.prototype.handleMouseMove=function(e){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(o.default);c.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},c.prototype.playerEvent="timeupdate",i.default.registerComponent("SeekBar",c),t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124));var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.partEls_=[],o.on(n,"progress",o.update),o}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.update=function(){var e=this.player_.buffered(),t=this.player_.duration(),n=this.player_.bufferedEnd(),r=this.partEls_,o=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(n,t);for(var i=0;i<e.length;i++){var s=e.start(i),l=e.end(i),c=r[i];c||(c=this.el_.appendChild(a.createEl()),r[i]=c),c.style.left=o(s,n),c.style.width=o(l-s,n)}for(var u=r.length;u>e.length;u--)this.el_.removeChild(r[u-1]);r.length=e.length},t}(i.default);i.default.registerComponent("LoadProgressBar",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),i=a(n(302));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(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}(this,e.call(this,n,r));return i.updateDataAttr(),i.on(n,"timeupdate",i.updateDataAttr),n.ready(o.bind(i,i.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(i.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),i.keepTooltipsInside&&i.addClass("vjs-keep-tooltips-inside"),i}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.updateDataAttr=function(){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,i.default)(e,this.player_.duration()))},t}(r.default);r.default.registerComponent("PlayProgressBar",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),i=a(n(302));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(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}(this,e.call(this,n,r));return i.updateDataAttr(),i.on(n,"timeupdate",i.updateDataAttr),n.ready(o.bind(i,i.updateDataAttr)),i}return function(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,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},t.prototype.updateDataAttr=function(){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),t=(0,i.default)(e,this.player_.duration());this.el_.setAttribute("data-current-time",t),this.tooltip.innerHTML=t},t}(r.default);r.default.registerComponent("TooltipProgressBar",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(141)),o=u(n(48)),i=c(n(124)),a=c(n(108)),s=u(n(302)),l=u(n(2002));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(o.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),o.keepTooltipsInside&&(o.tooltip=i.createEl("div",{className:"vjs-time-tooltip"}),o.el().appendChild(o.tooltip),o.addClass("vjs-keep-tooltips-inside")),o.update(0,0),n.on("ready",function(){o.on(n.controlBar.progressControl.el(),"mousemove",(0,l.default)(a.bind(o,o.handleMouseMove),25))}),o}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(e){var t=this.player_.duration(),n=this.calculateDistance(e)*t,r=e.pageX-i.findElPosition(this.el().parentNode).left;this.update(n,r)},t.prototype.update=function(e,t){var n=(0,s.default)(e,this.player_.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var o=t-this.clampPosition_(t)+1,i=parseFloat(r.default.getComputedStyle(this.tooltip).width)/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(i-o)+"px"}},t.prototype.calculateDistance=function(e){return i.getPointerPosition(this.el().parentNode,e).x},t.prototype.clampPosition_=function(e){if(!this.keepTooltipsInside)return e;var t=parseFloat(r.default.getComputedStyle(this.player().el()).width),n=parseFloat(r.default.getComputedStyle(this.tooltip).width)/2,o=e;return e<n?o=Math.ceil(n):e>t-n&&(o=Math.floor(t-n)),o},t}(o.default);o.default.registerComponent("MouseTimeDisplay",f),t.default=f},function(e,t,n){var r=n(2003),o=n(300),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return!1===n?a=!1:o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:+t,trailing:s})}},function(e,t,n){var r=n(300),o=n(2004),i="Expected a function",a=Math.max;e.exports=function(e,t,n){var s,l,c,u,f,d,p,h=0,m=!1,v=!0;if("function"!=typeof e)throw new TypeError(i);if(t=t<0?0:+t||0,!0===n){var g=!0;v=!1}else r(n)&&(g=!!n.leading,m="maxWait"in n&&a(+n.maxWait||0,t),v="trailing"in n?!!n.trailing:v);function y(t,n){n&&clearTimeout(n),l=d=p=void 0,t&&(h=o(),c=e.apply(f,s),d||l||(s=f=void 0))}function b(){var e=t-(o()-u);e<=0||e>t?y(p,l):d=setTimeout(b,e)}function _(){y(v,d)}function w(){if(s=arguments,u=o(),f=this,p=v&&(d||!g),!1===m)var n=g&&!d;else{l||g||(h=u);var r=m-(u-h),i=r<=0||r>m;i?(l&&(l=clearTimeout(l)),h=u,c=e.apply(f,s)):l||(l=setTimeout(_,r))}return i&&d?d=clearTimeout(d):d||t===m||(d=setTimeout(b,t)),n&&(i=!0,c=e.apply(f,s)),!i||d||l||(s=f=void 0),c}return w.cancel=function(){d&&clearTimeout(d),l&&clearTimeout(l),h=0,l=d=p=void 0},w}},function(e,t,n){var r=n(704)(Date,"now")||function(){return(new Date).getTime()};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(451)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"fullscreenchange",o.handleFullscreenChange),o}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(r.default);a.prototype.controlText_="Fullscreen",o.default.registerComponent("FullscreenToggle",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};n(959);var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return n.tech_&&!1===n.tech_.featuresVolumeControl&&o.addClass("vjs-hidden"),o.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),o}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(i.default);a.prototype.options_={children:["volumeBar"]},i.default.registerComponent("VolumeControl",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(i.default);i.default.registerComponent("VolumeLevel",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),o=c(n(48)),i=c(n(2009)),a=c(n(2010)),s=c(n(960)),l=c(n(959));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.inline?r.vertical=!1:r.vertical=!0),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical;var o=function(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}(this,e.call(this,n,r));function i(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return o.on(n,"volumechange",o.volumeUpdate),o.on(n,"loadstart",o.volumeUpdate),i.call(o),o.on(n,"loadstart",i),o.on(o.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),o.on(o.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),o.on(o.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),o.on(o.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),o}return function(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,e),t.prototype.buildCSSClass=function(){var t="";return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var e=new i.default(this.player_,{contentElType:"div"}),t=new l.default(this.player_,this.options_.volumeBar);return e.addChild(t),this.menuContent=e,this.volumeBar=t,this.attachVolumeBarEvents(),e},t.prototype.handleClick=function(){s.default.prototype.handleClick.call(this),e.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],r.bind(this,this.handleMouseDown))},t.prototype.handleMouseDown=function(e){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(e){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(a.default);u.prototype.volumeUpdate=s.default.prototype.update,u.prototype.controlText_="Mute",o.default.registerComponent("VolumeMenuButton",u),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r},a=c(n(124)),s=c(n(108)),l=c(n(264));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",s.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=a.createEl(t,{className:"vjs-menu-content"});var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),l.on(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t}(i.default);i.default.registerComponent("Popup",u),t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(450)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.update(),o}return function(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,e),t.prototype.update=function(){var e=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t}(r.default);o.default.registerComponent("PopupButton",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(552)),o=u(n(48)),i=u(n(553)),a=u(n(2013)),s=u(n(711)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124)),c=u(n(376));function u(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(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}(this,e.call(this,n,r,o));return i.el_.setAttribute("aria-label","Chapters Menu"),i}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var e=[],t=this.player_.textTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];r.kind===this.kind_&&e.push(new i.default(this.player_,{track:r}))}return e},t.prototype.createMenu=function(){for(var e=this,t=this.player_.textTracks()||[],n=void 0,r=this.items||[],o=t.length-1;o>=0;o--){var i=t[o];if(i.kind===this.kind_){n=i;break}}var u=this.menu;if(void 0===u){u=new s.default(this.player_);var f=l.createEl("li",{className:"vjs-menu-title",innerHTML:(0,c.default)(this.kind_),tabIndex:-1});u.children_.unshift(f),l.insertElFirst(f,u.contentEl())}else r.forEach(function(e){return u.removeChild(e)}),r=[];if(n&&(null===n.cues||void 0===n.cues)){n.mode="hidden";var d=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n);d&&d.addEventListener("load",function(t){return e.update()})}if(n&&n.cues&&n.cues.length>0)for(var p=n.cues,h=0,m=p.length;h<m;h++){var v=p[h],g=new a.default(this.player_,{cue:v,track:n});r.push(g),u.addChild(g)}return r.length>0&&this.show(),this.items=r,u},t}(r.default);f.prototype.kind_="chapters",f.prototype.controlText_="Chapters",o.default.registerComponent("ChaptersButton",f),t.default=f},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(553)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r.track={player:n,kind:r.kind,label:r.kind+" off",default:!1,mode:"disabled"},r.selectable=!0;var o=function(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}(this,e.call(this,n,r));return o.selected(!0),o}return function(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,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,o=t.length;r<o;r++){var i=t[r];if(i.kind===this.track.kind&&"showing"===i.mode){n=!1;break}}this.selected(n)},t}(r.default);o.default.registerComponent("OffTextTrackMenuItem",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(554)),o=a(n(48)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=r.track,a=r.cue,s=n.currentTime();r.label=a.text,r.selected=a.startTime<=s&&s<a.endTime;var l=function(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}(this,e.call(this,n,r));return l.track=o,l.cue=a,o.addEventListener("cuechange",i.bind(l,l.update)),l}return function(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,e),t.prototype.handleClick=function(){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(){var e=this.cue,t=this.player_.currentTime();this.selected(e.startTime<=t&&t<e.endTime)},t}(r.default);o.default.registerComponent("ChaptersTrackMenuItem",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(552)),o=a(n(48)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,e.call(this,n,r,o));a.el_.setAttribute("aria-label","Descriptions Menu");var s,l=n.textTracks();return l&&(s=i.bind(a,a.handleTracksChange),l.addEventListener("change",s),a.on("dispose",function(){l.removeEventListener("change",s)})),a}return function(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,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,o=t.length;r<o;r++){var i=t[r];if(i.kind!==this.kind_&&"showing"===i.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t}(r.default);s.prototype.kind_="descriptions",s.prototype.controlText_="Descriptions",o.default.registerComponent("DescriptionsButton",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(552)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(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}(this,e.call(this,n,r,o));return i.el_.setAttribute("aria-label","Subtitles Menu"),i}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t}(r.default);a.prototype.kind_="subtitles",a.prototype.controlText_="Subtitles",o.default.registerComponent("SubtitlesButton",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(552)),o=a(n(48)),i=a(n(2017));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(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}(this,e.call(this,n,r,o));return i.el_.setAttribute("aria-label","Captions Menu"),i}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.update=function(){var t=2;e.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1),this.items&&this.items.length>t?this.show():this.hide()},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new i.default(this.player_,{kind:this.kind_})),e.prototype.createItems.call(this,t)},t}(r.default);s.prototype.kind_="captions",s.prototype.controlText_="Captions",o.default.registerComponent("CaptionsButton",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(553)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1;var o=function(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}(this,e.call(this,n,r));return o.addClass("vjs-texttrack-settings"),o.controlText(", opens "+r.kind+" settings dialog"),o}return function(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,e),t.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},t}(r.default);o.default.registerComponent("CaptionSettingsMenuItem",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(961)),o=a(n(48)),i=a(n(2019));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r.tracks=n.audioTracks&&n.audioTracks();var o=function(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}(this,e.call(this,n,r));return o.el_.setAttribute("aria-label","Audio Menu"),o}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.player_.audioTracks&&this.player_.audioTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];e.push(new i.default(this.player_,{track:r,selectable:!0}))}return e},t}(r.default);s.prototype.controlText_="Audio Track",o.default.registerComponent("AudioTrackButton",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(554)),o=a(n(48)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=r.track,a=n.audioTracks();r.label=o.label||o.language||"Unknown",r.selected=o.enabled;var s,l=function(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}(this,e.call(this,n,r));return l.track=o,a&&(s=i.bind(l,l.handleTracksChange),a.addEventListener("change",s),l.on("dispose",function(){a.removeEventListener("change",s)})),l}return function(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,e),t.prototype.handleClick=function(t){var n=this.player_.audioTracks();if(e.prototype.handleClick.call(this,t),n)for(var r=0;r<n.length;r++){var o=n[r];o.enabled=o===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(r.default);o.default.registerComponent("AudioTrackMenuItem",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(962)),o=l(n(711)),i=l(n(2021)),a=l(n(48)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(124));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.updateVisibility(),o.updateLabel(),o.on(n,"loadstart",o.updateVisibility),o.on(n,"ratechange",o.updateLabel),o}return function(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,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=s.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var e=new o.default(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new i.default(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(){for(var e=this.player().playbackRate(),t=this.playbackRates(),n=t[0],r=0;r<t.length;r++)if(t[r]>e){n=t[r];break}this.player().playbackRate(n)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(r.default);c.prototype.controlText_="Playback Rate",a.default.registerComponent("PlaybackRateMenuButton",c),t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(554)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=r.rate,i=parseFloat(o,10);r.label=o,r.selected=1===i;var a=function(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}(this,e.call(this,n,r));return a.label=o,a.rate=i,a.on(n,"ratechange",a.update),a}return function(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,e),t.prototype.handleClick=function(){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},t}(r.default);a.prototype.contentElType="button",o.default.registerComponent("PlaybackRateMenuItem",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(2023)),o=i(n(48));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(r.default);o.default.registerComponent("CustomControlSpacer",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(48),i=(r=o)&&r.__esModule?r:{default:r};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(i.default);i.default.registerComponent("Spacer",a),t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(48)),o=a(n(953)),i=a(n(265));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r));return o.on(n,"error",o.open),o}return function(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,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(o.default);s.prototype.options_=(0,i.default)(o.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),r.default.registerComponent("ErrorDisplay",s),t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(48)),o=c(n(264)),i=c(n(108)),a=u(n(184)),s=u(n(952)),l=u(n(141));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return'\n    <div role="document">\n      <div role="heading" aria-level="1" id="'+t+'" class="vjs-control-text">Captions Settings Dialog</div>\n      <div id="'+n+'" class="vjs-control-text">Beginning of dialog window. Escape will cancel and close the window.</div>\n      <div class="vjs-tracksettings">\n        <div class="vjs-tracksettings-colors">\n          <fieldset class="vjs-fg-color vjs-tracksetting">\n            <legend>Text</legend>\n            <label class="vjs-label" for="captions-foreground-color-'+e+'">Color</label>\n            <select id="captions-foreground-color-'+e+'">\n              <option value="#FFF" selected>White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <label class="vjs-label" for="captions-foreground-opacity-'+e+'">Transparency</label>\n              <select id="captions-foreground-opacity-'+e+'">\n                <option value="1" selected>Opaque</option>\n                <option value="0.5">Semi-Opaque</option>\n              </select>\n            </span>\n          </fieldset>\n          <fieldset class="vjs-bg-color vjs-tracksetting">\n            <legend>Background</legend>\n            <label class="vjs-label" for="captions-background-color-'+e+'">Color</label>\n            <select id="captions-background-color-'+e+'">\n              <option value="#000" selected>Black</option>\n              <option value="#FFF">White</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-bg-opacity vjs-opacity">\n              <label class="vjs-label" for="captions-background-opacity-'+e+'">Transparency</label>\n              <select id="captions-background-opacity-'+e+'">\n                <option value="1" selected>Opaque</option>\n                <option value="0.5">Semi-Transparent</option>\n                <option value="0">Transparent</option>\n              </select>\n            </span>\n          </fieldset>\n          <fieldset class="window-color vjs-tracksetting">\n            <legend>Window</legend>\n            <label class="vjs-label" for="captions-window-color-'+e+'">Color</label>\n            <select id="captions-window-color-'+e+'">\n              <option value="#000" selected>Black</option>\n              <option value="#FFF">White</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-window-opacity vjs-opacity">\n              <label class="vjs-label" for="captions-window-opacity-'+e+'">Transparency</label>\n              <select id="captions-window-opacity-'+e+'">\n                <option value="0" selected>Transparent</option>\n                <option value="0.5">Semi-Transparent</option>\n                <option value="1">Opaque</option>\n              </select>\n            </span>\n          </fieldset>\n        </div> \x3c!-- vjs-tracksettings-colors --\x3e\n        <div class="vjs-tracksettings-font">\n          <div class="vjs-font-percent vjs-tracksetting">\n            <label class="vjs-label" for="captions-font-size-'+e+'">Font Size</label>\n            <select id="captions-font-size-'+e+'">\n              <option value="0.50">50%</option>\n              <option value="0.75">75%</option>\n              <option value="1.00" selected>100%</option>\n              <option value="1.25">125%</option>\n              <option value="1.50">150%</option>\n              <option value="1.75">175%</option>\n              <option value="2.00">200%</option>\n              <option value="3.00">300%</option>\n              <option value="4.00">400%</option>\n            </select>\n          </div>\n          <div class="vjs-edge-style vjs-tracksetting">\n            <label class="vjs-label" for="captions-edge-style-'+e+'">Text Edge Style</label>\n            <select id="captions-edge-style-'+e+'">\n              <option value="none" selected>None</option>\n              <option value="raised">Raised</option>\n              <option value="depressed">Depressed</option>\n              <option value="uniform">Uniform</option>\n              <option value="dropshadow">Dropshadow</option>\n            </select>\n          </div>\n          <div class="vjs-font-family vjs-tracksetting">\n            <label class="vjs-label" for="captions-font-family-'+e+'">Font Family</label>\n            <select id="captions-font-family-'+e+'">\n              <option value="proportionalSansSerif" selected>Proportional Sans-Serif</option>\n              <option value="monospaceSansSerif">Monospace Sans-Serif</option>\n              <option value="proportionalSerif">Proportional Serif</option>\n              <option value="monospaceSerif">Monospace Serif</option>\n              <option value="casual">Casual</option>\n              <option value="script">Script</option>\n              <option value="small-caps">Small Caps</option>\n            </select>\n          </div>\n        </div> \x3c!-- vjs-tracksettings-font --\x3e\n        <div class="vjs-tracksettings-controls">\n          <button class="vjs-default-button">Defaults</button>\n          <button class="vjs-done-button">Done</button>\n        </div>\n      </div> \x3c!-- vjs-tracksettings --\x3e\n    </div> \x3c!--  role="document" --\x3e\n  '}function d(e){var t=void 0;return e.selectedOptions?t=e.selectedOptions[0]:e.options&&(t=e.options[e.options.selectedIndex]),t.value}function p(e,t){if(t){var n=void 0;for(n=0;n<e.options.length;n++){if(e.options[n].value===t)break}e.selectedIndex=n}}var h=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,e.call(this,n,r));return a.hide(),void 0===r.persistTextTrackSettings&&(a.options_.persistTextTrackSettings=a.options_.playerOptions.persistTextTrackSettings),o.on(a.$(".vjs-done-button"),"click",i.bind(a,function(){this.saveSettings(),this.hide()})),o.on(a.$(".vjs-default-button"),"click",i.bind(a,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),o.on(a.$(".vjs-fg-color > select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-bg-color > select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".window-color > select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-text-opacity > select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-bg-opacity > select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-window-opacity > select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-font-percent select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-edge-style select"),"change",i.bind(a,a.updateDisplay)),o.on(a.$(".vjs-font-family select"),"change",i.bind(a,a.updateDisplay)),a.options_.persistTextTrackSettings&&a.restoreSettings(),a}return function(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,e),t.prototype.createEl=function(){var t=this.id_,n="TTsettingsDialogLabel-"+t,r="TTsettingsDialogDescription-"+t;return e.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:f(t,n,r),tabIndex:-1},{role:"dialog","aria-labelledby":n,"aria-describedby":r})},t.prototype.getValues=function(){var e=d(this.$(".vjs-edge-style select")),t=d(this.$(".vjs-font-family select")),n=d(this.$(".vjs-fg-color > select")),r=d(this.$(".vjs-text-opacity > select")),o=d(this.$(".vjs-bg-color > select")),i=d(this.$(".vjs-bg-opacity > select")),a=d(this.$(".window-color > select")),s=d(this.$(".vjs-window-opacity > select")),c={fontPercent:l.default.parseFloat(d(this.$(".vjs-font-percent > select"))),fontFamily:t,textOpacity:r,windowColor:a,windowOpacity:s,backgroundOpacity:i,edgeStyle:e,color:n,backgroundColor:o};for(var u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c},t.prototype.setValues=function(e){p(this.$(".vjs-edge-style select"),e.edgeStyle),p(this.$(".vjs-font-family select"),e.fontFamily),p(this.$(".vjs-fg-color > select"),e.color),p(this.$(".vjs-text-opacity > select"),e.textOpacity),p(this.$(".vjs-bg-color > select"),e.backgroundColor),p(this.$(".vjs-bg-opacity > select"),e.backgroundOpacity),p(this.$(".window-color > select"),e.windowColor),p(this.$(".vjs-window-opacity > select"),e.windowOpacity);var t=e.fontPercent;t&&(t=t.toFixed(2)),p(this.$(".vjs-font-percent > select"),t)},t.prototype.restoreSettings=function(){var e=void 0,t=void 0;try{var n=(0,s.default)(l.default.localStorage.getItem("vjs-text-track-settings"));e=n[0],t=n[1],e&&a.default.error(e)}catch(e){a.default.warn(e)}t&&this.setValues(t)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.getOwnPropertyNames(e).length>0?l.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):l.default.localStorage.removeItem("vjs-text-track-settings")}catch(e){a.default.warn(e)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t}(r.default);r.default.registerComponent("TextTrackSettings",h),t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=((r=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],r),a=_(n(449)),s=_(n(48)),l=b(n(124)),c=b(n(551)),u=b(n(108)),f=_(n(184)),d=_(n(937)),p=b(n(154)),h=_(n(129)),m=_(n(141)),v=_(n(301)),g=_(n(265)),y=_(n(376));function b(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}var w=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(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}(this,e.call(this,n,r)),a=n.source,s=!1;if(a&&(o.el_.currentSrc!==a.src||n.tag&&3===n.tag.initNetworkState_)?o.setSource(a):o.handleLateInit_(o.el_),o.el_.hasChildNodes()){for(var l=o.el_.childNodes,h=l.length,m=[];h--;){var v=l[h];"track"===v.nodeName.toLowerCase()&&(o.featuresNativeTextTracks?(o.remoteTextTrackEls().addTrackElement_(v),o.remoteTextTracks().addTrack_(v.track),s||o.el_.hasAttribute("crossorigin")||!c.isCrossOrigin(v.src)||(s=!0)):m.push(v))}for(var g=0;g<m.length;g++)o.el_.removeChild(m[g])}return["audio","video"].forEach(function(e){var t=o.el()[e+"Tracks"],n=o[e+"Tracks"](),r=(0,y.default)(e);o["featuresNative"+r+"Tracks"]&&t&&t.addEventListener&&(o["handle"+r+"TrackChange_"]=function(e){n.trigger({type:"change",target:n,currentTarget:n,srcElement:n})},o["handle"+r+"TrackAdd_"]=function(e){return n.addTrack(e.track)},o["handle"+r+"TrackRemove_"]=function(e){return n.removeTrack(e.track)},t.addEventListener("change",o["handle"+r+"TrackChange_"]),t.addEventListener("addtrack",o["handle"+r+"TrackAdd_"]),t.addEventListener("removetrack",o["handle"+r+"TrackRemove_"]),o["removeOld"+r+"Tracks_"]=function(e){return o.removeOldTracks_(n,t)},o.on("loadstart",o["removeOld"+r+"Tracks_"]))}),o.featuresNativeTextTracks&&(s&&f.default.warn((0,d.default)(i)),o.handleTextTrackChange_=u.bind(o,o.handleTextTrackChange),o.handleTextTrackAdd_=u.bind(o,o.handleTextTrackAdd),o.handleTextTrackRemove_=u.bind(o,o.handleTextTrackRemove),o.proxyNativeTextTracks_()),(p.TOUCH_ENABLED||p.IS_IPHONE||p.IS_NATIVE_ANDROID)&&!0===n.nativeControlsForTouch&&o.setControls(!0),o.proxyWebkitFullscreen_(),o.triggerReady(),o}return function(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,e),t.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(e){var t=(0,y.default)(e),r=n.el_[e+"Tracks"];r&&r.removeEventListener&&(r.removeEventListener("change",n["handle"+t+"TrackChange_"]),r.removeEventListener("addtrack",n["handle"+t+"TrackAdd_"]),r.removeEventListener("removetrack",n["handle"+t+"TrackRemove_"])),r&&n.off("loadstart",n["removeOld"+t+"Tracks_"])}),t.disposeMediaElement(this.el_),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!1===this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=h.default.createElement("video");var r=this.options_.tag&&l.getElAttributes(this.options_.tag),o=(0,g.default)({},r);p.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete o.controls,l.setElAttributes(e,(0,v.default)(o,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}for(var i=["autoplay","preload","loop","muted"],a=i.length-1;a>=0;a--){var s=i[a],c={};void 0!==this.options_[s]&&(c[s]=this.options_[s]),l.setElAttributes(e,c)}return e},t.prototype.handleLateInit_=function(e){var t=this;if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var n=function(){var e=!1,n=function(){e=!0};t.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return t.on("loadedmetadata",r),t.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")}),{v:void 0}}();if("object"===(void 0===n?"undefined":o(n)))return n.v}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var e=this.el().textTracks;if(e){for(var t=0;t<e.length;t++)this.textTracks().addTrack_(e[t]);e.addEventListener&&(e.addEventListener("change",this.handleTextTrackChange_),e.addEventListener("addtrack",this.handleTextTrackAdd_),e.addEventListener("removetrack",this.handleTextTrackRemove_)),this.on("loadstart",this.removeOldTextTracks_)}},t.prototype.handleTextTrackChange=function(e){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},t.prototype.handleTextTrackAdd=function(e){this.textTracks().addTrack_(e.track)},t.prototype.handleTextTrackRemove=function(e){this.textTracks().removeTrack_(e.track)},t.prototype.removeOldTracks_=function(e,t){var n=[];if(t){for(var r=0;r<e.length;r++){for(var o=e[r],i=!1,a=0;a<t.length;a++)if(t[a]===o){i=!0;break}i||n.push(o)}for(var s=0;s<n.length;s++){var l=n[s];e.removeTrack_(l)}}},t.prototype.removeOldTextTracks_=function(){var e=this.textTracks(),t=this.el().textTracks;this.removeOldTracks_(e,t)},t.prototype.play=function(){var e=this.el_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){(0,f.default)(e,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){return this.el_.duration||0},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=m.default.navigator&&m.default.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},t.prototype.addRemoteTextTrack=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.featuresNativeTextTracks)return e.prototype.addRemoteTextTrack.call(this,t);var n=h.default.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),this.el().appendChild(n),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),n},t.prototype.removeRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.removeRemoteTextTrack.call(this,t);var n=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack_(t);for(var r=this.$$("track"),o=r.length;o--;)t!==r[o]&&t!==r[o].track||this.el().removeChild(r[o])},t}(a.default);w.TEST_VID=h.default.createElement("video");var E=h.default.createElement("track");E.kind="captions",E.srclang="en",E.label="English",w.TEST_VID.appendChild(E),w.isSupported=function(){try{w.TEST_VID.volume=.5}catch(e){return!1}return!!w.TEST_VID.canPlayType},w.canControlVolume=function(){try{var e=w.TEST_VID.volume;return w.TEST_VID.volume=e/2+.1,e!==w.TEST_VID.volume}catch(e){return!1}},w.canControlPlaybackRate=function(){if(p.IS_ANDROID&&p.IS_CHROME)return!1;try{var e=w.TEST_VID.playbackRate;return w.TEST_VID.playbackRate=e/2+.1,e!==w.TEST_VID.playbackRate}catch(e){return!1}},w.supportsNativeTextTracks=function(){var e=void 0;return(e=!!w.TEST_VID.textTracks)&&w.TEST_VID.textTracks.length>0&&(e="number"!=typeof w.TEST_VID.textTracks[0].mode),e&&p.IS_FIREFOX&&(e=!1),!e||"onremovetrack"in w.TEST_VID.textTracks||(e=!1),e},w.supportsNativeVideoTracks=function(){return!!w.TEST_VID.videoTracks},w.supportsNativeAudioTracks=function(){return!!w.TEST_VID.audioTracks},w.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],w.prototype.featuresVolumeControl=w.canControlVolume(),w.prototype.featuresPlaybackRate=w.canControlPlaybackRate(),w.prototype.movingMediaElementInDOM=!p.IS_IOS,w.prototype.featuresFullscreenResize=!0,w.prototype.featuresProgressEvents=!0,w.prototype.featuresTimeupdateEvents=!0,w.prototype.featuresNativeTextTracks=w.supportsNativeTextTracks(),w.prototype.featuresNativeVideoTracks=w.supportsNativeVideoTracks(),w.prototype.featuresNativeAudioTracks=w.supportsNativeAudioTracks();var x=void 0,k=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,S=/^video\/mp4/i;w.patchCanPlayType=function(){p.ANDROID_VERSION>=4&&!p.IS_FIREFOX&&(x||(x=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&k.test(e)?"maybe":x.call(this,e)}),p.IS_OLD_ANDROID&&(x||(x=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&S.test(e)?"maybe":x.call(this,e)})},w.unpatchCanPlayType=function(){var e=w.TEST_VID.constructor.prototype.canPlayType;return w.TEST_VID.constructor.prototype.canPlayType=x,x=null,e},w.patchCanPlayType(),w.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},w.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){w.prototype[e]=function(){return this.el_[e]}}),["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(e){w.prototype["set"+(0,y.default)(e)]=function(t){this.el_[e]=t}}),["pause","load"].forEach(function(e){w.prototype[e]=function(){return this.el_[e]()}}),a.default.withSourceHandlers(w),w.nativeSourceHandler={},w.nativeSourceHandler.canPlayType=function(e){try{return w.TEST_VID.canPlayType(e)}catch(e){return""}},w.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return w.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=c.getFileExtension(e.src);return w.nativeSourceHandler.canPlayType("video/"+n)}return""},w.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},w.nativeSourceHandler.dispose=function(){},w.registerSourceHandler(w.nativeSourceHandler),s.default.registerComponent("Html5",w),a.default.registerTech("Html5",w),t.default=w},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(945),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){i.default.prototype[e]=t}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(708),o=s(n(709)),i=s(n(265)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154));function s(e){return e&&e.__esModule?e:{default:e}}function l(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}var c=function(e){function t(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=(0,i.default)(o,{kind:r.AudioTrackKind[o.kind]||""}),c=n=l(this,e.call(this,s)),u=!1;if(a.IS_IE8)for(var f in t.prototype)"constructor"!==f&&(c[f]=t.prototype[f]);return Object.defineProperty(c,"enabled",{get:function(){return u},set:function(e){"boolean"==typeof e&&e!==u&&(u=e,this.trigger("enabledchange"))}}),s.enabled&&(c.enabled=s.enabled),c.loaded_=!0,l(n,c)}return function(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,e),t}(o.default);t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r=n(708),o=s(n(709)),i=s(n(265)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(154));function s(e){return e&&e.__esModule?e:{default:e}}function l(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}var c=function(e){function t(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=(0,i.default)(o,{kind:r.VideoTrackKind[o.kind]||""}),c=n=l(this,e.call(this,s)),u=!1;if(a.IS_IE8)for(var f in t.prototype)"constructor"!==f&&(c[f]=t.prototype[f]);return Object.defineProperty(c,"selected",{get:function(){return u},set:function(e){"boolean"==typeof e&&e!==u&&(u=e,this.trigger("selectedchange"))}}),s.selected&&(c.selected=s.selected),l(n,c)}return function(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,e),t}(o.default);t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(184),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},r={};for(var i in"object"===(void 0===t?"undefined":o(t))?("function"==typeof t.init&&(a.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)}(n,e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n}},function(e,t,n){e.exports=n(2032)},function(e,t,n){n(2033),e.exports=n(116).Reflect.get},function(e,t,n){var r=n(421),o=n(422),i=n(197),a=n(159),s=n(196);n(68)({target:"Reflect",stat:!0},{get:function e(t,n){var l,c,u=arguments.length<3?t:arguments[2];return s(t)===u?t[n]:(l=r.f(t,n))?i(l,"value")?l.value:void 0===l.get?void 0:l.get.call(u):a(c=o(t))?e(c,n,u):void 0}})},function(e,t,n){},function(e,t,n){var r=n(183),o=n(2036),i="Expected a function",a=Math.max;e.exports=function(e,t,n){var s,l,c,u,f,d,p,h=0,m=!1,v=!0;if("function"!=typeof e)throw new TypeError(i);if(t=t<0?0:+t||0,!0===n){var g=!0;v=!1}else r(n)&&(g=!!n.leading,m="maxWait"in n&&a(+n.maxWait||0,t),v="trailing"in n?!!n.trailing:v);function y(t,n){n&&clearTimeout(n),l=d=p=void 0,t&&(h=o(),c=e.apply(f,s),d||l||(s=f=void 0))}function b(){var e=t-(o()-u);e<=0||e>t?y(p,l):d=setTimeout(b,e)}function _(){y(v,d)}function w(){if(s=arguments,u=o(),f=this,p=v&&(d||!g),!1===m)var n=g&&!d;else{l||g||(h=u);var r=m-(u-h),i=r<=0||r>m;i?(l&&(l=clearTimeout(l)),h=u,c=e.apply(f,s)):l||(l=setTimeout(_,r))}return i&&d?d=clearTimeout(d):d||t===m||(d=setTimeout(b,t)),n&&(i=!0,c=e.apply(f,s)),!i||d||l||(s=f=void 0),c}return w.cancel=function(){d&&clearTimeout(d),l&&clearTimeout(l),h=0,l=d=p=void 0},w}},function(e,t,n){var r=n(695)(Date,"now")||function(){return(new Date).getTime()};e.exports=r},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(2040);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}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,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(2046),o=n(691),i=n(2047),a=n(2049),s=Math.min;e.exports=function(e,t,n){if(n?o(e,t,n):null==t)return(l=(e=a(e)).length)>0?e[r(0,l-1)]:void 0;var l,c=-1,u=i(e),f=(l=u.length)-1;for(t=s(t<0?0:+t||0,l);++c<t;){var d=r(c,f),p=u[d];u[d]=u[c],u[c]=p}return u.length=t,u}},function(e,t){var n=Math.floor,r=Math.random;e.exports=function(e,t){return e+n(r()*(t-e+1))}},function(e,t,n){var r=n(927),o=n(692),i=n(338),a=n(1066);e.exports=function(e){var t=e?o(e):0;return i(t)?t?r(e):[]:a(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=Array(r);++n<r;)o[n]=e[t[n]];return o}},function(e,t,n){var r=n(444),o=n(183),i=n(1066);e.exports=function(e){return null==e?[]:r(e)?o(e)?e:Object(e):i(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(2051),o=n(440),i=n(2052),a=n(441),s=n(298).type("Maybe"),l=n(335),c=n(676),u=n(436),f=n(903),d=n(94),p=n(199),h=r({Nothing:[],Just:["a"]}),m=h.Nothing,v=h.Just;b.Nothing=l(b,m),b.Just=l(b,v);var g=l(b,v),y=l(b,m);function b(e){if(!arguments.length)throw new TypeError("Maybe: Must wrap something, try using Nothing or Just constructors");var t=h.includes(e)?e:v(e),n=function(e){return r(c(e),u)};function r(e,n){if(!d(e)||!d(n))throw new TypeError("Maybe.either: Requires both left and right functions");return h.caseOf({Nothing:e,Just:n},t)}function o(e){if(!f(e))throw new TypeError("Maybe.sequence: Must wrap an Applicative");return e.map(b.of)}return{inspect:function(){return r(c("Nothing"),function(e){return"Just"+a(e)})},either:r,option:n,type:s,concat:function(e){if(!p(b,e))throw new TypeError("Maybe.concat: Maybe of Semigroup required");return r(b.Nothing,i(b,e))},equals:function(e){return p(b,e)&&r(c(e.either(c(!0),c(!1))),function(t){return e.either(c(!1),function(e){return e===t})})},coalesce:function(e,t){if(!d(e)||!d(t))throw new TypeError("Maybe.coalesce: Requires both left and right functions");return b.Just(r(e,t))},map:function(e){if(!d(e))throw new TypeError("Maybe.map: Function required");return r(b.Nothing,l(b.Just,e))},alt:function(e){if(!p(b,e))throw new TypeError("Maybe.alt: Maybe required");return r(c(e),b.Just)},zero:y,ap:function(e){var t=n(c(void 0));if(!d(t))throw new TypeError("Maybe.ap: Wrapped value must be a function");if(!p(b,e))throw new TypeError("Maybe.ap: Maybe required");return r(b.Nothing,e.map)},of:g,chain:function(e){if(!d(e))throw new TypeError("Maybe.chain: Function required");var t=r(b.Nothing,e);if(!p(b,t))throw new TypeError("Maybe.chain: Function must return a Maybe");return t},sequence:function(e){if(!d(e))throw new TypeError("Maybe.sequence: Applicative returning function required");return r(l(e,b.Nothing),o)},traverse:function(e,t){if(!d(t)||!d(e))throw new TypeError("Maybe.traverse: Applicative returning functions required for both arguments");var n=r(l(e,b.Nothing),t);if(!f(n))throw new TypeError("Maybe.traverse: Both functions must return an Applicative");return r(c(n),c(n.map(b)))}}}b.of=g,b.type=s,b.zero=y,b["@@implements"]=o(["alt","ap","chain","concat","equals","map","of","traverse","zero"]),e.exports=b},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(435),o=n(676),i=n(120),a=n(259),s=n(1067),l=n(94),c=n(296),u=n(369),f=function(e){return u(e)&&e.length};function d(e){return function(t,n){var r=n.tag,o=e[r()].reduce(function(e,t){return e.concat([n[t].value()])},[]);return t[r()].apply(null,o)}}var p=function(e){return function(t){return!!t&&l(t.tag)&&-1!==Object.keys(e).indexOf(t.tag())}};e.exports=function(e){if(!c(e)||s(e))throw new TypeError("defineUnion: Argument must be an Object containing definition lists");return Object.keys(e).reduce(function(t,n){var i=e[n];if(!a(i)||!i.reduce(function(e,t){return e&&f(t)},!0))throw new TypeError("defineUnion: Definitions must be a list of non-empty string identifiers");return t[n]=function(e,t){return function(){var n=r(arguments);return e.reduce(function(e,t,r){return e[t]={value:o(n[r])},e},{tag:o(t)})}}(i,n),t},{caseOf:i(d(e)),includes:i(p(e))})}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(199),o=n(699);e.exports=function(e,t){var n=e.type();return function(e){if(!o(e))throw new TypeError(n+".concat: Both containers must contain Semigroups of the same type");return t.map(function(t){if(!r(e,t))throw new TypeError(n+".concat: Both containers must contain Semigroups of the same type");return e.concat(t)})}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(2064);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+s+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),f=6;f<c;f++)u[f-6]=arguments[f];return e.apply(void 0,[n,r,s,i,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(1084)),o=c(n(1085)),i=c(n(1)),a=c(n(96)),s=c(n(1086)),l=c(n(1087));function c(e){return e&&e.__esModule?e:{default:e}}function u(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}var f=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,c=Array(o),f=0;f<o;f++)c[f]=arguments[f];return n=r=u(this,e.call.apply(e,[this].concat(c))),r._mountOverlayTarget=function(){r._overlayTarget||(r._overlayTarget=document.createElement("div"),r._portalContainerNode=(0,s.default)(r.props.container,(0,l.default)(r).body),r._portalContainerNode.appendChild(r._overlayTarget))},r._unmountOverlayTarget=function(){r._overlayTarget&&(r._portalContainerNode.removeChild(r._overlayTarget),r._overlayTarget=null),r._portalContainerNode=null},r._renderOverlay=function(){var e=r.props.children?i.default.Children.only(r.props.children):null;if(null!==e){r._mountOverlayTarget();var t=!r._overlayInstance;r._overlayInstance=a.default.unstable_renderSubtreeIntoContainer(r,e,r._overlayTarget,function(){t&&r.props.onRendered&&r.props.onRendered()})}else r._unrenderOverlay(),r._unmountOverlayTarget()},r._unrenderOverlay=function(){r._overlayTarget&&(a.default.unmountComponentAtNode(r._overlayTarget),r._overlayInstance=null)},r.getMountNode=function(){return r._overlayTarget},u(r,n)}return function(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,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,s.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);f.displayName="Portal",f.propTypes={container:r.default.oneOfType([o.default,r.default.func]),onRendered:r.default.func},t.default=f,e.exports=t.default},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/^#/,""),t=e.length;return 3===t||4===t?function(e){return r(e).map(function(e){return e+e}).join("")}(e):e};t.default=o},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(2087);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){e.exports=n(2090)},function(e,t,n){n(332);var r=n(2091),o=n(367),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.values;return e===i||e instanceof Array&&t===i.values||a.hasOwnProperty(o(e))?r:t}},function(e,t,n){e.exports=n(2092)},function(e,t,n){n(513),e.exports=n(136)("Array").values},function(e,t,n){},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1));function o(){return(o=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}).apply(this,arguments)}var i=function(e){var t=function(t,n){return r.default.createElement(e,o({},t,{forwardedRef:n}))},n=e.displayName||e.name;return t.displayName="withForwardedRef(".concat(n,")"),(0,r.forwardRef)(t)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1));function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(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}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Responsive";return function(u){var f=function(n){function f(){var e,t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=this,(t=!(r=(e=s(f)).call.apply(e,[this].concat(a)))||"object"!==o(r)&&"function"!=typeof r?l(n):r).handleChange=t.handleChange.bind(l(t)),t.state={isMatch:!1},t}var d,p,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(f,r.Component),d=f,(p=[{key:"componentDidMount",value:function(){this.mql=window.matchMedia(e),this.mql.addListener(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.mql.removeListener(this.handleChange)}},{key:"handleChange",value:function(){this.setState({isMatch:this.mql.matches})}},{key:"render",value:function(){var e,n,o,a=this.props,s=this.state.isMatch;return r.default.createElement(u,i({},a,(o=s,(n=t)in(e={})?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e)))}}])&&a(d.prototype,p),h&&a(d,h),f}(),d=u.displayName||u.name;return f.displayName="".concat(n,"(").concat(d,")"),f}};t.default=u},function(e,t,n){"use strict";var r=n(328),o=n(329),i=n(2098);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n(109)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){"use strict";var r=n(555),o={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-o.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*o.easeInBounce(2*e):.5*o.easeOutBounce(2*e-1)+.5}};e.exports={effects:o},r.easingEffects=o},function(e,t,n){"use strict";var r=n(555);t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,o,i){if(i){var a=Math.min(i,o/2-1e-7,r/2-1e-7);e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.arcTo(t+r,n,t+r,n+a,a),e.lineTo(t+r,n+o-a),e.arcTo(t+r,n+o,t+r-a,n+o,a),e.lineTo(t+a,n+o),e.arcTo(t,n+o,t,n+o-a,a),e.lineTo(t,n+a),e.arcTo(t,n,t+a,n,a),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,o)},drawPoint:function(e,t,n,r,o,i){var a,s,l,c,u,f;if(i=i||0,!t||"object"!=typeof t||"[object HTMLImageElement]"!==(a=t.toString())&&"[object HTMLCanvasElement]"!==a){if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(r,o),e.rotate(i*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case"triangle":u=(s=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(-s/2,u/3),e.lineTo(s/2,u/3),e.lineTo(0,-2*u/3),e.closePath();break;case"rect":f=1/Math.SQRT2*n,e.rect(-f,-f,2*f,2*f);break;case"rectRounded":var d=n/Math.SQRT2,p=-d,h=-d,m=Math.SQRT2*n;this.roundedRect(e,p,h,m,m,.425*n);break;case"rectRot":f=1/Math.SQRT2*n,e.moveTo(-f,0),e.lineTo(0,f),e.lineTo(f,0),e.lineTo(0,-f),e.closePath();break;case"cross":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case"crossRot":l=Math.cos(Math.PI/4)*n,c=Math.sin(Math.PI/4)*n,e.moveTo(-l,-c),e.lineTo(l,c),e.moveTo(-l,c),e.lineTo(l,-c);break;case"star":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),l=Math.cos(Math.PI/4)*n,c=Math.sin(Math.PI/4)*n,e.moveTo(-l,-c),e.lineTo(l,c),e.moveTo(-l,c),e.lineTo(l,-c);break;case"line":e.moveTo(-n,0),e.lineTo(n,0);break;case"dash":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}}else e.drawImage(t,r-t.width/2,o-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){if(n.steppedLine)return"after"===n.steppedLine&&!r||"after"!==n.steppedLine&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y);n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}};r.clear=t.clear,r.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){"use strict";var r=n(555);e.exports={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,o,i;return r.isObject(e)?(t=+e.top||0,n=+e.right||0,o=+e.bottom||0,i=+e.left||0):t=n=o=i=+e||0,{top:t,right:n,bottom:o,left:i,height:t+o,width:i+n}},resolve:function(e,t,n){var o,i,a;for(o=0,i=e.length;o<i;++o)if(void 0!==(a=e[o])&&(void 0!==t&&"function"==typeof a&&(a=a(t)),void 0!==n&&r.isArray(a)&&(a=a[n]),void 0!==a))return a}}},function(e,t,n){"use strict";var r=n(1088),o=n(109),i=n(86),a=n(303);e.exports=function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,o){var a=document.defaultView,s=i._getParentNode(n),l=a.getComputedStyle(n)[r],c=a.getComputedStyle(s)[r],u=t(l),f=t(c),d=Number.POSITIVE_INFINITY;return u||f?Math.min(u?e(l,n,o):d,f?e(c,s,o):d):"none"}i.configMerge=function(){return i.merge(i.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){var o=t[e]||{},s=n[e];"scales"===e?t[e]=i.scaleMerge(o,s):"scale"===e?t[e]=i.merge(o,[a.getScaleDefaults(s.type),s]):i._merger(e,t,n,r)}})},i.scaleMerge=function(){return i.merge(i.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var o,s,l,c=n[e].length;for(t[e]||(t[e]=[]),o=0;o<c;++o)l=n[e][o],s=i.valueOrDefault(l.type,"xAxes"===e?"category":"linear"),o>=t[e].length&&t[e].push({}),!t[e][o].type||l.type&&l.type!==t[e][o].type?i.merge(t[e][o],[a.getScaleDefaults(s),l]):i.merge(t[e][o],l)}else i._merger(e,t,n,r)}})},i.where=function(e,t){if(i.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return i.each(e,function(e){t(e)&&n.push(e)}),n},i.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,o=e.length;r<o;++r)if(t.call(n,e[r],r,e))return r;return-1},i.findNextWhere=function(e,t,n){i.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var o=e[r];if(t(o))return o}},i.findPreviousWhere=function(e,t,n){i.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var o=e[r];if(t(o))return o}},i.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},i.almostEquals=function(e,t,n){return Math.abs(e-t)<n},i.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},i.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},i.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},i.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},i.toRadians=function(e){return e*(Math.PI/180)},i.toDegrees=function(e){return e*(180/Math.PI)},i.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r),i=Math.atan2(r,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:o}},i.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.aliasPixel=function(e){return e%2==0?0:.5},i.splineCurve=function(e,t,n,r){var o=e.skip?t:e,i=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),c=s/(s+l),u=l/(s+l),f=r*(c=isNaN(c)?0:c),d=r*(u=isNaN(u)?0:u);return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+d*(a.x-o.x),y:i.y+d*(a.y-o.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(e){var t,n,r,o,a,s,l,c,u,f=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=f.length;for(t=0;t<d;++t)if(!(r=f[t]).model.skip){if(n=t>0?f[t-1]:null,(o=t<d-1?f[t+1]:null)&&!o.model.skip){var p=o.model.x-r.model.x;r.deltaK=0!==p?(o.model.y-r.model.y)/p:0}!n||n.model.skip?r.mK=r.deltaK:!o||o.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=f[t],o=f[t+1],r.model.skip||o.model.skip||(i.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=o.mK=0:(a=r.mK/r.deltaK,s=o.mK/r.deltaK,(c=Math.pow(a,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(c),r.mK=a*l*r.deltaK,o.mK=s*l*r.deltaK)));for(t=0;t<d;++t)(r=f[t]).model.skip||(n=t>0?f[t-1]:null,o=t<d-1?f[t+1]:null,n&&!n.model.skip&&(u=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-u,r.model.controlPointPreviousY=r.model.y-u*r.mK),o&&!o.model.skip&&(u=(o.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+u,r.model.controlPointNextY=r.model.y+u*r.mK))},i.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},i.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},i.niceNum=function(e,t){var n=Math.floor(i.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},i.getRelativePosition=function(e,t){var n,r,o=e.originalEvent||e,a=e.target||e.srcElement,s=a.getBoundingClientRect(),l=o.touches;l&&l.length>0?(n=l[0].clientX,r=l[0].clientY):(n=o.clientX,r=o.clientY);var c=parseFloat(i.getStyle(a,"padding-left")),u=parseFloat(i.getStyle(a,"padding-top")),f=parseFloat(i.getStyle(a,"padding-right")),d=parseFloat(i.getStyle(a,"padding-bottom")),p=s.right-s.left-c-f,h=s.bottom-s.top-u-d;return{x:n=Math.round((n-s.left-c)/p*a.width/t.currentDevicePixelRatio),y:r=Math.round((r-s.top-u)/h*a.height/t.currentDevicePixelRatio)}},i.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},i.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},i._calculatePadding=function(e,t,n){return(t=i.getStyle(e,t)).indexOf("%")>-1?n/parseInt(t,10):parseInt(t,10)},i._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},i.getMaximumWidth=function(e){var t=i._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-i._calculatePadding(t,"padding-left",n)-i._calculatePadding(t,"padding-right",n),o=i.getConstraintWidth(e);return isNaN(o)?r:Math.min(r,o)},i.getMaximumHeight=function(e){var t=i._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-i._calculatePadding(t,"padding-top",n)-i._calculatePadding(t,"padding-bottom",n),o=i.getConstraintHeight(e);return isNaN(o)?r:Math.min(r,o)},i.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},i.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,o=e.height,i=e.width;r.height=o*n,r.width=i*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=o+"px",r.style.width=i+"px")}},i.fontString=function(e,t,n){return t+" "+e+"px "+n},i.longestText=function(e,t,n,r){var o=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},a=r.garbageCollect=[],r.font=t),e.font=t;var s=0;i.each(n,function(t){null!=t&&!0!==i.isArray(t)?s=i.measureText(e,o,a,s,t):i.isArray(t)&&i.each(t,function(t){null==t||i.isArray(t)||(s=i.measureText(e,o,a,s,t))})});var l=a.length/2;if(l>n.length){for(var c=0;c<l;c++)delete o[a[c]];a.splice(0,l)}return s},i.measureText=function(e,t,n,r,o){var i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r},i.numberOfLabelLines=function(e){var t=1;return i.each(e,function(e){i.isArray(e)&&e.length>t&&(t=e.length)}),t},i.color=r?function(e){return e instanceof CanvasGradient&&(e=o.global.defaultColor),r(e)}:function(e){return console.error("Color.js not found!"),e},i.getHoverColor=function(e){return e instanceof CanvasPattern?e:i.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){var r=n(2105),o=function(){return new c};for(var i in r){o[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(i);var a=/(\w+)2(\w+)/.exec(i),s=a[1],l=a[2];(o[s]=o[s]||{})[l]=o[i]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var o=0;o<n.length;o++)n[o]=Math.round(n[o]);return n}}(i)}var c=function(){this.convs={}};c.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},c.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},c.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=o[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){c.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=o},function(e,t){function n(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),s=Math.max(r,o,i),l=s-a;return s==a?t=0:r==s?t=(o-i)/l:o==s?t=2+(i-r)/l:i==s&&(t=4+(r-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]}function o(e){var t,n,r=e[0],o=e[1],i=e[2],a=Math.min(r,o,i),s=Math.max(r,o,i),l=s-a;return n=0==s?0:l/s*1e3/10,s==a?t=0:r==s?t=(o-i)/l:o==s?t=2+(i-r)/l:i==s&&(t=4+(r-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function i(e){var t=e[0],r=e[1],o=e[2];return[n(e)[0],100*(1/255*Math.min(t,Math.min(r,o))),100*(o=1-1/255*Math.max(t,Math.max(r,o)))]}function a(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]}function s(e){return k[JSON.stringify(e)]}function l(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function c(e){var t=l(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function u(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o}function f(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));r*=255;switch(o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}}function d(e){var t,n,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100,c=s+l;switch(c>1&&(s/=c,l/=c),o=6*a-(t=Math.floor(6*a)),0!=(1&t)&&(o=1-o),i=s+o*((n=1-l)-s),t){default:case 6:case 0:r=n,g=i,b=s;break;case 1:r=i,g=n,b=s;break;case 2:r=s,g=n,b=i;break;case 3:r=s,g=i,b=n;break;case 4:r=i,g=s,b=n;break;case 5:r=n,g=s,b=i}return[255*r,255*g,255*b]}function p(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]}function h(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function v(e){var t,n,r,o,i=e[0],a=e[1],s=e[2];return i<=8?o=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),o=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),n,r=r/108.883<=.008859?r=108.883*(o-s/200-16/116)/7.787:108.883*Math.pow(o-s/200,3)]}function y(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]}function _(e){return h(v(e))}function w(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function E(e){return x[e]}e.exports={rgb2hsl:n,rgb2hsv:o,rgb2hwb:i,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:c,rgb2lch:function(e){return y(c(e))},hsl2rgb:u,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return i(u(e))},hsl2cmyk:function(e){return a(u(e))},hsl2keyword:function(e){return s(u(e))},hsv2rgb:f,hsv2hsl:function(e){var t,n,r=e[0],o=e[1]/100,i=e[2]/100;return t=o*i,[r,100*(t=(t/=(n=(2-o)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return i(f(e))},hsv2cmyk:function(e){return a(f(e))},hsv2keyword:function(e){return s(f(e))},hwb2rgb:d,hwb2hsl:function(e){return n(d(e))},hwb2hsv:function(e){return o(d(e))},hwb2cmyk:function(e){return a(d(e))},hwb2keyword:function(e){return s(d(e))},cmyk2rgb:p,cmyk2hsl:function(e){return n(p(e))},cmyk2hsv:function(e){return o(p(e))},cmyk2hwb:function(e){return i(p(e))},cmyk2keyword:function(e){return s(p(e))},keyword2rgb:E,keyword2hsl:function(e){return n(E(e))},keyword2hsv:function(e){return o(E(e))},keyword2hwb:function(e){return i(E(e))},keyword2cmyk:function(e){return a(E(e))},keyword2lab:function(e){return c(E(e))},keyword2xyz:function(e){return l(E(e))},xyz2rgb:h,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:v,lab2rgb:_,lab2lch:y,lch2lab:w,lch2xyz:function(e){return v(w(e))},lch2rgb:function(e){return _(w(e))}};var x={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},k={};for(var S in x)k[JSON.stringify(x[S])]=S},function(e,t,n){var r=n(2107);function o(e){if(e){var t=[0,0,0],n=1,o=e.match(/^#([a-fA-F0-9]{3})$/i);if(o){o=o[1];for(var i=0;i<t.length;i++)t[i]=parseInt(o[i]+o[i],16)}else if(o=e.match(/^#([a-fA-F0-9]{6})$/i)){o=o[1];for(i=0;i<t.length;i++)t[i]=parseInt(o.slice(2*i,2*i+2),16)}else if(o=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(i=0;i<t.length;i++)t[i]=parseInt(o[i+1]);n=parseFloat(o[4])}else if(o=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(i=0;i<t.length;i++)t[i]=Math.round(2.55*parseFloat(o[i+1]));n=parseFloat(o[4])}else if(o=e.match(/(\w+)/)){if("transparent"==o[1])return[0,0,0,0];if(!(t=r[o[1]]))return}for(i=0;i<t.length;i++)t[i]=u(t[i],0,255);return n=n||0==n?u(n,0,1):1,t[3]=n,t}}function i(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[u(parseInt(t[1]),0,360),u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[u(parseInt(t[1]),0,360),u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function c(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function u(e,t,n){return Math.min(Math.max(t,e),n)}function f(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:o,getHsla:i,getRgb:function(e){var t=o(e);return t&&t.slice(0,3)},getHsl:function(e){var t=i(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=o(e);if(t)return t[3];if(t=i(e))return t[3];if(t=a(e))return t[3]},hexString:function(e){return"#"+f(e[0])+f(e[1])+f(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return l(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),o=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+o+"%)"},percentaString:l,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return c(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:c,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return d[e.slice(0,3)]}};var d={};for(var p in r)d[r[p]]=p},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86);r._set("global",{elements:{arc:{backgroundColor:r.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=o.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=i.getAngleFromPoint(n,{x:e,y:t}),o=r.angle,a=r.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;o<s;)o+=2*Math.PI;var c=o>=s&&o<=l,u=a>=n.innerRadius&&a<=n.outerRadius;return c&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,r=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,r),e.arc(t.x,t.y,t.innerRadius,r,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86),a=r.global;r._set("global",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=o.extend({draw:function(){var e,t,n,r,o=this._view,s=this._chart.ctx,l=o.spanGaps,c=this._children.slice(),u=a.elements.line,f=-1;for(this._loop&&c.length&&c.push(c[0]),s.save(),s.lineCap=o.borderCapStyle||u.borderCapStyle,s.setLineDash&&s.setLineDash(o.borderDash||u.borderDash),s.lineDashOffset=o.borderDashOffset||u.borderDashOffset,s.lineJoin=o.borderJoinStyle||u.borderJoinStyle,s.lineWidth=o.borderWidth||u.borderWidth,s.strokeStyle=o.borderColor||a.defaultColor,s.beginPath(),f=-1,e=0;e<c.length;++e)t=c[e],n=i.previousItem(c,e),r=t._view,0===e?r.skip||(s.moveTo(r.x,r.y),f=e):(n=-1===f?n:c[f],r.skip||(f!==e-1&&!l||-1===f?s.moveTo(r.x,r.y):i.canvas.lineTo(s,n._view,t._view),f=e));s.stroke(),s.restore()}})},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86),a=r.global.defaultColor;function s(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}r._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:a,borderColor:a,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=o.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._model,o=this._chart.ctx,s=t.pointStyle,l=t.rotation,c=t.radius,u=t.x,f=t.y;t.skip||(void 0===e||n.x>=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(o.strokeStyle=t.borderColor||a,o.lineWidth=i.valueOrDefault(t.borderWidth,r.global.elements.point.borderWidth),o.fillStyle=t.backgroundColor||a,i.canvas.drawPoint(o,s,c,u,f,l))}})},function(e,t,n){"use strict";var r=n(109),o=n(239);function i(e){return void 0!==e._view.width}function a(e){var t,n,r,o,a=e._view;if(i(e)){var s=a.width/2;t=a.x-s,n=a.x+s,r=Math.min(a.y,a.base),o=Math.max(a.y,a.base)}else{var l=a.height/2;t=Math.min(a.x,a.base),n=Math.max(a.x,a.base),r=a.y-l,o=a.y+l}return{left:t,top:r,right:n,bottom:o}}r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=o.extend({draw:function(){var e,t,n,r,o,i,a,s=this._chart.ctx,l=this._view,c=l.borderWidth;if(l.horizontal?(e=l.base,t=l.x,n=l.y-l.height/2,r=l.y+l.height/2,o=t>e?1:-1,i=1,a=l.borderSkipped||"left"):(e=l.x-l.width/2,t=l.x+l.width/2,n=l.y,o=1,i=(r=l.base)>n?1:-1,a=l.borderSkipped||"bottom"),c){var u=Math.min(Math.abs(e-t),Math.abs(n-r)),f=(c=c>u?u:c)/2,d=e+("left"!==a?f*o:0),p=t+("right"!==a?-f*o:0),h=n+("top"!==a?f*i:0),m=r+("bottom"!==a?-f*i:0);d!==p&&(n=h,r=m),h!==m&&(e=d,t=p)}s.beginPath(),s.fillStyle=l.backgroundColor,s.strokeStyle=l.borderColor,s.lineWidth=c;var v=[[e,r],[e,n],[t,n],[t,r]],g=["bottom","left","top","right"].indexOf(a,0);function y(e){return v[(g+e)%4]}-1===g&&(g=0);var b=y(0);s.moveTo(b[0],b[1]);for(var _=1;_<4;_++)b=y(_),s.lineTo(b[0],b[1]);s.fill(),c&&s.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var r=a(this);n=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}return n},inLabelRange:function(e,t){if(!this._view)return!1;var n=a(this);return i(this)?e>=n.left&&e<=n.right:t>=n.top&&t<=n.bottom},inXRange:function(e){var t=a(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=a(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return i(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},function(e,t,n){"use strict";var r=n(86),o="$chartjs",i="chartjs-",a=i+"render-monitor",s=i+"render-animation",l=["animationstart","webkitAnimationStart"],c={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function u(e,t){var n=r.getStyle(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?Number(o[1]):void 0}var f=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function d(e,t,n){e.addEventListener(t,n,f)}function p(e,t,n){e.removeEventListener(t,n,f)}function h(e,t,n,r,o){return{type:e,chart:t,native:o||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function m(e,t,n){var c,u,f,p,m=e[o]||(e[o]={}),v=m.resizer=function(e){var t=document.createElement("div"),n=i+"size-monitor",r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=r,t.className=n,t.innerHTML='<div class="'+n+'-expand" style="'+r+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var o=t.childNodes[0],a=t.childNodes[1];t._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){t._reset(),e()};return d(o,"scroll",s.bind(o,"expand")),d(a,"scroll",s.bind(a,"shrink")),t}((c=function(){if(m.resizer)return t(h("resize",n))},f=!1,p=[],function(){p=Array.prototype.slice.call(arguments),u=u||this,f||(f=!0,r.requestAnimFrame.call(window,function(){f=!1,c.apply(u,p)}))}));!function(e,t){var n=e[o]||(e[o]={}),i=n.renderProxy=function(e){e.animationName===s&&t()};r.each(l,function(t){d(e,t,i)}),n.reflow=!!e.offsetParent,e.classList.add(a)}(e,function(){if(m.resizer){var t=e.parentNode;t&&t!==v.parentNode&&t.insertBefore(v,t.firstChild),v._reset()}})}function v(e){var t=e[o]||{},n=t.resizer;delete t.resizer,function(e){var t=e[o]||{},n=t.renderProxy;n&&(r.each(l,function(t){p(e,t,n)}),delete t.renderProxy),e.classList.remove(a)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,n,r="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+s+"{"+r+"}@keyframes "+s+"{"+r+"}."+a+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(e=this)._style||document.createElement("style"),e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[o]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var a=u(e,"width");void 0!==a&&(e.width=a)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=u(e,"height");void 0!==a&&(e.height=s)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[o]){var n=t[o].initial;["height","width"].forEach(function(e){var o=n[e];r.isNullOrUndef(o)?t.removeAttribute(e):t.setAttribute(e,o)}),r.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[o]}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var a=n[o]||(n[o]={});d(i,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=c[e.type]||e.type,o=r.getRelativePosition(e,t);return h(n,t,o.x,o.y,e)}(t,e))})}else m(i,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var i=((n[o]||{}).proxies||{})[e.id+"_"+t];i&&p(r,t,i)}else v(r)}},r.addEvent=d,r.removeEvent=p},function(e,t,n){"use strict";var r=n(1089),o=n(1090),i=n(109),a=n(86),s=n(1091),l=n(452),c=n(1092),u=n(1093),f=n(303),d=n(1094);e.exports=function(e){function t(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},a.extend(e.prototype,{construct:function(t,n){var r=this;n=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=a.configMerge(i.global,i[e.type],e.options||{}),e}(n);var o=c.acquireContext(t,n),s=o&&o.canvas,l=s&&s.height,u=s&&s.width;r.id=a.uid(),r.ctx=o,r.canvas=s,r.config=n,r.width=u,r.height=l,r.aspectRatio=l?u/l:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),o&&s?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return u.notify(e,"beforeInit"),a.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),u.notify(e,"afterInit"),e},clear:function(){return a.canvas.clear(this),this},stop:function(){return o.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,o=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(a.getMaximumWidth(r))),s=Math.max(0,Math.floor(o?i/o:a.getMaximumHeight(r)));if((t.width!==i||t.height!==s)&&(r.width=t.width=i,r.height=t.height=s,r.style.width=i+"px",r.style.height=s+"px",a.retinaScale(t,n.devicePixelRatio),!e)){var l={width:i,height:s};u.notify(t,"resize",[l]),t.options.onResize&&t.options.onResize(t,l),t.stop(),t.update({duration:t.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;a.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),a.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,n=e.options,r=e.scales||{},o=[],i=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});n.scales&&(o=o.concat((n.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),n.scale&&o.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(o,function(n){var o=n.options,s=o.id,l=a.valueOrDefault(o.type,n.dtype);t(o.position)!==t(n.dposition)&&(o.position=n.dposition),i[s]=!0;var c=null;if(s in r&&r[s].type===l)(c=r[s]).options=o,c.ctx=e.ctx,c.chart=e;else{var u=f.getScaleConstructor(l);if(!u)return;c=new u({id:s,type:l,options:o,ctx:e.ctx,chart:e}),r[c.id]=c}c.mergeTicksOptions(),n.isDefault&&(e.scale=c)}),a.each(i,function(e,t){e||delete r[t]}),e.scales=r,f.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,n=[],r=[];return a.each(t.data.datasets,function(o,i){var a=t.getDatasetMeta(i),s=o.type||t.config.type;if(a.type&&a.type!==s&&(t.destroyDatasetMeta(i),a=t.getDatasetMeta(i)),a.type=s,n.push(a.type),a.controller)a.controller.updateIndex(i),a.controller.linkScales();else{var l=e.controllers[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(t,i),r.push(a.controller)}},t),r},resetElements:function(){var e=this;a.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var n,r,o=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),r=(n=o).options,a.each(n.scales,function(e){l.removeBox(n,e)}),r=a.configMerge(e.defaults.global,e.defaults[n.config.type],r),n.options=n.config.options=r,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=r.tooltips,n.tooltip.initialize(),u._invalidate(o),!1!==u.notify(o,"beforeUpdate")){o.tooltip._data=o.data;var i=o.buildOrUpdateControllers();a.each(o.data.datasets,function(e,t){o.getDatasetMeta(t).controller.buildOrUpdateElements()},o),o.updateLayout(),o.options.animation&&o.options.animation.duration&&a.each(i,function(e){e.reset()}),o.updateDatasets(),o.tooltip.initialize(),o.lastActive=[],u.notify(o,"afterUpdate"),o._bufferedRender?o._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:o.render(t)}},updateLayout:function(){!1!==u.notify(this,"beforeLayout")&&(l.update(this,this.width,this.height),u.notify(this,"afterScaleUpdate"),u.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==u.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);u.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==u.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),u.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=e.duration,i=e.lazy;if(!1!==u.notify(t,"beforeRender")){var s=t.options.animation,l=function(e){u.notify(t,"afterRender"),a.callback(s&&s.onComplete,[e],t)};if(s&&(void 0!==n&&0!==n||void 0===n&&0!==s.duration)){var c=new r({numSteps:(n||s.duration)/16.66,easing:e.easing||s.easing,render:function(e,t){var n=a.easing.effects[t.easing],r=t.currentStep,o=r/t.numSteps;e.draw(n(o),o,r)},onAnimationProgress:s.onProgress,onAnimationComplete:l});o.addAnimation(t,c,n,i)}else t.draw(),l(new r({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),a.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==u.notify(t,"beforeDraw",[e])&&(a.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),u.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==u.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);u.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==u.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),u.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==u.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),u.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=s.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var t,n,r=this,o=r.canvas;for(r.stop(),t=0,n=r.data.datasets.length;t<n;++t)r.destroyDatasetMeta(t);o&&(r.unbindEvents(),a.canvas.clear(r),c.releaseContext(r.ctx),r.canvas=null,r.ctx=null),u.notify(r,"destroy"),delete e.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new d({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};a.each(e.options.events,function(r){c.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},c.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,a.each(t,function(t,n){c.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,o,i,a=n?"setHoverStyle":"removeHoverStyle";for(o=0,i=e.length;o<i;++o)(r=e[o])&&this.getDatasetMeta(r._datasetIndex).controller[a](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==u.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),u.notify(t,"afterEvent",[e]);var o=t._bufferedRequest;return o?t.render(o):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},o=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,o.mode,o),a.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,o.mode,!1),n.active.length&&o.mode&&n.updateHoverStyle(n.active,o.mode,!0),t=!a.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),e.Controller=e}},function(e,t,n){"use strict";var r=n(86);e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function n(e,n){var r=e._chartjs;if(r){var o=r.listeners,i=o.indexOf(n);-1!==i&&o.splice(i,1),o.length>0||(t.forEach(function(t){delete e[t]}),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},r.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],o=n.data;for(e=0,t=r.length;e<t;++e)o[e]=o[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,o,i=this,a=i.getDataset(),s=a.data||(a.data=[]);i._data!==s&&(i._data&&n(i._data,i),o=i,(e=s)._chartjs?e._chartjs.listeners.push(o):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),t.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=o.apply(this,t);return r.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),i}})})),i._data=s),i.resyncElements()},update:r.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,o=0;o<r;++o)n[o].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){r.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,o=e.custom||{},i=r.valueAtIndexOrDefault,a=r.getHoverColor,s=e._model;e.$previousStyle={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth},s.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:i(t.hoverBackgroundColor,n,a(s.backgroundColor)),s.borderColor=o.hoverBorderColor?o.hoverBorderColor:i(t.hoverBorderColor,n,a(s.borderColor)),s.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:i(t.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=r.inherits}},function(e,t,n){"use strict";var r=n(86),o=n(453);e.exports=function(e){var t=r.noop;e.LinearScaleBase=o.extend({getRightValue:function(e){return"string"==typeof e?+e:o.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=r.sign(e.min),o=r.sign(e.max);n<0&&o<0?e.max=0:n>0&&o>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),o={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:r.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var n,o,i,a=[];if(e.stepSize&&e.stepSize>0)i=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);i=r.niceNum(s/(e.maxTicks-1),!0),void 0!==(o=e.precision)&&(n=Math.pow(10,o),i=Math.ceil(i*n)/n)}var l=Math.floor(t.min/i)*i,c=Math.ceil(t.max/i)*i;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,i/1e3)&&(l=e.min,c=e.max);var u=(c-l)/i;u=r.almostEquals(u,Math.round(u),i/1e3)?Math.round(u):Math.ceil(u),o=1,i<1&&(o=Math.pow(10,1-Math.floor(r.log10(i))),l=Math.round(l*o)/o,c=Math.round(c*o)/o),a.push(void 0!==e.min?e.min:l);for(var f=1;f<u;++f)a.push(Math.round((l+f*i)*o)/o);return a.push(void 0!==e.max?e.max:c),a}(o,e);e.handleDirectionalChanges(),e.max=r.max(i),e.min=r.min(i),t.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),o.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){"use strict";var r=n(453),o=n(303);e.exports=function(){var e=r.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart.data,o=n.isHorizontal();return r.yLabels&&!o?n.getRightValue(r.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,o=r.options.offset,i=Math.max(r.maxIndex+1-r.minIndex-(o?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var a=r.getLabels().indexOf(e);t=-1!==a?a:t}if(r.isHorizontal()){var s=r.width/i,l=s*(t-r.minIndex);return o&&(l+=s/2),r.left+Math.round(l)}var c=r.height/i,u=c*(t-r.minIndex);return o&&(u+=c/2),r.top+Math.round(u)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),o=t.isHorizontal(),i=(o?t.width:t.height)/r;return e-=o?t.left:t.top,n&&(e-=i/2),(e<=0?0:Math.round(e/i))+t.minIndex},getBasePixel:function(){return this.bottom}});o.registerScaleType("category",e,{position:"bottom"})}},function(e,t,n){"use strict";var r=n(109),o=n(86),i=n(303),a=n(454);e.exports=function(e){var t={position:"left",ticks:{callback:a.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,i=e.isHorizontal();function a(t){return i?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var s=t.stacked;if(void 0===s&&o.each(r,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};o.each(r,function(r,i){var s=n.getDatasetMeta(i),c=[s.type,void 0===t.stacked&&void 0===s.stack?i:"",s.stack].join(".");void 0===l[c]&&(l[c]={positiveValues:[],negativeValues:[]});var u=l[c].positiveValues,f=l[c].negativeValues;n.isDatasetVisible(i)&&a(s)&&o.each(r.data,function(n,r){var o=+e.getRightValue(n);isNaN(o)||s.data[r].hidden||(u[r]=u[r]||0,f[r]=f[r]||0,t.relativePoints?u[r]=100:o<0?f[r]+=o:u[r]+=o)})}),o.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),r=o.min(n),i=o.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?i:Math.max(e.max,i)})}else o.each(r,function(t,r){var i=n.getDatasetMeta(r);n.isDatasetVisible(r)&&a(i)&&o.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||i.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=o.valueOrDefault(t.fontSize,r.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),o=t.end-n;return t.isHorizontal()?t.left+t.width/o*(r-n):t.bottom-t.height/o*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,o=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*o},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});i.registerScaleType("linear",n,t)}},function(e,t,n){"use strict";var r=n(86),o=n(453),i=n(303),a=n(454);e.exports=function(e){var t={position:"left",ticks:{callback:a.formatters.logarithmic}},n=o.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,o=n.data.datasets,i=e.isHorizontal();function a(t){return i?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var s=t.stacked;if(void 0===s&&r.each(o,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};r.each(o,function(o,i){var s=n.getDatasetMeta(i),c=[s.type,void 0===t.stacked&&void 0===s.stack?i:"",s.stack].join(".");n.isDatasetVisible(i)&&a(s)&&(void 0===l[c]&&(l[c]=[]),r.each(o.data,function(t,n){var r=l[c],o=+e.getRightValue(t);isNaN(o)||s.data[n].hidden||o<0||(r[n]=r[n]||0,r[n]+=o)}))}),r.each(l,function(t){if(t.length>0){var n=r.min(t),o=r.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?o:Math.max(e.max,o)}})}else r.each(o,function(t,o){var i=n.getDatasetMeta(o);n.isDatasetVisible(o)&&a(i)&&r.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||i.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=r.valueOrDefault;e.min=n(t.min,e.min),e.max=n(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(r.log10(e.min))-1),e.max=Math.pow(10,Math.floor(r.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(r.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(r.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),o={min:t.min,max:t.max},i=e.ticks=function(e,t){var n,o,i=[],a=r.valueOrDefault,s=a(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),l=Math.floor(r.log10(t.max)),c=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(r.log10(t.minNotZero)),o=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(s),s=o*Math.pow(10,n)):(n=Math.floor(r.log10(s)),o=Math.floor(s/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(s),10==++o&&(o=1,u=++n>=0?1:u),s=Math.round(o*Math.pow(10,n)*u)/u}while(n<l||n===l&&o<c);var f=a(e.max,s);return i.push(f),i}(o,e);e.max=r.max(i),e.min=r.min(i),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),o.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,o,i,a,s,l=this,c=l.options.ticks.reverse,u=r.log10,f=l._getFirstTickValue(l.minNotZero),d=0;return t=+l.getRightValue(t),c?(i=l.end,a=l.start,s=-1):(i=l.start,a=l.end,s=1),l.isHorizontal()?(n=l.width,o=c?l.right:l.left):(n=l.height,s*=-1,o=c?l.top:l.bottom),t!==i&&(0===i&&(n-=d=r.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),i=f),0!==t&&(d+=n/(u(a)-u(i))*(u(t)-u(i))),o+=s*d),o},getValueForPixel:function(t){var n,o,i,a,s=this,l=s.options.ticks.reverse,c=r.log10,u=s._getFirstTickValue(s.minNotZero);if(l?(o=s.end,i=s.start):(o=s.start,i=s.end),s.isHorizontal()?(n=s.width,a=l?s.right-t:t-s.left):(n=s.height,a=l?t-s.top:s.bottom-t),a!==o){if(0===o){var f=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);a-=f,n-=f,o=u}a*=c(i)-c(o),a/=n,a=Math.pow(10,c(o)+a)}return a}});i.registerScaleType("logarithmic",n,t)}},function(e,t,n){"use strict";var r=n(109),o=n(86),i=n(303),a=n(454);e.exports=function(e){var t=r.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:a.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function s(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function l(e){var n=e.options.pointLabels,r=o.valueOrDefault(n.fontSize,t.defaultFontSize),i=o.valueOrDefault(n.fontStyle,t.defaultFontStyle),a=o.valueOrDefault(n.fontFamily,t.defaultFontFamily);return{size:r,style:i,family:a,font:o.fontString(r,i,a)}}function c(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:e<r||e>o?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function u(e){return 0===e||180===e?"center":e<180?"left":"right"}function f(e,t,n,r){if(o.isArray(t))for(var i=n.y,a=1.5*r,s=0;s<t.length;++s)e.fillText(t[s],n.x,i),i+=a;else e.fillText(t,n.x,n.y)}function d(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function p(e){return o.isNumber(e)?e:0}var h=e.LinearScaleBase.extend({setDimensions:function(){var e=this,n=e.options,r=n.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var i=o.min([e.height,e.width]),a=o.valueOrDefault(r.fontSize,t.defaultFontSize);e.drawingArea=n.display?i/2-(a/2+r.backdropPaddingY):i/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;o.each(t.data.datasets,function(i,a){if(t.isDatasetVisible(a)){var s=t.getDatasetMeta(a);o.each(i.data,function(t,o){var i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(n=Math.min(i,n),r=Math.max(i,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,n=o.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,t;this.options.pointLabels.display?function(e){var t,n,r,i=l(e),a=Math.min(e.height/2,e.width/2),u={r:e.width,l:0,t:e.height,b:0},f={};e.ctx.font=i.font,e._pointLabelSizes=[];var d,p,h,m=s(e);for(t=0;t<m;t++){r=e.getPointPosition(t,a),d=e.ctx,p=i.size,h=e.pointLabels[t]||"",n=o.isArray(h)?{w:o.longestText(d,d.font,h),h:h.length*p+1.5*(h.length-1)*p}:{w:d.measureText(h).width,h:p},e._pointLabelSizes[t]=n;var v=e.getIndexAngle(t),g=o.toDegrees(v)%360,y=c(g,r.x,n.w,0,180),b=c(g,r.y,n.h,90,270);y.start<u.l&&(u.l=y.start,f.l=v),y.end>u.r&&(u.r=y.end,f.r=v),b.start<u.t&&(u.t=b.start,f.t=v),b.end>u.b&&(u.b=b.end,f.b=v)}e.setReductions(a,u,f)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,n){var r=t.l/Math.sin(n.l),o=Math.max(t.r-this.width,0)/Math.sin(n.r),i=-t.t/Math.cos(n.t),a=-Math.max(t.b-this.height,0)/Math.cos(n.b);r=p(r),o=p(o),i=p(i),a=p(a),this.drawingArea=Math.min(Math.round(e-(r+o)/2),Math.round(e-(i+a)/2)),this.setCenterPoint(r,o,i,a)},setCenterPoint:function(e,t,n,r){var o=this,i=o.width-t-o.drawingArea,a=e+o.drawingArea,s=n+o.drawingArea,l=o.height-r-o.drawingArea;o.xCenter=Math.round((a+i)/2+o.left),o.yCenter=Math.round((s+l)/2+o.top)},getIndexAngle:function(e){return e*(2*Math.PI/s(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+this.xCenter,y:Math.round(Math.sin(n)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,n=e.options,r=n.gridLines,i=n.ticks,a=o.valueOrDefault;if(n.display){var c=e.ctx,p=this.getIndexAngle(0),h=a(i.fontSize,t.defaultFontSize),m=a(i.fontStyle,t.defaultFontStyle),v=a(i.fontFamily,t.defaultFontFamily),g=o.fontString(h,m,v);o.each(e.ticks,function(n,l){if(l>0||i.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]);if(r.display&&0!==l&&function(e,t,n,r){var i=e.ctx;if(i.strokeStyle=o.valueAtIndexOrDefault(t.color,r-1),i.lineWidth=o.valueAtIndexOrDefault(t.lineWidth,r-1),e.options.gridLines.circular)i.beginPath(),i.arc(e.xCenter,e.yCenter,n,0,2*Math.PI),i.closePath(),i.stroke();else{var a=s(e);if(0===a)return;i.beginPath();var l=e.getPointPosition(0,n);i.moveTo(l.x,l.y);for(var c=1;c<a;c++)l=e.getPointPosition(c,n),i.lineTo(l.x,l.y);i.closePath(),i.stroke()}}(e,r,u,l),i.display){var f=a(i.fontColor,t.defaultFontColor);if(c.font=g,c.save(),c.translate(e.xCenter,e.yCenter),c.rotate(p),i.showLabelBackdrop){var d=c.measureText(n).width;c.fillStyle=i.backdropColor,c.fillRect(-d/2-i.backdropPaddingX,-u-h/2-i.backdropPaddingY,d+2*i.backdropPaddingX,h+2*i.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=f,c.fillText(n,0,-u),c.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(e){var n=e.ctx,r=e.options,i=r.angleLines,a=r.pointLabels;n.lineWidth=i.lineWidth,n.strokeStyle=i.color;var c=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),p=l(e);n.textBaseline="top";for(var h=s(e)-1;h>=0;h--){if(i.display){var m=e.getPointPosition(h,c);n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(m.x,m.y),n.stroke(),n.closePath()}if(a.display){var v=e.getPointPosition(h,c+5),g=o.valueAtIndexOrDefault(a.fontColor,h,t.defaultFontColor);n.font=p.font,n.fillStyle=g;var y=e.getIndexAngle(h),b=o.toDegrees(y);n.textAlign=u(b),d(b,e._pointLabelSizes[h],v),f(n,e.pointLabels[h]||"",v,p.size)}}}(e)}}});i.registerScaleType("radialLinear",h,n)}},function(e,t,n){"use strict";var r=n(340);r="function"==typeof r?r:window.moment;var o=n(109),i=n(86),a=n(453),s=n(303),l=Number.MIN_SAFE_INTEGER||-9007199254740991,c=Number.MAX_SAFE_INTEGER||9007199254740991,u={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},f=Object.keys(u);function d(e,t){return e-t}function p(e){var t,n,r,o={},i=[];for(t=0,n=e.length;t<n;++t)o[r=e[t]]||(o[r]=!0,i.push(r));return i}function h(e,t,n,r){var o=function(e,t,n){for(var r,o,i,a=0,s=e.length-1;a>=0&&a<=s;){if(o=e[(r=a+s>>1)-1]||null,i=e[r],!o)return{lo:null,hi:i};if(i[t]<n)a=r+1;else{if(!(o[t]>n))return{lo:o,hi:i};s=r-1}}return{lo:i,hi:null}}(e,t,n),i=o.lo?o.hi?o.lo:e[e.length-2]:e[0],a=o.lo?o.hi?o.hi:e[e.length-1]:e[1],s=a[t]-i[t],l=s?(n-i[t])/s:0,c=(a[r]-i[r])*l;return i[r]+c}function m(e,t){var n=t.parser,o=t.parser||t.format;return"function"==typeof n?n(e):"string"==typeof e&&"string"==typeof o?r(e,o):(e instanceof r||(e=r(e)),e.isValid()?e:"function"==typeof o?o(e):e)}function v(e,t){if(i.isNullOrUndef(e))return null;var n=t.options.time,r=m(t.getRightValue(e),n);return r.isValid()?(n.round&&r.startOf(n.round),r.valueOf()):null}function g(e){for(var t=f.indexOf(e)+1,n=f.length;t<n;++t)if(u[f[t]].common)return f[t]}function y(e,t,n,o){var a,s=o.time,l=s.unit||function(e,t,n,r){var o,i,a,s=f.length;for(o=f.indexOf(e);o<s-1;++o)if(a=(i=u[f[o]]).steps?i.steps[i.steps.length-1]:c,i.common&&Math.ceil((n-t)/(a*i.size))<=r)return f[o];return f[s-1]}(s.minUnit,e,t,n),d=g(l),p=i.valueOrDefault(s.stepSize,s.unitStepSize),h="week"===l&&s.isoWeekday,m=o.ticks.major.enabled,v=u[l],y=r(e),b=r(t),_=[];for(p||(p=function(e,t,n,r){var o,i,a,s=t-e,l=u[n],c=l.size,f=l.steps;if(!f)return Math.ceil(s/(r*c));for(o=0,i=f.length;o<i&&(a=f[o],!(Math.ceil(s/(c*a))<=r));++o);return a}(e,t,l,n)),h&&(y=y.isoWeekday(h),b=b.isoWeekday(h)),y=y.startOf(h?"day":l),(b=b.startOf(h?"day":l))<t&&b.add(1,l),a=r(y),m&&d&&!h&&!s.round&&(a.startOf(d),a.add(~~((y-a)/(v.size*p))*p,l));a<b;a.add(p,l))_.push(+a);return _.push(+a),_}e.exports=function(){var e=a.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),a.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),a.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),a.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,o,a,s,u=this,f=u.chart,h=u.options.time,m=h.unit||"day",g=c,y=l,b=[],_=[],w=[];for(e=0,n=f.data.labels.length;e<n;++e)w.push(v(f.data.labels[e],u));for(e=0,n=(f.data.datasets||[]).length;e<n;++e)if(f.isDatasetVisible(e))if(a=f.data.datasets[e].data,i.isObject(a[0]))for(_[e]=[],t=0,o=a.length;t<o;++t)s=v(a[t],u),b.push(s),_[e][t]=s;else b.push.apply(b,w),_[e]=w.slice(0);else _[e]=[];w.length&&(w=p(w).sort(d),g=Math.min(g,w[0]),y=Math.max(y,w[w.length-1])),b.length&&(b=p(b).sort(d),g=Math.min(g,b[0]),y=Math.max(y,b[b.length-1])),g=v(h.min,u)||g,y=v(h.max,u)||y,g=g===c?+r().startOf(m):g,y=y===l?+r().endOf(m)+1:y,u.min=Math.min(g,y),u.max=Math.max(g+1,y),u._horizontal=u.isHorizontal(),u._table=[],u._timestamps={data:b,datasets:_,labels:w}},buildTicks:function(){var e,t,n,o=this,i=o.min,a=o.max,s=o.options,l=s.time,c=[],d=[];switch(s.ticks.source){case"data":c=o._timestamps.data;break;case"labels":c=o._timestamps.labels;break;case"auto":default:c=y(i,a,o.getLabelCapacity(i),s)}for("ticks"===s.bounds&&c.length&&(i=c[0],a=c[c.length-1]),i=v(l.min,o)||i,a=v(l.max,o)||a,e=0,t=c.length;e<t;++e)(n=c[e])>=i&&n<=a&&d.push(n);return o.min=i,o.max=a,o._unit=l.unit||function(e,t,n,o){var i,a,s=r.duration(r(o).diff(r(n)));for(i=f.length-1;i>=f.indexOf(t);i--)if(a=f[i],u[a].common&&s.as(a)>=e.length)return a;return f[t?f.indexOf(t):0]}(d,l.minUnit,o.min,o.max),o._majorUnit=g(o._unit),o._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var o,i,a,s,l,c=[],u=[t];for(o=0,i=e.length;o<i;++o)(s=e[o])>t&&s<n&&u.push(s);for(u.push(n),o=0,i=u.length;o<i;++o)l=u[o+1],a=u[o-1],s=u[o],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||c.push({time:s,pos:o/(i-1)});return c}(o._timestamps.data,i,a,s.distribution),o._offsets=function(e,t,n,r,o){var i,a,s=0,l=0;return o.offset&&t.length&&(o.time.min||(i=t.length>1?t[1]:r,a=t[0],s=(h(e,"time",i,"pos")-h(e,"time",a,"pos"))/2),o.time.max||(i=t[t.length-1],a=t.length>1?t[t.length-2]:n,l=(h(e,"time",i,"pos")-h(e,"time",a,"pos"))/2)),{left:s,right:l}}(o._table,d,i,a,s),o._labelFormat=function(e,t){var n,r,o,i=e.length;for(n=0;n<i;n++){if(0!==(r=m(e[n],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===r.second()&&0===r.minute()&&0===r.hour()||(o=!0)}return o?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(o._timestamps.data,l),function(e,t){var n,o,i,a,s=[];for(n=0,o=e.length;n<o;++n)i=e[n],a=!!t&&i===+r(i).startOf(t),s.push({value:i,major:a});return s}(d,o._majorUnit)},getLabelForIndex:function(e,t){var n=this.chart.data,r=this.options.time,o=n.labels&&e<n.labels.length?n.labels[e]:"",a=n.datasets[t].data[e];return i.isObject(a)&&(o=this.getRightValue(a)),r.tooltipFormat?m(o,r).format(r.tooltipFormat):"string"==typeof o?o:m(o,r).format(this._labelFormat)},tickFormatFunction:function(e,t,n,r){var o=this.options,a=e.valueOf(),s=o.time.displayFormats,l=s[this._unit],c=this._majorUnit,u=s[c],f=e.clone().startOf(c).valueOf(),d=o.ticks.major,p=d.enabled&&c&&u&&a===f,h=e.format(r||(p?u:l)),m=p?d:o.ticks.minor,v=i.valueOrDefault(m.callback,m.userCallback);return v?v(h,t,n):h},convertTicksToLabels:function(e){var t,n,o=[];for(t=0,n=e.length;t<n;++t)o.push(this.tickFormatFunction(r(e[t].value),t,e));return o},getPixelForOffset:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,o=h(t._table,"time",e,"pos");return r+n*(t._offsets.left+o)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=v(e,this)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,o=t._horizontal?t.left:t.top,i=(n?(e-o)/n:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,a=h(t._table,"pos",i,"time");return r(a)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=i.toRadians(t.maxRotation),a=Math.cos(r),s=Math.sin(r);return n*a+i.valueOrDefault(t.fontSize,o.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,o=t.tickFormatFunction(r(e),0,[],n),i=t.getLabelWidth(o),a=t.isHorizontal()?t.width:t.height,s=Math.floor(a/i);return s>0?s:1}});s.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},function(e,t,n){var r={"./en-au":1095,"./en-au.js":1095,"./en-ca":1096,"./en-ca.js":1096,"./en-gb":1097,"./en-gb.js":1097,"./en-ie":1098,"./en-ie.js":1098,"./en-il":1099,"./en-il.js":1099,"./en-nz":1100,"./en-nz.js":1100};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2122},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:o.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,o=r.chart,a=r.getMeta(),s=r.getDataset(),l=e.custom||{},c=o.options.elements.rectangle;e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={datasetLabel:s.label,label:o.data.labels[t],borderSkipped:l.borderSkipped?l.borderSkipped:c.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:i.valueAtIndexOrDefault(s.backgroundColor,t,c.backgroundColor),borderColor:l.borderColor?l.borderColor:i.valueAtIndexOrDefault(s.borderColor,t,c.borderColor),borderWidth:l.borderWidth?l.borderWidth:i.valueAtIndexOrDefault(s.borderWidth,t,c.borderWidth)},r.updateElementGeometry(e,t,n),e.pivot()},updateElementGeometry:function(e,t,n){var r=this,o=e._model,i=r.getValueScale(),a=i.getBasePixel(),s=i.isHorizontal(),l=r._ruler||r.getRuler(),c=r.calculateBarValuePixels(r.index,t),u=r.calculateBarIndexPixels(r.index,t,l);o.horizontal=s,o.base=n?a:c.base,o.x=s?n?a:c.head:u.center,o.y=s?u.center:n?a:c.head,o.height=s?u.size:void 0,o.width=s?void 0:u.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,n,r=this.chart,o=this.getIndexScale().options.stacked,i=void 0===e?r.data.datasets.length:e+1,a=[];for(t=0;t<i;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===o||!0===o&&-1===a.indexOf(n.stack)||void 0===o&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this.getIndexScale(),r=this.getStackCount(),o=this.index,a=n.isHorizontal(),s=a?n.left:n.top,l=s+(a?n.width:n.height),c=[];for(e=0,t=this.getMeta().data.length;e<t;++e)c.push(n.getPixelForValue(null,e,o));return{min:i.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,o,i,a=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(o=1,i=t.length;o<i;++o)a=Math.min(a,t[o]-t[o-1]);for(o=0,i=s.length;o<i;++o)r=e.getPixelForTick(o),a=o>0?Math.min(a,r-n):a,n=r;return a}(n,c):-1,pixels:c,start:s,end:l,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,o,i,a,s,l=this.chart,c=this.getMeta(),u=this.getValueScale(),f=l.data.datasets,d=u.getRightValue(f[e].data[t]),p=u.options.stacked,h=c.stack,m=0;if(p||void 0===p&&void 0!==h)for(n=0;n<e;++n)(r=l.getDatasetMeta(n)).bar&&r.stack===h&&r.controller.getValueScaleId()===u.id&&l.isDatasetVisible(n)&&(o=u.getRightValue(f[n].data[t]),(d<0&&o<0||d>=0&&o>0)&&(m+=o));return i=u.getPixelForValue(m),{size:s=((a=u.getPixelForValue(m+d))-i)/2,base:i,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,o="flex"===r.barThickness?function(e,t,n){var r,o=t.pixels,i=o[e],a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null,l=n.categoryPercentage;return null===a&&(a=i-(null===s?t.end-i:s-i)),null===s&&(s=i+i-a),r=i-(i-a)/2*l,{chunk:(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,o,a=n.barThickness,s=t.stackCount,l=t.pixels[e];return i.isNullOrUndef(a)?(r=t.min*n.categoryPercentage,o=n.barPercentage):(r=a*s,o=1),{chunk:r/s,ratio:o,start:l-r/2}}(t,n,r),a=this.getStackIndex(e,this.getMeta().stack),s=o.start+o.chunk*a+o.chunk/2,l=Math.min(i.valueOrDefault(r.maxBarThickness,1/0),o.chunk*o.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this.chart,t=this.getValueScale(),n=this.getMeta().data,r=this.getDataset(),o=n.length,a=0;for(i.canvas.clipArea(e.ctx,e.chartArea);a<o;++a)isNaN(t.getRightValue(r.data[a]))||n[a].draw();i.canvas.unclipArea(e.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:o.Point,update:function(e){var t=this,n=t.getMeta().data;i.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,o=r.getMeta(),i=e.custom||{},a=r.getScaleForId(o.xAxisID),s=r.getScaleForId(o.yAxisID),l=r._resolveElementOptions(e,t),c=r.getDataset().data[t],u=r.index,f=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof c?c:NaN,t,u),d=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:i.skip||isNaN(f)||isNaN(d),x:f,y:d},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=i.valueOrDefault(n.hoverBackgroundColor,i.getHoverColor(n.backgroundColor)),t.borderColor=i.valueOrDefault(n.hoverBorderColor,i.getHoverColor(n.borderColor)),t.borderWidth=i.valueOrDefault(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,o,a=this.chart,s=a.data.datasets[this.index],l=e.custom||{},c=a.options.elements.point,u=i.options.resolve,f=s.data[t],d={},p={chart:a,dataIndex:t,dataset:s,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=h.length;n<r;++n)d[o=h[n]]=u([l[o],s[o],c[o]],p,t);return d.radius=u([l.radius,f?f.r:void 0,s.radius,c.radius],p,t),d}})}},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,o=n.labels;if(r.length)for(var i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"></span>'),o[i]&&t.push(o[i]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var o=e.getDatasetMeta(0),a=t.datasets[0],s=o.data[r],l=s&&s.custom||{},c=i.valueAtIndexOrDefault,u=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:c(a.backgroundColor,r,u.backgroundColor),strokeStyle:l.borderColor?l.borderColor:c(a.borderColor,r,u.borderColor),lineWidth:l.borderWidth?l.borderWidth:c(a.borderWidth,r,u.borderWidth),hidden:isNaN(a.data[r])||o.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,o,i=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(o=a.getDatasetMeta(n)).data[i]&&(o.data[i].hidden=!o.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return i.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}}),r._set("pie",i.clone(r.doughnut)),r._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:o.Arc,linkScales:i.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t=this,n=t.chart,r=n.chartArea,o=n.options,a=o.elements.arc,s=r.right-r.left-a.borderWidth,l=r.bottom-r.top-a.borderWidth,c=Math.min(s,l),u={x:0,y:0},f=t.getMeta(),d=o.cutoutPercentage,p=o.circumference;if(p<2*Math.PI){var h=o.rotation%(2*Math.PI),m=(h+=2*Math.PI*(h>=Math.PI?-1:h<-Math.PI?1:0))+p,v={x:Math.cos(h),y:Math.sin(h)},g={x:Math.cos(m),y:Math.sin(m)},y=h<=0&&m>=0||h<=2*Math.PI&&2*Math.PI<=m,b=h<=.5*Math.PI&&.5*Math.PI<=m||h<=2.5*Math.PI&&2.5*Math.PI<=m,_=h<=-Math.PI&&-Math.PI<=m||h<=Math.PI&&Math.PI<=m,w=h<=.5*-Math.PI&&.5*-Math.PI<=m||h<=1.5*Math.PI&&1.5*Math.PI<=m,E=d/100,x={x:_?-1:Math.min(v.x*(v.x<0?1:E),g.x*(g.x<0?1:E)),y:w?-1:Math.min(v.y*(v.y<0?1:E),g.y*(g.y<0?1:E))},k={x:y?1:Math.max(v.x*(v.x>0?1:E),g.x*(g.x>0?1:E)),y:b?1:Math.max(v.y*(v.y>0?1:E),g.y*(g.y>0?1:E))},S={width:.5*(k.x-x.x),height:.5*(k.y-x.y)};c=Math.min(s/S.width,l/S.height),u={x:-.5*(k.x+x.x),y:-.5*(k.y+x.y)}}n.borderWidth=t.getMaxBorderWidth(f.data),n.outerRadius=Math.max((c-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=u.x*n.outerRadius,n.offsetY=u.y*n.outerRadius,f.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),i.each(f.data,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,o=r.chart,a=o.chartArea,s=o.options,l=s.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,f=s.rotation,d=s.rotation,p=r.getDataset(),h=n&&l.animateRotate?0:e.hidden?0:r.calculateCircumference(p.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:r.innerRadius,v=n&&l.animateScale?0:r.outerRadius,g=i.valueAtIndexOrDefault;i.extend(e,{_datasetIndex:r.index,_index:t,_model:{x:c+o.offsetX,y:u+o.offsetY,startAngle:f,endAngle:d,circumference:h,outerRadius:v,innerRadius:m,label:g(p.label,t,o.data.labels[t])}});var y=e._model,b=e.custom||{},_=i.valueAtIndexOrDefault,w=this.chart.options.elements.arc;y.backgroundColor=b.backgroundColor?b.backgroundColor:_(p.backgroundColor,t,w.backgroundColor),y.borderColor=b.borderColor?b.borderColor:_(p.borderColor,t,w.borderColor),y.borderWidth=b.borderWidth?b.borderWidth:_(p.borderWidth,t,w.borderWidth),n&&l.animateRotate||(y.startAngle=0===t?s.rotation:r.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return i.each(n.data,function(n,o){e=t.data[o],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,r=0,o=this.index,i=e.length,a=0;a<i;a++)t=e[a]._model?e[a]._model.borderWidth:0,r=(n=e[a]._chart?e[a]._chart.config.data.datasets[o].hoverBorderWidth:0)>(r=t>r?t:r)?n:r;return r}})}},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return i.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function(e){var n,r,o,a=this,s=a.getMeta(),l=s.dataset,c=s.data||[],u=a.chart.options,f=u.elements.line,d=a.getScaleForId(s.yAxisID),p=a.getDataset(),h=t(p,u);for(h&&(o=l.custom||{},void 0!==p.tension&&void 0===p.lineTension&&(p.lineTension=p.tension),l._scale=d,l._datasetIndex=a.index,l._children=c,l._model={spanGaps:p.spanGaps?p.spanGaps:u.spanGaps,tension:o.tension?o.tension:i.valueOrDefault(p.lineTension,f.tension),backgroundColor:o.backgroundColor?o.backgroundColor:p.backgroundColor||f.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:p.borderWidth||f.borderWidth,borderColor:o.borderColor?o.borderColor:p.borderColor||f.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:p.borderCapStyle||f.borderCapStyle,borderDash:o.borderDash?o.borderDash:p.borderDash||f.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:p.borderDashOffset||f.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:p.borderJoinStyle||f.borderJoinStyle,fill:o.fill?o.fill:void 0!==p.fill?p.fill:f.fill,steppedLine:o.steppedLine?o.steppedLine:i.valueOrDefault(p.steppedLine,f.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:i.valueOrDefault(p.cubicInterpolationMode,f.cubicInterpolationMode)},l.pivot()),n=0,r=c.length;n<r;++n)a.updateElement(c[n],n,e);for(h&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,r=c.length;n<r;++n)c[n].pivot()},getPointBackgroundColor:function(e,t){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),o=e.custom||{};return o.backgroundColor?n=o.backgroundColor:r.pointBackgroundColor?n=i.valueAtIndexOrDefault(r.pointBackgroundColor,t,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(e,t){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),o=e.custom||{};return o.borderColor?n=o.borderColor:r.pointBorderColor?n=i.valueAtIndexOrDefault(r.pointBorderColor,t,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(e,t){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),o=e.custom||{};return isNaN(o.borderWidth)?!isNaN(r.pointBorderWidth)||i.isArray(r.pointBorderWidth)?n=i.valueAtIndexOrDefault(r.pointBorderWidth,t,n):isNaN(r.borderWidth)||(n=r.borderWidth):n=o.borderWidth,n},getPointRotation:function(e,t){var n=this.chart.options.elements.point.rotation,r=this.getDataset(),o=e.custom||{};return isNaN(o.rotation)?isNaN(r.pointRotation)&&!i.isArray(r.pointRotation)||(n=i.valueAtIndexOrDefault(r.pointRotation,t,n)):n=o.rotation,n},updateElement:function(e,t,n){var r,o,a=this,s=a.getMeta(),l=e.custom||{},c=a.getDataset(),u=a.index,f=c.data[t],d=a.getScaleForId(s.yAxisID),p=a.getScaleForId(s.xAxisID),h=a.chart.options.elements.point;void 0!==c.radius&&void 0===c.pointRadius&&(c.pointRadius=c.radius),void 0!==c.hitRadius&&void 0===c.pointHitRadius&&(c.pointHitRadius=c.hitRadius),r=p.getPixelForValue("object"==typeof f?f:NaN,t,u),o=n?d.getBasePixel():a.calculatePointY(f,t,u),e._xScale=p,e._yScale=d,e._datasetIndex=u,e._index=t,e._model={x:r,y:o,skip:l.skip||isNaN(r)||isNaN(o),radius:l.radius||i.valueAtIndexOrDefault(c.pointRadius,t,h.radius),pointStyle:l.pointStyle||i.valueAtIndexOrDefault(c.pointStyle,t,h.pointStyle),rotation:a.getPointRotation(e,t),backgroundColor:a.getPointBackgroundColor(e,t),borderColor:a.getPointBorderColor(e,t),borderWidth:a.getPointBorderWidth(e,t),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||i.valueAtIndexOrDefault(c.pointHitRadius,t,h.hitRadius)}},calculatePointY:function(e,t,n){var r,o,i,a=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),c=0,u=0;if(l.options.stacked){for(r=0;r<n;r++)if(o=a.data.datasets[r],"line"===(i=a.getDatasetMeta(r)).type&&i.yAxisID===l.id&&a.isDatasetVisible(r)){var f=Number(l.getRightValue(o.data[t]));f<0?u+=f||0:c+=f||0}var d=Number(l.getRightValue(e));return d<0?l.getPixelForValue(u+d):l.getPixelForValue(c+d)}return l.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,o=this.getMeta(),a=this.chart.chartArea,s=o.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(o.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),"monotone"===o.dataset._model.cubicInterpolationMode)i.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,r=i.splineCurve(i.previousItem(s,e)._model,n,i.nextItem(s,e)._model,o.dataset._model.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)(n=s[e]._model).controlPointPreviousX=l(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=l(n.controlPointPreviousY,a.top,a.bottom),n.controlPointNextX=l(n.controlPointNextX,a.left,a.right),n.controlPointNextY=l(n.controlPointNextY,a.top,a.bottom)},draw:function(){var e,n=this.chart,r=this.getMeta(),o=r.data||[],a=n.chartArea,s=o.length,l=0;for(t(this.getDataset(),n.options)&&(e=(r.dataset._model.borderWidth||0)/2,i.canvas.clipArea(n.ctx,{left:a.left,right:a.right,top:a.top-e,bottom:a.bottom+e}),r.dataset.draw(),i.canvas.unclipArea(n.ctx));l<s;++l)o[l].draw(a)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},o=e._model;e.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth,radius:o.radius},o.backgroundColor=r.hoverBackgroundColor||i.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,i.getHoverColor(o.backgroundColor)),o.borderColor=r.hoverBorderColor||i.valueAtIndexOrDefault(t.pointHoverBorderColor,n,i.getHoverColor(o.borderColor)),o.borderWidth=r.hoverBorderWidth||i.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,o.borderWidth),o.radius=r.hoverRadius||i.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius)}})}},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,o=n.labels;if(r.length)for(var i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"></span>'),o[i]&&t.push(o[i]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var o=e.getDatasetMeta(0),a=t.datasets[0],s=o.data[r].custom||{},l=i.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(a.backgroundColor,r,c.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(a.borderColor,r,c.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(a.borderWidth,r,c.borderWidth),hidden:isNaN(a.data[r])||o.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,o,i=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(o=a.getDatasetMeta(n)).data[i].hidden=!o.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:o.Arc,linkScales:i.noop,update:function(e){var t,n,r,o=this,a=o.getDataset(),s=o.getMeta(),l=o.chart.options.startAngle||0,c=o._starts=[],u=o._angles=[];for(o._updateRadius(),s.count=o.countVisibleElements(),t=0,n=a.data.length;t<n;t++)c[t]=l,r=o._computeAngle(t),u[t]=r,l+=r;i.each(s.data,function(t,n){o.updateElement(t,n,e)})},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,o=r.elements.arc,i=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max((i-o.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,o=r.chart,a=r.getDataset(),s=o.options,l=s.animation,c=o.scale,u=o.data.labels,f=c.xCenter,d=c.yCenter,p=s.startAngle,h=e.hidden?0:c.getDistanceFromCenterForValue(a.data[t]),m=r._starts[t],v=m+(e.hidden?0:r._angles[t]),g=l.animateScale?0:c.getDistanceFromCenterForValue(a.data[t]);i.extend(e,{_datasetIndex:r.index,_index:t,_scale:c,_model:{x:f,y:d,innerRadius:0,outerRadius:n?g:h,startAngle:n&&l.animateRotate?p:m,endAngle:n&&l.animateRotate?p:v,label:i.valueAtIndexOrDefault(u,t,u[t])}});var y=this.chart.options.elements.arc,b=e.custom||{},_=i.valueAtIndexOrDefault,w=e._model;w.backgroundColor=b.backgroundColor?b.backgroundColor:_(a.backgroundColor,t,y.backgroundColor),w.borderColor=b.borderColor?b.borderColor:_(a.borderColor,t,y.borderColor),w.borderWidth=b.borderWidth?b.borderWidth:_(a.borderWidth,t,y.borderWidth),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return i.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),o=t.getMeta();if(isNaN(r.data[e])||o.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return i.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/n],a,e)}})}},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:i.noop,update:function(e){var t=this,n=t.getMeta(),r=n.dataset,o=n.data,a=r.custom||{},s=t.getDataset(),l=t.chart.options.elements.line,c=t.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:t.index,_scale:c,_children:o,_loop:!0,_model:{tension:a.tension?a.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:a.backgroundColor?a.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:s.borderWidth||l.borderWidth,borderColor:a.borderColor?a.borderColor:s.borderColor||l.borderColor,fill:a.fill?a.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:a.borderCapStyle?a.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash?a.borderDash:s.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(o,function(n,r){t.updateElement(n,r,e)},t),t.updateBezierControlPoints()},updateElement:function(e,t,n){var r=this,o=e.custom||{},a=r.getDataset(),s=r.chart.scale,l=r.chart.options.elements.point,c=s.getPointPositionForValue(t,a.data[t]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),i.extend(e,{_datasetIndex:r.index,_index:t,_scale:s,_model:{x:n?s.xCenter:c.x,y:n?s.yCenter:c.y,tension:o.tension?o.tension:i.valueOrDefault(a.lineTension,r.chart.options.elements.line.tension),radius:o.radius?o.radius:i.valueAtIndexOrDefault(a.pointRadius,t,l.radius),backgroundColor:o.backgroundColor?o.backgroundColor:i.valueAtIndexOrDefault(a.pointBackgroundColor,t,l.backgroundColor),borderColor:o.borderColor?o.borderColor:i.valueAtIndexOrDefault(a.pointBorderColor,t,l.borderColor),borderWidth:o.borderWidth?o.borderWidth:i.valueAtIndexOrDefault(a.pointBorderWidth,t,l.borderWidth),pointStyle:o.pointStyle?o.pointStyle:i.valueAtIndexOrDefault(a.pointStyle,t,l.pointStyle),rotation:o.rotation?o.rotation:i.valueAtIndexOrDefault(a.pointRotation,t,l.rotation),hitRadius:o.hitRadius?o.hitRadius:i.valueAtIndexOrDefault(a.pointHitRadius,t,l.hitRadius)}}),e._model.skip=o.skip?o.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();i.each(t.data,function(n,r){var o=n._model,a=i.splineCurve(i.previousItem(t.data,r,!0)._model,o,i.nextItem(t.data,r,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(a.previous.x,e.right),e.left),o.controlPointPreviousY=Math.max(Math.min(a.previous.y,e.bottom),e.top),o.controlPointNextX=Math.max(Math.min(a.next.x,e.right),e.left),o.controlPointNextY=Math.max(Math.min(a.next.y,e.bottom),e.top),n.pivot()})},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},r=e._index,o=e._model;e.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth,radius:o.radius},o.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(t.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),o.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(t.pointHoverBackgroundColor,r,i.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(t.pointHoverBorderColor,r,i.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(t.pointHoverBorderWidth,r,o.borderWidth)}})}},function(e,t,n){"use strict";n(109)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},function(e,t,n){"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Radar=function(t,n){return n.type="radar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},function(e,t,n){"use strict";e.exports={},e.exports.filler=n(2138),e.exports.legend=n(2139),e.exports.title=n(2140)},function(e,t,n){"use strict";var r=n(109),o=n(304),i=n(86);r._set("global",{plugins:{filler:{propagate:!0}}});var a={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),o=r&&n.isDatasetVisible(t)&&r.dataset._children||[],i=o.length||0;return i?function(e,t){return t<i&&o[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function s(e,t,n){var r,o=e._model||{},i=o.fill;if(void 0===i&&(i=!!o.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(r=parseFloat(i,10),isFinite(r)&&Math.floor(r)===r)return"-"!==i[0]&&"+"!==i[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function l(e){var t,n=e.el._model||{},r=e.el._scale||{},o=e.fill,i=null;if(isFinite(o))return null;if("start"===o?i=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===o?i=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:r.getBasePosition?i=r.getBasePosition():r.getBasePixel&&(i=r.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(t=r.isHorizontal())?i:null,y:t?null:i}}return null}function c(e,t,n){var r,o=e[t].fill,i=[t];if(!n)return o;for(;!1!==o&&-1===i.indexOf(o);){if(!isFinite(o))return o;if(!(r=e[o]))return!1;if(r.visible)return o;i.push(o),o=r.fill}return!1}function u(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),a[n](e))}function f(e){return e&&!e.skip}function d(e,t,n,r,o){var a;if(r&&o){for(e.moveTo(t[0].x,t[0].y),a=1;a<r;++a)i.canvas.lineTo(e,t[a-1],t[a]);for(e.lineTo(n[o-1].x,n[o-1].y),a=o-1;a>0;--a)i.canvas.lineTo(e,n[a],n[a-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,i,a,f=(e.data.datasets||[]).length,d=t.propagate,p=[];for(r=0;r<f;++r)a=null,(i=(n=e.getDatasetMeta(r)).dataset)&&i._model&&i instanceof o.Line&&(a={visible:e.isDatasetVisible(r),fill:s(i,r,f),chart:e,el:i}),n.$filler=a,p.push(a);for(r=0;r<f;++r)(a=p[r])&&(a.fill=c(p,r,d),a.boundary=l(a),a.mapper=u(a))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var o=e.ctx,a=n.el,s=a._view,l=a._children||[],c=n.mapper,u=s.backgroundColor||r.global.defaultColor;c&&u&&l.length&&(i.canvas.clipArea(o,e.chartArea),function(e,t,n,r,o,i){var a,s,l,c,u,p,h,m=t.length,v=r.spanGaps,g=[],y=[],b=0,_=0;for(e.beginPath(),a=0,s=m+!!i;a<s;++a)u=n(c=t[l=a%m]._view,l,r),p=f(c),h=f(u),p&&h?(b=g.push(c),_=y.push(u)):b&&_&&(v?(p&&g.push(c),h&&y.push(u)):(d(e,g,y,b,_),b=_=0,g=[],y=[]));d(e,g,y,b,_),e.closePath(),e.fillStyle=o,e.fill()}(o,l,c,s,u,a._loop),i.canvas.unclipArea(o))}}}},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86),a=n(452),s=i.noop;function l(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}r._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,o=r.getDatasetMeta(n);o.hidden=null===o.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return i.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:i.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var c=o.extend({initialize:function(e){i.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var e=this,t=e.options.labels||{},n=i.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=e.options,n=t.labels,o=t.display,a=e.ctx,s=r.global,c=i.valueOrDefault,u=c(n.fontSize,s.defaultFontSize),f=c(n.fontStyle,s.defaultFontStyle),d=c(n.fontFamily,s.defaultFontFamily),p=i.fontString(u,f,d),h=e.legendHitBoxes=[],m=e.minSize,v=e.isHorizontal();if(v?(m.width=e.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=e.maxHeight),o)if(a.font=p,v){var g=e.lineWidths=[0],y=e.legendItems.length?u+n.padding:0;a.textAlign="left",a.textBaseline="top",i.each(e.legendItems,function(t,r){var o=l(n,u)+u/2+a.measureText(t.text).width;g[g.length-1]+o+n.padding>=e.width&&(y+=u+n.padding,g[g.length]=e.left),h[r]={left:0,top:0,width:o,height:u},g[g.length-1]+=o+n.padding}),m.height+=y}else{var b=n.padding,_=e.columnWidths=[],w=n.padding,E=0,x=0,k=u+b;i.each(e.legendItems,function(e,t){var r=l(n,u)+u/2+a.measureText(e.text).width;x+k>m.height&&(w+=E+n.padding,_.push(E),E=0,x=0),E=Math.max(E,r),x+=k,h[t]={left:0,top:0,width:r,height:u}}),w+=E,_.push(E),m.width+=w}e.width=m.width,e.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,o=r.global,a=o.elements.line,s=e.width,c=e.lineWidths;if(t.display){var u,f=e.ctx,d=i.valueOrDefault,p=d(n.fontColor,o.defaultFontColor),h=d(n.fontSize,o.defaultFontSize),m=d(n.fontStyle,o.defaultFontStyle),v=d(n.fontFamily,o.defaultFontFamily),g=i.fontString(h,m,v);f.textAlign="left",f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=p,f.fillStyle=p,f.font=g;var y=l(n,h),b=e.legendHitBoxes,_=e.isHorizontal();u=_?{x:e.left+(s-c[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var w=h+n.padding;i.each(e.legendItems,function(r,l){var p=f.measureText(r.text).width,m=y+h/2+p,v=u.x,g=u.y;_?v+m>=s&&(g=u.y+=w,u.line++,v=u.x=e.left+(s-c[u.line])/2):g+w>e.bottom&&(v=u.x=v+e.columnWidths[u.line]+n.padding,g=u.y=e.top+n.padding,u.line++),function(e,n,r){if(!(isNaN(y)||y<=0)){f.save(),f.fillStyle=d(r.fillStyle,o.defaultColor),f.lineCap=d(r.lineCap,a.borderCapStyle),f.lineDashOffset=d(r.lineDashOffset,a.borderDashOffset),f.lineJoin=d(r.lineJoin,a.borderJoinStyle),f.lineWidth=d(r.lineWidth,a.borderWidth),f.strokeStyle=d(r.strokeStyle,o.defaultColor);var s=0===d(r.lineWidth,a.borderWidth);if(f.setLineDash&&f.setLineDash(d(r.lineDash,a.borderDash)),t.labels&&t.labels.usePointStyle){var l=h*Math.SQRT2/2,c=l/Math.SQRT2,u=e+c,p=n+c;i.canvas.drawPoint(f,r.pointStyle,l,u,p)}else s||f.strokeRect(e,n,y,h),f.fillRect(e,n,y,h);f.restore()}}(v,g,r),b[l].left=v,b[l].top=g,function(e,t,n,r){var o=h/2,i=y+o+e,a=t+o;f.fillText(n.text,i,a),n.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(i,a),f.lineTo(i+r,a),f.stroke())}(v,g,r,p),_?u.x+=m+n.padding:u.y+=w})}},handleEvent:function(e){var t=this,n=t.options,r="mouseup"===e.type?"click":e.type,o=!1;if("mousemove"===r){if(!n.onHover)return}else{if("click"!==r)return;if(!n.onClick)return}var i=e.x,a=e.y;if(i>=t.left&&i<=t.right&&a>=t.top&&a<=t.bottom)for(var s=t.legendHitBoxes,l=0;l<s.length;++l){var c=s[l];if(i>=c.left&&i<=c.left+c.width&&a>=c.top&&a<=c.top+c.height){if("click"===r){n.onClick.call(t,e.native,t.legendItems[l]),o=!0;break}if("mousemove"===r){n.onHover.call(t,e.native,t.legendItems[l]),o=!0;break}}}return o}});function u(e,t){var n=new c({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.legend=n}e.exports={id:"legend",_element:c,beforeInit:function(e){var t=e.options.legend;t&&u(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(i.mergeIf(t,r.global.legend),n?(a.configure(e,n,t),n.options=t):u(e,t)):n&&(a.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){"use strict";var r=n(109),o=n(239),i=n(86),a=n(452),s=i.noop;r._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var l=o.extend({initialize:function(e){i.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=i.valueOrDefault,n=e.options,o=n.display,a=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,l=i.isArray(n.text)?n.text.length:1,c=i.options.toLineHeight(n.lineHeight,a),u=o?l*c+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=u):(s.width=u,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:s,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=i.valueOrDefault,o=e.options,a=r.global;if(o.display){var s,l,c,u=n(o.fontSize,a.defaultFontSize),f=n(o.fontStyle,a.defaultFontStyle),d=n(o.fontFamily,a.defaultFontFamily),p=i.fontString(u,f,d),h=i.options.toLineHeight(o.lineHeight,u),m=h/2+o.padding,v=0,g=e.top,y=e.left,b=e.bottom,_=e.right;t.fillStyle=n(o.fontColor,a.defaultFontColor),t.font=p,e.isHorizontal()?(l=y+(_-y)/2,c=g+m,s=_-y):(l="left"===o.position?y+m:_-m,c=g+(b-g)/2,s=b-g,v=Math.PI*("left"===o.position?-.5:.5)),t.save(),t.translate(l,c),t.rotate(v),t.textAlign="center",t.textBaseline="middle";var w=o.text;if(i.isArray(w))for(var E=0,x=0;x<w.length;++x)t.fillText(w[x],0,E,s),E+=h;else t.fillText(w,0,0,s);t.restore()}}});function c(e,t){var n=new l({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.titleBlock=n}e.exports={id:"title",_element:l,beforeInit:function(e){var t=e.options.title;t&&c(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(i.mergeIf(t,r.global.title),n?(a.configure(e,n,t),n.options=t):c(e,t)):n&&(a.removeBox(e,n),delete e.titleBlock)}}},function(e,t,n){var r=n(1101),o=n(1106),i=n(2175),a=n(2179),s=n(2197),l=n(267),c=n(1108),u=n(1110),f=1,d="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,y){var b=l(e),_=l(t),w=b?p:s(e),E=_?p:s(t),x=(w=w==d?h:w)==h,k=(E=E==d?h:E)==h,S=w==E;if(S&&c(e)){if(!c(t))return!1;b=!0,x=!1}if(S&&!x)return y||(y=new r),b||u(e)?o(e,t,n,v,g,y):i(e,t,w,n,v,g,y);if(!(n&f)){var T=x&&m.call(e,"__wrapped__"),C=k&&m.call(t,"__wrapped__");if(T||C){var O=T?e.value():e,j=C?t.value():t;return y||(y=new r),g(O,j,n,v,y)}}return!!S&&(y||(y=new r),a(e,t,n,v,g,y))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(557),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(557);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(557);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(557);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(556);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(556),o=n(713),i=n(714),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(1103),o=n(2155),i=n(559),a=n(1105),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(558),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(2156),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(266)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(2159),o=n(556),i=n(713);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(2160),o=n(2161),i=n(2162),a=n(2163),s=n(2164);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(560);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(560),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(560),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(560),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(561);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(561);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(561);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(561);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(714),o=n(2171),i=n(2172);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(558),o=n(2176),i=n(1102),a=n(1106),s=n(2177),l=n(2178),c=1,u=2,f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",m="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,x=E?E.valueOf:void 0;e.exports=function(e,t,n,r,E,k,S){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!k(new o(e),new o(t)));case f:case d:case m:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case h:var T=s;case g:var C=r&c;if(T||(T=l),e.size!=t.size&&!C)return!1;var O=S.get(e);if(O)return O==t;r|=u,S.set(e,t);var j=a(T(e),T(t),r,E,k,S);return S.delete(e),j;case b:if(x)return x.call(e)==x.call(t)}return!1}},function(e,t,n){var r=n(266).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(2180),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var c=n&o,u=r(e),f=u.length;if(f!=r(t).length&&!c)return!1;for(var d=f;d--;){var p=u[d];if(!(c?p in t:i.call(t,p)))return!1}var h=l.get(e);if(h&&l.get(t))return h==t;var m=!0;l.set(e,t),l.set(t,e);for(var v=c;++d<f;){var g=e[p=u[d]],y=t[p];if(a)var b=c?a(y,g,p,t,e,l):a(g,y,p,e,t,l);if(!(void 0===b?g===y||s(g,y,n,a,l):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(2181),o=n(2183),i=n(562);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(2182),o=n(267);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(2184),o=n(2185),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(2187),o=n(1107),i=n(267),a=n(1108),s=n(1109),l=n(1110),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),f=!n&&!u&&a(e),d=!n&&!u&&!f&&l(e),p=n||u||f||d,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!c.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(455),o=n(456),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(455),o=n(715),i=n(456),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(1104),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(256)(e))},function(e,t,n){var r=n(2194),o=n(2195),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(2196)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(2198),o=n(713),i=n(2199),a=n(2200),s=n(2201),l=n(455),c=n(1105),u=c(r),f=c(o),d=c(i),p=c(a),h=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(341)(n(266),"DataView");e.exports=r},function(e,t,n){var r=n(341)(n(266),"Promise");e.exports=r},function(e,t,n){var r=n(341)(n(266),"Set");e.exports=r},function(e,t,n){var r=n(341)(n(266),"WeakMap");e.exports=r},function(e,t,n){var r=n(2203)(n(2222));e.exports=r},function(e,t,n){var r=n(717),o=n(716),i=n(562);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(2205),o=n(2206),i=n(1112);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(1101),o=n(712),i=1,a=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var f=n[l];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++l<c;){var d=(f=n[l])[0],p=e[d],h=f[1];if(u&&f[2]){if(void 0===p&&!(d in e))return!1}else{var m=new r;if(s)var v=s(p,h,d,e,t,m);if(!(void 0===v?o(h,p,i|a,s,m):v))return!1}}return!0}},function(e,t,n){var r=n(1111),o=n(562);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(712),o=n(2208),i=n(2215),a=n(718),s=n(1111),l=n(1112),c=n(564),u=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,u|f)}}},function(e,t,n){var r=n(1113);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(2210),o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return o.test(e)&&t.push(""),e.replace(i,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t});e.exports=s},function(e,t,n){var r=n(2211),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(714),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(2213);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(558),o=n(2214),i=n(267),a=n(563),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(2216),o=n(2217);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(1114),o=n(1107),i=n(267),a=n(1109),s=n(715),l=n(564);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,f=!1;++c<u;){var d=l(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=u?f:!!(u=null==e?0:e.length)&&s(u)&&a(d,u)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2220),o=n(2221),i=n(718),a=n(564);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1113);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(2223),o=n(717),i=n(2224),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(2225);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(2226),o=1/0,i=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(559),o=n(563),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){var r=n(2228);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(341),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(2230),o=n(2231),i=n(717),a=n(267);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,c=t?t():{};return l(n,e,i(s,2),c)}}},function(e,t){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(2232);e.exports=function(e,t,n,o){return r(e,function(e,r,i){t(o,e,n(e),i)}),o}},function(e,t,n){var r=n(2233),o=n(2236)(r);e.exports=o},function(e,t,n){var r=n(2234),o=n(562);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(2235)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},function(e,t,n){var r=n(716);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.round(Math.sqrt((1-n)*Math.pow(e,2)+n*Math.pow(t,2)))};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Number(((1-n)*e+n*t).toFixed(2))};t.default=r},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){var e=r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],4),t=e[0],n=void 0===t?0:t,o=e[1],i=void 0===o?0:o,a=e[2],s=void 0===a?0:a,l=e[3],c=void 0===l?1:l,u=(1<<24|n<<16|i<<8|s).toString(16).slice(1),f=(255*c).toString(16).padStart(2,"0").slice(0,2);return"#".concat(u).concat(f)};t.default=o},function(e,t){var n={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},r={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};e.exports=function(e,t,o){return t?e=n[e]:o&&(e=r[e]),"\\"+e}},function(e,t,n){e.exports=n(2244)},function(e,t,n){n(2245),e.exports=n(116).parseFloat},function(e,t,n){var r=n(2246);n(68)({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t,n){var r=n(128).parseFloat,o=n(669),i=n(529),a=1/r(i+"-0")!=-1/0;e.exports=a?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(183),o="[object RegExp]",i=Object.prototype.toString;e.exports=function(e){return r(e)&&i.call(e)==o}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){
/*!
 * @license
 * chartjs-plugin-datalabels
 * http://chartjs.org/
 * Version: 0.5.0
 *
 * Copyright 2018 Chart.js Contributors
 * Released under the MIT license
 * https://github.com/chartjs/chartjs-plugin-datalabels/blob/master/LICENSE.md
 */
e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,n=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),r={toTextLines:function(e){var n,r=[];for(e=[].concat(e);e.length;)"string"==typeof(n=e.pop())?r.unshift.apply(r,n.split("\n")):Array.isArray(n)?e.push.apply(e,n):t.isNullOrUndef(e)||r.unshift(""+n);return r},toFontString:function(e){return!e||t.isNullOrUndef(e.size)||t.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family},textSize:function(e,t,n){var r,o=[].concat(t),i=o.length,a=e.font,s=0;for(e.font=n.string,r=0;r<i;++r)s=Math.max(e.measureText(o[r]).width,s);return e.font=a,{height:i*n.lineHeight,width:s}},parseFont:function(n){var o=e.defaults.global,i=t.valueOrDefault(n.size,o.defaultFontSize),a={family:t.valueOrDefault(n.family,o.defaultFontFamily),lineHeight:t.options.toLineHeight(n.lineHeight,i),size:i,style:t.valueOrDefault(n.style,o.defaultFontStyle),weight:t.valueOrDefault(n.weight,null),string:""};return a.string=r.toFontString(a),a},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n,r,o,i,a=e.slice(),s=[];for(n=0,o=t.length;n<o;++n)i=t[n],-1===(r=a.indexOf(i))?s.push([i,1]):a.splice(r,1);for(n=0,o=a.length;n<o;++n)s.push([a[n],-1]);return s},rasterize:function(e){return Math.round(e*n)/n}};function o(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var o=e.x-n,i=e.y-r,a=Math.sqrt(o*o+i*i);return{x:a?o/a:0,y:a?i/a:-1}}var i=0,a=1,s=2,l=4,c=8;function u(e,t,n){var r=i;return e<n.left?r|=a:e>n.right&&(r|=s),t<n.top?r|=c:t>n.bottom&&(r|=l),r}function f(e,t){var n,r,o=t.anchor,i=e;return t.clamp&&(i=function(e,t){for(var n,r,o,i=e.x0,f=e.y0,d=e.x1,p=e.y1,h=u(i,f,t),m=u(d,p,t);h|m&&!(h&m);)(n=h||m)&c?(r=i+(d-i)*(t.top-f)/(p-f),o=t.top):n&l?(r=i+(d-i)*(t.bottom-f)/(p-f),o=t.bottom):n&s?(o=f+(p-f)*(t.right-i)/(d-i),r=t.right):n&a&&(o=f+(p-f)*(t.left-i)/(d-i),r=t.left),n===h?h=u(i=r,f=o,t):m=u(d=r,p=o,t);return{x0:i,x1:d,y0:f,y1:p}}(i,t.area)),"start"===o?(n=i.x0,r=i.y0):"end"===o?(n=i.x1,r=i.y1):(n=(i.x0+i.x1)/2,r=(i.y0+i.y1)/2),function(e,t,n,r,o){switch(o){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),r=Math.sin(o)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var d={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),o=Math.sin(n),i=e.innerRadius,a=e.outerRadius;return f({x0:e.x+r*i,y0:e.y+o*i,x1:e.x+r*a,y1:e.y+o*a,vx:r,vy:o},t)},point:function(e,t){var n=o(e,t.origin),r=n.x*e.radius,i=n.y*e.radius;return f({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:n.x,vy:n.y},t)},rect:function(e,t){var n=o(e,t.origin),r=e.x,i=e.y,a=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),f({x0:r,y0:i+s,x1:r+a,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=o(e,t.origin);return f({x0:e.x,y0:e.y,x1:e.x,y1:e.y,vx:n.x,vy:n.y},t)}},p=e.helpers,h=r.rasterize;function m(e){var t=e._model.horizontal,n=e._scale||t&&e._xScale||e._yScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return t?{x:r,y:null}:{x:null,y:r}}function v(e,t,n){var r=e.shadowBlur,o=n.stroked,i=h(n.x),a=h(n.y),s=h(n.w);o&&e.strokeText(t,i,a,s),n.filled&&(r&&o&&(e.shadowBlur=0),e.fillText(t,i,a,s),r&&o&&(e.shadowBlur=r))}var g=function(e,t,n,r){var o=this;o._config=e,o._index=r,o._model=null,o._rects=null,o._ctx=t,o._el=n};p.extend(g.prototype,{_modelize:function(t,n,o,i){var a,s=this._index,l=p.options.resolve,c=r.parseFont(l([o.font,{}],i,s)),u=l([o.color,e.defaults.global.defaultFontColor],i,s);return{align:l([o.align,"center"],i,s),anchor:l([o.anchor,"center"],i,s),area:i.chart.chartArea,backgroundColor:l([o.backgroundColor,null],i,s),borderColor:l([o.borderColor,null],i,s),borderRadius:l([o.borderRadius,0],i,s),borderWidth:l([o.borderWidth,0],i,s),clamp:l([o.clamp,!1],i,s),clip:l([o.clip,!1],i,s),color:u,display:t,font:c,lines:n,offset:l([o.offset,0],i,s),opacity:l([o.opacity,1],i,s),origin:m(this._el),padding:p.options.toPadding(l([o.padding,0],i,s)),positioner:(a=this._el,a instanceof e.elements.Arc?d.arc:a instanceof e.elements.Point?d.point:a instanceof e.elements.Rectangle?d.rect:d.fallback),rotation:l([o.rotation,0],i,s)*(Math.PI/180),size:r.textSize(this._ctx,n,c),textAlign:l([o.textAlign,"start"],i,s),textShadowBlur:l([o.textShadowBlur,0],i,s),textShadowColor:l([o.textShadowColor,u],i,s),textStrokeColor:l([o.textStrokeColor,u],i,s),textStrokeWidth:l([o.textStrokeWidth,0],i,s)}},update:function(e){var t,n,o,i=this,a=null,s=null,l=i._index,c=i._config,u=p.options.resolve([c.display,!0],e,l);u&&(t=e.dataset.data[l],n=p.valueOrDefault(p.callback(c.formatter,[t,e]),t),(o=p.isNullOrUndef(n)?[]:r.toTextLines(n)).length&&(a=i._modelize(u,o,c,e),s=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,o=e.size.width,i=-o/2,a=-r/2;return{frame:{x:i-n.left-t,y:a-n.top-t,w:o+n.width+2*t,h:r+n.height+2*t},text:{x:i,y:a,w:o,h:r}}}(a))),i._model=a,i._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,o=e.ctx,i=this._model,a=this._rects;this.visible()&&(o.save(),i.clip&&(n=i.area,o.beginPath(),o.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),o.clip()),o.globalAlpha=r.bound(0,i.opacity,1),o.translate(h(t.x),h(t.y)),o.rotate(i.rotation),function(e,t,n){var r=n.backgroundColor,o=n.borderColor,i=n.borderWidth;(r||o&&i)&&(e.beginPath(),p.canvas.roundedRect(e,h(t.x)+i/2,h(t.y)+i/2,h(t.w)-i,h(t.h)-i,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),o&&i&&(e.strokeStyle=o,e.lineWidth=i,e.lineJoin="miter",e.stroke()))}(o,a.frame,i),function(e,t,n,r){var o,i=r.textAlign,a=r.color,s=!!a,l=r.font,c=t.length,u=r.textStrokeColor,f=r.textStrokeWidth,d=u&&f;if(c&&(s||d))for(n=function(e,t,n){var r=n.lineHeight,o=e.w,i=e.x,a=e.y+r/2;return"center"===t?i+=o/2:"end"!==t&&"right"!==t||(i+=o),{h:r,w:o,x:i,y:a}}(n,i,l),e.font=l.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=a),d&&(e.lineJoin="round",e.lineWidth=f,e.strokeStyle=u),o=0,c=t.length;o<c;++o)v(e,t[o],{stroked:d,filled:s,w:n.w,x:n.x,y:n.y+n.h*o})}(o,i.lines,a.text,i),o.restore())}});var y=e.helpers,b=Number.MIN_SAFE_INTEGER||-9007199254740991,_=Number.MAX_SAFE_INTEGER||9007199254740991;function w(e,t,n){var r=Math.cos(n),o=Math.sin(n),i=t.x,a=t.y;return{x:i+r*(e.x-i)-o*(e.y-a),y:a+o*(e.x-i)+r*(e.y-a)}}function E(e,t){var n,r,o,i,a,s=_,l=b,c=t.origin;for(n=0;n<e.length;++n)r=e[n],o=r.x-c.x,i=r.y-c.y,a=t.vx*o+t.vy*i,s=Math.min(s,a),l=Math.max(l,a);return{min:s,max:l}}function x(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/o,vy:(t.y-e.y)/o,origin:e,ln:o}}var k=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function S(e,t,n){var r=t.positioner(e,t),o=r.vx,i=r.vy;if(!o&&!i)return{x:r.x,y:r.y};var a=n.w,s=n.h,l=t.rotation,c=Math.abs(a/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),u=Math.abs(a/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),f=1/Math.max(Math.abs(o),Math.abs(i));return c*=o*f,u*=i*f,c+=t.offset*o,u+=t.offset*i,{x:r.x+c,y:r.y+u}}y.extend(k.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this._rect;return!((e=w(e,this.center(),-this._rotation)).x<t.x-1||e.y<t.y-1||e.x>t.x+t.w+2||e.y>t.y+t.h+2)},intersects:function(e){var t,n,r,o=this._points(),i=e._points(),a=[x(o[0],o[1]),x(o[0],o[3])];for(this._rotation!==e._rotation&&a.push(x(i[0],i[1]),x(i[0],i[3])),t=0;t<a.length;++t)if(n=E(o,a[t]),r=E(i,a[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this._rect,t=this._rotation,n=this.center();return[w({x:e.x,y:e.y},n,t),w({x:e.x+e.w,y:e.y},n,t),w({x:e.x+e.w,y:e.y+e.h},n,t),w({x:e.x,y:e.y+e.h},n,t)]}});var T={prepare:function(e){var t,n,r,o,i,a=[];for(t=0,r=e.length;t<r;++t)for(n=0,o=e[t].length;n<o;++n)i=e[t][n],a.push(i),i.$layout={_box:new k,_hidable:!1,_visible:!0,_set:t,_idx:n};return a.sort(function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?n._set-r._set:r._idx-n._idx}),this.update(a),a},update:function(e){var t,n,r,o,i,a=!1;for(t=0,n=e.length;t<n;++t)r=e[t],o=r.model(),(i=r.$layout)._hidable=o&&"auto"===o.display,i._visible=r.visible(),a|=i._hidable;a&&function(e){var t,n,r,o,i,a;for(t=0,n=e.length;t<n;++t)r=e[t],(o=r.$layout)._visible&&(i=r.geometry(),a=S(r._el._model,r.model(),i),o._box.update(a,i,r.rotation()));!function(e,t){var n,r,o,i;for(n=e.length-1;n>=0;--n)for(o=e[n].$layout,r=n-1;r>=0&&o._visible;--r)(i=e[r].$layout)._visible&&o._box.intersects(i._box)&&t(o,i)}(e,function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)})}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return{dataset:r._set,label:e[n]};return null},draw:function(e,t){var n,r,o,i,a,s;for(n=0,r=t.length;n<r;++n)o=t[n],(i=o.$layout)._visible&&(a=o.geometry(),s=S(o._el._view,o.model(),a),i._box.update(s,a,o.rotation()),o.draw(e,s))}},C=e.helpers,O={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(C.isNullOrUndef(e))return null;var t,n,r,o=e;if(C.isObject(e))if(C.isNullOrUndef(e.label))if(C.isNullOrUndef(e.r))for(o="",t=Object.keys(e),r=0,n=t.length;r<n;++r)o+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else o=e.r;else o=e.label;return""+o},listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},j=e.helpers,A="$datalabels";function N(e,t,n){var r=t&&t[n.dataset];if(r){var o=n.label,i=o.$context;!0===j.callback(r,[i])&&(e[A]._dirty=!0,o.update(i))}}function M(e,t){var n,r,o=e[A],i=o._listeners;if(i.enter||i.leave){if("mousemove"===t.type)r=T.lookup(o._labels,t);else if("mouseout"!==t.type)return;n=o._hovered,o._hovered=r,function(e,t,n,r){var o,i;(n||r)&&(n?r?n.label!==r.label&&(i=o=!0):i=!0:o=!0,i&&N(e,t.leave,n),o&&N(e,t.enter,r))}(e,i,n,r)}}e.defaults.global.plugins.datalabels=O,e.defaults.global.plugins.datalabels=O;var I={id:"datalabels",beforeInit:function(e){e[A]={_actives:[]}},beforeUpdate:function(e){var t=e[A];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,o,i,a=t.index,s=e[A],l=s._datasets[a]=[],c=e.isDatasetVisible(a),u=e.data.datasets[a],f=function(e,t){var n=e.datalabels;return!1===n?null:(!0===n&&(n={}),j.merge({},[t,n]))}(u,n),d=t.meta.data||[],p=d.length,h=e.ctx;for(h.save(),r=0;r<p;++r)o=d[r],c&&o&&!o.hidden&&!o._model.skip?(l.push(i=new g(f,h,o,r)),i.update(i.$context={active:!1,chart:e,dataIndex:r,dataset:u,datasetIndex:a})):i=null,o[A]=i;h.restore(),j.merge(s._listeners,f.listeners||{},{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],s._listened=!0}})},afterUpdate:function(e,t){e[A]._labels=T.prepare(e[A]._datasets,t)},afterDatasetsDraw:function(e){T.draw(e,e[A]._labels)},beforeEvent:function(e,t){if(e[A]._listened)switch(t.type){case"mousemove":case"mouseout":M(e,t);break;case"click":!function(e,t){var n=e[A],r=n._listeners.click,o=r&&T.lookup(n._labels,t);o&&N(e,r,o)}(e,t)}},afterEvent:function(e){var t,n,o,i,a=e[A],s=a._actives,l=a._actives=e.lastActive||[],c=r.arrayDiff(s,l);for(t=0,n=c.length;t<n;++t)(o=c[t])[1]&&(i=o[0][A])&&(i.$context.active=1===o[1],i.update(i.$context));(a._dirty||c.length)&&(T.update(a._labels),e.animating||e.render()),delete a._dirty}};return e.plugins.register(I),I}(n(349))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(2269)},function(e,t,n){var r=n(2270),o=Array.prototype;e.exports=function(e){var t=e.fill;return e===o||e instanceof Array&&t===o.fill?r:t}},function(e,t,n){n(2271),e.exports=n(136)("Array").fill},function(e,t,n){n(68)({target:"Array",proto:!0},{fill:n(2272)}),n(425)("fill")},function(e,t,n){"use strict";var r=n(236),o=n(512),i=n(195);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(929),o=n(2276)(r);e.exports=o},function(e,t,n){var r=n(692),o=n(338),i=n(263);e.exports=function(e,t){return function(n,a){var s=n?r(n):0;if(!o(s))return e(n,a);for(var l=t?s:-1,c=i(n);(t?l--:++l<s)&&!1!==a(c[l],l,c););return n}}},function(e,t,n){var r=n(2278),o=n(2293),i=n(2294),a=n(262);e.exports=function(e,t){return function(n,s,l){if(s=r(s,l,3),a(n)){var c=i(n,s,t);return c>-1?n[c]:void 0}return o(n,s,e)}}},function(e,t,n){var r=n(2279),o=n(2289),i=n(697),a=n(571),s=n(2291);e.exports=function(e,t,n){var l=typeof e;return"function"==l?void 0===t?e:i(e,t,n):null==e?a:"object"==l?r(e):void 0===t?s(e):o(e,t)}},function(e,t,n){var r=n(2280),o=n(2287),i=n(263);e.exports=function(e){var t=o(e);if(1==t.length&&t[0][2]){var n=t[0][0],a=t[0][1];return function(e){return null!=e&&e[n]===a&&(void 0!==a||n in i(e))}}return function(e){return r(e,t)}}},function(e,t,n){var r=n(1115),o=n(263);e.exports=function(e,t,n){var i=t.length,a=i,s=!n;if(null==e)return!a;for(e=o(e);i--;){var l=t[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=t[i])[0],u=e[c],f=l[1];if(s&&l[2]){if(void 0===u&&!(c in e))return!1}else{var d=n?n(u,f,c):void 0;if(!(void 0===d?r(f,u,n,!0):d))return!1}}return!0}},function(e,t,n){var r=n(2282),o=n(2284),i=n(2285),a=n(262),s=n(2286),l="[object Arguments]",c="[object Array]",u="[object Object]",f=Object.prototype,d=f.hasOwnProperty,p=f.toString;e.exports=function(e,t,n,f,h,m,v){var g=a(e),y=a(t),b=c,_=c;g||((b=p.call(e))==l?b=u:b!=u&&(g=s(e))),y||((_=p.call(t))==l?_=u:_!=u&&(y=s(t)));var w=b==u,E=_==u,x=b==_;if(x&&!g&&!w)return o(e,t,b);if(!h){var k=w&&d.call(e,"__wrapped__"),S=E&&d.call(t,"__wrapped__");if(k||S)return n(k?e.value():e,S?t.value():t,f,h,m,v)}if(!x)return!1;m||(m=[]),v||(v=[]);for(var T=m.length;T--;)if(m[T]==e)return v[T]==t;m.push(e),v.push(t);var C=(g?r:i)(e,t,n,f,h,m,v);return m.pop(),v.pop(),C}},function(e,t,n){var r=n(2283);e.exports=function(e,t,n,o,i,a,s){var l=-1,c=e.length,u=t.length;if(c!=u&&!(i&&u>c))return!1;for(;++l<c;){var f=e[l],d=t[l],p=o?o(i?d:f,i?f:d,l):void 0;if(void 0!==p){if(p)continue;return!1}if(i){if(!r(t,function(e){return f===e||n(f,e,o,i,a,s)}))return!1}else if(f!==d&&!n(f,d,o,i,a,s))return!1}return!0}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){var n="[object Boolean]",r="[object Date]",o="[object Error]",i="[object Number]",a="[object RegExp]",s="[object String]";e.exports=function(e,t,l){switch(l){case n:case r:return+e==+t;case o:return e.name==t.name&&e.message==t.message;case i:return e!=+e?t!=+t:e==+t;case a:case s:return e==t+""}return!1}},function(e,t,n){var r=n(445),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s,l){var c=r(e),u=c.length;if(u!=r(t).length&&!a)return!1;for(var f=u;f--;){var d=c[f];if(!(a?d in t:o.call(t,d)))return!1}for(var p=a;++f<u;){var h=e[d=c[f]],m=t[d],v=i?i(a?m:h,a?h:m,d):void 0;if(!(void 0===v?n(h,m,i,a,s,l):v))return!1;p||(p="constructor"==d)}if(!p){var g=e.constructor,y=t.constructor;if(g!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y))return!1}return!0}},function(e,t,n){var r=n(338),o=n(374),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var a=Object.prototype.toString;e.exports=function(e){return o(e)&&r(e.length)&&!!i[a.call(e)]}},function(e,t,n){var r=n(1116),o=n(2288);e.exports=function(e){for(var t=o(e),n=t.length;n--;)t[n][2]=r(t[n][1]);return t}},function(e,t,n){var r=n(445),o=n(263);e.exports=function(e){e=o(e);for(var t=-1,n=r(e),i=n.length,a=Array(i);++t<i;){var s=n[t];a[t]=[s,e[s]]}return a}},function(e,t,n){var r=n(700),o=n(1115),i=n(2290),a=n(262),s=n(1117),l=n(1116),c=n(735),u=n(263),f=n(701);e.exports=function(e,t){var n=a(e),d=s(e)&&l(t),p=e+"";return e=f(e),function(a){if(null==a)return!1;var s=p;if(a=u(a),(n||!d)&&!(s in a)){if(null==(a=1==e.length?a:r(a,i(e,0,-1))))return!1;s=c(e),a=u(a)}return a[s]===t?void 0!==t||s in a:o(t,a[s],void 0,!0)}}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;(t=null==t?0:+t||0)<0&&(t=-t>o?0:o+t),(n=void 0===n||n>o?o:+n||0)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(926),o=n(2292),i=n(1117);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(700),o=n(701);e.exports=function(e){var t=e+"";return e=o(e),function(n){return r(n,e,t)}}},function(e,t){e.exports=function(e,t,n,r){var o;return n(e,function(e,n,i){if(t(e,n,i))return o=r?n:e,!1}),o}},function(e,t){e.exports=function(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r={"./en-au":1118,"./en-au.js":1118,"./en-ca":1119,"./en-ca.js":1119,"./en-gb":1120,"./en-gb.js":1120,"./en-ie":1121,"./en-ie.js":1121,"./en-nz":1122,"./en-nz.js":1122};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2307},function(e,t,n){},function(e,t,n){var r=n(2310),o=n(21),i=n(137),a=n(2311);e.exports=o(i([],a,r))},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length-(e-1),o=new Array(r>=0?r:0);n<r;)o[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return o}},function(e,t,n){var r=n(213),o=n(21),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return r(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},o(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(52),o=n(569),i=n(57),a=n(27),s=n(240),l=n(215),c=n(73),u=n(69);e.exports=r(function e(t){return t=a(function(t){return"function"==typeof t?t:e(t)},t),i(c(s,0,l("length",u(t))),function(){var e=arguments;return a(function(t){return o(t,e)},t)})})},function(e,t,n){var r=n(52),o=n(531);e.exports=r(function(e){return o(2,e)})},function(e,t,n){var r=n(21),o=n(2315),i=n(27);e.exports=r(function(e,t){return i(e,o(t))})},function(e,t,n){var r=n(2316),o=n(523),i=n(198),a=n(145);e.exports=function(e){var t=function(e){return{"@@transducer/init":a.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var o=e["@@transducer/step"](t,n);return o["@@transducer/reduced"]?r(o):o}}}(e);return{"@@transducer/init":a.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return o(n)?i(t,e,n):i(t,e,[n])}}}},function(e,t){e.exports=function(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n})},function(e,t,n){var r=n(1123),o=n(52);e.exports=o(function(e){return null!=e&&"function"==typeof e.clone?e.clone():r(e,[],[],!0)})},function(e,t,n){var r=n(52);e.exports=r(function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})},function(e,t,n){var r=n(1126),o=n(524);e.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return r.apply(this,o(arguments))}},function(e,t){e.exports=function(e,t){return function(){var n=this;return e.apply(n,arguments).then(function(e){return t.call(n,e)})}}},function(e,t,n){var r=n(52),o=n(1127);e.exports=r(function(e){return o(e.length,e)})},function(e,t,n){var r=n(565);e.exports=r(function(e,t){return e+1},0)},function(e,t,n){var r=n(518),o=n(168),i=n(145);e.exports=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(o(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},r(4,[],function(t,n,r,o){return new e(t,n,r,o)})}()},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(137),i=n(2327),a=n(2329);e.exports=r(o([],a,i))},function(e,t,n){var r=n(720);e.exports=function(e,t){return r(e<t.length?t.length-e:0,t)}},function(e,t,n){var r=n(21),o=n(299),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?o(n):n},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(137),i=n(2331),a=n(2332);e.exports=r(o([],a,i))},function(e,t){e.exports=function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,0,n+1)}},function(e,t,n){var r=n(21),o=n(198),i=n(145);e.exports=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=o(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(52),o=n(137),i=n(1130),a=n(1131),s=n(35);e.exports=r(o([],i(s),a(s)))},function(e,t,n){var r=n(21),o=n(137),i=n(2335);e.exports=r(o(["dropWhile"],i,function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Array.prototype.slice.call(t,n)}))},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(35),i=n(1132);e.exports=r(function(e,t){return o(i(e.length,t),e)})},function(e,t,n){var r=n(62),o=n(35);e.exports=r(function(e,t,n){return o(e(t),e(n))})},function(e,t,n){var r=n(21),o=n(137),i=n(2339);e.exports=r(o([],i,function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))},function(e,t,n){var r=n(21),o=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(95);e.exports=r(function(e,t){for(var n=o(t),r=0;r<n.length;){var i=n[r];e(t[i],i,t),r+=1}return t})},function(e,t,n){var r=n(432),o=n(21),i=n(565);e.exports=o(r("groupBy",i(function(e,t){return null==e&&(e=[]),e.push(t),e},null)))},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=[],r=0,o=t.length;r<o;){for(var i=r+1;i<o&&e(t[i-1],t[i]);)i+=1;n.push(t.slice(r,i)),r=i}return n})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e in t})},function(e,t,n){var r=n(565);e.exports=r(function(e,t){return t},null)},function(e,t,n){var r=n(201);e.exports=r(0,-1)},function(e,t,n){var r=n(566),o=n(62),i=n(667);e.exports=o(function(e,t,n){return i(function(t){return r(e,t,n)},t)})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})},function(e,t,n){var r=n(334),o=n(21),i=n(667),a=n(28),s=n(458);e.exports=o(function(e,t){var n,o;return e.length>t.length?(n=e,o=t):(n=t,o=e),s(i(a(r)(n),o))})},function(e,t,n){var r=n(566),o=n(62),i=n(721);e.exports=o(function(e,t,n){var o,a;t.length>n.length?(o=t,a=n):(o=n,a=t);for(var s=[],l=0;l<a.length;)r(e,a[l],o)&&(s[s.length]=a[l]),l+=1;return i(e,s)})},function(e,t,n){var r=n(432),o=n(21);e.exports=o(r("intersperse",function(e,t){for(var n=[],r=0,o=t.length;r<o;)r===o-1?n.push(t[r]):n.push(t[r],e),r+=1;return n}))},function(e,t,n){var r=n(1123),o=n(62),i=n(665),a=n(198),s=n(2352);e.exports=o(function(e,t,n){return i(e)?a(t(e),e["@@transducer/init"](),n):a(t(s(e)),r(e,[],[],!1),n)})},function(e,t,n){var r,o,i,a=n(666),s=n(650),l=n(523),c=n(665),u=n(70);e.exports=(r={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":s},o={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":s},i={"@@transducer/init":Object,"@@transducer/step":function(e,t){return a(e,l(t)?u(t[0],t[1]):t)},"@@transducer/result":s},function(e){if(c(e))return e;if(l(e))return r;if("string"==typeof e)return o;if("object"==typeof e)return i;throw new Error("Cannot create transformer for "+e)})},function(e,t,n){var r=n(52),o=n(168),i=n(95);e.exports=r(function(e){for(var t=i(e),n=t.length,r=0,a={};r<n;){var s=t[r],l=e[s],c=o(l,a)?a[l]:a[l]=[];c[c.length]=s,r+=1}return a})},function(e,t,n){var r=n(52),o=n(95);e.exports=r(function(e){for(var t=o(e),n=t.length,r=0,i={};r<n;){var a=t[r];i[e[a]]=a,r+=1}return i})},function(e,t,n){var r=n(52);e.exports=r(function(e){var t,n=[];for(t in e)n[n.length]=t;return n})},function(e,t,n){var r=n(21),o=n(295),i=n(35);e.exports=r(function(e,t){if("function"!=typeof t.lastIndexOf||o(t)){for(var n=t.length-1;n>=0;){if(i(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)})},function(e,t,n){var r=n(52),o=n(525),i=n(268),a=n(694);e.exports=r(function(e){return o(i(e),a(e))})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){for(var r=0,o=n.length,i=[],a=[t];r<o;)a=e(a[0],n[r]),i[r]=a[1],r+=1;return[a[0],i]})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){for(var r=n.length-1,o=[],i=[t];r>=0;)i=e(n[r],i[0]),o[r]=i[1],r-=1;return[o,i[0]]})},function(e,t,n){var r=n(21),o=n(674);e.exports=r(function(e,t){return o(e)?!o(t)||t<1?NaN:(e%t+t)%t:NaN})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e(n)>e(t)?n:t})},function(e,t,n){var r=n(52),o=n(1133);e.exports=r(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return o(Array.prototype.slice.call(e,0).sort(function(e,t){return e<t?-1:e>t?1:0}).slice(r,r+n))})},function(e,t,n){var r=n(1134),o=n(438);e.exports=r(function(){return o(arguments)})},function(e,t,n){var r=n(21),o=n(544);e.exports=r(function(e,t){return o(function(e,t,n){return t},e,t)})},function(e,t,n){var r=n(62),o=n(544);e.exports=r(function(e,t,n){return o(function(t,n,r){return e(n,r)},t,n)})},function(e,t,n){var r=n(62),o=n(698);e.exports=r(function(e,t,n){return o(function(t,n,r){return e(n,r)},t,n)})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return t<e?t:e})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e(n)<e(t)?n:t})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return e%t})},function(e,t,n){var r=n(859),o=n(21),i=n(137),a=n(874),s=n(344);e.exports=o(r(i(["any"],a,s)))},function(e,t,n){var r=n(52),o=n(57),i=n(268);e.exports=r(function(e){return o(e<0?1:e+1,function(){return i(e,arguments)})})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){return e(t(n))})},function(e,t,n){var r=n(237),o=n(52);e.exports=o(function(e){var t,n=!1;return r(e.length,function(){return n?t:(n=!0,t=e.apply(this,arguments))})})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return[e,t]})},function(e,t,n){var r=n(213),o=n(869),i=n(28);e.exports=o(i(r))},function(e,t,n){var r=n(37),o=n(113),i=n(105);e.exports=o([r,i])},function(e,t,n){var r=n(1125),o=n(524);e.exports=function(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return r.apply(this,o(arguments))}},function(e,t,n){var r=n(241),o=n(73);e.exports=o(r,1)},function(e,t,n){var r=n(526),o=n(50),i=n(1135),a=n(1136);e.exports=a(r,[i,o])},function(e,t,n){var r=n(62),o=n(568);e.exports=r(function(e,t,n){return o(e,n[t])})},function(e,t,n){var r=n(518),o=n(198),i=n(299);e.exports=r(4,[],function(e,t,n,r){return o(function(n,r){return e(n,r)?t(n,r):i(n)},n,r)})},function(e,t,n){var r=n(52),o=n(299);e.exports=r(o)},function(e,t,n){var r=n(21),o=n(20),i=n(1138);e.exports=r(function(e,t){return i(o(e),t)})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){for(var r=0,o=n.length,i=[t];r<o;)t=e(t,n[r]),i[r+1]=t,r+=1;return i})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var r=0,o=0;0===r&&o<e.length;)r=e[o](t,n),o+=1;return r})})},function(e,t,n){var r=n(21),o=n(43),i=n(201);e.exports=r(function(e,t){return[i(0,e,t),i(e,o(t),t)]})},function(e,t,n){var r=n(21),o=n(201);e.exports=r(function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(o(r,r+=e,t));return n})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=0,r=t.length,o=[];n<r&&!e(t[n]);)o.push(t[n]),n+=1;return[o,Array.prototype.slice.call(t,n)]})},function(e,t,n){var r=n(21),o=n(35),i=n(720);e.exports=r(function(e,t){return o(i(e.length,t),e)})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){return Number(e)-Number(t)})},function(e,t,n){var r=n(21),o=n(26),i=n(573);e.exports=r(function(e,t){return o(i(e,t),i(t,e))})},function(e,t,n){var r=n(62),o=n(26),i=n(1128);e.exports=r(function(e,t,n){return o(i(e,t,n),i(e,n,t))})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,n+1)})},function(e,t,n){var r=n(21),o=n(137),i=n(2395);e.exports=r(o(["takeWhile"],i,function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Array.prototype.slice.call(t,0,n)}))},function(e,t,n){var r=n(21),o=n(299),i=n(145);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):o(e)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1124),o=n(21),i=n(2397),a=n(438);e.exports=o(function(e,t){if(!i(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+a(e));return r(e).test(t)})},function(e,t){e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(52);e.exports=r(function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t})},function(e,t,n){var r=n(52);e.exports=r(function(e){for(var t=0,n=[];t<e.length;){for(var r=e[t],o=0;o<r.length;)void 0===n[o]&&(n[o]=[]),n[o].push(r[o]),o+=1;t+=1}return n})},function(e,t,n){var r=n(62),o=n(27),i=n(1139);e.exports=r(function(e,t,n){return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](t,e):i(e,o(t,n))})},function(e,t,n){var r=n(237),o=n(213),i=n(21);e.exports=i(function(e,t){return r(e.length,function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,o([e],arguments))}})})},function(e,t,n){var r=n(52);e.exports=r(function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=e(t),r=[];n&&n.length;)r[r.length]=n[0],n=e(n[1]);return r})},function(e,t,n){var r=n(213),o=n(62),i=n(721);e.exports=o(function(e,t,n){return i(e,r(t,n))})},function(e,t,n){var r=n(650),o=n(719);e.exports=o(r)},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){for(var r=n;!e(r);)r=t(r);return r})},function(e,t,n){var r=n(52);e.exports=r(function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n,r=0,o=e.length,i=t.length,a=[];r<o;){for(n=0;n<i;)a[a.length]=[e[r],t[n]],n+=1;r+=1}return a})},function(e,t,n){var r=n(21);e.exports=r(function(e,t){for(var n=0,r=Math.min(e.length,t.length),o={};n<r;)o[e[n]]=t[n],n+=1;return o})},function(e,t,n){var r=n(62);e.exports=r(function(e,t,n){for(var r=[],o=0,i=Math.min(t.length,n.length);o<i;)r[o]=e(t[o],n[o]),o+=1;return r})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(1))&&"object"==typeof r&&"default"in r?r.default:r;t.AppContainer=function(e){return o.Children.only(e.children)},t.hot=function(){return function(e){return e}},t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){"use strict";n.r(t);n(1263),n(1265),n(1266),n(1267),n(1268),n(1269),n(1270),n(1271),n(1272),n(1273),n(1274),n(1275),n(1276),n(1277),n(1278),n(1279),n(1280),n(1281),n(1282),n(1283),n(1284),n(1285),n(1286),n(1287),n(495),n(1288),n(1289),n(1290),n(1291),n(1292),n(1293),n(1294),n(1295),n(1296),n(1297),n(1298),n(1299),n(1300),n(1302),n(1303),n(1304),n(1305),n(1306),n(1307),n(1308),n(1309),n(1310),n(1311),n(1312),n(1313),n(1315),n(1316),n(1317),n(1318),n(1319),n(1320),n(1321),n(1322),n(1323),n(1324),n(1325),n(1326),n(1327),n(1329),n(1330),n(1331),n(1332),n(1333),n(1334),n(1336),n(1338),n(1340),n(1341),n(1342),n(1343),n(1344),n(1345),n(1346),n(1347),n(1348),n(1349),n(1350),n(1351),n(1352),n(1353),n(1354),n(1355),n(1356),n(1357),n(1358),n(1359),n(1361),n(1362),n(1365),n(1366),n(1367),n(1369),n(1370),n(1371),n(1372),n(1373),n(1374),n(1375),n(1376),n(1377),n(1378),n(1379),n(1380),n(1381),n(1382),n(1383),n(1384),n(1385),n(1386),n(1387),n(801),n(1388),n(1389),n(1390),n(1391),n(1392),n(1393),n(1394),n(1395),n(1396),n(1397),n(1398),n(1399),n(1400),n(1401),n(1402),n(1403),n(1404),n(1405),n(1406),n(1407),n(1408),n(1409),n(1410),n(1411),n(1412),n(1413),n(1414),n(1415),n(1416),n(1417),n(1418),n(1419),n(1420),n(1421),n(1422),n(1423),n(1424),n(1425),n(1426),n(1427),n(1428),n(1429),n(1430),n(1431),n(1432),n(1433),n(1434),n(1436),n(1437),n(1438),n(1439),n(1440),n(1441),n(1442),n(1443),n(1444),n(1445),n(1446),n(1447),n(1448),n(1449),n(1450),n(1452),n(1453),n(1454),n(1455),n(1458),n(809),n(1459);var r=n(1),o=n.n(r),i=n(96),a=n(228),s=n.n(a),l=n(382),c=n.n(l),u=n(101),f=n.n(u),d=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};function p(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}var h=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props.history.location.pathname)},p(r,n)}return function(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,e),t.prototype.getChildContext=function(){return{router:d({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;c()(null==n||1===o.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?o.a.Children.only(e):null},t}(o.a.Component);h.propTypes={history:f.a.object.isRequired,children:f.a.node},h.contextTypes={router:f.a.object},h.childContextTypes={router:f.a.object.isRequired};var m=h,v=n(746),g=n(609),y=n(610),b=(n(1468),n(81)),_=n(39),w=n(34),E=n.n(w),x=n(3),k=n.n(x),S=n(9),T=n(7),C=n(10),O=n(8),j=n(15),A=n(11),N=n(1254),M=n(1255),I=n(82),L=n(381),P=n.n(L),D=n(1148),R=n.n(D),F=n(484),B=n(1150),U=n(1151),q=n.n(U),z=n(1152),H=n(75),W=n(1153),$=n(2),Y=n.n($),K=n(173),V=Y()({bigHeadMode:Object(K.a)("bigHeadMode")}),G=n(279),X=n(747),Z=n(314),Q=n(203),J=n(187),ee=n(190),te=n(772),ne=n(276),re=n(1253),oe=n(22),ie=n(393),ae=n(77),se=function(e){function t(e){var n,r,o,i;return Object(S.a)(this,t),(i=Object(C.a)(this,Object(O.a)(t).call(this,e))).state={previewType:"",failAttempt:!1,showPasswordDialog:!0},i.onSharePasswordSubmit=k()(n=i.onSharePasswordSubmit).call(n,Object(j.a)(i)),i.onEnrolled=k()(r=i.onEnrolled).call(r,Object(j.a)(i)),i.onUnenrolled=k()(o=i.onUnenrolled).call(o,Object(j.a)(i)),i}return Object(A.a)(t,e),Object(T.a)(t,[{key:"componentWillMount",value:function(){var e;H.a.isIe11&&document.documentElement.classList.add("ie11"),H.a.isSafari9&&document.documentElement.classList.add("safari9"),H.a.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),H.a.isSafari&&"iframe"===this.props.match.params.mode&&R.a.enable(),window.addEventListener("message",k()(e=this.handleMessages).call(e,this)),Object(oe.k)()}},{key:"componentDidMount",value:function(){this.startRedux()}},{key:"updateConnectionStatus",value:function(e){Object(_.a)(Object(ne.b)(e))}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.languageCode;!t.languageCode&&n&&(document.documentElement.lang=n)}},{key:"startRedux",value:function(){var e=this;this.unsubscribe=_.b.subscribe(function(){var t=_.b.getState(),n=t.course,r=t.courseLabels,o=t.courseProgress,i=t.search,a=t.sessionPreferences,s=t.status,l=s.courseLoaded,c=s.fontsLoaded,u=s.coverLoaded;l&&!u&&e.preloadCover(),l&&c&&e.setState({course:n,courseProgress:o,labels:r.labels,languageCode:r.iso639Code,lessons:n.lessons,search:i,sessionPreferences:a})});Object(_.a)([Object(Q.c)(),Object(J.b)()]),Object(ee.f)("enrolled",this.onEnrolled),Object(ee.f)("unenrolled",this.onUnenrolled)}},{key:"componentWillUnmount",value:function(){var e;this.unsubscribe(),window.removeEventListener("message",k()(e=this.handleMessages).call(e,this)),Object(ee.e)("enrolled",this.onEnrolled),Object(ee.e)("unenrolled",this.onUnenrolled)}},{key:"handleMessages",value:function(e){var t=e.data,n=t.type,r=t.data;"preview:update"===n&&this.setState({previewType:r})}},{key:"onSharePasswordSubmit",value:function(e){var t=this;return Object(b.o)(e.value).then(function(n){n.isValid?t.setState({showPasswordDialog:!1}):(e.value="",t.setState({failAttempt:!0}))}).catch(function(e){return console.error("Verify password error",e)})}},{key:"onEnrolled",value:function(){Object(_.a)(Object(G.d)())}},{key:"onUnenrolled",value:function(){Object(_.a)(Object(G.f)())}},{key:"renderAppLayout",value:function(){var e=this.state,t=e.course,n=e.courseProgress,r=e.labels,i=e.lessons,a=e.previewType,s=e.search,l=e.sessionPreferences,c=this.props.location;if(!t)return null;var u,f=t.color,d=t.bodyTypeface,p=t.headingTypeface,h=t.uiTypeface,m=c.pathname.split("/")[1],v={key:c.pathname.split("/")[1],course:t,courseProgress:n,labels:r,lessons:i,location:c,previewType:a,search:s,sessionPreferences:l};return o.a.createElement(P.a,{title:Object(ie.a)(t.title)},o.a.createElement("div",{id:"innerApp",className:V},(u={color:f,bodyTypeface:d,headingTypeface:p,uiTypeface:h},o.a.createElement("div",{dangerouslySetInnerHTML:{__html:q()(u)}})),o.a.createElement(z.a,{env:"runtime"},o.a.createElement(I.TransitionGroup,{component:"div",className:"transition-group"},o.a.createElement(Z.a,{key:m},o.a.createElement(B.a,{location:c},o.a.createElement(F.a,{exact:!0,path:"/",component:te.a,childProps:v}),o.a.createElement(F.a,{exact:!0,path:"/:mode",component:te.a,childProps:v}),o.a.createElement(F.a,{exact:!0,path:"/lessons/:id",component:X.a,childProps:v}),o.a.createElement(F.a,{path:"/lessons/:id/:mode",component:X.a,childProps:v})))))))}},{key:"coverImageSuccess",value:function(){Object(_.a)(Object(ne.d)(!0))}},{key:"preloadCover",value:function(){var e=this,t=_.b.getState().course.coverImage.media,n=(void 0===t?{}:t).image,r=void 0===n?{}:n,o=r.key,i=r.src;if(o||i){var a=o?Object(ae.c)({key:o,src:i}):i,s=E()(this.coverImageSuccess,5e3),l=new Image;l.src=a,l.onload=function(){clearTimeout(s),e.coverImageSuccess()}}else this.coverImageSuccess()}},{key:"render",value:function(){var e=this.state,t=e.failAttempt,n=e.showPasswordDialog,r=_.b.getState(),i=r.status,a=i.courseLoaded,s=i.fontsLoaded,l=i.coverLoaded,c=r.course.hasPassword,u=n&&Object(b.i)()&&(!!c||Object(b.h)()),f=this.onSharePasswordSubmit;return!(a&&s&&l)?o.a.createElement(W.a,{status:status}):u?o.a.createElement(re.a,{failAttempt:t,onSubmit:f}):this.renderAppLayout()}}]),t}(r.Component);Object(N.setConfig)({ignoreSFC:!0,pureRender:!0});var le=Object(M.hot)(se),ce=Object(y.a)();Object(b.j)(ce),Object(i.render)(o.a.createElement(g.a,{store:_.b},o.a.createElement(m,{history:ce},o.a.createElement(v.a,{path:"/",component:le}))),document.getElementById("app"))},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(101),a=n.n(i),s=n(228),l=n.n(s),c=n(382),u=n.n(c),f=n(587);var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,e.apply(this,arguments))}return function(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,e),t.prototype.componentWillMount=function(){u()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){l()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),l()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return o.a.Children.forEach(t,function(t){if(null==r&&o.a.isValidElement(t)){var a=t.props,s=a.path,l=a.exact,c=a.strict,u=a.sensitive,d=a.from,p=s||d;i=t,r=Object(f.a)(n.pathname,{path:p,exact:l,strict:c,sensitive:u},e.match)}}),r?o.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(o.a.Component);d.contextTypes={router:a.a.shape({route:a.a.object.isRequired}).isRequired},d.propTypes={children:a.a.node,location:a.a.object};var p=d;t.a=p},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(101),a=n.n(i),s=n(1217),l=n.n(s),c=n(586),u=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};var f=function(e){var t=function(t){var n=t.wrappedComponentRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return o.a.createElement(c.a,{children:function(t){return o.a.createElement(e,u({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:a.a.func},l()(t,e)};t.a=f}]);
//# sourceMappingURL=runtime.bundle.js.map