@clickview/curator 1.0.36-rc.0 → 1.0.37-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Yup","ReactBootstrap","Backbone","ReactRedux","Marionette","FontAwesome","DOMPurify","SortableHOC","ReactDOM","ReactTransitionGroup","Polyglot","Cropper","Handlebars"],t):"object"==typeof exports?exports["@clickview/curator"]=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):e["@clickview/curator"]=t(e.React,e._,e.Yup,e.ReactBootstrap,e.Backbone,e.ReactRedux,e.Marionette,e.FontAwesome,e.DOMPurify,e.SortableHOC,e.ReactDOM,e.ReactTransitionGroup,e.Polyglot,e.Cropper,e.Handlebars)}(window,(function(e,t,n,r,i,a,o,c,s,u,l,f,p,d,m){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=259)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return C}));var r=n(5),i=n(9),a=n(37),o=n(12);function c(e){return(c="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 s(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 u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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&&v(e,t)}function p(e){var t=y();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function h(e,t,n){return(h=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&v(i,n.prototype),i}).apply(null,arguments)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(m(Error)),S=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return u(n,[{key:"name",get:function(){return"SilentError"}}]),n}(g),E=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return u(n,[{key:"name",get:function(){return"CoreError"}}]),n}(m(Error)),O={},C={throw:function(e){if(r.Radio.channel(i.a.SHELL).trigger(o.a.ERROR,e),!(e instanceof S||a.a.isDevelopment))throw e},delayedThrow:function(e,t,n){O[e]||(O[e]=!0,window.setTimeout((function(){C.throw(t),delete O[e]}),n))}}},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o={isEmpty:function(e){return r.isEmpty(e)},values:function(e){return r.values(e)},keys:function(e){return r.keys(e)},deepClone:function(e){return(r.isArray(e)?r.map:r.mapObject)(e,(function(e){return r.isObject(e)||r.isArray(e)?o.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return r.isObject(e)},isEqual:function(e,t){return r.isEqual(e,t)},omit:function(e,t){return r.omit(e,t)},removeEmptyKeys:function(e){return Object.entries(e).filter((function(e){return null!==i(e,2)[1]})).reduce((function(e,t){var n=i(t,2),r=n[0],a=n[1];return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,a))}),{})}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(7);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={first:function(e){return r.first(e)},firstFew:function(e,t){return r.first(e,t)},last:function(e){return r.last(e)},lastFew:function(e,t){return r.last(e,t)},max:function(e,t){return r.max(e,t)},cloneAndReplaceAtIdx:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[].concat(o(i),o(Array(t+1-i.length).fill(r)))),i.splice(t,1,n),i},moveItem:function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:function(e){return e&&!e.length},findIndex:function(e,t){return r.findIndex(e,t)},findWhere:function(e,t){return r.findWhere(e,t)},where:function(e,t){return r.where(e,t)},groupBy:function(e,t){return r.groupBy(e,t)},flatten:function(e,t){return r.flatten(e,t)},intersection:function(){return r.intersection.apply(r,arguments)},addOrRemove:function(e,t){var n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable:function(e,t){var n=e.indexOf(t),r=i.a.deepClone(e);return-1===n?[].concat(o(r),[t]):[].concat(o(r.slice(0,n)),o(r.slice(n+1)))},sortBy:function(e,t){return r.sortBy(e,t)},chunk:function(e,t){return r.chunk(e,t)},uniq:function(e,t){return r.uniq(e,t)},toObject:function(e,t){return e.reduce((function(e,n){return Object.assign(e,i.a.isObject(n)?a({},n[t],n):a({},t,n))}),{})}}},function(e,t,n){"use strict";function r(e){return(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})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!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&&o(e,t)}(u,e);var t,n,r,s=c(u);function u(){return i(this,u),s.apply(this,arguments)}return t=u,(n=[{key:"name",get:function(){return"DevError"}}])&&a(t.prototype,n),r&&a(t,r),u}(n(4).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},function(e,t,n){"use strict";var r=n(174);n.d(t,"EntityType",(function(){return r.a})),n.d(t,"EventVersion",(function(){return r.b})),n.d(t,"InteractionType",(function(){return r.c})),n.d(t,"InteractionTypeDescriptor",(function(){return r.d})),n.d(t,"LocationContext",(function(){return r.e})),n.d(t,"SearchQueryType",(function(){return r.f})),n.d(t,"UserAction",(function(){return r.g}));n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5);function i(e,t,n,i){var a=e;return"string"==typeof e&&(a=r.Radio.channel(e)),i.call(this,a,t,n)}},function(e,t,n){"use strict";var r=n(48),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var r=n(1),i=n(5),a=n(24),o=n(9),c=n(12),s=/((\(\?)?:\w+)|(\*\w+)/,u=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){i.Radio.channel(o.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&i.Radio.channel(o.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return i.Radio.channel(o.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;i.Radio.channel(n).trigger(r,e,t)},m={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,a=e.params,s=i.Radio.channel(o.a.SHELL).request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,a);return!1===s?"":"/".concat(s)},buildRoute:function(e,t){if(!t)return e;var n=t.args,i=t.params;if(r.each(n,(function(t){e=e.replace(s,t||"")})),e=(e=(e=e.replace(l,"")).replace(u,"")).replace(f,""),!i)return e;var o=a.a.SerializeQueryParams(i);return o.length?"".concat(e,"?").concat(o):e},trigger:function(e,t){e&&(p.hasActiveRoute()?i.Radio.channel(o.a.SHELL).once("routing:end",(function(){d(e,t)})):d(e,t))},getCurrentAppLink:function(){return i.Radio.channel(o.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(191);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}));var i=n(199);n.d(t,"DomainOptionKind",(function(){return i.a})),n.d(t,"DomainOptionType",(function(){return i.b}))},function(e,t,n){e.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),i=n(14),a=n(4);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 c(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!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&&u(e,t)}(f,e);var t,n,r,o=l(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=o.call(this,e)).name||a.c.throw(new a.b("Your service must be named.")),t}return t=f,(n=[{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t,n){e.exports={tree:"_1abau",text:"f13wK",chevron:"_25eVA",disabled:"_1qyCo",parentOfSelected:"_1fgN6",selected:"cVZit",actions:"_2BGWp",node:"rJVbQ",collapsed:"vc2by"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(5),a=n(16),o=n(12),c=n(9),s={GetQuery:function(){return s.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=s.GetQuery(),n=s.SerializeQueryParams(r.extend(t,e));n&&(n="?".concat(n)),s.UpdateUrl("".concat(s.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=a.a.buildRoute(e,t);i.history.navigate(r,n),i.Radio.channel(c.a.SHELL).trigger(o.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){if(!e)return"";if("string"==typeof e)return e;var t=[],n=function(e,t){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))};return Object.keys(e).forEach((function(r){var i=e[r];null!=i&&(Array.isArray(i)?i.forEach((function(e){t.push(n(r,e))})):t.push(n(r,i)))})),t.join("&")},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],i=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(i),e):(e[r]=[e[r],i],e):(e[r]=i,e)}),{}):{}},StartHistory:function(){i.History.started&&i.history.stop(),i.history.start({pushState:!0})},PageLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.open(e,"_blank"):window.location.href=e},Redirect:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return t?window.location.replace(e):window.location.href=e};a.b.hasActiveRoute()?i.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(e)},GetCurrentPath:function(){return window.location.pathname},GetCurrentQueryString:function(){return window.location.search},GetCurrentUrl:function(){return window.location.href},GetCurrentReferrer:function(){return document.referrer},GetCurrentOrigin:function(){return window.location.origin},SetPageTitle:function(e){document.title=e}}},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){e.exports={container:"_3EWY_",bgBlue:"_1Ng_J",bgGreen:"_29fTV",bgPink:"_3lDZs",bgYellow:"_1T2-A",background:"_3Spjo",topLeft:"mkg7X",bottomLeft:"_1gjz-",topRight:"eywQO",bottomRight:"hoL8p",detailsBtn:"_2I02W",content:"_1rfSN"}},function(e,t,n){"use strict";n.r(t);var r=n(16);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b}));var i=n(44);n.d(t,"Application",(function(){return i.a}));var a=n(64);n.d(t,"AppRouter",(function(){return a.a}));var o=n(65);n.d(t,"Behavior",(function(){return o.a}));var c=n(36);n.d(t,"Collection",(function(){return c.a}));var s=n(56);n.d(t,"CollectionView",(function(){return s.a})),n.d(t,"ComponentCollection",(function(){return s.a}));var u=n(4);n.d(t,"Error",(function(){return u.a})),n.d(t,"ErrorHelper",(function(){return u.c})),n.d(t,"SilentError",(function(){return u.d}));var l=n(46);n.d(t,"LayoutView",(function(){return l.a}));var f=n(66);n.d(t,"NestedModel",(function(){return f.a}));var p=n(22);n.d(t,"Service",(function(){return p.a}));var d=n(30);n.d(t,"Model",(function(){return d.a}));var m=n(41);n.d(t,"View",(function(){return m.b})),n.d(t,"Component",(function(){return m.a}));var h=n(12);n.d(t,"EventNames",(function(){return h.a}));var y=n(67);n.d(t,"LayoutService",(function(){return y.a}));var v=n(45);n.d(t,"Middleware",(function(){return v.a}));var b=n(24);n.d(t,"LocationUtils",(function(){return b.a}));var g=n(68);n.d(t,"Shell",(function(){return g.a}));var S=n(69);for(var E in S)["AppLinkHelper","AppLinkUtility","Application","AppRouter","Behavior","Collection","CollectionView","ComponentCollection","Error","ErrorHelper","SilentError","LayoutView","NestedModel","Service","Model","View","Component","EventNames","LayoutService","Middleware","LocationUtils","Shell","default"].indexOf(E)<0&&function(e){n.d(t,e,(function(){return S[e]}))}(E)},function(e,t,n){"use strict";var r=n(11),i=n(27);function a(e){return(a="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 o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,a=void 0===n?"id":n,o=t.namespace,c=void 0===o?"":o;return e[a]||i.ErrorHelper.throw(new r.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(c,"__").concat(e[a])}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,i=void 0===r?"id":r,a=[];return e.forEach((function(e){e[i]&&a.push(o(e,n)),u(e,t,n)})),a}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,i=void 0===r?"id":r,u=Object.assign({},e);if(Object.keys(e).forEach((function(r){var l=e[r];if(l)if(Array.isArray(l)){var f=c(l,t,n);f.length&&(u[r]=f)}else if("object"===a(l)){var p=s(l,t,n);l[i]?u[r]=o(l,n):u[r]=p}})),e[i]){var l=o(e,n);return t[l]?t[l]=Object.assign(Object.assign({},t[l]),u):t[l]=u,l}return u}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?c(e,t,n):"object"===a(e)?s(e,t,n):e}function l(e,t){var n={};return{result:u(e,n,t),entities:n}}var f=n(7);function p(e){return(p="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 d(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=d(t[e],t,n);return Object.assign(n[e],r),f.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return d(e,t,n)}));if("object"===p(e)){var r={};return Object.keys(e).forEach((function(i){r[i]=d(e[i],t,n)||e[i]})),r}return e}}function m(e,t){return d(e,t,{})}n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return m}))},function(e,t,n){"use strict";(function(e){var r=n(48),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.a.process,c=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=c}).call(this,n(57)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),i=n(5),a=n(14);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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!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&&l(e,t)}(p,e);var t,n,i,o=f(p);function p(){return c(this,p),o.apply(this,arguments)}return t=p,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=r.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){u(d(p.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(d(p.prototype),"listenTo",this))}}])&&s(t.prototype,n),i&&s(t,i),p}(i.Model)},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return o}));function a(e){var t=+e;return isNaN(t)||!t?0:t}var o={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<o.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"},convertDurationToSeconds:function(e){var t,n,i,o=r(e.split(":"),3),c=o[0],s=o[1];return o[2]||(i=s,n=c,t="0"),60*a(t)*60+60*a(n)+a(i)}}},function(e,t,n){e.exports={draggableVideoItem:"_1JMCe",draggedVideoItem:"_3jjle"}},function(e,t,n){"use strict";var r=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var c,s,u,l=r(t),f=r(n);if(l&&f){if((s=t.length)!=n.length)return!1;for(c=s;0!=c--;)if(!e(t[c],n[c]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,d=n instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==n.getTime();var m=t instanceof RegExp,h=n instanceof RegExp;if(m!=h)return!1;if(m&&h)return t.toString()==n.toString();var y=i(t);if((s=y.length)!==i(n).length)return!1;for(c=s;0!=c--;)if(!a.call(n,y[c]))return!1;if(o&&t instanceof Element&&n instanceof Element)return t===n;for(c=s;0!=c--;)if(!("_owner"===(u=y[c])&&t.$$typeof||e(t[u],n[u])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t,n){e.exports=n(220)()},function(e,t){const n=/[&<>"']/,r=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=e=>o[e];const s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(s,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const l=/(^|[^\[])\^/g;const f=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},m=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=b(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(h,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(y,"$1")+t:e+t}function b(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const a=e.charAt(r-i-1);if(a!==t||n){if(a===t||!n)break;i++}else i++}return e.substr(0,r-i)}e.exports={escape:function(e,t){if(t){if(n.test(e))return e.replace(r,c)}else if(i.test(e))return e.replace(a,c);return e},unescape:u,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(l,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(u(n)).replace(f,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!p.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:v,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:b,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(5),i=n(14);function a(e){return(a="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!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&&u(e,t)}(f,e);var t,n,r,a=l(f);function f(){return o(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return i}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.variables={}}var t,n,i;return t=e,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}},{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}}])&&r(t.prototype,n),i&&r(t,i),e}().Instance},function(e,t){e.exports=c},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a={getMatchingKeyMap:function(e,t,n){var i=Array.isArray(t)?t:[t],a=[];return i.forEach((function(t){var n,i=new RegExp(t,"i"),o=Object.keys(e.resources).filter((function(e){return i.test(e)}));(n=a).push.apply(n,r(o))})),n&&(a=a.filter((function(e){return e!==n}))),a.reduce((function(e,t){return e[t]=!0,e}),{})}},o=n(47);var c={isSimulated:function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},simulateFetchData:function(e,t){var n=e.success,r=e.error,i=e.always,a=t;window.setTimeout((function(){a.noResponse||(a.successResponse?n(a.successResponse(),{status:o.a.Ok,getResponseHeader:function(){return""}}):a.errorResponse&&r(a.errorResponse()),i())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))}};n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}))},function(e,t){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:n,changeDefaults:function(t){e.exports.defaults=t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return T}));var r=n(1),i=n(5),a=n(17),o=n(14),c=n(11),s=n(9),u=n(37),l=n(4),f=n(16);function p(e){return(p="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 d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 v(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function g(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&&S(e,t)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){g(n,e);var t=E(n);function n(e){var i;h(this,n),i=t.call(this,e);var a=[].concat(d(i.defaultProps),d(i.props||[]));return i.mergeOptions(e,a),r.result(C(i),"name")||l.c.throw(new l.b("Error: View with cid:".concat(i.cid," requires a name."))),i}return v(n,[{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,i;u.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",i=this.name,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t)),this.$el.attr(e)}},{key:"ui",get:function(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage},set:function(e){this.uiStorage=e}},{key:"elements",get:function(){return null}},{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"resetClassName",value:function(){this.$el.attr("class",r.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=b(w(n.prototype),"serializeData",this).call(this),i=r.result(this,"viewOptions"),a=r.extend({},t,{options:i});return n.ViewDataExtensions.length?r.extend.apply(r,[a].concat(d(r.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):a}},{key:"viewOptions",value:function(){return this.options}},{key:"undelegateAppLinks",value:function(){this.$el&&this.$el.off(".appLinks".concat(this.cid))}},{key:"renderAppLinks",value:function(){var e=this,t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),r.each(r.keys(t),(function(n){var r=n,i=t[n],a=f.a.getHref(i);"[this]"===r&&(r=null);var o=r?e.$el.find(n):e.$el;(o.is("a")||o.is("button"))&&(a&&"/"!==a&&o.attr("href",a),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(i)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=r.some(this.regions,(function(e){return r.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){i.Radio.channel(s.a.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],b(w(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var e=this.processRequriedResources(!0);return e&&(e=this.triggerMethod("before:render",this)),!1!==e&&(e=!0),!1===(e=e&&this.processRequriedResources(!1))?(this._partialLoadingRendered||!this.hasPartialLoadingRegions()||(this._partialLoadingRendered=!0,this._reInitRegions(),this._renderTemplate(),this.renderPartialLoading()),this):((this._isRendered||this._partialLoadingRendered)&&this._reInitRegions(),this.setTitle(),this._renderTemplate(),this.bindUIElements(),this.renderAppLinks(),this._partialLoadingRendered=!1,this._isRendered=!0,this.triggerMethod("render",this),this)}},{key:"processRequriedResources",value:function(e){return!0}},{key:"setTitle",value:function(){}}],[{key:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(a.View);A.ViewDataExtensions=[];var j=function(e){g(n,e);var t=E(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return v(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var i=this,a=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var o=r.dataServiceName;t.resourceInstances[o]||(t.resourceInstances[o]=r.getInstance(t)),t.boundListeners["".concat(o,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[o].channelName,r.eventName,t.render),t.boundListeners["".concat(o,":").concat(r.eventName)]=!0),i[n]=r.getData(t.resourceInstances[o]),a=a&&!!i[n]}})),a}},{key:"setTitle",value:function(){r.isString(this.title)||!1===this.title||l.c.throw(new c.a("Must define a title for ".concat(this.name,"."))),i.Radio.channel(s.a.SHELL).trigger("set:page:title",this.title)}}]),n}(A),T=function(e){g(n,e);var t=E(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(A)},function(e,t,n){e.exports={iconButton:"_3t3VL",iconWithText:"_2KLHo",svg:"_3OUhC",iconOnly:"_2rQWb"}},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r.constructor=t,t.prototype=r,t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),i=n(5),a=n(17),o=n(12),c=n(14),s=n(4);function u(e){return(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})(e)}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(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 d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!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&&m(e,t)}(f,e);var t,n,a,u=h(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this,e)).mergeOptions(e,[].concat(l(t.defaultProps),l(t.props||[]))),r.result(v(t),"name")||s.c.throw(new s.b("BaseApplication must define a name")),r.result(v(t),"channelName")||s.c.throw(new s.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),o.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||s.c.throw(new s.b("Global channel ".concat(t," does not exist"))),i.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||s.c.throw(new s.b("Layout: ".concat(this.layoutOptions.name," does not exist or was not registered"))),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}},{key:"onShowPopup",value:function(e){this.layout.getRegion("popup")||s.c.throw(new s.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}},{key:"onShowAlert",value:function(e){var t=e.ctor,n=e.collection,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):s.c.throw(new s.b("Your application layout must define an alert region"))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}},{key:"getAndClearDefaultQueryParams",value:function(){var e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],d(b(f.prototype),"listenTo",this))}}])&&p(t.prototype,n),a&&p(t,a),f}(a.Application)},function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return i}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"use",value:function(e){var t;this.go=(t=this.go,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"go",value:function(e,t){t(e)}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(41),i=n(11),a=n(4);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 c(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,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!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&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){a.c.throw(new i.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),l}(r.b)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(84))},function(e,t,n){"use strict";(function(e){var r=n(15),i=n(201),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,c=o&&o.exports===a?r.a.Buffer:void 0,s=(c?c.isBuffer:void 0)||i.a;t.a=s}).call(this,n(57)(e))},function(e,t){e.exports=s},function(e,t){e.exports=u},function(e,t,n){const r=n(254),i=n(255),a=n(60),o=n(196),c=n(195),s=n(194),{merge:u,checkSanitizeDeprecation:l,escape:f}=n(35),{getDefaults:p,changeDefaults:d,defaults:m}=n(40);function h(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=u({},h.defaults,t||{}),l(t);const a=t.highlight;let o,c,s=0;try{o=r.lex(e,t)}catch(e){return n(e)}c=o.length;const f=function(e){if(e)return t.highlight=a,n(e);let r;try{r=i.parse(o,t)}catch(t){e=t}return t.highlight=a,e?n(e):n(null,r)};if(!a||a.length<3)return f();if(delete t.highlight,!c)return f();for(;s<o.length;s++)!function(e){"code"!==e.type?--c||f():a(e.text,e.lang,(function(t,n){return t?f(t):null==n||n===e.text?--c||f():(e.text=n,e.escaped=!0,void(--c||f()))}))}(o[s])}else try{return t=u({},h.defaults,t||{}),l(t),i.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||h.defaults).silent)return"<p>An error occurred:</p><pre>"+f(e.message+"",!0)+"</pre>";throw e}}h.options=h.setOptions=function(e){return u(h.defaults,e),d(h.defaults),h},h.getDefaults=p,h.defaults=m,h.Parser=i,h.parser=i.parse,h.Renderer=a,h.TextRenderer=o,h.Lexer=r,h.lexer=r.lex,h.InlineLexer=c,h.inlineLexer=c.output,h.Slugger=s,h.parse=h,e.exports=h},function(e,t,n){e.exports={tagList:"yvetE",disabled:"_3ZfKv"}},function(e,t){e.exports=l},function(e,t,n){e.exports={curatorLayout:"XayF7",topNavRegion:"_3ewaZ",leftNavRegion:"_2c2o6"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),i=n(17),a=n(14),o=n(4);function c(e){return(c="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 s(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!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&&l(e,t)}(p,e);var t,n,i,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),t=c.call(this,e),r.result(d(t),"name")||o.c.throw(new o.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=p,(n=[{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(m(p.prototype),"listenTo",this))}}])&&s(t.prototype,n),i&&s(t,i),p}(i.CollectionView)},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},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};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!0;var o={},c=void 0,s=void 0;for(c=0,s=n.length;c<s;c++)o[n[c]]=!0;for(c=0,s=i.length;c<s;c++){var u=i[c],l=e[u],f=t[u];if(l!==f){if(!o[u]||null===l||null===f||"object"!==(void 0===l?"undefined":r(l))||"object"!==(void 0===f?"undefined":r(f)))return!0;var p=Object.keys(l),d=Object.keys(f);if(p.length!==d.length)return!0;for(var m=0,h=p.length;m<h;m++){var y=p[m];if(l[y]!==f[y])return!0}}}return!1}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(190),i=n(43),a=(0,r.createTokenClass)();function o(e){var t=e?{v:e}:{};return(0,i.inherits)(a,(0,r.createTokenClass)(),t)}a.prototype={toString:function(){return this.v+""}};var c=o(),s=o("@"),u=o(":"),l=o("."),f=o(),p=o(),d=o("\n"),m=o(),h=o("+"),y=o("#"),v=o(),b=o("mailto:"),g=o("?"),S=o("/"),E=o("_"),O=o(),C=o(),w=o(),A=o("{"),j=o("["),T=o("<"),k=o("("),I=o("}"),L=o("]"),_=o(">"),P=o(")"),x=o("&");t.Base=a,t.DOMAIN=c,t.AT=s,t.COLON=u,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=d,t.NUM=m,t.PLUS=h,t.POUND=y,t.QUERY=g,t.PROTOCOL=v,t.MAILTO=b,t.SLASH=S,t.UNDERSCORE=E,t.SYM=O,t.TLD=C,t.WS=w,t.OPENBRACE=A,t.OPENBRACKET=j,t.OPENANGLEBRACKET=T,t.OPENPAREN=k,t.CLOSEBRACE=I,t.CLOSEBRACKET=L,t.CLOSEANGLEBRACKET=_,t.CLOSEPAREN=P,t.AMPERSAND=x},function(e,t,n){const{defaults:r}=n(40),{cleanUrl:i,escape:a}=n(35);e.exports=class{constructor(e){this.options=e||r}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+a(r,!0)+'">'+(n?e:a(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:a(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+a(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},function(e,t,n){"use strict";e.exports=n(216)},function(e,t,n){"use strict";var r=n(217),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?o:c[e.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=o;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var i=d(n);i&&i!==m&&e(t,i,r)}var o=l(n);f&&(o=o.concat(f(n)));for(var c=s(t),h=s(n),y=0;y<o.length;++y){var v=o[y];if(!(a[v]||r&&r[v]||h&&h[v]||c&&c[v])){var b=p(n,v);try{u(t,v,b)}catch(e){}}}}return t}},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(1),i=n(5),a=n(17),o=n(16),c=n(14),s=n(45),u=n(12),l=n(4),f=n(24),p=n(9);function d(e){return(d="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 m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(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 v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=/([A-Z])/g,C=/(^|:)(\w)/gi,w=function(e){!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&&b(e,t)}(h,e);var t,n,a,d=g(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=d.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=h,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(p.a.SHELL,u.a.ROUTE,(function(t){t.application!==e.channelName&&e.destroyApp()}))}},{key:"addRouteLookup",value:function(e,t){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(e),(function(r,i){return o.a.buildRoute(t,{application:n.channelName,action:e,args:r,params:i})}))}},{key:"processInternalRoutes",value:function(){var e=this;r.each(r.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],i=e.toEventName(n);e.addRouteLookup(i,t),e.listenTo(e.channelName,i,(function(n,i){i&&i.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var a=r.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=a,f.a.UpdateUrl(t,n,i)}))}))}))}},{key:"triggerNavLocked",value:function(e,t){e.trigger(u.a.NAV_IS_LOCKED,t),o.b.routingEnded()}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&r.each(r.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(t,n){n&&n.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks."));var r=i.Radio.channel(p.a.SHELL);e.options.shell.isNavLocked()?e.triggerNavLocked(r,t):f.a.PageLoad(o.a.getHref(t))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&r.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var a=this;this.validateAppLink(e);var c=this.toMethodName(e.action);o.b.routingStarted();var f=i.Radio.channel(p.a.SHELL);if(this.options.shell.isNavLocked())this.triggerNavLocked(f,e);else{var d=new s.a;r.each(this.filters,(function(e){return d.use(e)})),d.go({appLink:e,shell:this.options.shell},(function(){f.trigger(u.a.ROUTE,e,t),a.createApp();var i=a.controller;if(r.isFunction(i[c])||(o.b.routingEnded(),l.c.throw(new l.b("".concat(c," does not exist on the ").concat(r.result(i,"name"),".")))),!1===i.triggerMethod("before:action"))return i.triggerMethod("action:cancelled"),void o.b.routingEnded();i.triggerMethod("load:layout"),i[c].apply(i,[].concat(m(e.args||[]),[e.params||{}])),r.isFunction(n)&&n(),o.b.routingEnded()}))}}},{key:"createApp",value:function(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}},{key:"destroyApp",value:function(){this.controller&&(this.controller.destroy(),delete this.controller)}},{key:"_addAppRoute",value:function(e,t,n){var i=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var o={application:i.channelName,action:i.toEventName(n),args:t.slice(0,t.length-1),params:f.a.DeserializeQueryParams(t[t.length-1])};i.executeRoute(o,{isAppRoute:!0},(function(){f.a.UpdateQuery(r.extend(i.controller.getAndClearDefaultQueryParams(),o.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(O,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(C,(function(e,t,n){return n.toUpperCase()}));return t[0].toLowerCase()+t.slice(1,t.length)}},{key:"validateAppLink",value:function(e){e.application&&e.action||(o.b.routingEnded(),l.c.throw(new l.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],v(E(h.prototype),"listenTo",this))}}])&&y(t.prototype,n),a&&y(t,a),h}(a.AppRouter)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),i=n(14);function a(e){return(a="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!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&&u(e,t)}(f,e);var t,n,r,a=l(f);function f(){return o(this,f),a.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Behavior)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),i=n(30),a=n(36);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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!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&&l(e,t)}(h,e);var t,n,p,m=f(h);function h(){return c(this,h),m.apply(this,arguments)}return t=h,(n=[{key:"set",value:function(e,t,n){var i,a;if(null===e)return this;for(i in"object"===o(e)?(a=e,n=t):(a={})[e]=t,n||(n={}),a)r.has(this.associations,i)&&(a[i]=this.setAssociation(i,a[i],n));return u(d(h.prototype),"set",this).call(this,a,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return u(d(h.prototype),"get",this).call(this,e);var n=e.substr(0,t),i=this.attributes[n];if(!i||!r.isFunction(i.get))return u(d(h.prototype),"get",this).call(this,e);var a=e.substr(t+1);return i.get(a)}},{key:"setAssociation",value:function(e,t,n){var o=this.associations[e],c=this.attributes[e];if(!r.isFunction(o))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof i.a&&c.set(t,n),c instanceof a.a&&c.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),c;var s=t instanceof i.a?t:new o(t,{parse:!0});return s.parent=this,this[e]=s,s}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=u(d(h.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(i,t)&&r.isFunction(i[t].toJSON)?i[t]=i[t].toJSON():i[t]=(new e).toJSON()})),i}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.omit(u(d(h.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&s(t.prototype,n),p&&s(t,p),h}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),i=n(17),a=n(14),o=n(4);function c(e){return(c="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 s(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!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&&l(e,t)}(p,e);var t,n,i,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=p,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}},{key:"getLayout",value:function(e){var t=e.name,n=e.options,r=void 0===n?{}:n;this.layouts[t]||o.c.throw(new o.b("".concat(t," was not registered as a template.")));var i=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===i&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=i,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){r.each(this.requiredRegions,(function(t){r.has(r.result(e.prototype,"regions"),t)||o.c.throw(new o.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(d(p.prototype),"listenTo",this))}}])&&s(t.prototype,n),i&&s(t,i),p}(i.Object)},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(1),i=n(5),a=n(17),o=n(16),c=n(14),s=n(9),u=n(4),l=n(12),f=n(24);function p(e){return(p="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 d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var E=function(){function e(t,n){b(this,e),this.application=t,this.options=n||{}}return S(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),O=function(e){!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&&m(e,t)}(n,e);var t=h(n);function n(){return b(this,n),t.apply(this,arguments)}return S(n,[{key:"initialize",value:function(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}},{key:"bindListeners",value:function(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}},{key:"bindNavLockListeners",value:function(){var e=this;this.listenTo(s.a.SHELL,l.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(s.a.SHELL,l.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(s.a.SHELL,l.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(s.a.SHELL,l.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(s.a.SHELL,l.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=i.Radio.channel(s.a.SHELL);t.reply(l.a.HAS_ACTIVE_ROUTE,r.bind(this.hasActiveRoute,this)),t.reply(l.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){o.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=i.Radio.channel(s.a.SHELL);this.listenTo(e,l.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;i.Radio.channel(s.a.SHELL).reply(l.a.ROUTE_LOOKUP,(function(t,n,r){return!!e.routeLookup[t]&&e.routeLookup[t](n,r)}),this)}},{key:"addRouteLookup",value:function(e,t){this.routeLookup[e]=t}},{key:"registerApplication",value:function(e,t){return this.applications.push(new E(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return s.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(){t.runStartUpSteps(t,e,(function(){d(v(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;r.each(this.applications,(function(t){var n={appConstructor:t.Application,shell:e,appOptions:Object.assign({region:"",shell:e,layoutService:e.layoutService},t.Options)};new t.Application.router(n)})),this.bindListeners(),f.a.StartHistory()}},{key:"addInitializationStep",value:function(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,function(n,r){return t(n,(function(){return e(n,r)}))}),this}},{key:"runInitializationSteps",value:function(e,t){t(e)}},{key:"addStartUpStep",value:function(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,function(n,r,i){return t(n,r,(function(){return e(n,r,i)}))}),this}},{key:"runStartUpSteps",value:function(e,t,n){n(e,t)}},{key:"registerLayout",value:function(e,t){return this.layoutService.registerLayout(e,t),this}},{key:"registerErrorHandler",value:function(e,t){return e||u.c.throw(new u.b("An error must have a name in order to register a handler for it.")),r.any(this.errorHandlers,(function(t){return t.errorType===e}))&&u.c.throw(new u.b("An error handler for ".concat(e.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:e,handler:t}),this}},{key:"handleError",value:function(e){var t=r.find(this.errorHandlers,(function(t){return e instanceof t.errorType}));t&&t.handler&&t.handler(e)}},{key:"registerStore",value:function(e){this.store=e}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],d(v(n.prototype),"listenTo",this))}}]),n}(a.Application)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(18);n.d(t,"Actions",(function(){return r.a}));var i=n(19);n.d(t,"RequestStatus",(function(){return i.a}));var a=n(71);for(var o in a)["Actions","RequestStatus","default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var c=n(197);n.d(t,"ajaxRequest",(function(){return c.a}));var s=n(28);n.d(t,"normalize",(function(){return s.b})),n.d(t,"denormalize",(function(){return s.a}));var u=n(198);n.d(t,"emptyResponse",(function(){return u.a})),n.d(t,"getResponse",(function(){return u.d})),n.d(t,"getFetch",(function(){return u.c})),n.d(t,"fetch",(function(){return u.b})),n.d(t,"hooklessFetch",(function(){return u.e})),n.d(t,"useGetFetch",(function(){return u.g})),n.d(t,"useGetResponse",(function(){return u.h})),n.d(t,"useBasicFetch",(function(){return u.f}));var l=n(81);n.d(t,"createMiddleware",(function(){return l.a}));var f=n(82);n.d(t,"FlightReducer",(function(){return f.a}));var p=n(83);n.d(t,"Simulator",(function(){return p.a}))},function(e,t,n){"use strict";n.r(t);var r=n(72);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var a=n(73);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);var o=n(74);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var c=n(75);for(var i in c)"default"!==i&&function(e){n.d(t,e,(function(){return c[e]}))}(i);var s=n(76);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);var u=n(77);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);var l=n(78);for(var i in l)"default"!==i&&function(e){n.d(t,e,(function(){return l[e]}))}(i);var f=n(79);for(var i in f)"default"!==i&&function(e){n.d(t,e,(function(){return f[e]}))}(i);var p=n(80);for(var i in p)"default"!==i&&function(e){n.d(t,e,(function(){return p[e]}))}(i)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(31),i=n(8),a=n(19),o=n(18),c=n(28),s=n(39),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function l(e){var t=e.fetchData,n=e.bootstrappedData,l=e.defaultExpiryTime,f=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:l});return function(e){return function(i){return function(l){if(l.type===o.a.API_REQUEST){var p=e.getState(),d=Object.assign({},f,l.request),m=d.success,h=d.error,y=d.always,v=d.formatData,b=u(d,["success","error","always","formatData"]),g=p.flightData.resources[b.key];if(i(l),!g||g.status!==a.a.Fetching){if(b.bootstrapName&&n&&n[l.request.bootstrapName])return E(n[l.request.bootstrapName]),O(),void delete n[l.request.bootstrapName];var S={resource:b.url,type:b.type,data:b.data,success:E,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:l.request,timestamp:r.a.currentTimestamp(),xhr:t}),b.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:b.invalidationKeys,request:b});h&&h(t)},always:O};return void(s.a.isSimulated(b)?s.a.simulateFetchData(S,b):t(S))}}else i(l);function E(t,n){var i=v(t),a={result:i,entities:{}};(b.normalize&&(a=Object(c.b)(i,b.normalizeOptions)),e.dispatch({type:o.a.API_REPONSE,result:a.result,entities:a.entities,request:b,timestamp:r.a.currentTimestamp(),xhr:n}),b.updateState)&&(Array.isArray(b.updateState)?b.updateState:[b.updateState]).forEach((function(t){var n,r,i,a;n=t,r=s.b.getMatchingKeyMap(p.flightData,n.keys),i=Object.assign({},Object.keys(p.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=p.flightData.resources[t],r=n.response;return n.request.normalize&&(r=Object(c.a)(n.response,p.flightData.entities)),e[t]=r,e}),{})),a=n.updateData(i),Object.keys(a).forEach((function(t){var n=p.flightData.resources[t],r=a[t],i={result:r,entities:{}};n.request.normalize&&(i=Object(c.b)(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:i.result,entities:i.entities,request:n.request})}))}));if(b.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:b.invalidationKeys,request:b}),m){var u=a.result;b.normalize&&(u=Object(c.a)(a.result,Object.assign(Object.assign({},p.flightData.entities),a.entities))),m(u)}}function O(){y&&y()}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(18),i=n(19),a=n(39);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function s(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,{request:t.request,status:i.a.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function u(e,t){var n,r=t.entities?Object.keys(t.entities):[];return{entities:c(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,{request:t.request,status:i.a.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}))}}function l(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,{request:t.request,status:i.a.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function f(e,t){var n,r=a.b.getMatchingKeyMap(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return r[e]})).reduce((function(t,n){var r=e.resources[n];return t[n]=Object.assign({},r,{status:i.a.None}),t}),{}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:c(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var d={resources:{},entities:{}};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a.API_REQUEST:return s(e,t);case r.a.API_REPONSE:return u(e,t);case r.a.API_ERROR:return l(e,t);case r.a.INVALIDATE:return f(e,t);case r.a.UPDATE:return p(e,t)}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10);var i="id";function a(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function o(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var c={getAll:function(e,t){var n=o(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return c.create(e,t)})),o(e)):[]},get:function(e,t){var n=c.getAll(e);return n.length?n.find((function(e){return e[i]===t})):null},create:function(e,t){var n,r,o,s=c.getAll(e),u=Object.assign(Object.assign({},t),(n={},r=i,o=t[i]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString(),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));return s.push(u),a(e,s),u},update:function(e,t){var n=c.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[i]===t[i]}));return n[r]=t,a(e,n),t},delete:function(e,t){var n=c.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[i]===e}));n.splice(t,1)})),a(e,n))},assoc:function(e,t,n,i,o){var s=Array.isArray(o),u=s?o:[o];"string"==typeof r.a.first(u)&&(u=c.getAll(i).filter((function(e){return u.includes(e.id)})));var l=u.map((function(e){return e.id?e:c.create(i,e)})),f=c.getAll(e);if(f.length){var p=f.find((function(e){return e.id===t}));if(p)return l.forEach((function(e){if(p[n])if(Array.isArray(p[n])){if(p[n].find((function(t){return t.id===e.id})))return;p[n].push(e)}else p[n]=e;else p[n]=s?[e]:e})),a(e,f=f.map((function(e){return e.id!==p.id?e:p}))),s?l:r.a.first(l)}},dissoc:function(e,t,n,r){var i=c.getAll(e);if(i.length){var o=i.find((function(e){return e.id===t}));if(o){var s=o[n];if(s)return Array.isArray(r)||(r=[r]),Array.isArray(s)||(s=[s]),r.forEach((function(e){var t=s.findIndex((function(t){return t.id===e}));s.splice(t,1)})),o[n]=s,a(e,i=i.map((function(e){return e.id!==o.id?e:o}))),i}}}}},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){e.exports={prefix:"cv",iconName:"add-to-playlist",icon:["24","24",[],"","M20.1 16.4h1.8a.6.6 0 1 1 0 1.2h-1.8v1.8a.6.6 0 1 1-1.2 0v-1.8h-1.8a.6.6 0 1 1 0-1.2h1.8v-1.8a.6.6 0 0 1 1.2 0v1.8zM10.5 9a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm5.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V12a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16zm-8-2.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close",icon:["24","24",[],"","M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"]}},function(e,t){e.exports={prefix:"cv",iconName:"delete",icon:["24","24",[],"","M14.5 7h4a.5.5 0 1 1 0 1h-1.14a1 1 0 0 1-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1.013 1.013 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7zm-1 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5h3zm-4 3a.463.463 0 0 0-.462.499L9.462 16a.54.54 0 0 0 .574.498.463.463 0 0 0 .426-.498l-.424-5.502A.54.54 0 0 0 9.5 10zm2.5 0a.5.5 0 0 0-.5.5V16a.5.5 0 1 0 1 0v-5.5a.5.5 0 0 0-.5-.5zm2.5 0a.54.54 0 0 0-.538.499L13.538 16a.463.463 0 0 0 .462.5.54.54 0 0 0 .538-.499l.424-5.502A.463.463 0 0 0 14.5 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit",icon:["24","24",[],"","M7.636 17.834l8.746-8.745-1.414-1.414-8.8 8.8 1.468 1.36zm-2.42.973c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zm2.614-1.906l.707.707a1.5 1.5 0 0 1 0 2.121L7.45 19.435c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L16.167 5.06a1.5 1.5 0 0 1 2.122 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"expand",icon:["24","24",[],"","M14.06 21.28l-.353.354-.707-.707.354-.354 7.22-7.22.353-.353.707.707-.354.354-7.22 7.22zm4 .465l-.353.353-.707-.707.354-.353 3.684-3.684.353-.354.707.707-.353.354-3.684 3.684z"]}},function(e,t){e.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"","m7 11h10c0.554 0 1 0.446 1 1s-0.446 1-1 1h-10c-0.554 0-1-0.446-1-1s0.446-1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"more",icon:["24","24",[],"","M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"new-window",icon:["24","24",[],"","M17.395 5.526h-3.244a.763.763 0 0 1 0-1.526h5.086a.76.76 0 0 1 .763.763v5.086a.763.763 0 0 1-1.526 0V6.605l-5.172 5.172a.763.763 0 1 1-1.079-1.08l5.172-5.171zM8.5 5.5a.75.75 0 0 1 0 1.5H6.75a.25.25 0 0 0-.25.25v10c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V15.5a.75.75 0 1 1 1.5 0v1.75A1.75 1.75 0 0 1 16.75 19h-10A1.75 1.75 0 0 1 5 17.25v-10c0-.966.784-1.75 1.75-1.75H8.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"plus",icon:["24","24",[],"","M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2H11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"preview",icon:["24","24",[],"","M17.278 17.333a3.056 3.056 0 1 0 0-6.11 3.056 3.056 0 0 0 0 6.11zm3.53-.637c.03.022.06.048.087.076l1.729 1.728a.794.794 0 1 1-1.124 1.124l-1.728-1.729a.801.801 0 0 1-.076-.088 4.278 4.278 0 1 1 1.112-1.112zM7.713 9C7.32 9 7 8.776 7 8.5s.32-.5.714-.5h8.572c.394 0 .714.224.714.5s-.32.5-.714.5H7.714zm-.357 3.5C7.16 12.5 7 12.276 7 12s.16-.5.357-.5h4.286c.197 0 .357.224.357.5s-.16.5-.357.5H7.357zM7.5 16a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm8.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V9a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"search",icon:["24","24",[],"","M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share",icon:["24","24",[],"","M15.091 15.463a2.187 2.187 0 1 1-.392.782L8.91 13.35a2.187 2.187 0 1 1-.1-2.82l5.88-2.812a2.187 2.187 0 1 1 .378.79l-5.811 2.778a2.184 2.184 0 0 1 .045 1.281l5.79 2.896z"]}},function(e,t){e.exports={prefix:"cv",iconName:"upload",icon:["24","24",[],"","M5.5 18.5h13v-2.75a.75.75 0 1 1 1.5 0V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.25a.75.75 0 1 1 1.5 0v2.75zm7.249-11.796v8.57c0 .401-.35.726-.781.726-.432 0-.781-.325-.781-.725V6.704L7.89 9.658a.869.869 0 0 1-1.145 0 .692.692 0 0 1-.009-1.05l4.66-4.174a.869.869 0 0 1 1.144 0l4.66 4.174a.69.69 0 0 1 0 1.042.871.871 0 0 1-1.155.008L12.75 6.704z"]}},function(e,t){e.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"no-edit",icon:["24","24",[],"","M11.321 14.15l.707.707-4.578 4.578c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L9.2 12.028l.707.707-3.739 3.74 1.468 1.36 3.685-3.685zm2.828-2.829l2.233-2.232-1.414-1.414-2.233 2.232-.707-.707 4.14-4.14a1.5 1.5 0 0 1 2.12 0l.708.708a1.5 1.5 0 0 1 0 2.121l-4.14 4.14-.707-.708zm-8.933 7.486c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zM4.646 5.355a.5.5 0 0 1 .708-.708L19.496 18.79a.5.5 0 1 1-.707.707L4.646 5.354z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit-clickview",icon:["20","20",[],"","M17.6404852,5.71727477 L18.2297408,6.30653042 C18.7178962,6.79468579 18.7178962,7.58614201 18.2297408,8.07429738 L8.60812289,17.6959153 C6.71135346,18.0295451 5.75309028,18.1864816 5.73333333,18.1667246 C5.71357639,18.1469677 5.88616537,17.2043571 6.25110029,15.3388927 L15.8727182,5.71727477 C16.3608736,5.22911941 17.1523298,5.22911941 17.6404852,5.71727477 Z M8.7636789,16.361848 L16.05144,9.07408693 L14.8729287,7.89557563 L7.54002172,15.2284826 L8.7636789,16.361848 Z M6.74626541,17.1725049 C7.12145752,17.1092038 7.58975231,17.0283895 8.15085565,16.9301078 L6.99799308,15.862313 C6.89682248,16.3819093 6.8128974,16.8187273 6.74626541,17.1725049 Z M15.4621843,7.30631998 L16.6406956,8.48483128 L17.6404852,7.48504173 C17.8032036,7.32232327 17.8032036,7.05850453 17.6404852,6.89578608 L17.0512295,6.30653042 C16.8885111,6.14381197 16.6246923,6.14381197 16.4619739,6.30653042 L15.4621843,7.30631998 Z M6.33566019,14.9908489 C6.2812423,14.9851574 6.22594201,14.9756491 6.16991424,14.9622805 C5.78045547,14.8577915 5.5109401,14.5829916 5.41684139,14.197065 L5.16924027,13.2272939 L4.21481414,13.4992408 C3.82064978,13.614606 3.44283804,13.5120571 3.186267,13.236167 C2.88681965,12.9560388 2.78427075,12.578227 2.89864522,12.187493 L3.17158282,11.2296365 L2.20423564,10.9826478 C1.82188543,10.8870603 1.55144636,10.6218219 1.4331146,10.2152085 C1.34005988,9.82437875 1.44481708,9.45772856 1.72601896,9.19546209 L2.43808286,8.49887783 L1.73450689,7.81040417 C1.44481706,7.54002697 1.34005989,7.17337687 1.439649,6.75790801 C1.55144635,6.37593371 1.82188539,6.11069542 2.20181175,6.01572028 L3.17158282,5.76811916 L2.89963593,4.81369299 C2.78427075,4.41952863 2.88681965,4.04171689 3.16270985,3.78514587 C3.442838,3.48569854 3.82064974,3.38314964 4.2113838,3.49752411 L5.16924027,3.77046171 L5.41554008,2.80590417 C5.51183431,2.41109782 5.78619407,2.13673807 6.15902913,2.0463353 C6.55319349,1.93097012 6.93100525,2.03351902 7.20467421,2.32619001 L7.89999894,3.04211696 L8.594506,2.32703389 C8.87243071,2.03952554 9.24209506,1.93918808 9.61899753,2.04044384 C10.0138038,2.13673809 10.2881636,2.41109789 10.3831565,2.80069064 L10.6307576,3.77046171 L11.5851838,3.49851482 C11.9793481,3.38314964 12.3571599,3.48569854 12.6137309,3.76158875 C12.9131782,4.04171689 13.0157271,4.41952857 12.9013527,4.8102627 L12.6284151,5.76811916 L13.5957624,6.01510789 C13.9781125,6.11069542 14.2485515,6.37593369 14.3668833,6.78254721 C14.3761095,6.82129727 14.3833912,6.85980963 14.3887491,6.89800613 L12.4311686,8.86525019 C12.2885501,8.50246788 12.3664513,8.07377489 12.6626209,7.7840438 L13.3831727,7.07934901 C13.4057811,7.05824779 13.4051218,7.06055538 13.4006115,7.03880681 C13.3874896,6.9939735 13.3872742,6.99376225 13.3508029,6.98463799 L12.3810318,6.73703687 L12.3543769,6.72983797 C11.8232342,6.57849086 11.5153491,6.0252236 11.6666962,5.49408097 L11.9406245,4.53279433 C11.9501787,4.50015106 11.9538346,4.51362027 11.9070166,4.46830299 C11.8852565,4.44504217 11.8987257,4.44869811 11.8626522,4.45924293 L10.9047957,4.73218053 L10.8781408,4.73937942 C10.3430223,4.87600541 9.79846586,4.55296343 9.66183987,4.01784495 L9.41293742,3.04286026 C9.40513226,3.0108591 9.4140425,3.01976934 9.37095513,3.00912543 C9.33213613,2.99871057 9.33745796,2.99726608 9.31267674,3.02289983 L8.61735201,3.73882678 L8.59670876,3.75947002 C8.2005256,4.14425223 7.56742808,4.13500994 7.18264587,3.73882678 L6.48086195,3.01612347 C6.45910183,2.99286265 6.4725711,2.9965186 6.4179566,3.01196417 C6.38595535,3.01976935 6.39486559,3.01085911 6.3857591,3.04807388 L6.13815798,4.01784495 L6.13095909,4.04449986 C5.97961199,4.5756425 5.42634475,4.88352762 4.89520211,4.73218053 L3.93391535,4.45825223 C3.90127212,4.44869811 3.91474139,4.44504217 3.86942412,4.49186014 C3.84616328,4.51362028 3.84981922,4.50015102 3.86036404,4.53622453 L4.13330164,5.494081 L4.14050053,5.52073591 C4.27712653,6.05585439 3.95408454,6.60041087 3.41896607,6.73703687 L2.44677117,6.98525039 C2.41272371,6.99376225 2.41250834,6.99397349 2.40592081,7.01416766 C2.3948761,7.06055542 2.39421677,7.05824776 2.42531312,7.08745955 L3.13737702,7.78404381 L3.15291688,7.79958367 C3.53912638,8.1943756 3.53216895,8.82750235 3.13737702,9.21371185 L2.41682511,9.91840678 C2.39421677,9.93950789 2.3948761,9.93720022 2.3993864,9.95894886 C2.41250834,10.0037822 2.41272371,10.0039934 2.44919499,10.0131176 L3.41896606,10.2607188 L3.44562098,10.2679177 C3.97676362,10.4192648 4.28464874,10.972532 4.13330164,11.5036746 L3.85937334,12.4649614 C3.84981922,12.4976046 3.84616328,12.4841354 3.89298124,12.5294526 C3.91474137,12.5527135 3.90127209,12.5490575 3.93734565,12.5385127 L4.89520212,12.2655751 L4.92185702,12.2583762 C5.4569755,12.1217502 6.00153199,12.4447922 6.13815798,12.9799107 L6.38706042,13.9548953 C6.3957598,13.9905628 6.39169395,13.9864172 6.41528883,13.9929559 C6.46167656,14.0040006 6.45936885,14.00466 6.48858067,13.9735636 L7.18516493,13.2614997 L7.20070477,13.2459599 C7.4952939,12.9577749 7.92258715,12.888504 8.28097421,13.0359319 L6.33566019,14.9908489 Z M6.70489207,8.77616163 L9.31429327,6.16676041 C9.44212761,6.03892605 9.65593967,6.03389908 9.78471434,6.16267377 L10.2815938,6.65955323 C10.4116803,6.78963968 10.4085388,6.9989426 10.2775071,7.12997428 L6.95925927,10.4482222 C6.89767261,10.5098088 6.81613041,10.5428917 6.73375541,10.5462414 C6.63512454,10.5601257 6.53103126,10.5287286 6.45266973,10.450367 L4.80169873,8.79939603 C4.67185163,8.66954896 4.66967053,8.4612063 4.79975698,8.33111983 L5.29663643,7.83424043 C5.42541113,7.7054657 5.63211299,7.70338256 5.76491261,7.83618216 L6.70489207,8.77616163 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share2",icon:["24","24",[],"","M19.4216766,5.00521391 C19.613919,4.98125611 19.7682745,5.03986249 19.8847432,5.18103303 C20.0012119,5.32220356 20.0294106,5.48346256 19.9693393,5.66481001 L19.9693393,5.66481001 L14.1956074,19.738196 C14.0955154,19.912732 13.9481454,20 13.7534974,20 C13.5588494,20 13.4140159,19.912732 13.3189969,19.738196 L13.3189969,19.738196 L9.93477602,13.4796112 L4.20437042,9.12353139 C4.02183531,8.9778479 3.96157474,8.8005141 4.02358872,8.59152998 C4.0856027,8.38254586 4.23262042,8.26120315 4.46464188,8.22750185 L4.46464188,8.22750185 Z M18.2074971,7.35312765 L10.9727276,13.3209485 L13.6956405,18.351754 L18.2074971,7.35312765 Z M17.8703206,6.3505542 L5.65837825,8.98552539 L10.3489793,12.5526101 L17.8703206,6.3505542 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"download",icon:["24","24",[],"","m 19.25,18.390866 c 0.414214,0 0.75,0.335786 0.75,0.75 0,0.414214 -0.335786,0.75 -0.75,0.75 H 4.75 c -0.4142136,0 -0.75,-0.335786 -0.75,-0.75 0,-0.414214 0.3357864,-0.75 0.75,-0.75 z M 11.967786,4.109134 c 0.431472,0 0.78125,0.3247934 0.78125,0.7254464 v 0 8.5705586 l 3.296279,-2.953518 c 0.320704,-0.287356 0.824669,-0.287356 1.153964,0.0077 v 0 l 0.02636,0.0248 c 0.291184,0.287648 0.279382,0.742914 -0.02636,1.016865 v 0 l -4.658806,4.174364 c -0.320705,0.287356 -0.824669,0.287356 -1.145374,0 v 0 L 6.7362933,11.500985 c -0.009,-0.0081 -0.01779,-0.01633 -0.026362,-0.0248 -0.291184,-0.287649 -0.2793815,-0.742915 0.034952,-1.024563 0.3207045,-0.287356 0.8246688,-0.287356 1.1453733,0 v 0 L 11.186536,13.40514 V 4.8345804 c 0,-0.400653 0.349778,-0.7254464 0.78125,-0.7254464 z"]}},function(e,t){e.exports={prefix:"cv",iconName:"print",icon:["24","24",[],"","m14.875 4c1.2923 0 2.3438 1.0514 2.3438 2.3438v1.6875h0.4375c1.2923 0 2.3438 1.0514 2.3438 2.3438v3.75c0 1.2923-1.0514 2.3438-2.3438 2.3438h-0.4375v2.125c0 0.77541-0.63084 1.4062-1.4062 1.4062h-7.625c-0.77541 0-1.4062-0.63084-1.4062-1.4062v-2.125h-0.4375c-1.2923 0-2.3438-1.0514-2.3438-2.3438v-3.75c0-1.2923 1.0514-2.3438 2.3438-2.3438h0.4375v-1.6875c0-1.2923 1.0514-2.3438 2.3438-2.3438zm1.4062 9.9688h-8.5625v4.625c0 0.25847 0.21028 0.46875 0.46875 0.46875h7.625c0.25847 0 0.46875-0.21028 0.46875-0.46875zm-2.0691 3.3646c0.25103 0 0.45455 0.14924 0.45455 0.33333s-0.20352 0.33333-0.45455 0.33333h-2.4242c-0.25103 0-0.45455-0.14924-0.45455-0.33333s0.20352-0.33333 0.45455-0.33333zm0-2c0.25103 0 0.45455 0.14924 0.45455 0.33333s-0.20352 0.33333-0.45455 0.33333h-2.4242c-0.25103 0-0.45455-0.14924-0.45455-0.33333s0.20352-0.33333 0.45455-0.33333zm3.4441-6.3646h-11.312c-0.77541 0-1.4062 0.63084-1.4062 1.4062v3.75c0 0.77541 0.63084 1.4062 1.4062 1.4062h0.4375v-1.5625h-0.28125c-0.25888 0-0.46875-0.20988-0.46875-0.46875s0.20988-0.46875 0.46875-0.46875h11c0.25888 0 0.46875 0.20988 0.46875 0.46875s-0.20988 0.46875-0.46875 0.46875h-0.28125v1.5625h0.4375c0.77541 0 1.4062-0.63084 1.4062-1.4062v-3.75c0-0.77541-0.63084-1.4062-1.4062-1.4062zm-10.169 1.0312c0.28321 0 0.51282 0.14924 0.51282 0.33333s-0.22961 0.33333-0.51282 0.33333h-1.641c-0.28321 0-0.51282-0.14924-0.51282-0.33333s0.22961-0.33333 0.51282-0.33333zm7.3878-5.0625h-5.75c-0.77541 0-1.4062 0.63084-1.4062 1.4062v1.6875h8.5625v-1.6875c0-0.77541-0.63084-1.4062-1.4062-1.4062z"]}},function(e,t){e.exports={prefix:"cv",iconName:"create-interactive",icon:["24","24",[],"","m10.928 4c0.68406 0 1.2406 0.54944 1.2406 1.2248v2.8958c0 0.67534-0.55653 1.2248-1.2406 1.2248h-0.11278v0.41725c0.12769-0.0395 0.26351-0.060813 0.40418-0.060813 0.44694 0 0.84403 0.21494 1.0907 0.54566 0.19707-0.11066 0.42485-0.17391 0.66728-0.17391 0.46945 0 0.88386 0.2371 1.1268 0.59644 0.18856-0.09853 0.40336-0.15434 0.63117-0.15434 0.74648 0 1.3539 0.59956 1.3539 1.3365l-5.06e-4 3.1673c-2.22e-4 1.6997-0.50031 3.3489-1.4461 4.7693-0.08781 0.13184-0.23689 0.21125-0.39674 0.21125h-5.3403c-0.12142 0-0.23822-0.04591-0.32641-0.12831-0.00548-0.0051-0.020094-0.01889-0.042597-0.04091l-0.08995-0.09032c-0.42608-0.4377-1.7321-1.9095-2.0353-3.7832l-0.62395-2.6363c-0.087014-0.36766-0.010315-0.73613 0.21049-1.0109 0.21021-0.26159 0.53383-0.41697 0.89443-0.43125 0.33537-0.06376 0.67738-0.0015 0.96903 0.17738 0.090528 0.0555 0.17299 0.12028 0.24639 0.19297v-2.9038h-0.11278c-0.68406 0-1.2406-0.54944-1.2406-1.2248v-2.8958c0-0.67534 0.55653-1.2248 1.2406-1.2248zm-1.4666 3.4382c-0.22287 0-0.40421 0.17903-0.40421 0.39906v7.4499c0 0.13447-0.058463 0.26247-0.16058 0.35144-0.10211 0.08897-0.23797 0.13038-0.37316 0.11369l-0.038047-0.0047c-0.1972-0.024332-0.35816-0.16739-0.40339-0.35846l-0.54156-2.2883c-0.024563-0.10379-0.088566-0.19191-0.1803-0.24816-0.091731-0.05625-0.20217-0.06329-0.30989-0.05684-0.0427 0.0026-0.061851 8e-3 -0.10803 0.01231-0.091763 0.0086-0.16042 0.03472-0.20056 0.08468-0.040137 0.04997-0.050677 0.12628-0.029723 0.21491l0.62787 2.6529 0.00677 0.03432c0.2481 1.5682 1.3758 2.8658 1.7584 3.2676h4.8799c0.75569-1.218 1.154-2.6105 1.1542-4.0432l5.07e-4 -3.1673c0-0.21994-0.18134-0.39897-0.40421-0.39897s-0.40421 0.17903-0.40421 0.39906v0.76147c0 0.25888-0.21258 0.46875-0.4748 0.46875-0.26222 0-0.4748-0.20988-0.4748-0.46875v-1.2035c0-0.22003-0.18131-0.39906-0.40418-0.39906s-0.40421 0.17903-0.40421 0.39906v0.87619c0 0.25888-0.21258 0.46875-0.4748 0.46875s-0.4748-0.20987-0.4748-0.46875v-1.2479c0-0.22003-0.18134-0.39903-0.40421-0.39903s-0.40418 0.179-0.40418 0.39903v1.1946c0 0.25888-0.21258 0.46875-0.4748 0.46875s-0.4748-0.20987-0.4748-0.46875v-4.3956c0-0.22003-0.18134-0.39906-0.40421-0.39906zm7.5461-3.4382c0.68412 0 1.2406 0.54944 1.2406 1.2248v2.8958c0 0.67535-0.55653 1.2248-1.2406 1.2248h-2.9331c-0.68406 0-1.2406-0.54944-1.2406-1.2248v-2.8958c0-0.67534 0.55653-1.2248 1.2406-1.2248zm3.1e-5 0.9375h-2.9331c-0.16045 0-0.29099 0.12888-0.29099 0.28728v2.8958c0 0.15841 0.13054 0.28728 0.29099 0.28728h2.9331c0.16045 0 0.29102-0.12888 0.29102-0.28728v-2.8958c0-0.15841-0.13057-0.28728-0.29102-0.28728zm-6.0795 0h-2.9331c-0.16045 0-0.29099 0.12888-0.29099 0.28728v2.8958c0 0.15841 0.13054 0.28728 0.29093 0.28728h0.11278v-0.57063c0-0.73697 0.60733-1.3366 1.3538-1.3366 0.74648 0 1.3538 0.5996 1.3538 1.3366v0.57063h0.11278c0.16045 0 0.29099-0.12888 0.29099-0.28728v-2.8958c0-0.15841-0.13054-0.28728-0.29099-0.28728z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play-circle",icon:["24","24",[],"","M0,12 C0,5.372583 5.372583,0 12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 Z M23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 C18.0751322,23 23,18.0751322 23,12 Z M9,7.49836245 C9,6.94698209 9.38671875,6.74169922 9.84669815,7.02918634 L17.1533018,11.5958137 C17.6209203,11.8880752 17.6132812,12.3666992 17.1533018,12.6541863 L9.84669815,17.2208137 C9.37907967,17.5130752 9,17.2950531 9,16.7516375 L9,7.49836245 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-up",icon:["24","24",[],"","M12.733 8.305l5.963 5.906a1.046 1.046 0 0 1 0 1.473l-.01.011a1.034 1.034 0 0 1-1.467 0L12 10.526l-5.22 5.17a1.034 1.034 0 0 1-1.465 0l-.011-.012a1.046 1.046 0 0 1 0-1.473l5.963-5.906a1.034 1.034 0 0 1 1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-down",icon:["24","24",[],"","M11.267 15.695L5.304 9.79a1.046 1.046 0 0 1 0-1.473l.01-.011a1.034 1.034 0 0 1 1.467 0L12 13.474l5.22-5.17a1.034 1.034 0 0 1 1.465 0l.011.012a1.046 1.046 0 0 1 0 1.473l-5.963 5.906a1.034 1.034 0 0 1-1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-left",icon:["24","24",[],"","M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-right",icon:["24","24",[],"","M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-left",icon:["24","24",[],"","M7.182 11h11.89c.512 0 .928.448.928 1s-.416 1-.929 1H7.181l3.781 4.22a1.11 1.11 0 0 1 0 1.465c-.36.403-.943.418-1.311.045a.952.952 0 0 1-.032-.034l-5.343-5.963a1.112 1.112 0 0 1 0-1.466l5.343-5.963a.883.883 0 0 1 1.333 0c.378.421.378 1.066.01 1.477L7.182 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-right",icon:["24","24",[],"","M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.112 1.112 0 0 0 0 1.465c.36.403.943.418 1.311.045a.952.952 0 0 0 .032-.034l5.343-5.963a1.112 1.112 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477L16.818 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"enter",icon:["24","24",[],"","M5.613 13.959a.599.599 0 0 1-.213-.46c0-.155.058-.309.176-.426l3.75-3.75a.6.6 0 0 1 .848.848L7.446 12.9H13.5A3.9 3.9 0 0 0 17.4 9V6.747a.6.6 0 0 1 1.2 0V9a5.1 5.1 0 0 1-5.1 5.1H7.452l2.722 2.723a.6.6 0 0 1-.848.848L5.613 13.96z"]}},function(e,t){e.exports={prefix:"cv",iconName:"archive",icon:["24","24",[],"","M19.64 10.28a.55.55 0 1 1 1.1 0v6.878c0 1.582-1.386 2.842-3.07 2.842H6.33c-1.684 0-3.07-1.26-3.07-2.842V10.28a.55.55 0 1 1 1.1 0v6.877c0 .95.87 1.742 1.97 1.742h11.34c1.1 0 1.97-.793 1.97-1.742V10.28zM20.19 4c.99 0 1.81.747 1.81 1.696V7.99a.55.55 0 0 1-.55.55H2.55A.55.55 0 0 1 2 7.99V5.696C2 4.747 2.821 4 3.81 4h16.38zm.71 1.696c0-.317-.307-.596-.71-.596H3.81c-.403 0-.71.28-.71.596v1.742h17.8V5.696zm-5.83 5.73c0 .95-.821 1.697-1.81 1.697h-2.52c-.989 0-1.81-.747-1.81-1.696 0-.95.821-1.696 1.81-1.696h2.52c.989 0 1.81.747 1.81 1.696zm-1.1 0c0-.316-.307-.595-.71-.595h-2.52c-.403 0-.71.28-.71.596 0 .317.307.596.71.596h2.52c.403 0 .71-.28.71-.596z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bell",icon:["24","24",[],"","M9.588 17.995H6.152c-.636 0-1.152-.53-1.152-1.182 0-.221.06-.438.175-.626l2.128-2.92V9.722c0-2.187 1.447-4.027 3.411-4.567v-.012A1.143 1.143 0 0 1 13 5.128c2.017.502 3.515 2.369 3.515 4.594v3.545l2.303 2.92a1.2 1.2 0 0 1-.366 1.628 1.13 1.13 0 0 1-.61.18h-3.716a2.286 2.286 0 0 1-4.538 0zm1.161 0a1.143 1.143 0 0 0 2.216 0H10.75zm4.615-4.31V9.723c0-1.958-1.547-3.546-3.455-3.546-1.908 0-3.454 1.588-3.454 3.546v3.939l-.23.314-2.073 2.838H17.83l-2.467-3.127z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bookmark",icon:["24","24",[],"","M8.5 5h7A1.5 1.5 0 0 1 17 6.5v12.131a.2.2 0 0 1-.309.168L12 15.75 7.309 18.8A.2.2 0 0 1 7 18.63V6.5A1.5 1.5 0 0 1 8.5 5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"broadcast",icon:["24","24",[],"","M4.571 19C4.256 19 4 18.776 4 18.5s.256-.5.571-.5H19.43c.315 0 .571.224.571.5s-.256.5-.571.5H4.57zM4.125 5h15.75C20.496 5 21 5.537 21 6.2v9.6c0 .663-.504 1.2-1.125 1.2H4.125C3.504 17 3 16.463 3 15.8V6.2C3 5.537 3.504 5 4.125 5zM4 6v10h16V6H4zm6 2.35a.192.192 0 0 1 .295-.162l4.164 2.65a.192.192 0 0 1 0 .324l-4.164 2.65A.192.192 0 0 1 10 13.65v-5.3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"calendar",icon:["24","24",[],"","M6.2 10.2V17a.8.8 0 0 0 .8.8h10a.8.8 0 0 0 .8-.8v-6.8H6.2zM16 5.5h2a1 1 0 0 1 1 1V17a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6.5a1 1 0 0 1 1-1h2v-.875a.625.625 0 1 1 1.25 0V5.5h5.5v-.875a.625.625 0 1 1 1.25 0V5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cog",icon:["24","24",[],"","M18.4583333,12 C18.4583333,12.9444492 18.9722171,13.7222192 20,14.3333333 C19.8611104,14.77778 19.6388904,15.3055525 19.3333333,15.9166667 C18.3888842,15.6944433 17.5277817,15.9722183 16.75,16.75 C16.0555521,17.4444479 15.8333321,18.3055504 16.0833333,19.3333333 C15.4722192,19.6388904 14.9444467,19.8611104 14.5,20 C13.8888858,18.9722171 13.0555608,18.4583333 12,18.4583333 C10.9444392,18.4583333 10.1111142,18.9722171 9.5,20 C8.9999975,19.8333325 8.45833625,19.6111125 7.875,19.3333333 C8.12500125,18.2777725 7.91667,17.41667 7.25,16.75 C6.58333,16.08333 5.7222275,15.8749987 4.66666667,16.125 C4.3888875,15.5416637 4.1666675,15.0000025 4,14.5 C5.02778292,13.8888858 5.54166667,13.0555608 5.54166667,12 C5.54166667,11.0555508 5.02778292,10.2777808 4,9.66666667 C4.19444542,9.0555525 4.41666542,8.52778 4.66666667,8.08333333 C5.61111583,8.30555667 6.47221833,8.02778167 7.25,7.25 C7.91667,6.58333 8.12500125,5.7222275 7.875,4.66666667 C8.45833625,4.3888875 8.9999975,4.1666675 9.5,4 C10.1111142,5.02778292 10.9444392,5.54166667 12,5.54166667 C13.0555608,5.54166667 13.8888858,5.02778292 14.5,4 C15.0000025,4.1666675 15.5416638,4.3888875 16.125,4.66666667 C15.8749987,5.7222275 16.08333,6.58333 16.75,7.25 C17.5277817,8.02778167 18.3888842,8.30555667 19.3333333,8.08333333 C19.6388904,8.6944475 19.8611104,9.22222 20,9.66666667 C18.9722171,10.2777808 18.4583333,11.0555508 18.4583333,12 L18.4583333,12 Z M12,16.0833333 C13.1111167,16.0833333 14.0694404,15.6805596 14.875,14.875 C15.6805596,14.0694404 16.0833333,13.1111167 16.0833333,12 C16.0833333,10.8888833 15.6805596,9.93055958 14.875,9.125 C14.0694404,8.31944042 13.1111167,7.91666667 12,7.91666667 C10.8888833,7.91666667 9.93055958,8.31944042 9.125,9.125 C8.31944042,9.93055958 7.91666667,10.8888833 7.91666667,12 C7.91666667,13.1111167 8.31944042,14.0694404 9.125,14.875 C9.93055958,15.6805596 10.8888833,16.0833333 12,16.0833333 L12,16.0833333 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cross-circle",icon:["24","24",[],"","m12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212c-2.0668-0.0061708-4.0502 0.81484-5.508 2.28-1.4652 1.4578-2.2862 3.4412-2.28 5.508 0 2.081 0.80903 4.037 2.28 5.508 1.4578 1.4652 3.4412 2.2862 5.508 2.28 2.0668 0.0062 4.0502-0.81484 5.508-2.28 1.4652-1.4578 2.2862-3.4412 2.28-5.508 0.006171-2.0668-0.81484-4.0502-2.28-5.508-1.4578-1.4652-3.4412-2.2862-5.508-2.28zm-0.03088 6.769 3.3018-3.2224c0.28118-0.27965 0.73706-0.27965 1.0182 0 0.28118 0.27965 0.28118 0.73306 0 1.0127l-3.3018 3.2224 3.3018 3.2838c0.28118 0.27965 0.28118 0.73306 0 1.0127-0.28118 0.27965-0.73706 0.27965-1.0182 0l-3.3018-3.2838-3.24 3.2838c-0.28118 0.27965-0.73706 0.27965-1.0182 0-0.28118-0.27965-0.28118-0.73306 0-1.0127l3.24-3.2838-3.24-3.2713c-0.28118-0.27965-0.28118-0.73306 0-1.0127 0.28118-0.27965 0.73706-0.27965 1.0182 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"folder",icon:["24","24",[],"","M12.685 6H18.5A1.5 1.5 0 0 1 20 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h4.66a1.5 1.5 0 0 1 1.095.474L12.685 6zM5.5 5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-6.248l-1.727-1.842A.5.5 0 0 0 10.161 5H5.5zM5 10V9h14v1H5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"handle",icon:["16","16",[],"","M1 0h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7.4a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1.2a1 1 0 0 1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart",icon:["24","24",[],"","m18.833 5.9735c-0.78916-0.95022-1.8839-1.4735-3.0826-1.4735-1.6859 0-2.7532 1.0685-3.3517 1.9648-0.15528 0.2326-0.28738 0.46582-0.39828 0.68529-0.11091-0.21946-0.24297-0.45269-0.39828-0.68529-0.5985-0.89636-1.6658-1.9648-3.3517-1.9648-1.1987 0-2.2935 0.52333-3.0827 1.4735-0.75275 0.90644-1.1673 2.1204-1.1673 3.4183 0 1.4128 0.51978 2.7268 1.6358 4.1353 0.99741 1.2588 2.4323 2.5564 4.0939 4.0589 0.61916 0.5599 1.2594 1.1389 1.9411 1.7718l0.02047 0.01903c0.08837 0.08211 0.19856 0.12313 0.30875 0.12313s0.22038-0.04105 0.30875-0.12313l0.02047-0.01903c0.68166-0.63289 1.3219-1.2119 1.9412-1.7719 1.6615-1.5024 3.0964-2.8 4.0938-4.0588 1.116-1.4085 1.6358-2.7225 1.6358-4.1353 0-1.2979-0.41459-2.5119-1.1674-3.4183z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m18.959 5.9741c-0.76992-0.92705-1.9357-1.5351-3.1052-1.5351-1.6448 0-2.8808 0.74937-3.4647 1.6238-0.15149 0.22693-0.28074 0.55125-0.38894 0.76537-0.10821-0.21411-0.23718-0.53844-0.38871-0.76537-0.58391-0.87451-1.8205-1.6238-3.4653-1.6238-1.1695 0-2.2376 0.60808-3.0075 1.5351-0.7344 0.88434-1.1388 1.9712-1.1388 3.2374 0 1.3784 0.50711 3.0509 1.5959 4.4251 0.97309 1.2281 2.373 2.4941 3.9941 3.9599 0.60406 0.54625 1.2285 1.1104 1.8936 1.7278l0.01997 0.01934c0.08622 0.08011 0.38931 0.21727 0.49681 0.21727 0.1075 0 0.40992-0.13796 0.49614-0.21804l0.0201-0.0178c0.66504-0.61746 1.2897-1.1824 1.8939-1.7287 1.621-1.4658 3.0209-2.7317 3.994-3.9598 1.0888-1.3742 1.5955-3.0467 1.5955-4.4251 0-1.2663-0.30646-2.3531-1.0409-3.2374zm-5.337 10.688c-0.51948 0.47226-1.0567 0.95549-1.6218 1.4768-0.56507-0.52124-1.101-1.0059-1.6219-1.4769-3.1725-2.8689-5.2684-4.7641-5.2684-7.2556 0-1.0298 0.32333-1.9863 0.91044-2.6933 0.59385-0.71497 1.4183-1.1088 2.3213-1.1088 1.254 0 2.0645 0.81976 2.5237 1.5074 0.41187 0.61679 0.62678 1.2385 0.70006 1.4772 0.06131 0.19978 0.23683 0.33499 0.43482 0.33499s0.37351-0.1352 0.43482-0.33499c0.07329-0.23867 0.28821-0.86044 0.70006-1.4773 0.45914-0.68766 1.2698-1.5074 2.5237-1.5074 0.90309 0 1.7274 0.39377 2.3213 1.1088 0.58714 0.70695 0.91047 1.6634 0.91047 2.6933 0 2.4914-2.1035 4.3783-5.2685 7.2557z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive",icon:["24","24",[],"","M5.978 13.65l7.525-9.99a.2.2 0 0 1 .357.154l-1.289 7.5 5.194-1.04a.2.2 0 0 1 .198.318l-7.447 9.733a.2.2 0 0 1-.355-.16l1.268-6.566-5.277.37a.2.2 0 0 1-.174-.32z"]}},function(e,t){e.exports={prefix:"cv",iconName:"link",icon:["24","24",[],"","M17 10c2.2 0 4 1.8 4 4s-1.8 4-4 4h-5a3.99 3.99 0 0 1-3-1.367v-.028a4.447 4.447 0 0 1-.889-2.679c0-.698.162-1.356.443-1.94A4 4 0 0 1 12 10h1.872v.098c0 .573-.322 1.081-.818 1.402H12c-.722 0-1.368.316-1.824.811-.453.418-.732.976-.732 1.591v.196c0 .575.244 1.1.645 1.508.46.545 1.146.894 1.911.894h5c1.375 0 2.5-1.125 2.5-2.5s-1.125-2.5-2.5-2.5h-.686a5.22 5.22 0 0 0 .24-1.5H17zm-9.556 3.926l.002.074H7c-2.2 0-4-1.8-4-4s1.8-4 4-4h5c1.462 0 2.743.797 3.441 1.975a4.48 4.48 0 0 1-.44 4.63v.024a3.982 3.982 0 0 1-3 1.37h-1.873v-.096c0-.574.322-1.082.817-1.403H12c.722 0 1.368-.316 1.824-.811.452-.418.731-.976.731-1.591v-.195c0-.576-.244-1.101-.645-1.51A2.496 2.496 0 0 0 12 7.5H7A2.507 2.507 0 0 0 4.5 10c0 1.375 1.125 2.5 2.5 2.5h.642c-.128.452-.198.93-.198 1.426z"]}},function(e,t){e.exports={prefix:"cv",iconName:"playlist",icon:["24","24",[],"","m4.9887 18.127c0 0.48882 0.39579 0.88452 0.88452 0.88452h12.253c0.48882 0 0.88452-0.39579 0.88452-0.88452v-12.254c0-0.48882-0.39579-0.884-0.88452-0.884h-12.253c-0.48882 0-0.88452 0.39526-0.88452 0.884zm0.78467-14.127h12.453c0.97943 0 1.7734 0.79344 1.7734 1.7734v12.453c0 0.97943-0.79344 1.7734-1.7734 1.7734h-12.453c-0.97943 0-1.7734-0.79344-1.7734-1.7734v-12.453c0-0.97943 0.79344-1.7734 1.7734-1.7734zm11.115 12.711c0.24546 0 0.44444-0.19898 0.44444-0.44444s-0.19898-0.44444-0.44444-0.44444h-7.1111c-0.24546 0-0.44444 0.19898-0.44444 0.44444s0.19898 0.44444 0.44444 0.44444zm0-4.0889c0.24546 0 0.44444-0.19898 0.44444-0.44444s-0.19898-0.44444-0.44444-0.44444h-7.1111c-0.24546 0-0.44444 0.19898-0.44444 0.44444s0.19898 0.44444 0.44444 0.44444zm-8.3805-4.8628-1.0725-0.64348c-0.42792-0.25675-0.76926-0.06333-0.76926 0.42791v1.3543c0 0.49265 0.34441 0.68282 0.76926 0.42791l1.0725-0.64348c0.42792-0.25675 0.42485-0.66821 0-0.92312zm0 4-1.0725-0.64348c-0.42792-0.25675-0.76926-0.06333-0.76926 0.42791v1.3543c0 0.49265 0.34441 0.68282 0.76926 0.42791l1.0725-0.64348c0.42792-0.25675 0.42485-0.6682 0-0.92312zm0 4-1.0725-0.64348c-0.42792-0.25675-0.76926-0.06333-0.76926 0.42791v1.3543c0 0.49265 0.34441 0.68282 0.76926 0.42791l1.0725-0.64348c0.42792-0.25675 0.42485-0.6682 0-0.92312zm8.3805-7.0483c0.24546 0 0.44444-0.19898 0.44444-0.44444s-0.19898-0.44444-0.44444-0.44444h-7.1111c-0.24546 0-0.44444 0.19898-0.44444 0.44444s0.19898 0.44444 0.44444 0.44444z"]}},function(e,t){e.exports={prefix:"cv",iconName:"publisher-archive",icon:["24","24",[],"","M19.6403207,10.2808023 C19.6403207,9.97696656 19.8864872,9.73065903 20.1901489,9.73065903 C20.4938106,9.73065903 20.7399771,9.97696656 20.7399771,10.2808023 L20.7399771,17.1575931 C20.7399771,18.7397289 19.3544729,20 17.6701031,20 L6.32989691,20 C4.64552709,20 3.26002291,18.7397289 3.26002291,17.1575931 L3.26002291,10.2808023 C3.26002291,9.97696656 3.50618937,9.73065903 3.80985109,9.73065903 C4.11351281,9.73065903 4.35967927,9.97696656 4.35967927,10.2808023 L4.35967927,17.1575931 C4.35967927,18.1074218 5.23070097,18.8997135 6.32989691,18.8997135 L17.6701031,18.8997135 C18.769299,18.8997135 19.6403207,18.1074218 19.6403207,17.1575931 L19.6403207,10.2808023 Z M20.1901489,4 C21.1786273,4 22,4.74713037 22,5.69627507 L22,7.98853868 C22,8.29237442 21.7538335,8.53868195 21.4501718,8.53868195 L2.54982818,8.53868195 C2.24616646,8.53868195 2,8.29237442 2,7.98853868 L2,5.69627507 C2,4.74713037 2.82137271,4 3.80985109,4 L20.1901489,4 Z M20.9003436,5.69627507 C20.9003436,5.37943754 20.5934534,5.10028653 20.1901489,5.10028653 L3.80985109,5.10028653 C3.40654659,5.10028653 3.09965636,5.37943754 3.09965636,5.69627507 L3.09965636,7.43839542 L20.9003436,7.43839542 L20.9003436,5.69627507 Z M15.069874,11.4269341 C15.069874,12.3760788 14.2485013,13.1232092 13.2600229,13.1232092 L10.7399771,13.1232092 C9.75149871,13.1232092 8.930126,12.3760788 8.930126,11.4269341 C8.930126,10.4777894 9.75149871,9.73065903 10.7399771,9.73065903 L13.2600229,9.73065903 C14.2485013,9.73065903 15.069874,10.4777894 15.069874,11.4269341 Z M13.9702176,11.4269341 C13.9702176,11.1100966 13.6633274,10.8309456 13.2600229,10.8309456 L10.7399771,10.8309456 C10.3366726,10.8309456 10.0297824,11.1100966 10.0297824,11.4269341 C10.0297824,11.7437716 10.3366726,12.0229226 10.7399771,12.0229226 L13.2600229,12.0229226 C13.6633274,12.0229226 13.9702176,11.7437716 13.9702176,11.4269341 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"resources",icon:["24","24",[],"","M4 6.83c0-.523.423-.948.948-.948H17.17c.524 0 .949.423.949.949v12.22a.947.947 0 0 1-.949.949H4.95a.947.947 0 0 1-.95-.948V6.83zm.941 12.222c0 .005 12.228.007 12.228.007.005 0 .007-12.228.007-12.228 0-.005-12.228-.007-12.228-.007-.005 0-.007 12.228-.007 12.228zm2.353-9.405a.47.47 0 1 1 0-.941h7.588a.47.47 0 1 1 0 .941H7.294zm0 2.824a.47.47 0 1 1 0-.942h7.588a.47.47 0 1 1 0 .942H7.294zm0 2.823a.47.47 0 1 1 0-.941h2.88a.47.47 0 1 1 0 .941h-2.88zM6.353 4.941a.47.47 0 1 1 0-.941h11.766C19.155 4 20 4.848 20 5.88v12.232a.47.47 0 1 1-.941 0V5.88a.945.945 0 0 0-.94-.938H6.353z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star-o",icon:["24","24",[],"","m11.64 16.408c0.22495-0.11933 0.49443-0.11933 0.71937 0l3.7678 1.9987-0.80692-4.6021 3.3579-3.2489-4.6262-0.6547-2.0522-4.1975-2.0522 4.1975-4.6262 0.6547 3.3579 3.2489-0.80692 4.6021zm-3.7505 3.148c-0.37447 0.19865-0.83908 0.056116-1.0377-0.31836-0.080018-0.15084-0.10745-0.32406-0.077964-0.49224l0.80353-4.5828-3.3438-3.2353c-0.30465-0.29476-0.31266-0.78067-0.017902-1.0853 0.11873-0.12271 0.27499-0.20233 0.44406-0.22626l4.6068-0.65196 2.0436-4.1799c0.18619-0.38082 0.64585-0.5386 1.0267-0.35241 0.1534 0.075 0.27741 0.19901 0.35241 0.35241l2.0436 4.1799 4.6068 0.65196c0.41972 0.059399 0.71182 0.4478 0.65242 0.86752-0.02393 0.16907-0.10354 0.32533-0.22626 0.44406l-3.3438 3.2353 0.80353 4.5828c0.07321 0.41753-0.20592 0.81535-0.62345 0.88856-0.16818 0.02949-0.3414 0.0021-0.49224-0.07796l-4.1102-2.1804z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","m12.337 4.0782c0.1534 0.075 0.27741 0.19901 0.35241 0.35241l2.0436 4.1799 4.6068 0.65196c0.41972 0.059399 0.71182 0.4478 0.65242 0.86752-0.02393 0.16907-0.10354 0.32533-0.22626 0.44406l-3.3438 3.2353 0.80353 4.5828c0.07321 0.41753-0.20592 0.81535-0.62345 0.88856-0.16818 0.02949-0.3414 0.0021-0.49224-0.07796l-4.1102-2.1804-4.1102 2.1804c-0.37447 0.19865-0.83908 0.056116-1.0377-0.31836-0.080018-0.15084-0.10745-0.32406-0.077964-0.49224l0.80353-4.5828-3.3438-3.2353c-0.30465-0.29476-0.31266-0.78067-0.017902-1.0853 0.11873-0.12271 0.27499-0.20233 0.44406-0.22626l4.6068-0.65196 2.0436-4.1799c0.18619-0.38082 0.64585-0.5386 1.0267-0.35241z"]}},function(e,t){e.exports={prefix:"cv",iconName:"tag",icon:["24","24",[],"","M9.85651379,4 C10.5597673,4 11.2342681,4.27911643 11.7318501,4.77635695 L11.7318501,4.77635695 L19.5192508,12.5634018 C20.1602555,13.2045708 20.1602555,14.2439177 19.5192159,14.8851217 L19.5192159,14.8851217 L14.8855145,19.5192848 C14.2443321,20.1602442 13.2049876,20.1602442 12.5637184,19.519198 L12.5637184,19.519198 L4.7762613,11.7314233 C4.27913559,11.2340016 4,10.5595161 4,9.85635067 L4,9.85635067 L4,5.64191268 C4,4.7351029 4.73513649,4 5.64195885,4 L5.64195885,4 L9.85651379,4 Z M9.85658948,5.26315824 L5.64195885,5.26315824 C5.4327466,5.26315824 5.26315823,5.43273884 5.26315823,5.64191268 L5.26315823,5.64191268 L5.26315823,9.85642637 C5.26315823,10.2247328 5.40935021,10.5779817 5.66959105,10.8383776 L5.66959105,10.8383776 L13.4568376,18.6259418 C13.6047616,18.7738142 13.8445582,18.7738142 13.9923822,18.6260417 L13.9923822,18.6260417 L18.6259486,13.9920135 C18.7738119,13.8441123 18.7738119,13.6043763 18.6260161,13.4565426 L18.6260161,13.4565426 L10.8388259,5.6697082 C10.5782887,5.40934993 10.2250082,5.26315824 9.85658948,5.26315824 L9.85658948,5.26315824 Z M7.78947471,6.10526373 C8.71963876,6.10526373 9.4736857,6.85931068 9.4736857,7.78947472 C9.4736857,8.71963876 8.71963876,9.4736857 7.78947471,9.4736857 C6.85931067,9.4736857 6.10526373,8.71963876 6.10526373,7.78947472 C6.10526373,6.85931068 6.85931067,6.10526373 7.78947471,6.10526373 Z M7.78947471,7.36842197 C7.5569337,7.36842197 7.36842197,7.55693371 7.36842197,7.78947472 C7.36842197,8.02201573 7.5569337,8.21052747 7.78947471,8.21052747 C8.02201572,8.21052747 8.21052746,8.02201573 8.21052746,7.78947472 C8.21052746,7.55693371 8.02201572,7.36842197 7.78947471,7.36842197 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"time",icon:["24","24",[],"","M12 4c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 1.077a6.88 6.88 0 0 0-4.896 2.027A6.877 6.877 0 0 0 5.077 12c0 1.85.72 3.588 2.027 4.896A6.877 6.877 0 0 0 12 18.923a6.88 6.88 0 0 0 4.896-2.027A6.877 6.877 0 0 0 18.923 12a6.88 6.88 0 0 0-2.027-4.896A6.877 6.877 0 0 0 12 5.077zm2.524 9.599a.6.6 0 0 1-.848.848l-2.5-2.5A.6.6 0 0 1 11 12.6V8.624a.6.6 0 0 1 1.2 0v3.727l2.324 2.325z"]}},function(e,t){e.exports={prefix:"cv",iconName:"video",icon:["24","24",[],"","m5.4332 6.7668c-0.24546 0-0.44444 0.19898-0.44444 0.44444v9.5776c0 0.24546 0.19898 0.44444 0.44444 0.44444h13.134c0.24546 0 0.44444-0.19898 0.44444-0.44444v-9.5776c0-0.24546-0.19898-0.44444-0.44444-0.44444zm13.233-0.98897c0.73638 0 1.3333 0.59695 1.3333 1.3333v9.7778c0 0.73638-0.59695 1.3333-1.3333 1.3333h-13.333c-0.73638 0-1.3333-0.59695-1.3333-1.3333v-9.7778c0-0.73638 0.59695-1.3333 1.3333-1.3333zm-8.4158 3.6277c-0.01871 0.030621-0.02861 0.065813-0.02861 0.1017v4.9856c0 0.10772 0.08733 0.19505 0.19505 0.19505 0.03589 0 0.07108-0.0099 0.1017-0.02862l4.0795-2.4928c0.09192-0.05617 0.1209-0.17622 0.06473-0.26814-0.01614-0.02641-0.03832-0.04859-0.06473-0.06473l-4.0795-2.4928c-0.09192-0.056168-0.21197-0.027185-0.26814 0.064732z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subject",icon:["24","24",[],"","M19.15,21.08H5.1c-1.09,0-1.98-0.89-1.98-1.98V5.06c0-1.09,0.89-1.98,1.98-1.98h14.04c1.09,0,1.98,0.89,1.98,1.98V19.1 C21.12,20.19,20.24,21.08,19.15,21.08z M20.12,19.16V5c0-0.51-0.41-0.92-0.92-0.92H7.04C6.54,4.08,6.12,4.49,6.12,5v14.16 c0,0.51,0.41,0.92,0.92,0.92h12.16C19.71,20.08,20.12,19.67,20.12,19.16z M19.12,6.95V6.81c0-0.36-0.29-0.65-0.65-0.65H8.78 c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69C18.83,7.6,19.12,7.31,19.12,6.95z M19.12,9.95V9.81 c0-0.36-0.29-0.65-0.65-0.65H8.78c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69 C18.83,10.6,19.12,10.31,19.12,9.95z"]}},function(e,t){e.exports={prefix:"cv",iconName:"series",icon:["24","24",[],"","M20.49,3.51c0.97,0,1.76,0.79,1.76,1.76v9.27c0,0.77-0.49,1.42-1.18,1.66l0.09-10.84c0-0.39-0.3-0.7-0.68-0.7l-14.27,0 C6.46,3.99,7.1,3.51,7.85,3.51H20.49z M18.38,5.56c0.97,0,1.76,0.79,1.76,1.75v9.27c0.01,0.77-0.49,1.42-1.17,1.66l0.09-10.86 c0-0.38-0.3-0.68-0.68-0.68l-14.28,0c0.25-0.67,0.89-1.14,1.64-1.14H18.38z M16.15,7.7c0.97,0,1.75,0.79,1.75,1.76v9.27 c0,0.97-0.79,1.75-1.75,1.75H3.5c-0.97,0-1.75-0.79-1.75-1.75V9.46c0-0.97,0.79-1.76,1.75-1.76H16.15z M16.14,8.85H3.51 c-0.38,0-0.68,0.3-0.68,0.68l0,0v9.13c0,0.38,0.3,0.68,0.68,0.68l0,0h12.62c0.38,0,0.68-0.3,0.68-0.68l0,0V9.53 C16.82,9.15,16.52,8.85,16.14,8.85L16.14,8.85z M8.46,12.41v3.37c0,0.18,0.21,0.28,0.35,0.18l2.31-1.69c0.12-0.09,0.12-0.27,0-0.35 L8.8,12.23C8.66,12.13,8.46,12.23,8.46,12.41"]}},function(e,t){e.exports={prefix:"cv",iconName:"white-wave",icon:["1200","244",[],"","M1104.19651,33.5198863 C1084.14716,45.4511816 1067.10689,82.9623447 1047.23647,124.40502 C1023.86518,173.149287 924.725009,160.996474 830.060105,199.668011 C735.395201,238.339548 706.121292,249.351671 618.615175,241.737466 C531.109058,234.12326 495.404437,207.34459 432.2827,199.668011 C370.933901,192.207048 283.214734,200.240922 234.995453,186.264588 C153.311618,162.588569 167.948341,80.4093241 122.421855,59.9864363 C102.62311,51.1048469 61.8158253,37.3273576 0,18.6539685 L0,0 L1200,0 C1161.79495,7.07406031 1129.86046,18.2473557 1104.19651,33.5198863 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"compass",icon:["24","24",[],"","m13.628 5.5109c0.11004-0.22771 0.17189-0.48189 0.17189-0.75006 0-0.97095-0.80748-1.7609-1.8-1.7609s-1.8 0.78993-1.8 1.7609c0 0.26817 0.06185 0.52235 0.17192 0.75006-3.6332 0.73772-6.3719 3.8933-6.3719 7.663 0 4.3153 3.5888 7.8261 8 7.8261s8-3.5108 8-7.8261c0-3.7697-2.7387-6.9253-6.3719-7.663zm-1.6281-1.7369c0.52335 0 0.79457 0.34501 0.8001 0.787 0.0065 0.51634-0.299 0.7918-0.8001 0.78684-0.49377-0.0048883-0.7999-0.22625-0.7999-0.78684 0-0.42731 0.3654-0.787 0.7999-0.787zm0 16.252c-3.7495 0-6.9999-3.1843-6.9999-6.8523s3.2505-6.8517 7-6.8517 7 3.184 7 6.852-3.2506 6.852-7.0001 6.852zm3.2171-10.658-4.7794 2.1647c-0.14122 0.06389-0.2663 0.17795-0.33844 0.32363l-2.2638 4.5701c-0.28535 0.57615 0.34509 1.1789 0.94757 0.90609l4.7793-2.1647c0.15316-0.0694 0.27201-0.1894 0.33844-0.32363l2.2638-4.5701c0.28483-0.57501-0.3442-1.1794-0.94753-0.90609zm-4.615 3.4321 1.974 1.8813-3.6 1.4787zm2.608 1.29-1.975-1.881 3.8-1.779z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","m12 4c4.4183 0 8 3.5817 8 8s-3.5817 8-8 8-8-3.5817-8-8 3.5817-8 8-8zm0 1.071c-3.6609 0-6.829 3.2681-6.829 6.929 0 3.6609 3.1681 6.929 6.829 6.929 3.6609 0 6.829-3.2681 6.829-6.929 0-3.6609-3.1681-6.929-6.829-6.929zm-0.05 2.8147c0.37871 0 0.53589 0.30716 0.53589 0.68586l1.09e-4 3.1445 2.5561 2.6559c0.26261 0.27286 0.56761 0.70201 0.29983 0.9698-0.26779 0.26779-0.70108 0.168-0.96886-0.0998l-2.757-2.7571c-0.12859-0.1286-0.30643-0.30309-0.30114-0.48487l0.09971-3.4286c0.011009-0.37855 0.15666-0.68571 0.53536-0.68571z"]}},function(e,t){e.exports={prefix:"cv",iconName:"email",icon:["24","24",[],"","M5.09090909,16.5044548 C5.09090909,16.7087643 5.2517754,16.875 5.44811273,16.875 L18.5518873,16.875 C18.7495118,16.875 18.9090909,16.7100912 18.9090909,16.5044548 L18.9090909,7.49554521 C18.9090909,7.29123572 18.7482246,7.125 18.5518873,7.125 L5.44811273,7.125 C5.25048819,7.125 5.09090909,7.28990884 5.09090909,7.49554521 L5.09090909,16.5044548 Z M18.5518873,6 C19.3516578,6 20,6.67088532 20,7.49554521 L20,16.5044548 C20,17.3304216 19.3529644,18 18.5518873,18 L5.44811273,18 C4.64834215,18 4,17.3291147 4,16.5044548 L4,7.49554521 C4,6.6695784 4.6470356,6 5.44811273,6 L18.5518873,6 Z M5.28875242,8.40614655 C5.12000436,8.66349123 5.18550432,9.01318255 5.43505067,9.18720399 L11.4273828,13.3659638 L11.7273691,13.5751595 L12.0307568,13.3712472 L18.2317117,9.20347374 C18.4840876,9.03384736 18.5553362,8.68535347 18.3908501,8.42509084 C18.2446401,8.19374628 17.9613854,8.10998685 17.7229933,8.21336378 L17.6360272,8.26099773 L17.6360272,8.26099773 L17.634306,8.26215307 L17.6301531,8.26494056 L17.622066,8.27036883 C17.597586,8.28680036 17.530266,8.33198706 17.3451362,8.4562505 L17.2583634,8.51449439 C17.2426263,8.52505752 17.2262335,8.53606078 17.2091576,8.5475225 L17.0982873,8.62194118 C16.4410163,9.06311671 14.980414,10.0435068 11.7346312,12.2221514 C11.170907,11.8290376 10.4395891,11.3190523 9.69015295,10.7964321 L9.28047118,10.5107401 C7.64174412,9.36797184 6.04614146,8.25527648 6.04614146,8.25527648 C5.7965951,8.08125504 5.45750048,8.14880187 5.28875242,8.40614655 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"year-level",icon:["24","24",[],"","M14.5628141,2 C15.3668342,2 15.7688442,2.10471204 16.0703518,2.31413613 C16.3718593,2.52356021 16.6733668,2.73298429 16.8743719,3.15183246 C16.9748744,3.46596859 17.0753769,3.88481675 17.0753769,4.72251309 L17.0753769,9.85340314 C17.0753769,10.6212914 16.9909269,11.0372309 16.8220268,11.3431864 L16.7738693,11.4240838 L16.7738693,11.4240838 L19.3869347,11.4240838 C20.1909548,11.4240838 20.5929648,11.5287958 20.8944724,11.7382199 C21.1959799,11.947644 21.4974874,12.1570681 21.6984925,12.5759162 C21.8994975,12.9947644 22,13.4136126 22,14.1465969 L22,19.2774869 C22,20.1151832 21.8994975,20.5340314 21.6984925,20.8481675 C21.4974874,21.1623037 21.2964824,21.4764398 20.8944724,21.6858639 C20.4924623,21.895288 20.0904523,22 19.3869347,22 L14.4623116,22 C13.6582915,22 13.2562814,21.895288 12.9547739,21.6858639 C12.6532663,21.4764398 12.3517588,21.2670157 12.1507538,20.8481675 C12.1034481,20.774237 12.0617091,20.6945067 12.0255366,20.6076117 C12.002845,20.6555797 11.9772366,20.7004967 11.9497487,20.7434555 C11.7487437,21.0575916 11.5477387,21.3717277 11.1457286,21.5811518 C10.7437186,21.7905759 10.3417085,21.895288 9.63819095,21.895288 L4.61306533,21.895288 C3.80904523,21.895288 3.40703518,21.7905759 3.10552764,21.5811518 C2.8040201,21.3717277 2.50251256,21.1623037 2.30150754,20.7434555 C2.10050251,20.4293194 2,20.0104712 2,19.1727749 L2,14.0418848 C2,13.2041885 2.10050251,12.7853403 2.30150754,12.4712042 C2.50251256,12.1570681 2.70351759,11.8429319 3.10552764,11.6335079 C3.40703518,11.5287958 3.80904523,11.4240838 4.61306533,11.4240838 L7.32663317,11.4240838 L7.32663317,11.4240838 C7.12562814,11.0052356 7.02512563,10.5863874 7.02512563,9.7486911 L7.02512563,4.72251309 C7.02512563,3.88481675 7.12562814,3.46596859 7.32663317,3.04712042 C7.42713568,2.73298429 7.72864322,2.41884817 8.03015075,2.31413613 C8.4321608,2.10471204 8.83417085,2 9.63819095,2 L14.5628141,2 Z M12.0749659,12.71176 L12.0874744,12.6846501 L12.0874744,12.6846501 L12.1507538,12.5759162 L12.1507538,12.5759162 L14.361809,12.5759162 C13.758794,12.5759162 13.5577889,12.6806283 13.4572864,12.6806283 C13.3567839,12.6806283 13.2562814,12.8900524 13.1557789,12.9947644 C13.0696339,13.1742708 13.0573275,13.2768458 13.0555694,13.8300185 L13.0552764,19.2774869 C13.0552764,20.0104712 13.1557789,20.2198953 13.1557789,20.4293194 C13.2562814,20.5340314 13.3567839,20.7434555 13.5577889,20.7434555 C13.7444365,20.8406881 13.8444262,20.8476333 14.5015017,20.8481294 L19.5879397,20.8481675 C20.2914573,20.8481675 20.4924623,20.7434555 20.6934673,20.7434555 C20.7939698,20.6387435 20.9949749,20.5340314 20.9949749,20.3246073 C21.0811199,20.145101 21.0934263,20.0425259 21.0951844,19.4893533 L21.0954774,14.0418848 C21.0954774,13.3089005 20.9949749,13.0994764 20.9949749,12.8900524 C20.8944724,12.7853403 20.7939698,12.5759162 20.5929648,12.5759162 C20.4206748,12.4861631 20.3222234,12.4733412 19.7912888,12.4715095 L11.9497487,12.4712042 L11.9497487,12.4712042 C11.9970544,12.5451347 12.0387934,12.624865 12.0749659,12.71176 Z M8.03015075,12.1570681 C8.4321608,12.3664921 8.73366834,12.4712042 9.43718593,12.4712042 L4.61306533,12.4712042 C3.90954774,12.4712042 3.70854271,12.5759162 3.50753769,12.5759162 C3.40703518,12.6806283 3.20603015,12.7853403 3.20603015,12.8900524 C3.10552764,13.2041885 3.00502513,13.3089005 3.00502513,14.1465969 L3.00502513,19.2774869 C3.00502513,20.0104712 3.10552764,20.2198953 3.20603015,20.4293194 C3.30653266,20.5340314 3.40703518,20.7434555 3.50753769,20.7434555 C3.70854271,20.7434555 3.80904523,20.8481675 4.61306533,20.8481675 L9.53768844,20.8481675 C10.241206,20.8481675 10.4422111,20.7434555 10.6432161,20.7434555 C10.7437186,20.6387435 10.9447236,20.5340314 10.9447236,20.3246073 C11.0380474,20.1301421 11.0447134,20.0259643 11.0451895,19.3413674 L11.0452261,14.0418848 C11.0452261,13.3089005 10.9447236,13.0994764 10.9447236,12.8900524 C10.8442211,12.7853403 10.7437186,12.5759162 10.6432161,12.5759162 C10.4787574,12.4902427 10.3815773,12.4746657 10.0213993,12.4718336 L9.53768844,12.4712042 L9.53768844,12.4712042 C8.83417085,12.4712042 8.4321608,12.3664921 8.13065327,12.1570681 C7.82914573,11.947644 7.52763819,11.7382199 7.42713568,11.4240838 L7.32663317,11.4240838 C7.52763819,11.7382199 7.72864322,12.052356 8.03015075,12.1570681 Z M17.5778894,16.4502618 C17.9798995,16.4502618 18.281407,16.6596859 18.4824121,16.8691099 L18.427,16.923 L18.4619013,16.9649688 C18.6095785,17.1682872 18.6834171,17.4375467 18.6834171,17.7068063 L18.6834171,18.1256545 C18.6834171,18.8586387 18.080402,19.382199 17.4773869,19.382199 L15.7688442,19.382199 C15.5678392,19.486911 15.3668342,19.2774869 15.3668342,18.9633508 C15.3668342,18.7539267 15.5678392,18.5445026 15.7688442,18.5445026 L17.4773869,18.5445026 C17.678392,18.5445026 17.879397,18.3350785 17.879397,18.1256545 L17.879397,17.7068063 C17.879397,17.4973822 17.678392,17.2879581 17.4773869,17.2879581 L15.8693467,17.2879581 C15.6683417,17.2879581 15.4673367,17.078534 15.4673367,16.8691099 C15.4673367,16.6596859 15.6683417,16.4502618 15.8693467,16.4502618 L17.5778894,16.4502618 Z M7.52763819,14.2513089 C8.23115578,14.2513089 8.73366834,14.8795812 8.73366834,15.5078534 L8.73366834,15.9267016 C8.73366834,16.6596859 8.13065327,17.1832461 7.52763819,17.1832461 L6.62311558,17.1832461 C6.42211055,17.1832461 6.22110553,17.3926702 6.22110553,17.6020942 L6.22110553,18.4397906 L8.33165829,18.4397906 C8.53266332,18.4397906 8.73366834,18.6492147 8.73366834,18.8586387 C8.73366834,19.0680628 8.53266332,19.2774869 8.33165829,19.2774869 L5.81909548,19.2774869 C5.61809045,19.2774869 5.41708543,19.0680628 5.41708543,18.8586387 L5.41708543,17.7068063 C5.41708543,16.973822 6.0201005,16.4502618 6.62311558,16.4502618 L7.42713568,16.4502618 C7.72864322,16.4502618 7.82914573,16.2408377 7.82914573,15.9267016 L7.82914573,15.5078534 C7.82914573,15.2984293 7.6281407,15.0890052 7.42713568,15.0890052 L5.81909548,15.0890052 C5.61809045,15.0890052 5.41708543,14.8795812 5.41708543,14.6701571 C5.41708543,14.460733 5.61809045,14.2513089 5.81909548,14.2513089 L7.52763819,14.2513089 Z M17.4773869,14.2513089 C18.1809045,14.2513089 18.6834171,14.8795812 18.6834171,15.5078534 L18.6834171,15.9267016 C18.6834171,16.2408377 18.5829146,16.5549738 18.3819095,16.7643979 C18.1809045,16.4502618 17.879397,16.3455497 17.4773869,16.3455497 C17.678392,16.3455497 17.879397,16.1361257 17.879397,15.9267016 L17.879397,15.5078534 C17.879397,15.2984293 17.678392,15.0890052 17.4773869,15.0890052 L15.7688442,15.0890052 C15.5678392,15.0890052 15.3668342,14.8795812 15.3668342,14.6701571 C15.3668342,14.460733 15.5678392,14.2513089 15.7688442,14.2513089 L17.4773869,14.2513089 Z M14.4623116,3.04712042 L9.63819095,3.04712042 C8.83417085,3.04712042 8.73366834,3.15183246 8.53266332,3.2565445 C8.4321608,3.2565445 8.23115578,3.36125654 8.13065327,3.57068063 C8.13065327,3.78010471 8.03015075,3.88481675 8.03015075,4.72251309 L8.03015075,9.85340314 C8.03015075,10.5863874 8.13065327,10.7958115 8.13065327,11.0052356 C8.23115578,11.1099476 8.33165829,11.3193717 8.4321608,11.3193717 C8.63316583,11.3193717 8.83417085,11.4240838 9.43718593,11.4240838 L14.5628141,11.4240838 C15.1658291,11.4240838 15.3668342,11.3193717 15.4673367,11.3193717 C15.5678392,11.2146597 15.7688442,11.1099476 15.7688442,11.0052356 C15.8549892,10.8257292 15.8672957,10.7231542 15.8690537,10.1699815 L15.8693467,4.72251309 C15.8693467,3.9895288 15.7688442,3.78010471 15.7688442,3.57068063 C15.6683417,3.46596859 15.5678392,3.2565445 15.3668342,3.2565445 C15.3668342,3.15183246 15.2663317,3.04712042 14.4623116,3.04712042 Z M12.0502513,4.61780105 C12.2512563,4.61780105 12.4522613,4.82722513 12.4522613,5.03664921 L12.4522613,9.43455497 C12.4522613,9.64397906 12.2512563,9.85340314 12.0502513,9.85340314 C11.8492462,9.85340314 11.6482412,9.64397906 11.6482412,9.43455497 L11.6482412,5.03664921 C11.6482412,4.82722513 11.8492462,4.61780105 12.0502513,4.61780105 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subjects",icon:["24","24",[],"","M11.9999608,6.48873431 C12.828049,6.08104273 13.7442836,5.92395943 14.6596155,6.03432052 L14.6596155,6.03432052 L18.7411881,6.52627319 C18.8894198,6.54415652 19.0011921,6.67308566 19.0011921,6.8263023 L19.0011921,6.8263023 L19.0011921,7.51037994 L19.7056558,7.51037994 C19.8682123,7.51037994 20,7.64563269 20,7.81246321 L20,7.81246321 L20,17.6979167 C20,17.8647473 19.8682515,18 19.7056558,18 L19.7056558,18 L4.29434418,18 C4.13174845,18 4,17.8647473 4,17.6979167 L4,17.6979167 L4,7.81246321 C4,7.64563269 4.13174845,7.51037994 4.29434418,7.51037994 L4.29434418,7.51037994 L4.99872941,7.51037994 L4.99872941,6.8263023 C4.99872941,6.67308566 5.11050171,6.54415652 5.25873344,6.52627319 L5.25873344,6.52627319 L9.34030602,6.03432052 C10.2557557,5.92391915 11.1718332,6.08104273 11.9999608,6.48873431 Z M4.99876866,8.11454648 L4.58868835,8.11454648 L4.58868835,17.3958335 L19.4113116,17.3958335 L19.4113116,8.11454648 L19.0011136,8.11454648 L19.0011136,16.4188559 C19.0011136,16.5051309 18.9652036,16.5872572 18.9023709,16.6445725 C18.8482116,16.6940336 18.7784717,16.7209392 18.7067694,16.7209392 C18.6953489,16.7209392 18.6838891,16.7202544 18.6724293,16.718885 L18.6724293,16.718885 L14.5908959,16.2269323 C13.7425175,16.1246671 12.8935504,16.2838045 12.1353983,16.6870655 C12.0504702,16.7322572 11.9494513,16.7322572 11.8645232,16.6870655 C11.1063318,16.2838045 10.2570508,16.1246671 9.40902557,16.2269323 L9.40902557,16.2269323 L5.32745299,16.718885 C5.24401623,16.7289544 5.16030474,16.7018878 5.09751132,16.6445725 C5.03467865,16.5872572 4.99876866,16.5051309 4.99876866,16.4188559 L4.99876866,16.4188559 L4.99876866,8.11454648 Z M14.5909352,6.63437873 C13.8015826,6.53924264 13.0113666,6.67074955 12.2943049,7.01452032 L12.2943049,7.01452032 L12.2943049,15.9488546 C13.0426063,15.6408908 13.8514249,15.5294825 14.6596155,15.6269144 L14.6596155,15.6269144 L18.4124645,16.0792337 L18.4124645,7.0949953 Z M11.7056558,7.01452032 C10.9886334,6.67074955 10.1983389,6.53920236 9.40902557,6.63437873 L9.40902557,6.63437873 L5.58745701,7.0949953 L5.58745701,16.0791935 L9.34034527,15.6268741 C9.53041311,15.6039963 9.72055945,15.5925977 9.90984238,15.5925977 C10.5256104,15.5925977 11.1332938,15.7133907 11.7056558,15.9489351 L11.7056558,15.9489351 Z M12.8179628,13.2954357 C13.418268,13.1280413 14.0360375,13.080876 14.6541996,13.1553093 L14.6541996,13.1553093 L17.7187541,13.5245759 C17.8801725,13.5440301 17.9956731,13.6941453 17.9767566,13.8598481 C17.9591745,14.0135883 17.8320178,14.1267286 17.6848064,14.1267286 C17.6733466,14.1267286 17.6617691,14.1260439 17.6500738,14.1246341 L17.6500738,14.1246341 L14.5855585,13.7553675 C14.0427486,13.690037 13.4998209,13.7314023 12.9722777,13.8784564 C12.8155688,13.9222383 12.6537188,13.8271828 12.6110978,13.6661523 C12.5684767,13.505162 12.6610578,13.3391773 12.8179628,13.2954357 Z M9.3348116,13.1553496 C9.95195322,13.0815205 10.5768655,13.1297732 11.1712838,13.295919 C11.3281496,13.3397412 11.4206914,13.5057662 11.3779526,13.6667564 C11.3352531,13.827787 11.1734031,13.9226814 11.0166157,13.8788592 C10.4945669,13.7329328 9.9450067,13.6906412 9.40325643,13.7554078 L9.40325643,13.7554078 L6.33901581,14.1246341 C6.32735978,14.1260439 6.315743,14.1267286 6.3042832,14.1267286 C6.15707186,14.1267286 6.02991518,14.0135883 6.01229378,13.8598481 C5.99333801,13.6941453 6.10887791,13.5440704 6.27029626,13.5246162 L6.27029626,13.5246162 Z M12.8179236,11.9098804 C13.4183465,11.7424457 14.036116,11.695361 14.6541603,11.7697541 L14.6541603,11.7697541 L17.7187149,12.1390207 C17.8801332,12.1584748 17.9956339,12.3085498 17.9767174,12.4742525 C17.9591352,12.6279928 17.8319785,12.741133 17.6847672,12.741133 L17.6847672,12.741133 L17.6500346,12.7390386 L14.5855192,12.369772 C14.0425524,12.3043609 13.4997032,12.3457664 12.9722384,12.4928609 C12.8155296,12.5366428 12.6536795,12.4415873 12.6110585,12.280597 C12.5684375,12.1196068 12.6610185,11.9536221 12.8179236,11.9098804 Z M9.3348116,11.7697541 C9.95183548,11.6959249 10.5769048,11.7441777 11.1712838,11.9103235 C11.3281496,11.9541457 11.4206914,12.1201707 11.3779526,12.2811609 C11.3352531,12.4421914 11.1734031,12.5370456 11.0166157,12.4932636 C10.4944884,12.347297 9.94484971,12.3050053 9.40325643,12.3698123 L9.40325643,12.3698123 L6.33901581,12.7390386 C6.32735978,12.7404483 6.315743,12.741133 6.3042832,12.741133 C6.15707186,12.741133 6.02991518,12.6279928 6.01229378,12.4742525 C5.99333801,12.3085498 6.10887791,12.1584748 6.27029626,12.1390207 L6.27029626,12.1390207 Z M12.8179236,10.5243251 C13.4183072,10.3569307 14.036116,10.3097655 14.6541603,10.3841988 L14.6541603,10.3841988 L17.7187149,10.7534654 C17.8801332,10.7729195 17.9956339,10.9229945 17.9767174,11.0886973 C17.9591352,11.2424375 17.8319785,11.3555778 17.6847672,11.3555778 C17.6733074,11.3555778 17.6617299,11.354893 17.6500346,11.3534833 L17.6500346,11.3534833 L14.5855192,10.9842167 C14.0426308,10.9188459 13.4997817,10.9602112 12.9722384,11.1073056 C12.8155296,11.1510472 12.6536795,11.056032 12.6110585,10.8950417 C12.5684375,10.7340515 12.6610185,10.5680668 12.8179236,10.5243251 Z M9.3348116,10.3841585 C9.95199246,10.3103696 10.5769048,10.3586224 11.1712838,10.5247682 C11.3281496,10.5685904 11.4206914,10.7346154 11.3779526,10.8956056 C11.3352531,11.0566362 11.1734031,11.1515306 11.0166157,11.1077084 C10.4945669,10.961782 9.94496745,10.9194903 9.40325643,10.984257 L9.40325643,10.984257 L6.33901581,11.3534833 C6.32735978,11.354893 6.315743,11.3555778 6.3042832,11.3555778 C6.15707186,11.3555778 6.02991518,11.2424375 6.01229378,11.088657 C5.99333801,10.9229542 6.10887791,10.7728793 6.27029626,10.7534251 L6.27029626,10.7534251 Z M12.8179236,9.13876988 C13.4183072,8.97133519 14.036116,8.9242102 14.6541603,8.99864352 L14.6541603,8.99864352 L17.7187149,9.36791011 C17.8801332,9.38736427 17.9956339,9.53743924 17.9767174,9.70314198 C17.9591352,9.85688223 17.8319785,9.97002249 17.6847672,9.97002249 C17.6733074,9.97002249 17.6617299,9.96933776 17.6500346,9.96792804 L17.6500346,9.96792804 L14.5855192,9.59866145 C14.0426308,9.53329063 13.4997817,9.5746559 12.9722384,9.72175031 C12.8155296,9.76549197 12.6536795,9.67043644 12.6110585,9.50948647 C12.5684375,9.34849622 12.6610185,9.18251154 12.8179236,9.13876988 Z M9.3348116,8.99860324 C9.95195322,8.92477409 10.5768655,8.97302686 11.1712838,9.13917266 C11.3281496,9.18299487 11.4206914,9.34901984 11.3779526,9.51001008 C11.3352531,9.6710406 11.1734031,9.76589475 11.0166157,9.72211281 C10.4945669,9.57618646 9.9450067,9.5338948 9.40325643,9.59866145 L9.40325643,9.59866145 L6.33901581,9.96788776 C6.32735978,9.96929749 6.315743,9.96998221 6.3042832,9.96998221 C6.15707186,9.96998221 6.02991518,9.85684195 6.01229378,9.70310171 C5.99333801,9.53739896 6.10887791,9.38732399 6.27029626,9.36786983 L6.27029626,9.36786983 Z M12.8179236,7.75317433 C13.418268,7.58573964 14.0360375,7.53857437 14.6541603,7.61304797 L14.6541603,7.61304797 L17.7187149,7.98231456 C17.8801332,8.00176872 17.9956339,8.15184369 17.9767174,8.31754644 C17.9591352,8.47128668 17.8319785,8.58442694 17.6847672,8.58442694 L17.6847672,8.58442694 L17.6500346,8.58233249 L14.5855192,8.2130659 C14.0427093,8.14769508 13.4997817,8.18906035 12.9722384,8.33615477 C12.8155296,8.37985615 12.6536795,8.28488117 12.6110585,8.12389092 C12.5684375,7.96290068 12.6610185,7.79691599 12.8179236,7.75317433 Z M9.3348116,7.61304797 C9.95222794,7.53921882 10.576944,7.58747159 11.1712838,7.75361739 C11.3281496,7.7974396 11.4206914,7.96346456 11.3779526,8.12445481 C11.3352531,8.28548533 11.1734031,8.38033948 11.0166157,8.33655754 C10.4946061,8.19063118 9.94535991,8.14829925 9.40325643,8.21310618 L9.40325643,8.21310618 L6.33901581,8.58233249 C6.32735978,8.58374222 6.315743,8.58442694 6.3042832,8.58442694 C6.15707186,8.58442694 6.02991518,8.47128668 6.01229378,8.31754644 C5.99333801,8.15184369 6.10887791,8.00176872 6.27029626,7.98231456 L6.27029626,7.98231456 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"classrooms",icon:["24","24",[],"","m16.367 7.9638c0.82139-0.63033 1.4533-1.6413 1.4533-2.7789 0-0.27272-0.2135-0.49384-0.47681-0.49384h-2.4824c-1.2643 0-2.3666 0.5347-2.9329 1.6108-0.37042-0.75273-0.87304-1.2483-1.3291-1.5688-0.92972-0.65341-1.8633-0.72918-1.9026-0.73212-0.26323-0.01963-0.68917 0.28362-0.70791 0.55569-0.018775 0.27205 0.37516 0.60739 0.63782 0.62684 0.10606 0.0088595 2.3503 0.23081 2.8134 2.9201-0.56088-0.12442-0.92721-0.44951-2.3005-0.44951-2.1419 0-4.0528 1.7133-4.0528 5.0372 0 3.4373 2.726 7.3088 4.5297 7.3088 1.7305 0 1.6294-0.50479 2.3841-0.50479 0.75744 0 0.6506 0.50479 2.3841 0.50479 1.8051 0 4.5297-3.8683 4.5297-7.3088 0-2.5637-1.1139-4.1055-2.5469-4.7273zm-1.5059-2.1864 1.8593-0.098768c-0.22154 1.1257-1.1915 1.6495-2.3357 1.7778l-1.761 0.19754c0.22154-1.1257 1.0877-1.8155 2.2374-1.8766zm1.6896 11.277c-0.82894 1.2852-1.7173 1.7596-2.1664 1.7596-0.84261 0-1.1071-0.13049-1.3628-0.25667-0.23572-0.1163-0.50289-0.24812-1.0212-0.24812-0.51828 0-0.78545 0.13183-1.0212 0.24812-0.25575 0.12618-0.52023 0.25667-1.3628 0.25667-1.0011 0-3.3781-2.9031-3.3781-6.1233 0-2.9889 1.4715-3.8519 2.9012-3.8519 1.3671 0 1.4906 0.3643 2.3839 0.4765 7.76e-4 0.31356 0.23036 0.51118 0.47702 0.51118 0.24744 0 0.47735-0.19896 0.47658-0.51112 0.90099-0.11306 1.0125-0.47656 2.3843-0.47656 1.4298 0 2.9013 0.86294 2.9013 3.8519 0 1.3843-0.3159 2.9748-1.2118 4.3637z"]}},function(e,t){e.exports={prefix:"cv",iconName:"group",icon:["24","24",[],"","m16.286 17.714c-0.25974 0-0.47619-0.17415-0.47619-0.43538v-1.7415c0-0.6966-0.51948-1.6327-1.2121-1.6327h-5.1948c-0.69264 0-1.2121 0.93605-1.2121 1.6327v1.7415c0 0.26122-0.21645 0.43538-0.47619 0.43538s-0.47619-0.17415-0.47619-0.43538v-1.7415c0-1.219 0.95238-2.585 2.1645-2.585h5.1948c1.2121 0 2.1645 1.366 2.1645 2.585v1.7415c0 0.26122-0.21645 0.43538-0.47619 0.43538zm-4.2857-5.7143c-1.619 0-2.8571-1.2381-2.8571-2.8571 0-1.619 1.2381-2.8571 2.8571-2.8571s2.8571 1.2381 2.8571 2.8571c0 1.619-1.2381 2.8571-2.8571 2.8571zm-1e-6 -4.6476c-0.98476 0-1.7905 0.80486-1.7905 1.7886 0 0.98371 0.80572 1.7886 1.7905 1.7886 0.98476 0 1.7905-0.80486 1.7905-1.7886 0-0.98371-0.80571-1.7886-1.7905-1.7886zm-9.5238 8.4571c-0.28571 0-0.47619-0.19048-0.47619-0.47619v-0.95238c0-1.3333 1.0476-2.381 2.381-2.381h2.8571c0.28571 0 0.47619 0.19048 0.47619 0.47619s-0.19048 0.47619-0.47619 0.47619h-2.8571c-0.7619 0-1.4286 0.66667-1.4286 1.4286v0.95238c0 0.28571-0.19048 0.47619-0.47619 0.47619zm3.3333-4.2857c-1.0476 0-1.9048-0.85714-1.9048-1.9048 0-1.0476 0.85714-1.9048 1.9048-1.9048 1.0476 0 1.9048 0.85714 1.9048 1.9048 0 1.0476-0.85714 1.9048-1.9048 1.9048zm0-2.8571c-0.57143 0-0.95238 0.38095-0.95238 0.95238 0 0.57143 0.38095 0.95238 0.95238 0.95238 0.57143 0 0.95238-0.38095 0.95238-0.95238 0-0.57143-0.38095-0.95238-0.95238-0.95238zm15.714 7.1429c-0.28571 0-0.47619-0.19048-0.47619-0.47619v-0.95238c0-0.7619-0.66667-1.4286-1.4286-1.4286h-2.8571c-0.28571 0-0.47619-0.19048-0.47619-0.47619s0.19048-0.47619 0.47619-0.47619h2.8571c1.3333 0 2.381 1.0476 2.381 2.381v0.95238c0 0.28571-0.19048 0.47619-0.47619 0.47619zm-3.3333-4.2857c-1.0476 0-1.9048-0.85714-1.9048-1.9048 0-1.0476 0.85714-1.9048 1.9048-1.9048s1.9048 0.85714 1.9048 1.9048c0 1.0476-0.85714 1.9048-1.9048 1.9048zm0-2.8571c-0.57143 0-0.95238 0.38095-0.95238 0.95238 0 0.57143 0.38095 0.95238 0.95238 0.95238s0.95238-0.38095 0.95238-0.95238c0-0.57143-0.38095-0.95238-0.95238-0.95238z"]}},function(e,t){e.exports={prefix:"cv",iconName:"hamburger",icon:["24","24",[],"","M19,15.75 C19.4142136,15.75 19.75,16.0857864 19.75,16.5 C19.75,16.8796958 19.4678461,17.193491 19.1017706,17.2431534 L19,17.25 L5,17.25 C4.58578644,17.25 4.25,16.9142136 4.25,16.5 C4.25,16.1203042 4.53215388,15.806509 4.89822944,15.7568466 L5,15.75 L19,15.75 Z M19,10.75 C19.4142136,10.75 19.75,11.0857864 19.75,11.5 C19.75,11.8796958 19.4678461,12.193491 19.1017706,12.2431534 L19,12.25 L5,12.25 C4.58578644,12.25 4.25,11.9142136 4.25,11.5 C4.25,11.1203042 4.53215388,10.806509 4.89822944,10.7568466 L5,10.75 L19,10.75 Z M19,5.75 C19.4142136,5.75 19.75,6.08578644 19.75,6.5 C19.75,6.87969577 19.4678461,7.19349096 19.1017706,7.24315338 L19,7.25 L5,7.25 C4.58578644,7.25 4.25,6.91421356 4.25,6.5 C4.25,6.12030423 4.53215388,5.80650904 4.89822944,5.75684662 L5,5.75 L19,5.75 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file",icon:["24","24",[],"","M6 4h7l6 5v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm6.586 1H6v14h12V9.414L12.586 5zM13 10h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 1 1 1 0V10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-pdf",icon:["24","24",[],"","M9.833 15.006c-.328.765-.657 1.316-.997 1.619-.35.312-.762.394-1.138.15a1.345 1.345 0 0 1-.358-.322c-.298-.402-.194-.843.165-1.2.228-.227.563-.433.983-.63.226-.106.466-.204.706-.292.142-.358.286-.762.43-1.205a41.787 41.787 0 0 0 .866-3.123c-.435-.563-.75-1.057-.924-1.473-.28-.67-.211-1.242.372-1.494.56-.24 1.047-.086 1.307.391.17.312.234.736.231 1.26a7.96 7.96 0 0 1-.086 1.088c.158.195.33.398.513.606a30.903 30.903 0 0 0 1.73 1.81 14.011 14.011 0 0 0 .863.761c.464-.07.87-.106 1.213-.105.947.002 1.554.319 1.415 1.079-.107.585-.514.888-1.06.834-.365-.036-.781-.224-1.259-.532a8.753 8.753 0 0 1-.538-.38 21.15 21.15 0 0 0-.944.191c-.39.087-.798.188-1.22.3a45.345 45.345 0 0 0-2.27.667zM6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm4.43 8.39c-.07.21-.138.412-.207.606l.055-.016a46.181 46.181 0 0 1 1.608-.459 33.869 33.869 0 0 1 1.538-.37 15.994 15.994 0 0 1-.378-.35 31.732 31.732 0 0 1-1.882-1.98l-.083.32a38.471 38.471 0 0 1-.652 2.248zm-2.157 2.603c.12-.107.248-.279.382-.51a2.35 2.35 0 0 0-.553.37c-.092.092-.09.086-.083.096a.54.54 0 0 0 .138.116c.017.01.025.01.116-.072zm7.434-2.3c-.047 0-.095 0-.146.002.242.132.443.209.585.223.11.011.118.005.146-.145.005-.027-.095-.079-.585-.08zm-5.36-5.49c.065.156.16.334.283.53v-.05c.003-.393-.044-.696-.128-.85-.046-.086-.063-.091-.23-.02-.04.018-.05.092.075.39z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-img",icon:["24","24",[],"","M5 6v12h14V6H5zm0-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm2.4 10.3a.5.5 0 0 1-.8-.6l3-4a.5.5 0 0 1 .754-.054l.579.58 1.765-2.513a.5.5 0 0 1 .83.015l3.891 6a.5.5 0 0 1-.838.544l-3.49-5.379-1.682 2.394a.5.5 0 0 1-.763.067l-.592-.593L7.4 15.3zm.6-4.8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-ppt",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.07 6.96h1.22c.18 0 .353-.013.52-.04a1.21 1.21 0 0 0 .44-.155.844.844 0 0 0 .305-.325c.077-.14.115-.323.115-.55 0-.227-.038-.41-.115-.55a.844.844 0 0 0-.305-.325 1.21 1.21 0 0 0-.44-.155 3.288 3.288 0 0 0-.52-.04h-1.22v2.14zM9.5 8.6h3.22c.447 0 .827.065 1.14.195.313.13.568.302.765.515.197.213.34.457.43.73a2.715 2.715 0 0 1 0 1.695c-.09.277-.233.522-.43.735a2.133 2.133 0 0 1-.765.515c-.313.13-.693.195-1.14.195h-1.65v2.56H9.5V8.6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-word",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm8.77 10.74h-1.56L12 10.88h-.02l-1.19 4.86H9.2L7.31 8.6h1.57l1.13 4.86h.02l1.24-4.86h1.47l1.22 4.92h.02l1.17-4.92h1.54l-1.92 7.14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-zip",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5 0h1v1h-1V5zm1 1h1v1h-1V6zm-1 1h1v1h-1V7zm1 1h1v1h-1V8zm-1 1h1v1h-1V9zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-excel",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.09 7l-2.3-3.4h1.82l1.4 2.28 1.45-2.28h1.72l-2.29 3.41 2.49 3.73h-1.87l-1.56-2.47-1.59 2.47H8.6L11.09 12z"]}},function(e,t){e.exports={prefix:"cv",iconName:"twitter",icon:["24","24",[],"","M20.594 7.117c-.422.656-.985 1.242-1.688 1.758v.422c0 2.46-.885 4.693-2.654 6.697C14.482 17.998 12.132 19 9.203 19c-1.875 0-3.61-.516-5.203-1.547.375.047.645.07.809.07 1.57 0 2.976-.492 4.218-1.476a3.422 3.422 0 0 1-1.968-.686 3.22 3.22 0 0 1-1.196-1.67c.282.047.492.07.633.07.234 0 .54-.046.914-.14a3.436 3.436 0 0 1-1.951-1.178 3.24 3.24 0 0 1-.791-2.162v-.035c.516.281 1.031.422 1.547.422-1.008-.656-1.512-1.605-1.512-2.848 0-.586.152-1.148.457-1.687 1.805 2.226 4.137 3.41 6.996 3.55-.047-.163-.07-.421-.07-.773 0-.96.328-1.77.984-2.426.657-.656 1.465-.984 2.426-.984.961 0 1.781.363 2.461 1.09.703-.117 1.43-.399 2.18-.844-.235.82-.739 1.453-1.512 1.899a5.806 5.806 0 0 0 1.969-.528z"]}},function(e,t){e.exports={prefix:"cv",iconName:"facebook",icon:["24","24",[],"","M13.667 9.667H16L15.708 12h-2.041v7H10.64v-7H9V9.667h1.64V8.099c0-1.02.256-1.793.766-2.315.51-.523 1.361-.784 2.552-.784H16v2.333h-1.24c-.461 0-.76.073-.893.22-.133.145-.2.388-.2.728v1.386z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm3.186 5.646l-4.723 5.18-1.683-1.615a.772.772 0 0 0-1.06 0 .7.7 0 0 0 0 1.018l2.25 2.16a.771.771 0 0 0 1.094-.035l5.25-5.76a.7.7 0 0 0-.07-1.016.772.772 0 0 0-1.058.068z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle-o",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212a7.737 7.737 0 0 0-5.508 2.28A7.737 7.737 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.737 7.737 0 0 0 12 19.788a7.737 7.737 0 0 0 5.508-2.28A7.737 7.737 0 0 0 19.788 12a7.737 7.737 0 0 0-2.28-5.508A7.737 7.737 0 0 0 12 4.212zm3.186 4.434a.772.772 0 0 1 1.058-.068.7.7 0 0 1 .07 1.016l-5.25 5.76a.771.771 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.772.772 0 0 1 1.06 0l1.683 1.616 4.723-5.181z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check",icon:["24","24",[],"","M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 0 1 1.414-1.414l2.244 2.244 6.296-7.196z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption-badge",icon:["24","24",[],"","M7.5 5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 16.5 5h-9zm0-1h9A3.5 3.5 0 0 1 20 7.5v9a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-9A3.5 3.5 0 0 1 7.5 4zM11 9a.5.5 0 1 1 0 1H9.5A1.5 1.5 0 0 0 8 11.5v1A1.5 1.5 0 0 0 9.5 14H11a.5.5 0 1 1 0 1H9.5A2.5 2.5 0 0 1 7 12.5v-1A2.5 2.5 0 0 1 9.5 9H11zm5 0a.5.5 0 1 1 0 1h-1.5a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5H16a.5.5 0 1 1 0 1h-1.5a2.5 2.5 0 0 1-2.5-2.5v-1A2.5 2.5 0 0 1 14.5 9H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"question",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zM8.142 9.17c0 .247.103.476.309.687.206.212.46.318.76.318.508 0 .854-.303 1.036-.908.193-.579.428-1.017.707-1.314.278-.297.712-.446 1.302-.446.503 0 .914.147 1.233.442.319.294.478.656.478 1.085 0 .22-.052.423-.157.61a2.305 2.305 0 0 1-.385.51c-.153.153-.4.38-.744.68-.39.342-.701.638-.932.887-.23.25-.415.539-.554.868-.14.33-.209.72-.209 1.17 0 .358.095.629.285.81.19.183.425.274.703.274.536 0 .855-.279.956-.836a12.2 12.2 0 0 1 .133-.55c.03-.104.071-.209.125-.313.053-.105.135-.22.245-.346.11-.126.255-.272.438-.438a48.078 48.078 0 0 0 1.37-1.257c.254-.25.474-.545.658-.888.185-.343.278-.742.278-1.197a2.87 2.87 0 0 0-.486-1.608c-.325-.492-.784-.882-1.378-1.169-.595-.286-1.28-.43-2.057-.43-.836 0-1.567.172-2.194.515s-1.104.775-1.43 1.297c-.327.523-.49 1.038-.49 1.547zm3.868 9.579c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797a1.073 1.073 0 0 0-.793-.324c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"info",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zm-10-.38V15a2.5 2.5 0 0 0 2.5 2.5h.75a1 1 0 0 0 0-2h-.75a.5.5 0 0 1-.5-.5v-3.75a1.75 1.75 0 0 0-1.75-1.75h-.75a1 1 0 1 0 0 2h.5zm.636-3.25c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797A1.073 1.073 0 0 0 11.636 6c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"lock",icon:["24","24",[],"","M7.01 9.5C7.156 5.97 8.87 4 12 4s4.844 1.97 4.99 5.5h1.51a.5.5 0 0 1 .5.5v9.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .5-.5h1.51zm2 0h5.98C14.88 7.037 13.932 6 12 6c-1.933 0-2.88 1.037-2.99 3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"timer",icon:["24","24",[],"","M12,19.0588235 C15.8984806,19.0588235 19.0588235,15.8984806 19.0588235,12 C19.0588235,8.10151941 15.8984806,4.94117647 12,4.94117647 C8.10151941,4.94117647 4.94117647,8.10151941 4.94117647,12 C4.94117647,15.8984806 8.10151941,19.0588235 12,19.0588235 Z M12,4 C16.418278,4 20,7.581722 20,12 C20,16.418278 16.418278,20 12,20 C7.581722,20 4,16.418278 4,12 C4,7.581722 7.581722,4 12,4 Z M11.7714286,6.74285714 C11.5189555,6.74285714 11.3142857,6.94752697 11.3142857,7.2 L11.3142857,12.6857143 C11.3142857,12.8332404 11.38548,12.9716989 11.5054691,13.0575276 L14.6792786,15.3277657 C14.8846254,15.4746511 15.170166,15.4272587 15.3170514,15.2219119 C15.4639368,15.016565 15.4165444,14.7310244 15.2111976,14.5841391 L12.2285714,12.4506552 L12.2285714,7.2 C12.2285714,6.94752697 12.0239016,6.74285714 11.7714286,6.74285714 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"verified",icon:["24","24",[],"","M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning-o",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 5L3.5 19h17L12 5zm0 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm.75-3.677a.689.689 0 0 1-.7.677.689.689 0 0 1-.7-.677V8.677c0-.374.313-.677.7-.677.387 0 .7.303.7.677v5.646z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm.75-3.677V8.677a.689.689 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677.387 0 .7-.303.7-.677z"]}},function(e,t,n){var r=n(236),i=n(237),a={float:"cssFloat"},o=n(240);function c(e,t,n){var c=a[t];if(void 0===c&&(c=function(e){var t=i(e),n=r(t);return a[t]=a[e]=a[n]=n,n}(t)),c){if(void 0===n)return e.style[c];e.style[c]=o(c,n)}}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&c(e,n,t[n])}function u(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:s(arguments[0],arguments[1]):c(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=c(e,n||""),t}),{}):c(e,t||"")}},function(e,t,n){"use strict";var r,i,a,o,c,s,u,l,f,p,d,m,h,y,v,b,g,S,E,O,C,w,A,j,T;n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return A})),n.d(t,"f",(function(){return j})),n.d(t,"b",(function(){return T})),function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Answer="cv_product_submit",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share"}(i||(i={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PreviewInteractive="preview_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.Dashboard="dashboard",e.ProductBanner="product_banner",e.Settings="settings"}(a||(a={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(o||(o={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(s||(s={})),function(e){e.Publish="publish",e.Unpublish="unpublish"}(u||(u={})),function(e){e.ActivateUser="activate_user"}(l||(l={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(f||(f={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(p||(p={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(d||(d={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(m||(m={})),function(e){e.Embedded="embedded"}(h||(h={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide",e.ExternalLink="external_link",e.ViewStudentWorkspace="view_student_workspace"}(y||(y={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip",e.EditVideoDetails="edit_video_details",e.DeleteVideo="delete_video"}(v||(v={})),function(e){e.LibraryReview="library_review"}(b||(b={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(g||(g={})),function(e){e.Edit="edit"}(S||(S={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist",e.Link="link",e.Avatar="avatar",e.Clip="clip",e.Interactive="interactive"}(E||(E={})),function(e){e.On="on",e.Off="off"}(O||(O={})),function(e){e.ContinueSession="continue_session",e.NewSession="new_session"}(C||(C={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(w||(w={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(A||(A={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects"}(j||(j={})),function(e){e[e.V1=1]="V1",e[e.V2=2]="V2"}(T||(T={}))},function(e,t,n){"use strict";var r;!function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(43);var i=function(e){this.j=[],this.T=e||null};i.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],i=n[1];if(this.test(e,r))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var a=(0,r.inherits)(i,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),o=(0,r.inherits)(i,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=a,t.TokenState=o,t.stateify=function(e,t,n,r){for(var i=0,o=e.length,c=t,s=[],u=void 0;i<o&&(u=c.next(e[i]));)c=u,i++;if(i>=o)return[];for(;i<o-1;)u=new a(r),s.push(u),c.on(e[i],u),c=u,i++;return u=new a(n),s.push(u),c.on(e[o-1],u),s}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){"use strict";var r=n(192);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}))},function(e,t){},function(e,t,n){const{noopTest:r,edit:i,merge:a}=n(35),o={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:r,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};o.def=i(o.def).replace("label",o._label).replace("title",o._title).getRegex(),o.bullet=/(?:[*+-]|\d{1,9}\.)/,o.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,o.item=i(o.item,"gm").replace(/bull/g,o.bullet).getRegex(),o.list=i(o.list).replace(/bull/g,o.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+o.def.source+")").getRegex(),o._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o._comment=/<!--(?!-?>)[\s\S]*?-->/,o.html=i(o.html,"i").replace("comment",o._comment).replace("tag",o._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),o.paragraph=i(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",o._tag).getRegex(),o.blockquote=i(o.blockquote).replace("paragraph",o.paragraph).getRegex(),o.normal=a({},o),o.gfm=a({},o.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),o.pedantic=a({},o.normal,{html:i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",o._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:r,paragraph:i(o.normal._paragraph).replace("hr",o.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",o.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const c={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};c.em=i(c.em).replace(/punctuation/g,c._punctuation).getRegex(),c._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,c._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,c._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,c.autolink=i(c.autolink).replace("scheme",c._scheme).replace("email",c._email).getRegex(),c._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,c.tag=i(c.tag).replace("comment",o._comment).replace("attribute",c._attribute).getRegex(),c._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,c._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,c._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,c.link=i(c.link).replace("label",c._label).replace("href",c._href).replace("title",c._title).getRegex(),c.reflink=i(c.reflink).replace("label",c._label).getRegex(),c.normal=a({},c),c.pedantic=a({},c.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:i(/^!?\[(label)\]\((.*?)\)/).replace("label",c._label).getRegex(),reflink:i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",c._label).getRegex()}),c.gfm=a({},c.normal,{escape:i(c.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),c.gfm.url=i(c.gfm.url,"i").replace("email",c.gfm._extended_email).getRegex(),c.breaks=a({},c.gfm,{br:i(c.br).replace("{2,}","*").getRegex(),text:i(c.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:o,inline:c}},function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},function(e,t,n){const r=n(60),{defaults:i}=n(40),{inline:a}=n(193),{findClosingBracket:o,escape:c}=n(35);e.exports=class e{constructor(e,t){if(this.options=t||i,this.links=e,this.rules=a.normal,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=a.pedantic:this.options.gfm&&(this.options.breaks?this.rules=a.breaks:this.rules=a.gfm)}static get rules(){return a}static output(t,n,r){return new e(n,r).output(t)}output(t){let n,r,i,a,s,u,l="";for(;t;)if(s=this.rules.escape.exec(t))t=t.substring(s[0].length),l+=c(s[1]);else if(s=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),t=t.substring(s[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(t)){const r=o(s[2],"()");if(r>-1){const e=(0===s[0].indexOf("!")?5:4)+s[1].length+r;s[2]=s[2].substring(0,r),s[0]=s[0].substring(0,e).trim(),s[3]=""}t=t.substring(s[0].length),this.inLink=!0,i=s[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),n?(i=n[1],a=n[3]):a=""):a=s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(s,{href:e.escapes(i),title:e.escapes(a)}),this.inLink=!1}else if((s=this.rules.reflink.exec(t))||(s=this.rules.nolink.exec(t))){if(t=t.substring(s[0].length),n=(s[2]||s[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){l+=s[0].charAt(0),t=s[0].substring(1)+t;continue}this.inLink=!0,l+=this.outputLink(s,n),this.inLink=!1}else if(s=this.rules.strong.exec(t))t=t.substring(s[0].length),l+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(t))t=t.substring(s[0].length),l+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(t))t=t.substring(s[0].length),l+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(t))t=t.substring(s[0].length),l+=this.renderer.br();else if(s=this.rules.del.exec(t))t=t.substring(s[0].length),l+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(t))t=t.substring(s[0].length),"@"===s[2]?(r=c(this.mangle(s[1])),i="mailto:"+r):(r=c(s[1]),i=r),l+=this.renderer.link(i,null,r);else if(this.inLink||!(s=this.rules.url.exec(t))){if(s=this.rules.text.exec(t))t=t.substring(s[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0]):l+=this.renderer.text(c(this.smartypants(s[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===s[2])r=c(s[0]),i="mailto:"+r;else{do{u=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(u!==s[0]);r=c(s[0]),i="www."===s[1]?"http://"+r:r}t=t.substring(s[0].length),l+=this.renderer.link(i,null,r)}return l}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,r=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,c(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,r="",i=0;for(;i<t;i++)n=e.charCodeAt(i),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}}},function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},function(e,t,n){"use strict";var r=n(8);function i(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var a=[r.a.POST,r.a.PUT];function o(e){var t=e.resource,n=e.type,r=e.headers,o=e.success,c=e.error,s=e.always,u={url:t,method:n};a.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),r&&(u.headers=r),$.ajax(u).done((function(e,t,n){o&&o(e,i(n))})).fail((function(e){c&&c(i(e))})).always((function(){s&&s()}))}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(6);function i(e,t){return e===t}function a(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=null,r=null;return function(){return a(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function c(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,o=r.pop(),s=c(r),u=e.apply(void 0,[function(){return a++,o.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return u.apply(null,e)}));return l.resultFunc=o,l.dependencies=s,l.recomputations=function(){return a},l.resetRecomputations=function(){return a=0},l}}var u=s(o);var l=n(31),f=n(7),p=n(18),d=n(28),m=n(19),h=n(0);function y(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)}}n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return O})),n.d(t,"e",(function(){return C})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return A})),n.d(t,"f",(function(){return j}));var v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===m.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===m.a.Fetching}},{key:"hasError",get:function(){return this.status===m.a.Error}},{key:"isComplete",get:function(){return this.status===m.a.Success||this.status===m.a.Error}}])&&y(t.prototype,n),r&&y(t,r),e}();function b(e,t,n){if(!e||!t)return g();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new v({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function g(){return new v({status:m.a.None})}function S(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function E(e,t){return function(){O(e,t)}}function O(e,t){e({type:p.a.API_REQUEST,request:t})}function C(e,t){var n,r,i,a,o=S(e.getState(),null==t?void 0:t.key);if(t&&o.shouldFetch)O(e.dispatch,t);else if(o.isFetching)var c=e.subscribe((function(){C(e,t),c()}));else o.hasError?(null===(n=t.error)||void 0===n||n.call(t,{status:o.statusCode,getResponseHeader:null}),null===(r=t.always)||void 0===r||r.call(t)):(null===(i=t.success)||void 0===i||i.call(t,o.data),null===(a=t.always)||void 0===a||a.call(t))}function w(e){var t=Object(r.useDispatch)();if(e)return E(t,e)}function A(e,t){var n=Object(h.useMemo)((function(){return(null==t?void 0:t.optimize)?function(e){return s(o,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return u((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function j(e,t){var n=Object(r.useDispatch)(),i=A(e&&e.key,t),a=E(n,e);return e&&i.shouldFetch&&a(),i}},function(e,t,n){"use strict";var r,i;!function(e){e.Boolean="System.Boolean",e.String="System.String",e.StaffRequest="ClickView.DomainApi.Models.Options.Enums.StaffRequestOption, ClickView.DomainApi.Models, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null",e.Long="System.Int64"}(r||(r={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(i||(i={})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(215);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(15),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.a.Buffer:void 0,c=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(57)(e))},function(e,t){e.exports=p},function(e,t,n){"use strict";e.exports=n(219).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var r,i=n(232),a=(r=i)&&r.__esModule?r:{default:r};t.default=a.default,t.Scrollbars=a.default},function(e,t,n){e.exports={dropdownToggle:"AYBvQ"}},function(e,t,n){e.exports=n(248).default},function(e,t){e.exports=d},function(e,t,n){e.exports={navContainer:"_3SbvR"}},function(e,t,n){e.exports={navContainer:"_11O8h"}},function(e,t,n){e.exports={navContainer:"_3by-P"}},function(e,t,n){e.exports={navContainer:"_3vLoN"}},function(e,t,n){"use strict";var r=n(256).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){e.exports={copyBtn:"_3uXV3"}},function(e,t){e.exports=m},function(e,t,n){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Yup","ReactBootstrap","Backbone","ReactRedux","Marionette","FontAwesome","DOMPurify","SortableHOC","ReactDOM","ReactTransitionGroup","Polyglot","Cropper","Handlebars"],t):"object"==typeof exports?exports["@clickview/curator"]=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):e["@clickview/curator"]=t(e.React,e._,e.Yup,e.ReactBootstrap,e.Backbone,e.ReactRedux,e.Marionette,e.FontAwesome,e.DOMPurify,e.SortableHOC,e.ReactDOM,e.ReactTransitionGroup,e.Polyglot,e.Cropper,e.Handlebars)}(window,(function(e,t,n,r,a,i,o,c,u,s,l,f,p,d,m){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=265)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return O}));var r=n(5),a=n(9),i=n(37),o=n(12);function c(e){return(c="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 u(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,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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&&v(e,t)}function p(e){var t=y();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function h(e,t,n){return(h=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&v(a,n.prototype),a}).apply(null,arguments)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(m(Error)),S=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"SilentError"}}]),n}(g),E=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"CoreError"}}]),n}(m(Error)),C={},O={throw:function(e){if(r.Radio.channel(a.a.SHELL).trigger(o.a.ERROR,e),!(e instanceof S||i.a.isDevelopment))throw e},delayedThrow:function(e,t,n){C[e]||(C[e]=!0,window.setTimeout((function(){O.throw(t),delete C[e]}),n))}}},function(e,t){e.exports=a},function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o={isEmpty:function(e){return r.isEmpty(e)},values:function(e){return r.values(e)},keys:function(e){return r.keys(e)},deepClone:function(e){return(r.isArray(e)?r.map:r.mapObject)(e,(function(e){return r.isObject(e)||r.isArray(e)?o.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return r.isObject(e)},isEqual:function(e,t){return r.isEqual(e,t)},omit:function(e,t){return r.omit(e,t)},removeEmptyKeys:function(e){return Object.entries(e).filter((function(e){return null!==a(e,2)[1]})).reduce((function(e,t){var n=a(t,2),r=n[0],i=n[1];return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,i))}),{})}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),a=n(7);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={first:function(e){return r.first(e)},firstFew:function(e,t){return r.first(e,t)},last:function(e){return r.last(e)},lastFew:function(e,t){return r.last(e,t)},max:function(e,t){return r.max(e,t)},cloneAndReplaceAtIdx:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=e&&e.length?e.slice():[];return t+1>a.length&&(a=[].concat(o(a),o(Array(t+1-a.length).fill(r)))),a.splice(t,1,n),a},moveItem:function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:function(e){return e&&!e.length},findIndex:function(e,t){return r.findIndex(e,t)},findWhere:function(e,t){return r.findWhere(e,t)},where:function(e,t){return r.where(e,t)},groupBy:function(e,t){return r.groupBy(e,t)},countBy:function(e,t){return r.countBy(e,t)},flatten:function(e,t){return r.flatten(e,t)},intersection:function(){return r.intersection.apply(r,arguments)},addOrRemove:function(e,t){var n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable:function(e,t){var n=e.indexOf(t),r=a.a.deepClone(e);return-1===n?[].concat(o(r),[t]):[].concat(o(r.slice(0,n)),o(r.slice(n+1)))},sortBy:function(e,t){return r.sortBy(e,t)},chunk:function(e,t){return r.chunk(e,t)},uniq:function(e,t){return r.uniq(e,t)},toObject:function(e,t){return e.reduce((function(e,n){return Object.assign(e,a.a.isObject(n)?i({},n[t],n):i({},t,n))}),{})}}},function(e,t,n){"use strict";function r(e){return(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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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),Object.defineProperty(e,r.key,r)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!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&&o(e,t)}(s,e);var t,n,r,u=c(s);function s(){return a(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"name",get:function(){return"DevError"}}])&&i(t.prototype,n),r&&i(t,r),s}(n(4).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},function(e,t,n){"use strict";var r=n(180);n.d(t,"EntityType",(function(){return r.a})),n.d(t,"EventVersion",(function(){return r.b})),n.d(t,"InteractionType",(function(){return r.c})),n.d(t,"InteractionTypeDescriptor",(function(){return r.d})),n.d(t,"LocationContext",(function(){return r.e})),n.d(t,"SearchQueryType",(function(){return r.f})),n.d(t,"UserAction",(function(){return r.g}));n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5);function a(e,t,n,a){var i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),a.call(this,i,t,n)}},function(e,t,n){"use strict";var r=n(48),a="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||a||Function("return this")();t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var r=n(1),a=n(5),i=n(25),o=n(9),c=n(12),u=/((\(\?)?:\w+)|(\*\w+)/,s=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){a.Radio.channel(o.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&a.Radio.channel(o.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return a.Radio.channel(o.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;a.Radio.channel(n).trigger(r,e,t)},m={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,i=e.params,u=a.Radio.channel(o.a.SHELL).request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,i);return!1===u?"":"/".concat(u)},buildRoute:function(e,t){if(!t)return e;var n=t.args,a=t.params;if(r.each(n,(function(t){e=e.replace(u,t||"")})),e=(e=(e=e.replace(l,"")).replace(s,"")).replace(f,""),!a)return e;var o=i.a.SerializeQueryParams(a);return o.length?"".concat(e,"?").concat(o):e},trigger:function(e,t){e&&(p.hasActiveRoute()?a.Radio.channel(o.a.SHELL).once("routing:end",(function(){d(e,t)})):d(e,t))},getCurrentAppLink:function(){return a.Radio.channel(o.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r={API_REQUEST:"API_REQUEST",API_RESPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(197);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}));var a=n(205);n.d(t,"DomainOptionKind",(function(){return a.a})),n.d(t,"DomainOptionType",(function(){return a.b}))},function(e,t,n){e.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),a=n(14),i=n(4);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 c(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!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&&s(e,t)}(f,e);var t,n,r,o=l(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=o.call(this,e)).name||i.c.throw(new i.b("Your service must be named.")),t}return t=f,(n=[{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t,n){e.exports={tree:"_1abau",text:"f13wK",chevron:"_25eVA",disabled:"_1qyCo",parentOfSelected:"_1fgN6",selected:"cVZit",actions:"_2BGWp",node:"rJVbQ",collapsed:"vc2by"}},function(e,t,n){"use strict";n.r(t);var r=n(16);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b}));var a=n(44);n.d(t,"Application",(function(){return a.a}));var i=n(64);n.d(t,"AppRouter",(function(){return i.a}));var o=n(65);n.d(t,"Behavior",(function(){return o.a}));var c=n(36);n.d(t,"Collection",(function(){return c.a}));var u=n(56);n.d(t,"CollectionView",(function(){return u.a})),n.d(t,"ComponentCollection",(function(){return u.a}));var s=n(4);n.d(t,"Error",(function(){return s.a})),n.d(t,"ErrorHelper",(function(){return s.c})),n.d(t,"SilentError",(function(){return s.d}));var l=n(46);n.d(t,"LayoutView",(function(){return l.a}));var f=n(66);n.d(t,"NestedModel",(function(){return f.a}));var p=n(22);n.d(t,"Service",(function(){return p.a}));var d=n(30);n.d(t,"Model",(function(){return d.a}));var m=n(41);n.d(t,"View",(function(){return m.b})),n.d(t,"Component",(function(){return m.a}));var h=n(12);n.d(t,"EventNames",(function(){return h.a}));var y=n(67);n.d(t,"LayoutService",(function(){return y.a}));var v=n(45);n.d(t,"Middleware",(function(){return v.a}));var b=n(25);n.d(t,"LocationUtils",(function(){return b.a}));var g=n(68);n.d(t,"Shell",(function(){return g.a}));var S=n(69);for(var E in S)["AppLinkHelper","AppLinkUtility","Application","AppRouter","Behavior","Collection","CollectionView","ComponentCollection","Error","ErrorHelper","SilentError","LayoutView","NestedModel","Service","Model","View","Component","EventNames","LayoutService","Middleware","LocationUtils","Shell","default"].indexOf(E)<0&&function(e){n.d(t,e,(function(){return S[e]}))}(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),a=n(5),i=n(16),o=n(12),c=n(9),u={GetQuery:function(){return u.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=u.GetQuery(),n=u.SerializeQueryParams(r.extend(t,e));n&&(n="?".concat(n)),u.UpdateUrl("".concat(u.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=i.a.buildRoute(e,t);a.history.navigate(r,n),a.Radio.channel(c.a.SHELL).trigger(o.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){if(!e)return"";if("string"==typeof e)return e;var t=[],n=function(e,t){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))};return Object.keys(e).forEach((function(r){var a=e[r];null!=a&&(Array.isArray(a)?a.forEach((function(e){t.push(n(r,e))})):t.push(n(r,a)))})),t.join("&")},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],a=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(a),e):(e[r]=[e[r],a],e):(e[r]=a,e)}),{}):{}},StartHistory:function(){a.History.started&&a.history.stop(),a.history.start({pushState:!0})},PageLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.open(e,"_blank"):window.location.href=e},Redirect:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return t?window.location.replace(e):window.location.href=e};i.b.hasActiveRoute()?a.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(e)},GetCurrentPath:function(){return window.location.pathname},GetCurrentQueryString:function(){return window.location.search},GetCurrentUrl:function(){return window.location.href},GetCurrentReferrer:function(){return document.referrer},GetCurrentOrigin:function(){return window.location.origin},SetPageTitle:function(e){document.title=e}}},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){e.exports={container:"_3EWY_",bgBlue:"_1Ng_J",bgGreen:"_29fTV",bgPink:"_3lDZs",bgYellow:"_1T2-A",background:"_3Spjo",topLeft:"mkg7X",bottomLeft:"_1gjz-",topRight:"eywQO",bottomRight:"hoL8p",detailsBtn:"_2I02W",content:"_1rfSN"}},function(e,t,n){"use strict";var r=n(11),a=n(24);function i(e){return(i="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 o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,i=void 0===n?"id":n,o=t.namespace,c=void 0===o?"":o;return e[i]||a.ErrorHelper.throw(new r.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(c,"__").concat(e[i])}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,a=void 0===r?"id":r,i=[];return e.forEach((function(e){e[a]&&i.push(o(e,n)),s(e,t,n)})),i}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,a=void 0===r?"id":r,s=Object.assign({},e);if(Object.keys(e).forEach((function(r){var l=e[r];if(l)if(Array.isArray(l)){var f=c(l,t,n);f.length&&(s[r]=f)}else if("object"===i(l)){var p=u(l,t,n);l[a]?s[r]=o(l,n):s[r]=p}})),e[a]){var l=o(e,n);return t[l]?t[l]=Object.assign(Object.assign({},t[l]),s):t[l]=s,l}return s}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?c(e,t,n):"object"===i(e)?u(e,t,n):e}function l(e,t){var n={};return{result:s(e,n,t),entities:n}}var f=n(7);function p(e){return(p="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 d(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=d(t[e],t,n);return Object.assign(n[e],r),f.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return d(e,t,n)}));if("object"===p(e)){var r={};return Object.keys(e).forEach((function(a){r[a]=d(e[a],t,n)||e[a]})),r}return e}}function m(e,t){return d(e,t,{})}n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return m}))},function(e,t,n){"use strict";(function(e){var r=n(48),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.a.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=c}).call(this,n(57)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),a=n(5),i=n(14);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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!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&&l(e,t)}(p,e);var t,n,a,o=f(p);function p(){return c(this,p),o.apply(this,arguments)}return t=p,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=r.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){s(d(p.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(d(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),a&&u(t,a),p}(a.Model)},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=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return o}));function i(e){var t=+e;return isNaN(t)||!t?0:t}var o={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<o.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"},convertDurationToSeconds:function(e){var t,n,a,o=r(e.split(":"),3),c=o[0],u=o[1];return o[2]||(a=u,n=c,t="0"),60*i(t)*60+60*i(n)+i(a)}}},function(e,t,n){e.exports={draggableVideoItem:"_1JMCe",draggedVideoItem:"_3jjle"}},function(e,t,n){"use strict";var r=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var c,u,s,l=r(t),f=r(n);if(l&&f){if((u=t.length)!=n.length)return!1;for(c=u;0!=c--;)if(!e(t[c],n[c]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,d=n instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==n.getTime();var m=t instanceof RegExp,h=n instanceof RegExp;if(m!=h)return!1;if(m&&h)return t.toString()==n.toString();var y=a(t);if((u=y.length)!==a(n).length)return!1;for(c=u;0!=c--;)if(!i.call(n,y[c]))return!1;if(o&&t instanceof Element&&n instanceof Element)return t===n;for(c=u;0!=c--;)if(!("_owner"===(s=y[c])&&t.$$typeof||e(t[s],n[s])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t,n){e.exports=n(226)()},function(e,t){const n=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=e=>o[e];const u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function s(e){return e.replace(u,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const l=/(^|[^\[])\^/g;const f=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},m=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=b(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(h,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(y,"$1")+t:e+t}function b(e,t,n){const r=e.length;if(0===r)return"";let a=0;for(;a<r;){const i=e.charAt(r-a-1);if(i!==t||n){if(i===t||!n)break;a++}else a++}return e.substr(0,r-a)}e.exports={escape:function(e,t){if(t){if(n.test(e))return e.replace(r,c)}else if(a.test(e))return e.replace(i,c);return e},unescape:s,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(l,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(s(n)).replace(f,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!p.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:v,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,a=t;for(;--a>=0&&"\\"===n[a];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:b,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,a=0;for(;a<n;a++)if("\\"===e[a])a++;else if(e[a]===t[0])r++;else if(e[a]===t[1]&&(r--,r<0))return a;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(5),a=n(14);function i(e){return(i="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!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&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return o(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return a}));var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.variables={}}var t,n,a;return t=e,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}},{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}}])&&r(t.prototype,n),a&&r(t,a),e}().Instance},function(e,t){e.exports=c},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i={getMatchingKeyMap:function(e,t,n){var a=Array.isArray(t)?t:[t],i=[];return a.forEach((function(t){var n,a=new RegExp(t,"i"),o=Object.keys(e.resources).filter((function(e){return a.test(e)}));(n=i).push.apply(n,r(o))})),n&&(i=i.filter((function(e){return e!==n}))),i.reduce((function(e,t){return e[t]=!0,e}),{})}},o=n(47);var c={isSimulated:function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},simulateFetchData:function(e,t){var n=e.success,r=e.error,a=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:o.a.Ok,getResponseHeader:function(){return""}}):i.errorResponse&&r(i.errorResponse()),a())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))}};n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}))},function(e,t){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:n,changeDefaults:function(t){e.exports.defaults=t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return k}));var r=n(1),a=n(5),i=n(17),o=n(14),c=n(11),u=n(9),s=n(37),l=n(4),f=n(16);function p(e){return(p="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 d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 v(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function g(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&&S(e,t)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){g(n,e);var t=E(n);function n(e){var a;h(this,n),a=t.call(this,e);var i=[].concat(d(a.defaultProps),d(a.props||[]));return a.mergeOptions(e,i),r.result(O(a),"name")||l.c.throw(new l.b("Error: View with cid:".concat(a.cid," requires a name."))),a}return v(n,[{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,a;s.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",a=this.name,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t)),this.$el.attr(e)}},{key:"ui",get:function(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage},set:function(e){this.uiStorage=e}},{key:"elements",get:function(){return null}},{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"resetClassName",value:function(){this.$el.attr("class",r.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=b(w(n.prototype),"serializeData",this).call(this),a=r.result(this,"viewOptions"),i=r.extend({},t,{options:a});return n.ViewDataExtensions.length?r.extend.apply(r,[i].concat(d(r.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):i}},{key:"viewOptions",value:function(){return this.options}},{key:"undelegateAppLinks",value:function(){this.$el&&this.$el.off(".appLinks".concat(this.cid))}},{key:"renderAppLinks",value:function(){var e=this,t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),r.each(r.keys(t),(function(n){var r=n,a=t[n],i=f.a.getHref(a);"[this]"===r&&(r=null);var o=r?e.$el.find(n):e.$el;(o.is("a")||o.is("button"))&&(i&&"/"!==i&&o.attr("href",i),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(a)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=r.some(this.regions,(function(e){return r.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){a.Radio.channel(u.a.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],b(w(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var e=this.processRequriedResources(!0);return e&&(e=this.triggerMethod("before:render",this)),!1!==e&&(e=!0),!1===(e=e&&this.processRequriedResources(!1))?(this._partialLoadingRendered||!this.hasPartialLoadingRegions()||(this._partialLoadingRendered=!0,this._reInitRegions(),this._renderTemplate(),this.renderPartialLoading()),this):((this._isRendered||this._partialLoadingRendered)&&this._reInitRegions(),this.setTitle(),this._renderTemplate(),this.bindUIElements(),this.renderAppLinks(),this._partialLoadingRendered=!1,this._isRendered=!0,this.triggerMethod("render",this),this)}},{key:"processRequriedResources",value:function(e){return!0}},{key:"setTitle",value:function(){}}],[{key:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(i.View);A.ViewDataExtensions=[];var T=function(e){g(n,e);var t=E(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return v(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var a=this,i=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var o=r.dataServiceName;t.resourceInstances[o]||(t.resourceInstances[o]=r.getInstance(t)),t.boundListeners["".concat(o,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[o].channelName,r.eventName,t.render),t.boundListeners["".concat(o,":").concat(r.eventName)]=!0),a[n]=r.getData(t.resourceInstances[o]),i=i&&!!a[n]}})),i}},{key:"setTitle",value:function(){r.isString(this.title)||!1===this.title||l.c.throw(new c.a("Must define a title for ".concat(this.name,"."))),a.Radio.channel(u.a.SHELL).trigger("set:page:title",this.title)}}]),n}(A),k=function(e){g(n,e);var t=E(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(A)},function(e,t,n){e.exports={iconButton:"_3t3VL",iconWithText:"_2KLHo",svg:"_3OUhC",iconOnly:"_2rQWb"}},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var a in n)r[a]=n[a];return r.constructor=t,t.prototype=r,t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),a=n(5),i=n(17),o=n(12),c=n(14),u=n(4);function s(e){return(s="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 l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(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 d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!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&&m(e,t)}(f,e);var t,n,i,s=h(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this,e)).mergeOptions(e,[].concat(l(t.defaultProps),l(t.props||[]))),r.result(v(t),"name")||u.c.throw(new u.b("BaseApplication must define a name")),r.result(v(t),"channelName")||u.c.throw(new u.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),o.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||u.c.throw(new u.b("Global channel ".concat(t," does not exist"))),a.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||u.c.throw(new u.b("Layout: ".concat(this.layoutOptions.name," does not exist or was not registered"))),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}},{key:"onShowPopup",value:function(e){this.layout.getRegion("popup")||u.c.throw(new u.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}},{key:"onShowAlert",value:function(e){var t=e.ctor,n=e.collection,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):u.c.throw(new u.b("Your application layout must define an alert region"))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}},{key:"getAndClearDefaultQueryParams",value:function(){var e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],d(b(f.prototype),"listenTo",this))}}])&&p(t.prototype,n),i&&p(t,i),f}(i.Application)},function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return a}));var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,(n=[{key:"use",value:function(e){var t;this.go=(t=this.go,function(n,r){return t(n,(function(t){return e(t,r)}))})}},{key:"go",value:function(e,t){t(e)}}])&&r(t.prototype,n),a&&r(t,a),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(41),a=n(11),i=n(4);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 c(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!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&&u(e,t)}(l,e);var t,n,r,o=s(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){i.c.throw(new a.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),l}(r.b)},function(e,t,n){"use strict";var r,a;n.d(t,"a",(function(){return r})),function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(r||(r={})),function(e){e[e.Information=1]="Information",e[e.Success=2]="Success",e[e.Redirect=3]="Redirect",e[e.ClientError=4]="ClientError",e[e.ServerError=5]="ServerError"}(a||(a={}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(84))},function(e,t,n){"use strict";(function(e){var r=n(15),a=n(207),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=o&&o.exports===i?r.a.Buffer:void 0,u=(c?c.isBuffer:void 0)||a.a;t.a=u}).call(this,n(57)(e))},function(e,t){e.exports=u},function(e,t){e.exports=s},function(e,t,n){const r=n(260),a=n(261),i=n(60),o=n(202),c=n(201),u=n(200),{merge:s,checkSanitizeDeprecation:l,escape:f}=n(35),{getDefaults:p,changeDefaults:d,defaults:m}=n(40);function h(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=s({},h.defaults,t||{}),l(t);const i=t.highlight;let o,c,u=0;try{o=r.lex(e,t)}catch(e){return n(e)}c=o.length;const f=function(e){if(e)return t.highlight=i,n(e);let r;try{r=a.parse(o,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,r)};if(!i||i.length<3)return f();if(delete t.highlight,!c)return f();for(;u<o.length;u++)!function(e){"code"!==e.type?--c||f():i(e.text,e.lang,(function(t,n){return t?f(t):null==n||n===e.text?--c||f():(e.text=n,e.escaped=!0,void(--c||f()))}))}(o[u])}else try{return t=s({},h.defaults,t||{}),l(t),a.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||h.defaults).silent)return"<p>An error occurred:</p><pre>"+f(e.message+"",!0)+"</pre>";throw e}}h.options=h.setOptions=function(e){return s(h.defaults,e),d(h.defaults),h},h.getDefaults=p,h.defaults=m,h.Parser=a,h.parser=a.parse,h.Renderer=i,h.TextRenderer=o,h.Lexer=r,h.lexer=r.lex,h.InlineLexer=c,h.inlineLexer=c.output,h.Slugger=u,h.parse=h,e.exports=h},function(e,t,n){e.exports={tagList:"yvetE",disabled:"_3ZfKv"}},function(e,t){e.exports=l},function(e,t,n){e.exports={curatorLayout:"XayF7",topNavRegion:"_3ewaZ",leftNavRegion:"_2c2o6"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),a=n(17),i=n(14),o=n(4);function c(e){return(c="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 u(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!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&&l(e,t)}(p,e);var t,n,a,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),t=c.call(this,e),r.result(d(t),"name")||o.c.throw(new o.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=p,(n=[{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(m(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),a&&u(t,a),p}(a.CollectionView)},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},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};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!0;var o={},c=void 0,u=void 0;for(c=0,u=n.length;c<u;c++)o[n[c]]=!0;for(c=0,u=a.length;c<u;c++){var s=a[c],l=e[s],f=t[s];if(l!==f){if(!o[s]||null===l||null===f||"object"!==(void 0===l?"undefined":r(l))||"object"!==(void 0===f?"undefined":r(f)))return!0;var p=Object.keys(l),d=Object.keys(f);if(p.length!==d.length)return!0;for(var m=0,h=p.length;m<h;m++){var y=p[m];if(l[y]!==f[y])return!0}}}return!1}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(196),a=n(43),i=(0,r.createTokenClass)();function o(e){var t=e?{v:e}:{};return(0,a.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var c=o(),u=o("@"),s=o(":"),l=o("."),f=o(),p=o(),d=o("\n"),m=o(),h=o("+"),y=o("#"),v=o(),b=o("mailto:"),g=o("?"),S=o("/"),E=o("_"),C=o(),O=o(),w=o(),A=o("{"),T=o("["),k=o("<"),j=o("("),I=o("}"),L=o("]"),_=o(">"),P=o(")"),x=o("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=d,t.NUM=m,t.PLUS=h,t.POUND=y,t.QUERY=g,t.PROTOCOL=v,t.MAILTO=b,t.SLASH=S,t.UNDERSCORE=E,t.SYM=C,t.TLD=O,t.WS=w,t.OPENBRACE=A,t.OPENBRACKET=T,t.OPENANGLEBRACKET=k,t.OPENPAREN=j,t.CLOSEBRACE=I,t.CLOSEBRACKET=L,t.CLOSEANGLEBRACKET=_,t.CLOSEPAREN=P,t.AMPERSAND=x},function(e,t,n){const{defaults:r}=n(40),{cleanUrl:a,escape:i}=n(35);e.exports=class{constructor(e){this.options=e||r}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+i(r,!0)+'">'+(n?e:i(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:i(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=a(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+i(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=a(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},function(e,t,n){"use strict";e.exports=n(222)},function(e,t,n){"use strict";var r=n(223),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?o:c[e.$$typeof]||a}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=o;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=d(n);a&&a!==m&&e(t,a,r)}var o=l(n);f&&(o=o.concat(f(n)));for(var c=u(t),h=u(n),y=0;y<o.length;++y){var v=o[y];if(!(i[v]||r&&r[v]||h&&h[v]||c&&c[v])){var b=p(n,v);try{s(t,v,b)}catch(e){}}}}return t}},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(1),a=n(5),i=n(17),o=n(16),c=n(14),u=n(45),s=n(12),l=n(4),f=n(25),p=n(9);function d(e){return(d="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 m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(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 v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=/([A-Z])/g,O=/(^|:)(\w)/gi,w=function(e){!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&&b(e,t)}(h,e);var t,n,i,d=g(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=d.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=h,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(p.a.SHELL,s.a.ROUTE,(function(t){t.application!==e.channelName&&e.destroyApp()}))}},{key:"addRouteLookup",value:function(e,t){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(e),(function(r,a){return o.a.buildRoute(t,{application:n.channelName,action:e,args:r,params:a})}))}},{key:"processInternalRoutes",value:function(){var e=this;r.each(r.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],a=e.toEventName(n);e.addRouteLookup(a,t),e.listenTo(e.channelName,a,(function(n,a){a&&a.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var i=r.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=i,f.a.UpdateUrl(t,n,a)}))}))}))}},{key:"triggerNavLocked",value:function(e,t){e.trigger(s.a.NAV_IS_LOCKED,t),o.b.routingEnded()}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&r.each(r.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(t,n){n&&n.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks."));var r=a.Radio.channel(p.a.SHELL);e.options.shell.isNavLocked()?e.triggerNavLocked(r,t):f.a.PageLoad(o.a.getHref(t))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&r.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var i=this;this.validateAppLink(e);var c=this.toMethodName(e.action);o.b.routingStarted();var f=a.Radio.channel(p.a.SHELL);if(this.options.shell.isNavLocked())this.triggerNavLocked(f,e);else{var d=new u.a;r.each(this.filters,(function(e){return d.use(e)})),d.go({appLink:e,shell:this.options.shell},(function(){f.trigger(s.a.ROUTE,e,t),i.createApp();var a=i.controller;if(r.isFunction(a[c])||(o.b.routingEnded(),l.c.throw(new l.b("".concat(c," does not exist on the ").concat(r.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void o.b.routingEnded();a.triggerMethod("load:layout"),a[c].apply(a,[].concat(m(e.args||[]),[e.params||{}])),r.isFunction(n)&&n(),o.b.routingEnded()}))}}},{key:"createApp",value:function(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}},{key:"destroyApp",value:function(){this.controller&&(this.controller.destroy(),delete this.controller)}},{key:"_addAppRoute",value:function(e,t,n){var a=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o={application:a.channelName,action:a.toEventName(n),args:t.slice(0,t.length-1),params:f.a.DeserializeQueryParams(t[t.length-1])};a.executeRoute(o,{isAppRoute:!0},(function(){f.a.UpdateQuery(r.extend(a.controller.getAndClearDefaultQueryParams(),o.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(C,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(O,(function(e,t,n){return n.toUpperCase()}));return t[0].toLowerCase()+t.slice(1,t.length)}},{key:"validateAppLink",value:function(e){e.application&&e.action||(o.b.routingEnded(),l.c.throw(new l.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],v(E(h.prototype),"listenTo",this))}}])&&y(t.prototype,n),i&&y(t,i),h}(i.AppRouter)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),a=n(14);function i(e){return(i="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!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&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return o(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Behavior)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),a=n(30),i=n(36);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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!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&&l(e,t)}(h,e);var t,n,p,m=f(h);function h(){return c(this,h),m.apply(this,arguments)}return t=h,(n=[{key:"set",value:function(e,t,n){var a,i;if(null===e)return this;for(a in"object"===o(e)?(i=e,n=t):(i={})[e]=t,n||(n={}),i)r.has(this.associations,a)&&(i[a]=this.setAssociation(a,i[a],n));return s(d(h.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return s(d(h.prototype),"get",this).call(this,e);var n=e.substr(0,t),a=this.attributes[n];if(!a||!r.isFunction(a.get))return s(d(h.prototype),"get",this).call(this,e);var i=e.substr(t+1);return a.get(i)}},{key:"setAssociation",value:function(e,t,n){var o=this.associations[e],c=this.attributes[e];if(!r.isFunction(o))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof a.a&&c.set(t,n),c instanceof i.a&&c.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),c;var u=t instanceof a.a?t:new o(t,{parse:!0});return u.parent=this,this[e]=u,u}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=s(d(h.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(a,t)&&r.isFunction(a[t].toJSON)?a[t]=a[t].toJSON():a[t]=(new e).toJSON()})),a}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.omit(s(d(h.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&u(t.prototype,n),p&&u(t,p),h}(a.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),a=n(17),i=n(14),o=n(4);function c(e){return(c="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 u(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,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!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&&l(e,t)}(p,e);var t,n,a,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=p,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}},{key:"getLayout",value:function(e){var t=e.name,n=e.options,r=void 0===n?{}:n;this.layouts[t]||o.c.throw(new o.b("".concat(t," was not registered as a template.")));var a=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===a&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=a,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){r.each(this.requiredRegions,(function(t){r.has(r.result(e.prototype,"regions"),t)||o.c.throw(new o.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(d(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),a&&u(t,a),p}(a.Object)},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n(1),a=n(5),i=n(17),o=n(16),c=n(14),u=n(9),s=n(4),l=n(12),f=n(25);function p(e){return(p="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 d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var E=function(){function e(t,n){b(this,e),this.application=t,this.options=n||{}}return S(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),C=function(e){!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&&m(e,t)}(n,e);var t=h(n);function n(){return b(this,n),t.apply(this,arguments)}return S(n,[{key:"initialize",value:function(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}},{key:"bindListeners",value:function(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}},{key:"bindNavLockListeners",value:function(){var e=this;this.listenTo(u.a.SHELL,l.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(u.a.SHELL,l.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(u.a.SHELL,l.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(u.a.SHELL,l.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(u.a.SHELL,l.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=a.Radio.channel(u.a.SHELL);t.reply(l.a.HAS_ACTIVE_ROUTE,r.bind(this.hasActiveRoute,this)),t.reply(l.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){o.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=a.Radio.channel(u.a.SHELL);this.listenTo(e,l.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;a.Radio.channel(u.a.SHELL).reply(l.a.ROUTE_LOOKUP,(function(t,n,r){return!!e.routeLookup[t]&&e.routeLookup[t](n,r)}),this)}},{key:"addRouteLookup",value:function(e,t){this.routeLookup[e]=t}},{key:"registerApplication",value:function(e,t){return this.applications.push(new E(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return u.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(){t.runStartUpSteps(t,e,(function(){d(v(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;r.each(this.applications,(function(t){var n={appConstructor:t.Application,shell:e,appOptions:Object.assign({region:"",shell:e,layoutService:e.layoutService},t.Options)};new t.Application.router(n)})),this.bindListeners(),f.a.StartHistory()}},{key:"addInitializationStep",value:function(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,function(n,r){return t(n,(function(){return e(n,r)}))}),this}},{key:"runInitializationSteps",value:function(e,t){t(e)}},{key:"addStartUpStep",value:function(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,function(n,r,a){return t(n,r,(function(){return e(n,r,a)}))}),this}},{key:"runStartUpSteps",value:function(e,t,n){n(e,t)}},{key:"registerLayout",value:function(e,t){return this.layoutService.registerLayout(e,t),this}},{key:"registerErrorHandler",value:function(e,t){return e||s.c.throw(new s.b("An error must have a name in order to register a handler for it.")),r.any(this.errorHandlers,(function(t){return t.errorType===e}))&&s.c.throw(new s.b("An error handler for ".concat(e.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:e,handler:t}),this}},{key:"handleError",value:function(e){var t=r.find(this.errorHandlers,(function(t){return e instanceof t.errorType}));t&&t.handler&&t.handler(e)}},{key:"registerStore",value:function(e){this.store=e}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],d(v(n.prototype),"listenTo",this))}}]),n}(i.Application)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(18);n.d(t,"Actions",(function(){return r.a}));var a=n(19);n.d(t,"RequestStatus",(function(){return a.a}));var i=n(71);for(var o in i)["Actions","RequestStatus","default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var c=n(203);n.d(t,"ajaxRequest",(function(){return c.a}));var u=n(28);n.d(t,"normalize",(function(){return u.b})),n.d(t,"denormalize",(function(){return u.a}));var s=n(204);n.d(t,"emptyResponse",(function(){return s.a})),n.d(t,"getResponse",(function(){return s.d})),n.d(t,"getFetch",(function(){return s.c})),n.d(t,"fetch",(function(){return s.b})),n.d(t,"hooklessFetch",(function(){return s.e})),n.d(t,"useGetFetch",(function(){return s.g})),n.d(t,"useGetResponse",(function(){return s.h})),n.d(t,"useBasicFetch",(function(){return s.f}));var l=n(81);n.d(t,"createMiddleware",(function(){return l.a}));var f=n(82);n.d(t,"FlightReducer",(function(){return f.a}));var p=n(83);n.d(t,"Simulator",(function(){return p.a}))},function(e,t,n){"use strict";n.r(t);var r=n(72);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var i=n(73);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o=n(74);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var c=n(75);for(var a in c)"default"!==a&&function(e){n.d(t,e,(function(){return c[e]}))}(a);var u=n(76);for(var a in u)"default"!==a&&function(e){n.d(t,e,(function(){return u[e]}))}(a);var s=n(77);for(var a in s)"default"!==a&&function(e){n.d(t,e,(function(){return s[e]}))}(a);var l=n(78);for(var a in l)"default"!==a&&function(e){n.d(t,e,(function(){return l[e]}))}(a);var f=n(79);for(var a in f)"default"!==a&&function(e){n.d(t,e,(function(){return f[e]}))}(a);var p=n(80);for(var a in p)"default"!==a&&function(e){n.d(t,e,(function(){return p[e]}))}(a)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(31),a=n(8),i=n(19),o=n(18),c=n(28),u=n(39),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function l(e){var t=e.fetchData,n=e.bootstrappedData,l=e.defaultExpiryTime,f=Object.freeze({key:null,url:null,type:a.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:l});return function(e){return function(a){return function(l){if(l.type===o.a.API_REQUEST){var p=e.getState(),d=Object.assign({},f,l.request),m=d.success,h=d.error,y=d.always,v=d.formatData,b=s(d,["success","error","always","formatData"]),g=p.flightData.resources[b.key];if(a(l),!g||g.status!==i.a.Fetching){if(b.bootstrapName&&n&&n[l.request.bootstrapName])return E(n[l.request.bootstrapName]),C(),void delete n[l.request.bootstrapName];var S={resource:b.url,type:b.type,data:b.data,success:E,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:l.request,timestamp:r.a.currentTimestamp(),xhr:t}),b.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:b.invalidationKeys,request:b});h&&h(t)},always:C};return void(u.a.isSimulated(b)?u.a.simulateFetchData(S,b):t(S))}}else a(l);function E(t,n){var a=v(t),i={result:a,entities:{}};(b.normalize&&(i=Object(c.b)(a,b.normalizeOptions)),e.dispatch({type:o.a.API_RESPONSE,result:i.result,entities:i.entities,request:b,timestamp:r.a.currentTimestamp(),xhr:n}),b.updateState)&&(Array.isArray(b.updateState)?b.updateState:[b.updateState]).forEach((function(t){var n,r,a,i;n=t,r=u.b.getMatchingKeyMap(p.flightData,n.keys),a=Object.assign({},Object.keys(p.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=p.flightData.resources[t],r=n.response;return n.request.normalize&&(r=Object(c.a)(n.response,p.flightData.entities)),e[t]=r,e}),{})),i=n.updateData(a),Object.keys(i).forEach((function(t){var n=p.flightData.resources[t],r=i[t],a={result:r,entities:{}};n.request.normalize&&(a=Object(c.b)(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:a.result,entities:a.entities,request:n.request})}))}));if(b.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:b.invalidationKeys,request:b}),m){var s=i.result;b.normalize&&(s=Object(c.a)(i.result,Object.assign(Object.assign({},p.flightData.entities),i.entities))),m(s)}}function C(){y&&y()}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(18),a=n(19),i=n(39);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function u(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,{request:t.request,status:a.a.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function s(e,t){var n,r=t.entities?Object.keys(t.entities):[];return{entities:c(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,{request:t.request,status:a.a.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}))}}function l(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,{request:t.request,status:a.a.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function f(e,t){var n,r=i.b.getMatchingKeyMap(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return r[e]})).reduce((function(t,n){var r=e.resources[n];return t[n]=Object.assign({},r,{status:a.a.None}),t}),{}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:c(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),o({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var d={resources:{},entities:{}};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a.API_REQUEST:return u(e,t);case r.a.API_RESPONSE:return s(e,t);case r.a.API_ERROR:return l(e,t);case r.a.INVALIDATE:return f(e,t);case r.a.UPDATE:return p(e,t)}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10);var a="id";function i(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function o(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var c={getAll:function(e,t){var n=o(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return c.create(e,t)})),o(e)):[]},get:function(e,t){var n=c.getAll(e);return n.length?n.find((function(e){return e[a]===t})):null},create:function(e,t){var n,r,o,u=c.getAll(e),s=Object.assign(Object.assign({},t),(n={},r=a,o=t[a]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString(),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));return u.push(s),i(e,u),s},update:function(e,t){var n=c.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[a]===t[a]}));return n[r]=t,i(e,n),t},delete:function(e,t){var n=c.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[a]===e}));n.splice(t,1)})),i(e,n))},assoc:function(e,t,n,a,o){var u=Array.isArray(o),s=u?o:[o];"string"==typeof r.a.first(s)&&(s=c.getAll(a).filter((function(e){return s.includes(e.id)})));var l=s.map((function(e){return e.id?e:c.create(a,e)})),f=c.getAll(e);if(f.length){var p=f.find((function(e){return e.id===t}));if(p)return l.forEach((function(e){if(p[n])if(Array.isArray(p[n])){if(p[n].find((function(t){return t.id===e.id})))return;p[n].push(e)}else p[n]=e;else p[n]=u?[e]:e})),i(e,f=f.map((function(e){return e.id!==p.id?e:p}))),u?l:r.a.first(l)}},dissoc:function(e,t,n,r){var a=c.getAll(e);if(a.length){var o=a.find((function(e){return e.id===t}));if(o){var u=o[n];if(u)return Array.isArray(r)||(r=[r]),Array.isArray(u)||(u=[u]),r.forEach((function(e){var t=u.findIndex((function(t){return t.id===e}));u.splice(t,1)})),o[n]=u,i(e,a=a.map((function(e){return e.id!==o.id?e:o}))),a}}}}},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){e.exports={prefix:"cv",iconName:"add-to-playlist",icon:["24","24",[],"","M20.1 16.4h1.8a.6.6 0 1 1 0 1.2h-1.8v1.8a.6.6 0 1 1-1.2 0v-1.8h-1.8a.6.6 0 1 1 0-1.2h1.8v-1.8a.6.6 0 0 1 1.2 0v1.8zM10.5 9a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm5.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V12a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16zm-8-2.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close",icon:["24","24",[],"","M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"]}},function(e,t){e.exports={prefix:"cv",iconName:"delete",icon:["24","24",[],"","M14.5 7h4a.5.5 0 1 1 0 1h-1.14a1 1 0 0 1-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1.013 1.013 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7zm-1 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5h3zm-4 3a.463.463 0 0 0-.462.499L9.462 16a.54.54 0 0 0 .574.498.463.463 0 0 0 .426-.498l-.424-5.502A.54.54 0 0 0 9.5 10zm2.5 0a.5.5 0 0 0-.5.5V16a.5.5 0 1 0 1 0v-5.5a.5.5 0 0 0-.5-.5zm2.5 0a.54.54 0 0 0-.538.499L13.538 16a.463.463 0 0 0 .462.5.54.54 0 0 0 .538-.499l.424-5.502A.463.463 0 0 0 14.5 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit",icon:["24","24",[],"","M7.636 17.834l8.746-8.745-1.414-1.414-8.8 8.8 1.468 1.36zm-2.42.973c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zm2.614-1.906l.707.707a1.5 1.5 0 0 1 0 2.121L7.45 19.435c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L16.167 5.06a1.5 1.5 0 0 1 2.122 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"expand",icon:["24","24",[],"","M14.06 21.28l-.353.354-.707-.707.354-.354 7.22-7.22.353-.353.707.707-.354.354-7.22 7.22zm4 .465l-.353.353-.707-.707.354-.353 3.684-3.684.353-.354.707.707-.353.354-3.684 3.684z"]}},function(e,t){e.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"","m7 11h10c0.554 0 1 0.446 1 1s-0.446 1-1 1h-10c-0.554 0-1-0.446-1-1s0.446-1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"more",icon:["24","24",[],"","M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"new-window",icon:["24","24",[],"","M17.395 5.526h-3.244a.763.763 0 0 1 0-1.526h5.086a.76.76 0 0 1 .763.763v5.086a.763.763 0 0 1-1.526 0V6.605l-5.172 5.172a.763.763 0 1 1-1.079-1.08l5.172-5.171zM8.5 5.5a.75.75 0 0 1 0 1.5H6.75a.25.25 0 0 0-.25.25v10c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V15.5a.75.75 0 1 1 1.5 0v1.75A1.75 1.75 0 0 1 16.75 19h-10A1.75 1.75 0 0 1 5 17.25v-10c0-.966.784-1.75 1.75-1.75H8.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"plus",icon:["24","24",[],"","M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2H11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"preview",icon:["24","24",[],"","M17.278 17.333a3.056 3.056 0 1 0 0-6.11 3.056 3.056 0 0 0 0 6.11zm3.53-.637c.03.022.06.048.087.076l1.729 1.728a.794.794 0 1 1-1.124 1.124l-1.728-1.729a.801.801 0 0 1-.076-.088 4.278 4.278 0 1 1 1.112-1.112zM7.713 9C7.32 9 7 8.776 7 8.5s.32-.5.714-.5h8.572c.394 0 .714.224.714.5s-.32.5-.714.5H7.714zm-.357 3.5C7.16 12.5 7 12.276 7 12s.16-.5.357-.5h4.286c.197 0 .357.224.357.5s-.16.5-.357.5H7.357zM7.5 16a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm8.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V9a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"search",icon:["24","24",[],"","M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share",icon:["24","24",[],"","M15.091 15.463a2.187 2.187 0 1 1-.392.782L8.91 13.35a2.187 2.187 0 1 1-.1-2.82l5.88-2.812a2.187 2.187 0 1 1 .378.79l-5.811 2.778a2.184 2.184 0 0 1 .045 1.281l5.79 2.896z"]}},function(e,t){e.exports={prefix:"cv",iconName:"upload",icon:["24","24",[],"","M5.5 18.5h13v-2.75a.75.75 0 1 1 1.5 0V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.25a.75.75 0 1 1 1.5 0v2.75zm7.249-11.796v8.57c0 .401-.35.726-.781.726-.432 0-.781-.325-.781-.725V6.704L7.89 9.658a.869.869 0 0 1-1.145 0 .692.692 0 0 1-.009-1.05l4.66-4.174a.869.869 0 0 1 1.144 0l4.66 4.174a.69.69 0 0 1 0 1.042.871.871 0 0 1-1.155.008L12.75 6.704z"]}},function(e,t){e.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"no-edit",icon:["24","24",[],"","M11.321 14.15l.707.707-4.578 4.578c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L9.2 12.028l.707.707-3.739 3.74 1.468 1.36 3.685-3.685zm2.828-2.829l2.233-2.232-1.414-1.414-2.233 2.232-.707-.707 4.14-4.14a1.5 1.5 0 0 1 2.12 0l.708.708a1.5 1.5 0 0 1 0 2.121l-4.14 4.14-.707-.708zm-8.933 7.486c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zM4.646 5.355a.5.5 0 0 1 .708-.708L19.496 18.79a.5.5 0 1 1-.707.707L4.646 5.354z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit-clickview",icon:["20","20",[],"","M17.6404852,5.71727477 L18.2297408,6.30653042 C18.7178962,6.79468579 18.7178962,7.58614201 18.2297408,8.07429738 L8.60812289,17.6959153 C6.71135346,18.0295451 5.75309028,18.1864816 5.73333333,18.1667246 C5.71357639,18.1469677 5.88616537,17.2043571 6.25110029,15.3388927 L15.8727182,5.71727477 C16.3608736,5.22911941 17.1523298,5.22911941 17.6404852,5.71727477 Z M8.7636789,16.361848 L16.05144,9.07408693 L14.8729287,7.89557563 L7.54002172,15.2284826 L8.7636789,16.361848 Z M6.74626541,17.1725049 C7.12145752,17.1092038 7.58975231,17.0283895 8.15085565,16.9301078 L6.99799308,15.862313 C6.89682248,16.3819093 6.8128974,16.8187273 6.74626541,17.1725049 Z M15.4621843,7.30631998 L16.6406956,8.48483128 L17.6404852,7.48504173 C17.8032036,7.32232327 17.8032036,7.05850453 17.6404852,6.89578608 L17.0512295,6.30653042 C16.8885111,6.14381197 16.6246923,6.14381197 16.4619739,6.30653042 L15.4621843,7.30631998 Z M6.33566019,14.9908489 C6.2812423,14.9851574 6.22594201,14.9756491 6.16991424,14.9622805 C5.78045547,14.8577915 5.5109401,14.5829916 5.41684139,14.197065 L5.16924027,13.2272939 L4.21481414,13.4992408 C3.82064978,13.614606 3.44283804,13.5120571 3.186267,13.236167 C2.88681965,12.9560388 2.78427075,12.578227 2.89864522,12.187493 L3.17158282,11.2296365 L2.20423564,10.9826478 C1.82188543,10.8870603 1.55144636,10.6218219 1.4331146,10.2152085 C1.34005988,9.82437875 1.44481708,9.45772856 1.72601896,9.19546209 L2.43808286,8.49887783 L1.73450689,7.81040417 C1.44481706,7.54002697 1.34005989,7.17337687 1.439649,6.75790801 C1.55144635,6.37593371 1.82188539,6.11069542 2.20181175,6.01572028 L3.17158282,5.76811916 L2.89963593,4.81369299 C2.78427075,4.41952863 2.88681965,4.04171689 3.16270985,3.78514587 C3.442838,3.48569854 3.82064974,3.38314964 4.2113838,3.49752411 L5.16924027,3.77046171 L5.41554008,2.80590417 C5.51183431,2.41109782 5.78619407,2.13673807 6.15902913,2.0463353 C6.55319349,1.93097012 6.93100525,2.03351902 7.20467421,2.32619001 L7.89999894,3.04211696 L8.594506,2.32703389 C8.87243071,2.03952554 9.24209506,1.93918808 9.61899753,2.04044384 C10.0138038,2.13673809 10.2881636,2.41109789 10.3831565,2.80069064 L10.6307576,3.77046171 L11.5851838,3.49851482 C11.9793481,3.38314964 12.3571599,3.48569854 12.6137309,3.76158875 C12.9131782,4.04171689 13.0157271,4.41952857 12.9013527,4.8102627 L12.6284151,5.76811916 L13.5957624,6.01510789 C13.9781125,6.11069542 14.2485515,6.37593369 14.3668833,6.78254721 C14.3761095,6.82129727 14.3833912,6.85980963 14.3887491,6.89800613 L12.4311686,8.86525019 C12.2885501,8.50246788 12.3664513,8.07377489 12.6626209,7.7840438 L13.3831727,7.07934901 C13.4057811,7.05824779 13.4051218,7.06055538 13.4006115,7.03880681 C13.3874896,6.9939735 13.3872742,6.99376225 13.3508029,6.98463799 L12.3810318,6.73703687 L12.3543769,6.72983797 C11.8232342,6.57849086 11.5153491,6.0252236 11.6666962,5.49408097 L11.9406245,4.53279433 C11.9501787,4.50015106 11.9538346,4.51362027 11.9070166,4.46830299 C11.8852565,4.44504217 11.8987257,4.44869811 11.8626522,4.45924293 L10.9047957,4.73218053 L10.8781408,4.73937942 C10.3430223,4.87600541 9.79846586,4.55296343 9.66183987,4.01784495 L9.41293742,3.04286026 C9.40513226,3.0108591 9.4140425,3.01976934 9.37095513,3.00912543 C9.33213613,2.99871057 9.33745796,2.99726608 9.31267674,3.02289983 L8.61735201,3.73882678 L8.59670876,3.75947002 C8.2005256,4.14425223 7.56742808,4.13500994 7.18264587,3.73882678 L6.48086195,3.01612347 C6.45910183,2.99286265 6.4725711,2.9965186 6.4179566,3.01196417 C6.38595535,3.01976935 6.39486559,3.01085911 6.3857591,3.04807388 L6.13815798,4.01784495 L6.13095909,4.04449986 C5.97961199,4.5756425 5.42634475,4.88352762 4.89520211,4.73218053 L3.93391535,4.45825223 C3.90127212,4.44869811 3.91474139,4.44504217 3.86942412,4.49186014 C3.84616328,4.51362028 3.84981922,4.50015102 3.86036404,4.53622453 L4.13330164,5.494081 L4.14050053,5.52073591 C4.27712653,6.05585439 3.95408454,6.60041087 3.41896607,6.73703687 L2.44677117,6.98525039 C2.41272371,6.99376225 2.41250834,6.99397349 2.40592081,7.01416766 C2.3948761,7.06055542 2.39421677,7.05824776 2.42531312,7.08745955 L3.13737702,7.78404381 L3.15291688,7.79958367 C3.53912638,8.1943756 3.53216895,8.82750235 3.13737702,9.21371185 L2.41682511,9.91840678 C2.39421677,9.93950789 2.3948761,9.93720022 2.3993864,9.95894886 C2.41250834,10.0037822 2.41272371,10.0039934 2.44919499,10.0131176 L3.41896606,10.2607188 L3.44562098,10.2679177 C3.97676362,10.4192648 4.28464874,10.972532 4.13330164,11.5036746 L3.85937334,12.4649614 C3.84981922,12.4976046 3.84616328,12.4841354 3.89298124,12.5294526 C3.91474137,12.5527135 3.90127209,12.5490575 3.93734565,12.5385127 L4.89520212,12.2655751 L4.92185702,12.2583762 C5.4569755,12.1217502 6.00153199,12.4447922 6.13815798,12.9799107 L6.38706042,13.9548953 C6.3957598,13.9905628 6.39169395,13.9864172 6.41528883,13.9929559 C6.46167656,14.0040006 6.45936885,14.00466 6.48858067,13.9735636 L7.18516493,13.2614997 L7.20070477,13.2459599 C7.4952939,12.9577749 7.92258715,12.888504 8.28097421,13.0359319 L6.33566019,14.9908489 Z M6.70489207,8.77616163 L9.31429327,6.16676041 C9.44212761,6.03892605 9.65593967,6.03389908 9.78471434,6.16267377 L10.2815938,6.65955323 C10.4116803,6.78963968 10.4085388,6.9989426 10.2775071,7.12997428 L6.95925927,10.4482222 C6.89767261,10.5098088 6.81613041,10.5428917 6.73375541,10.5462414 C6.63512454,10.5601257 6.53103126,10.5287286 6.45266973,10.450367 L4.80169873,8.79939603 C4.67185163,8.66954896 4.66967053,8.4612063 4.79975698,8.33111983 L5.29663643,7.83424043 C5.42541113,7.7054657 5.63211299,7.70338256 5.76491261,7.83618216 L6.70489207,8.77616163 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share2",icon:["24","24",[],"","M19.4216766,5.00521391 C19.613919,4.98125611 19.7682745,5.03986249 19.8847432,5.18103303 C20.0012119,5.32220356 20.0294106,5.48346256 19.9693393,5.66481001 L19.9693393,5.66481001 L14.1956074,19.738196 C14.0955154,19.912732 13.9481454,20 13.7534974,20 C13.5588494,20 13.4140159,19.912732 13.3189969,19.738196 L13.3189969,19.738196 L9.93477602,13.4796112 L4.20437042,9.12353139 C4.02183531,8.9778479 3.96157474,8.8005141 4.02358872,8.59152998 C4.0856027,8.38254586 4.23262042,8.26120315 4.46464188,8.22750185 L4.46464188,8.22750185 Z M18.2074971,7.35312765 L10.9727276,13.3209485 L13.6956405,18.351754 L18.2074971,7.35312765 Z M17.8703206,6.3505542 L5.65837825,8.98552539 L10.3489793,12.5526101 L17.8703206,6.3505542 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"download",icon:["24","24",[],"","M19.25,18.5 C19.6642136,18.5 20,18.8357864 20,19.25 C20,19.6642136 19.6642136,20 19.25,20 L4.75,20 C4.33578644,20 4,19.6642136 4,19.25 C4,18.8357864 4.33578644,18.5 4.75,18.5 L19.25,18.5 Z M11.9677859,4.21826797 C12.3992584,4.21826797 12.7490359,4.5430614 12.7490359,4.9437144 L12.7490359,4.9437144 L12.7490359,13.5142734 L16.045315,10.5607553 C16.3660195,10.273399 16.8699838,10.273399 17.1992786,10.5684524 L17.1992786,10.5684524 L17.2256404,10.593254 C17.5168244,10.8809023 17.5050219,11.3361683 17.1992786,11.610119 L17.1992786,11.610119 L12.5404726,15.7844828 C12.2197681,16.0718391 11.7158038,16.0718391 11.3950993,15.7844828 L11.3950993,15.7844828 L6.73629327,11.610119 C6.72729303,11.6020547 6.71850316,11.593785 6.7099315,11.5853175 C6.41874747,11.2976692 6.43055003,10.8424031 6.74488357,10.5607553 C7.0655881,10.273399 7.56955237,10.273399 7.8902569,10.5607553 L7.8902569,10.5607553 L11.1865359,13.5142734 L11.1865359,4.9437144 C11.1865359,4.5430614 11.5363135,4.21826797 11.9677859,4.21826797 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"print",icon:["24","24",[],"","M15.6333333,4.25 C16.5814222,4.25 17.35,5.01857785 17.35,5.96666667 L17.35,5.96666667 L17.349,8.116 L18.5333333,8.11666667 C19.4315227,8.11666667 20.1685998,8.80647061 20.2436988,9.68521276 L20.25,9.83333333 L20.25,14.6666667 C20.25,15.5648561 19.5601961,16.3019331 18.6814539,16.3770321 L18.5333333,16.3833333 L17.349,16.383 L17.35,18.5 C17.35,19.4181734 16.6428897,20.1711923 15.7435272,20.2441988 L15.6,20.25 L8.9,20.25 C7.93350169,20.25 7.15,19.4664983 7.15,18.5 L7.15,18.5 L7.149,16.383 L5.96666667,16.3833333 C5.06847726,16.3833333 4.33140019,15.6935294 4.25630119,14.8147872 L4.25,14.6666667 L4.25,9.83333333 C4.25,8.93514392 4.93980394,8.19806686 5.8185461,8.12296786 L5.96666667,8.11666667 L7.149,8.116 L7.15,5.96666667 C7.15,5.06847726 7.83980394,4.33140019 8.7185461,4.25630119 L8.86666667,4.25 Z M15.6,13.4833333 L8.9,13.4833333 C8.76192881,13.4833333 8.65,13.5952621 8.65,13.7333333 L8.65,13.7333333 L8.64984919,15.6181407 C8.64994957,15.6231928 8.65,15.6282572 8.65,15.6333333 L8.649,15.648 L8.65,18.5 C8.65,18.6183467 8.73223341,18.7174868 8.84267729,18.7433973 L8.9,18.75 L15.6,18.75 C15.7380712,18.75 15.85,18.6380712 15.85,18.5 L15.85,18.5 L15.85,13.7333333 C15.85,13.5952621 15.7380712,13.4833333 15.6,13.4833333 L15.6,13.4833333 Z M14.3787879,17 C14.6298182,17 14.8333333,17.1492444 14.8333333,17.3333333 C14.8333333,17.5174222 14.6298182,17.6666667 14.3787879,17.6666667 L14.3787879,17.6666667 L11.9545455,17.6666667 C11.7035152,17.6666667 11.5,17.5174222 11.5,17.3333333 C11.5,17.1492444 11.7035152,17 11.9545455,17 L11.9545455,17 Z M14.3787879,15 C14.6298182,15 14.8333333,15.1492444 14.8333333,15.3333333 C14.8333333,15.5174222 14.6298182,15.6666667 14.3787879,15.6666667 L14.3787879,15.6666667 L11.9545455,15.6666667 C11.7035152,15.6666667 11.5,15.5174222 11.5,15.3333333 C11.5,15.1492444 11.7035152,15 11.9545455,15 L11.9545455,15 Z M18.5333333,9.61666667 L5.96666667,9.61666667 C5.86694859,9.61666667 5.78296434,9.68403123 5.75773954,9.77573475 L5.75,9.83333333 L5.75,14.6666667 C5.75,14.7663847 5.81736456,14.850369 5.90906808,14.8755938 L5.96666667,14.8833333 L7.149,14.883 L7.15,13.7333333 C7.15,12.8151599 7.85711027,12.062141 8.75647279,11.9891345 L8.9,11.9833333 L15.6,11.9833333 C16.5664983,11.9833333 17.35,12.766835 17.35,13.7333333 L17.35,13.7333333 L17.349,14.883 L18.5333333,14.8833333 C18.6330514,14.8833333 18.7170357,14.8159688 18.7422605,14.7242652 L18.75,14.6666667 L18.75,9.83333333 C18.75,9.73361525 18.6826354,9.64963101 18.5909319,9.62440621 L18.5333333,9.61666667 Z M8.11538462,10.5 C8.32779487,10.5 8.5,10.6492444 8.5,10.8333333 C8.5,11.0174222 8.32779487,11.1666667 8.11538462,11.1666667 L8.11538462,11.1666667 L6.88461538,11.1666667 C6.67220513,11.1666667 6.5,11.0174222 6.5,10.8333333 C6.5,10.6492444 6.67220513,10.5 6.88461538,10.5 L6.88461538,10.5 Z M15.6333333,5.75 L8.86666667,5.75 C8.74700497,5.75 8.65,5.84700497 8.65,5.96666667 L8.65,5.96666667 L8.649,8.116 L15.849,8.116 L15.85,5.96666667 C15.85,5.86694859 15.7826354,5.78296434 15.6909319,5.75773954 L15.6909319,5.75773954 L15.6333333,5.75 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"create-interactive",icon:["24","24",[],"","m10.928 4c0.68406 0 1.2406 0.54944 1.2406 1.2248v2.8958c0 0.67534-0.55653 1.2248-1.2406 1.2248h-0.11278v0.41725c0.12769-0.0395 0.26351-0.060813 0.40418-0.060813 0.44694 0 0.84403 0.21494 1.0907 0.54566 0.19707-0.11066 0.42485-0.17391 0.66728-0.17391 0.46945 0 0.88386 0.2371 1.1268 0.59644 0.18856-0.09853 0.40336-0.15434 0.63117-0.15434 0.74648 0 1.3539 0.59956 1.3539 1.3365l-5.06e-4 3.1673c-2.22e-4 1.6997-0.50031 3.3489-1.4461 4.7693-0.08781 0.13184-0.23689 0.21125-0.39674 0.21125h-5.3403c-0.12142 0-0.23822-0.04591-0.32641-0.12831-0.00548-0.0051-0.020094-0.01889-0.042597-0.04091l-0.08995-0.09032c-0.42608-0.4377-1.7321-1.9095-2.0353-3.7832l-0.62395-2.6363c-0.087014-0.36766-0.010315-0.73613 0.21049-1.0109 0.21021-0.26159 0.53383-0.41697 0.89443-0.43125 0.33537-0.06376 0.67738-0.0015 0.96903 0.17738 0.090528 0.0555 0.17299 0.12028 0.24639 0.19297v-2.9038h-0.11278c-0.68406 0-1.2406-0.54944-1.2406-1.2248v-2.8958c0-0.67534 0.55653-1.2248 1.2406-1.2248zm-1.4666 3.4382c-0.22287 0-0.40421 0.17903-0.40421 0.39906v7.4499c0 0.13447-0.058463 0.26247-0.16058 0.35144-0.10211 0.08897-0.23797 0.13038-0.37316 0.11369l-0.038047-0.0047c-0.1972-0.024332-0.35816-0.16739-0.40339-0.35846l-0.54156-2.2883c-0.024563-0.10379-0.088566-0.19191-0.1803-0.24816-0.091731-0.05625-0.20217-0.06329-0.30989-0.05684-0.0427 0.0026-0.061851 8e-3 -0.10803 0.01231-0.091763 0.0086-0.16042 0.03472-0.20056 0.08468-0.040137 0.04997-0.050677 0.12628-0.029723 0.21491l0.62787 2.6529 0.00677 0.03432c0.2481 1.5682 1.3758 2.8658 1.7584 3.2676h4.8799c0.75569-1.218 1.154-2.6105 1.1542-4.0432l5.07e-4 -3.1673c0-0.21994-0.18134-0.39897-0.40421-0.39897s-0.40421 0.17903-0.40421 0.39906v0.76147c0 0.25888-0.21258 0.46875-0.4748 0.46875-0.26222 0-0.4748-0.20988-0.4748-0.46875v-1.2035c0-0.22003-0.18131-0.39906-0.40418-0.39906s-0.40421 0.17903-0.40421 0.39906v0.87619c0 0.25888-0.21258 0.46875-0.4748 0.46875s-0.4748-0.20987-0.4748-0.46875v-1.2479c0-0.22003-0.18134-0.39903-0.40421-0.39903s-0.40418 0.179-0.40418 0.39903v1.1946c0 0.25888-0.21258 0.46875-0.4748 0.46875s-0.4748-0.20987-0.4748-0.46875v-4.3956c0-0.22003-0.18134-0.39906-0.40421-0.39906zm7.5461-3.4382c0.68412 0 1.2406 0.54944 1.2406 1.2248v2.8958c0 0.67535-0.55653 1.2248-1.2406 1.2248h-2.9331c-0.68406 0-1.2406-0.54944-1.2406-1.2248v-2.8958c0-0.67534 0.55653-1.2248 1.2406-1.2248zm3.1e-5 0.9375h-2.9331c-0.16045 0-0.29099 0.12888-0.29099 0.28728v2.8958c0 0.15841 0.13054 0.28728 0.29099 0.28728h2.9331c0.16045 0 0.29102-0.12888 0.29102-0.28728v-2.8958c0-0.15841-0.13057-0.28728-0.29102-0.28728zm-6.0795 0h-2.9331c-0.16045 0-0.29099 0.12888-0.29099 0.28728v2.8958c0 0.15841 0.13054 0.28728 0.29093 0.28728h0.11278v-0.57063c0-0.73697 0.60733-1.3366 1.3538-1.3366 0.74648 0 1.3538 0.5996 1.3538 1.3366v0.57063h0.11278c0.16045 0 0.29099-0.12888 0.29099-0.28728v-2.8958c0-0.15841-0.13054-0.28728-0.29099-0.28728z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play-circle",icon:["24","24",[],"","M0,12 C0,5.372583 5.372583,0 12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 Z M23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 C18.0751322,23 23,18.0751322 23,12 Z M9,7.49836245 C9,6.94698209 9.38671875,6.74169922 9.84669815,7.02918634 L17.1533018,11.5958137 C17.6209203,11.8880752 17.6132812,12.3666992 17.1533018,12.6541863 L9.84669815,17.2208137 C9.37907967,17.5130752 9,17.2950531 9,16.7516375 L9,7.49836245 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive-results",icon:["24","24",[],"","m8 12c0.55228 0 1 0.44772 1 1v6c0 0.55228-0.44772 1-1 1h-2c-0.55228 0-1-0.44772-1-1v-6c0-0.55228 0.44772-1 1-1zm10-3c0.55228 0 1 0.44772 1 1v9c0 0.55228-0.44772 1-1 1h-2c-0.55228 0-1-0.44772-1-1v-9c0-0.55228 0.44772-1 1-1zm-5-5c0.55228 0 1 0.44772 1 1v14c0 0.55228-0.44772 1-1 1h-2c-0.55228 0-1-0.44772-1-1v-14c0-0.55228 0.44772-1 1-1zm-5 8.9667h-2v6.0667h2zm10-2.9667h-2v9h2zm-5-5h-2v14h2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-up",icon:["24","24",[],"","M12.733 8.305l5.963 5.906a1.046 1.046 0 0 1 0 1.473l-.01.011a1.034 1.034 0 0 1-1.467 0L12 10.526l-5.22 5.17a1.034 1.034 0 0 1-1.465 0l-.011-.012a1.046 1.046 0 0 1 0-1.473l5.963-5.906a1.034 1.034 0 0 1 1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-down",icon:["24","24",[],"","M11.267 15.695L5.304 9.79a1.046 1.046 0 0 1 0-1.473l.01-.011a1.034 1.034 0 0 1 1.467 0L12 13.474l5.22-5.17a1.034 1.034 0 0 1 1.465 0l.011.012a1.046 1.046 0 0 1 0 1.473l-5.963 5.906a1.034 1.034 0 0 1-1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-left",icon:["24","24",[],"","M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-right",icon:["24","24",[],"","M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-left",icon:["24","24",[],"","M7.182 11h11.89c.512 0 .928.448.928 1s-.416 1-.929 1H7.181l3.781 4.22a1.11 1.11 0 0 1 0 1.465c-.36.403-.943.418-1.311.045a.952.952 0 0 1-.032-.034l-5.343-5.963a1.112 1.112 0 0 1 0-1.466l5.343-5.963a.883.883 0 0 1 1.333 0c.378.421.378 1.066.01 1.477L7.182 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-right",icon:["24","24",[],"","M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.112 1.112 0 0 0 0 1.465c.36.403.943.418 1.311.045a.952.952 0 0 0 .032-.034l5.343-5.963a1.112 1.112 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477L16.818 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"enter",icon:["24","24",[],"","M5.613 13.959a.599.599 0 0 1-.213-.46c0-.155.058-.309.176-.426l3.75-3.75a.6.6 0 0 1 .848.848L7.446 12.9H13.5A3.9 3.9 0 0 0 17.4 9V6.747a.6.6 0 0 1 1.2 0V9a5.1 5.1 0 0 1-5.1 5.1H7.452l2.722 2.723a.6.6 0 0 1-.848.848L5.613 13.96z"]}},function(e,t){e.exports={prefix:"cv",iconName:"archive",icon:["24","24",[],"","M19.64 10.28a.55.55 0 1 1 1.1 0v6.878c0 1.582-1.386 2.842-3.07 2.842H6.33c-1.684 0-3.07-1.26-3.07-2.842V10.28a.55.55 0 1 1 1.1 0v6.877c0 .95.87 1.742 1.97 1.742h11.34c1.1 0 1.97-.793 1.97-1.742V10.28zM20.19 4c.99 0 1.81.747 1.81 1.696V7.99a.55.55 0 0 1-.55.55H2.55A.55.55 0 0 1 2 7.99V5.696C2 4.747 2.821 4 3.81 4h16.38zm.71 1.696c0-.317-.307-.596-.71-.596H3.81c-.403 0-.71.28-.71.596v1.742h17.8V5.696zm-5.83 5.73c0 .95-.821 1.697-1.81 1.697h-2.52c-.989 0-1.81-.747-1.81-1.696 0-.95.821-1.696 1.81-1.696h2.52c.989 0 1.81.747 1.81 1.696zm-1.1 0c0-.316-.307-.595-.71-.595h-2.52c-.403 0-.71.28-.71.596 0 .317.307.596.71.596h2.52c.403 0 .71-.28.71-.596z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bell",icon:["24","24",[],"","M9.588 17.995H6.152c-.636 0-1.152-.53-1.152-1.182 0-.221.06-.438.175-.626l2.128-2.92V9.722c0-2.187 1.447-4.027 3.411-4.567v-.012A1.143 1.143 0 0 1 13 5.128c2.017.502 3.515 2.369 3.515 4.594v3.545l2.303 2.92a1.2 1.2 0 0 1-.366 1.628 1.13 1.13 0 0 1-.61.18h-3.716a2.286 2.286 0 0 1-4.538 0zm1.161 0a1.143 1.143 0 0 0 2.216 0H10.75zm4.615-4.31V9.723c0-1.958-1.547-3.546-3.455-3.546-1.908 0-3.454 1.588-3.454 3.546v3.939l-.23.314-2.073 2.838H17.83l-2.467-3.127z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bookmark",icon:["24","24",[],"","M8.5 5h7A1.5 1.5 0 0 1 17 6.5v12.131a.2.2 0 0 1-.309.168L12 15.75 7.309 18.8A.2.2 0 0 1 7 18.63V6.5A1.5 1.5 0 0 1 8.5 5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"broadcast",icon:["24","24",[],"","M4.571 19C4.256 19 4 18.776 4 18.5s.256-.5.571-.5H19.43c.315 0 .571.224.571.5s-.256.5-.571.5H4.57zM4.125 5h15.75C20.496 5 21 5.537 21 6.2v9.6c0 .663-.504 1.2-1.125 1.2H4.125C3.504 17 3 16.463 3 15.8V6.2C3 5.537 3.504 5 4.125 5zM4 6v10h16V6H4zm6 2.35a.192.192 0 0 1 .295-.162l4.164 2.65a.192.192 0 0 1 0 .324l-4.164 2.65A.192.192 0 0 1 10 13.65v-5.3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"calendar",icon:["24","24",[],"","M6.2 10.2V17a.8.8 0 0 0 .8.8h10a.8.8 0 0 0 .8-.8v-6.8H6.2zM16 5.5h2a1 1 0 0 1 1 1V17a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6.5a1 1 0 0 1 1-1h2v-.875a.625.625 0 1 1 1.25 0V5.5h5.5v-.875a.625.625 0 1 1 1.25 0V5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cog",icon:["24","24",[],"","M18.4583333,12 C18.4583333,12.9444492 18.9722171,13.7222192 20,14.3333333 C19.8611104,14.77778 19.6388904,15.3055525 19.3333333,15.9166667 C18.3888842,15.6944433 17.5277817,15.9722183 16.75,16.75 C16.0555521,17.4444479 15.8333321,18.3055504 16.0833333,19.3333333 C15.4722192,19.6388904 14.9444467,19.8611104 14.5,20 C13.8888858,18.9722171 13.0555608,18.4583333 12,18.4583333 C10.9444392,18.4583333 10.1111142,18.9722171 9.5,20 C8.9999975,19.8333325 8.45833625,19.6111125 7.875,19.3333333 C8.12500125,18.2777725 7.91667,17.41667 7.25,16.75 C6.58333,16.08333 5.7222275,15.8749987 4.66666667,16.125 C4.3888875,15.5416637 4.1666675,15.0000025 4,14.5 C5.02778292,13.8888858 5.54166667,13.0555608 5.54166667,12 C5.54166667,11.0555508 5.02778292,10.2777808 4,9.66666667 C4.19444542,9.0555525 4.41666542,8.52778 4.66666667,8.08333333 C5.61111583,8.30555667 6.47221833,8.02778167 7.25,7.25 C7.91667,6.58333 8.12500125,5.7222275 7.875,4.66666667 C8.45833625,4.3888875 8.9999975,4.1666675 9.5,4 C10.1111142,5.02778292 10.9444392,5.54166667 12,5.54166667 C13.0555608,5.54166667 13.8888858,5.02778292 14.5,4 C15.0000025,4.1666675 15.5416638,4.3888875 16.125,4.66666667 C15.8749987,5.7222275 16.08333,6.58333 16.75,7.25 C17.5277817,8.02778167 18.3888842,8.30555667 19.3333333,8.08333333 C19.6388904,8.6944475 19.8611104,9.22222 20,9.66666667 C18.9722171,10.2777808 18.4583333,11.0555508 18.4583333,12 L18.4583333,12 Z M12,16.0833333 C13.1111167,16.0833333 14.0694404,15.6805596 14.875,14.875 C15.6805596,14.0694404 16.0833333,13.1111167 16.0833333,12 C16.0833333,10.8888833 15.6805596,9.93055958 14.875,9.125 C14.0694404,8.31944042 13.1111167,7.91666667 12,7.91666667 C10.8888833,7.91666667 9.93055958,8.31944042 9.125,9.125 C8.31944042,9.93055958 7.91666667,10.8888833 7.91666667,12 C7.91666667,13.1111167 8.31944042,14.0694404 9.125,14.875 C9.93055958,15.6805596 10.8888833,16.0833333 12,16.0833333 L12,16.0833333 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cross-circle",icon:["24","24",[],"","m12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212c-2.0668-0.0061708-4.0502 0.81484-5.508 2.28-1.4652 1.4578-2.2862 3.4412-2.28 5.508 0 2.081 0.80903 4.037 2.28 5.508 1.4578 1.4652 3.4412 2.2862 5.508 2.28 2.0668 0.0062 4.0502-0.81484 5.508-2.28 1.4652-1.4578 2.2862-3.4412 2.28-5.508 0.006171-2.0668-0.81484-4.0502-2.28-5.508-1.4578-1.4652-3.4412-2.2862-5.508-2.28zm-0.03088 6.769 3.3018-3.2224c0.28118-0.27965 0.73706-0.27965 1.0182 0 0.28118 0.27965 0.28118 0.73306 0 1.0127l-3.3018 3.2224 3.3018 3.2838c0.28118 0.27965 0.28118 0.73306 0 1.0127-0.28118 0.27965-0.73706 0.27965-1.0182 0l-3.3018-3.2838-3.24 3.2838c-0.28118 0.27965-0.73706 0.27965-1.0182 0-0.28118-0.27965-0.28118-0.73306 0-1.0127l3.24-3.2838-3.24-3.2713c-0.28118-0.27965-0.28118-0.73306 0-1.0127 0.28118-0.27965 0.73706-0.27965 1.0182 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cross-circle-filled",icon:["24","24",[],"","m12 22c5.5228 0 10-4.4772 10-10 0-5.5228-4.4772-10-10-10-5.5228 0-10 4.4772-10 10 0 5.5228 4.4772 10 10 10zm-0.03431-11.132 3.6686-3.5805c0.31242-0.31072 0.81895-0.31072 1.1314 0 0.31242 0.31072 0.31242 0.81451 0 1.1252l-3.6686 3.5805 3.6686 3.6487c0.31242 0.31072 0.31242 0.81451 0 1.1252-0.31242 0.31072-0.81895 0.31072-1.1314 0l-3.6686-3.6487-3.6 3.6487c-0.31242 0.31072-0.81895 0.31072-1.1314 0-0.31242-0.31072-0.31242-0.81451 0-1.1252l3.6-3.6487-3.6-3.6347c-0.31242-0.31072-0.31242-0.81451 0-1.1252 0.31242-0.31072 0.81895-0.31072 1.1314 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"folder",icon:["24","24",[],"","M12.685 6H18.5A1.5 1.5 0 0 1 20 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h4.66a1.5 1.5 0 0 1 1.095.474L12.685 6zM5.5 5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-6.248l-1.727-1.842A.5.5 0 0 0 10.161 5H5.5zM5 10V9h14v1H5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"handle",icon:["16","16",[],"","M1 0h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7.4a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1.2a1 1 0 0 1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart",icon:["24","24",[],"","m18.833 5.9735c-0.78916-0.95022-1.8839-1.4735-3.0826-1.4735-1.6859 0-2.7532 1.0685-3.3517 1.9648-0.15528 0.2326-0.28738 0.46582-0.39828 0.68529-0.11091-0.21946-0.24297-0.45269-0.39828-0.68529-0.5985-0.89636-1.6658-1.9648-3.3517-1.9648-1.1987 0-2.2935 0.52333-3.0827 1.4735-0.75275 0.90644-1.1673 2.1204-1.1673 3.4183 0 1.4128 0.51978 2.7268 1.6358 4.1353 0.99741 1.2588 2.4323 2.5564 4.0939 4.0589 0.61916 0.5599 1.2594 1.1389 1.9411 1.7718l0.02047 0.01903c0.08837 0.08211 0.19856 0.12313 0.30875 0.12313s0.22038-0.04105 0.30875-0.12313l0.02047-0.01903c0.68166-0.63289 1.3219-1.2119 1.9412-1.7719 1.6615-1.5024 3.0964-2.8 4.0938-4.0588 1.116-1.4085 1.6358-2.7225 1.6358-4.1353 0-1.2979-0.41459-2.5119-1.1674-3.4183z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m18.959 5.9741c-0.76992-0.92705-1.9357-1.5351-3.1052-1.5351-1.6448 0-2.8808 0.74937-3.4647 1.6238-0.15149 0.22693-0.28074 0.55125-0.38894 0.76537-0.10821-0.21411-0.23718-0.53844-0.38871-0.76537-0.58391-0.87451-1.8205-1.6238-3.4653-1.6238-1.1695 0-2.2376 0.60808-3.0075 1.5351-0.7344 0.88434-1.1388 1.9712-1.1388 3.2374 0 1.3784 0.50711 3.0509 1.5959 4.4251 0.97309 1.2281 2.373 2.4941 3.9941 3.9599 0.60406 0.54625 1.2285 1.1104 1.8936 1.7278l0.01997 0.01934c0.08622 0.08011 0.38931 0.21727 0.49681 0.21727 0.1075 0 0.40992-0.13796 0.49614-0.21804l0.0201-0.0178c0.66504-0.61746 1.2897-1.1824 1.8939-1.7287 1.621-1.4658 3.0209-2.7317 3.994-3.9598 1.0888-1.3742 1.5955-3.0467 1.5955-4.4251 0-1.2663-0.30646-2.3531-1.0409-3.2374zm-5.337 10.688c-0.51948 0.47226-1.0567 0.95549-1.6218 1.4768-0.56507-0.52124-1.101-1.0059-1.6219-1.4769-3.1725-2.8689-5.2684-4.7641-5.2684-7.2556 0-1.0298 0.32333-1.9863 0.91044-2.6933 0.59385-0.71497 1.4183-1.1088 2.3213-1.1088 1.254 0 2.0645 0.81976 2.5237 1.5074 0.41187 0.61679 0.62678 1.2385 0.70006 1.4772 0.06131 0.19978 0.23683 0.33499 0.43482 0.33499s0.37351-0.1352 0.43482-0.33499c0.07329-0.23867 0.28821-0.86044 0.70006-1.4773 0.45914-0.68766 1.2698-1.5074 2.5237-1.5074 0.90309 0 1.7274 0.39377 2.3213 1.1088 0.58714 0.70695 0.91047 1.6634 0.91047 2.6933 0 2.4914-2.1035 4.3783-5.2685 7.2557z"]}},function(e,t){e.exports={prefix:"cv",iconName:"house",icon:["24","24",[],"","M11.7846212,4 C12.178875,4 12.5638107,4.24069899 12.9394281,4.72209697 L19.397311,11.322097 C19.5629093,11.5452605 19.656723,11.7116991 19.678752,11.8214128 C19.7395624,12.1242744 19.6082554,12.4143292 19.497312,12.5910454 C19.3260836,12.8637865 18.7338563,13.000157 17.72063,13.000157 L17.72063,18.1926254 C17.7388725,18.6657038 17.6971878,18.963296 17.595576,19.085402 C17.4524552,19.257389 17.2725879,19.2926677 16.9667536,19.2926677 L13.5640347,19.2926677 L13.5640347,19.2926677 C13.1830115,19.2612016 12.9461197,19.192113 12.8533594,19.085402 C12.6927222,18.9006059 12.7248765,18.5521525 12.7248765,18.1926254 L12.7248765,14.9511622 L12.7248765,14.9511622 C12.7248765,14.4003465 12.8220341,14.0975591 11.7846212,14.0975591 C10.7472083,14.0975591 10.8395429,14.2807901 10.8395429,14.9511622 L10.8395429,18.3715216 L10.8395429,18.3715216 C10.8595606,18.985619 10.6625714,19.2926677 10.2485753,19.2926677 L6.20092682,19.2926677 L6.20092682,19.2926677 C5.86660241,19.2102758 5.6994402,18.843595 5.6994402,18.1926254 L5.6994402,13.000157 L5.6994402,13.000157 C4.92008031,13.0416935 4.41855824,12.905323 4.194874,12.5910454 C4.04449878,12.3797673 4,12.1792791 4,11.8214128 C4,11.6373159 4.098291,11.4273486 4.294873,11.191511 L10.586825,4.72209697 C10.991102,4.24069899 11.3903674,4 11.7846212,4 Z M11.7087471,5.2 C11.5251637,5.2 11.1987855,5.478119 10.7296125,6.034357 L10.7296125,6.034357 L4.986425,12 L6.73443576,12 L6.73443576,12 L6.73443576,18.3346822 L9.63619552,18.3346822 L9.63619552,14.729221 C9.63619552,14.1725015 9.88848235,13.1203352 11.7087471,13.1203352 C13.5290117,13.1203352 13.7773555,14.2717887 13.7773555,14.729221 L13.7773555,14.729221 L13.7773555,18.3346822 L16.642863,18.3346822 L16.642863,12 L18.558694,12 L12.6527402,6.034357 C12.2069948,5.478119 11.8923304,5.2 11.7087471,5.2 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive",icon:["24","24",[],"","M5.978 13.65l7.525-9.99a.2.2 0 0 1 .357.154l-1.289 7.5 5.194-1.04a.2.2 0 0 1 .198.318l-7.447 9.733a.2.2 0 0 1-.355-.16l1.268-6.566-5.277.37a.2.2 0 0 1-.174-.32z"]}},function(e,t){e.exports={prefix:"cv",iconName:"link",icon:["24","24",[],"","M17 10c2.2 0 4 1.8 4 4s-1.8 4-4 4h-5a3.99 3.99 0 0 1-3-1.367v-.028a4.447 4.447 0 0 1-.889-2.679c0-.698.162-1.356.443-1.94A4 4 0 0 1 12 10h1.872v.098c0 .573-.322 1.081-.818 1.402H12c-.722 0-1.368.316-1.824.811-.453.418-.732.976-.732 1.591v.196c0 .575.244 1.1.645 1.508.46.545 1.146.894 1.911.894h5c1.375 0 2.5-1.125 2.5-2.5s-1.125-2.5-2.5-2.5h-.686a5.22 5.22 0 0 0 .24-1.5H17zm-9.556 3.926l.002.074H7c-2.2 0-4-1.8-4-4s1.8-4 4-4h5c1.462 0 2.743.797 3.441 1.975a4.48 4.48 0 0 1-.44 4.63v.024a3.982 3.982 0 0 1-3 1.37h-1.873v-.096c0-.574.322-1.082.817-1.403H12c.722 0 1.368-.316 1.824-.811.452-.418.731-.976.731-1.591v-.195c0-.576-.244-1.101-.645-1.51A2.496 2.496 0 0 0 12 7.5H7A2.507 2.507 0 0 0 4.5 10c0 1.375 1.125 2.5 2.5 2.5h.642c-.128.452-.198.93-.198 1.426z"]}},function(e,t){e.exports={prefix:"cv",iconName:"playlist",icon:["24","24",[],"","m4.9887 18.127c0 0.48882 0.39579 0.88452 0.88452 0.88452h12.253c0.48882 0 0.88452-0.39579 0.88452-0.88452v-12.254c0-0.48882-0.39579-0.884-0.88452-0.884h-12.253c-0.48882 0-0.88452 0.39526-0.88452 0.884zm0.78467-14.127h12.453c0.97943 0 1.7734 0.79344 1.7734 1.7734v12.453c0 0.97943-0.79344 1.7734-1.7734 1.7734h-12.453c-0.97943 0-1.7734-0.79344-1.7734-1.7734v-12.453c0-0.97943 0.79344-1.7734 1.7734-1.7734zm11.115 12.711c0.24546 0 0.44444-0.19898 0.44444-0.44444s-0.19898-0.44444-0.44444-0.44444h-7.1111c-0.24546 0-0.44444 0.19898-0.44444 0.44444s0.19898 0.44444 0.44444 0.44444zm0-4.0889c0.24546 0 0.44444-0.19898 0.44444-0.44444s-0.19898-0.44444-0.44444-0.44444h-7.1111c-0.24546 0-0.44444 0.19898-0.44444 0.44444s0.19898 0.44444 0.44444 0.44444zm-8.3805-4.8628-1.0725-0.64348c-0.42792-0.25675-0.76926-0.06333-0.76926 0.42791v1.3543c0 0.49265 0.34441 0.68282 0.76926 0.42791l1.0725-0.64348c0.42792-0.25675 0.42485-0.66821 0-0.92312zm0 4-1.0725-0.64348c-0.42792-0.25675-0.76926-0.06333-0.76926 0.42791v1.3543c0 0.49265 0.34441 0.68282 0.76926 0.42791l1.0725-0.64348c0.42792-0.25675 0.42485-0.6682 0-0.92312zm0 4-1.0725-0.64348c-0.42792-0.25675-0.76926-0.06333-0.76926 0.42791v1.3543c0 0.49265 0.34441 0.68282 0.76926 0.42791l1.0725-0.64348c0.42792-0.25675 0.42485-0.6682 0-0.92312zm8.3805-7.0483c0.24546 0 0.44444-0.19898 0.44444-0.44444s-0.19898-0.44444-0.44444-0.44444h-7.1111c-0.24546 0-0.44444 0.19898-0.44444 0.44444s0.19898 0.44444 0.44444 0.44444z"]}},function(e,t){e.exports={prefix:"cv",iconName:"publisher-archive",icon:["24","24",[],"","M19.6403207,10.2808023 C19.6403207,9.97696656 19.8864872,9.73065903 20.1901489,9.73065903 C20.4938106,9.73065903 20.7399771,9.97696656 20.7399771,10.2808023 L20.7399771,17.1575931 C20.7399771,18.7397289 19.3544729,20 17.6701031,20 L6.32989691,20 C4.64552709,20 3.26002291,18.7397289 3.26002291,17.1575931 L3.26002291,10.2808023 C3.26002291,9.97696656 3.50618937,9.73065903 3.80985109,9.73065903 C4.11351281,9.73065903 4.35967927,9.97696656 4.35967927,10.2808023 L4.35967927,17.1575931 C4.35967927,18.1074218 5.23070097,18.8997135 6.32989691,18.8997135 L17.6701031,18.8997135 C18.769299,18.8997135 19.6403207,18.1074218 19.6403207,17.1575931 L19.6403207,10.2808023 Z M20.1901489,4 C21.1786273,4 22,4.74713037 22,5.69627507 L22,7.98853868 C22,8.29237442 21.7538335,8.53868195 21.4501718,8.53868195 L2.54982818,8.53868195 C2.24616646,8.53868195 2,8.29237442 2,7.98853868 L2,5.69627507 C2,4.74713037 2.82137271,4 3.80985109,4 L20.1901489,4 Z M20.9003436,5.69627507 C20.9003436,5.37943754 20.5934534,5.10028653 20.1901489,5.10028653 L3.80985109,5.10028653 C3.40654659,5.10028653 3.09965636,5.37943754 3.09965636,5.69627507 L3.09965636,7.43839542 L20.9003436,7.43839542 L20.9003436,5.69627507 Z M15.069874,11.4269341 C15.069874,12.3760788 14.2485013,13.1232092 13.2600229,13.1232092 L10.7399771,13.1232092 C9.75149871,13.1232092 8.930126,12.3760788 8.930126,11.4269341 C8.930126,10.4777894 9.75149871,9.73065903 10.7399771,9.73065903 L13.2600229,9.73065903 C14.2485013,9.73065903 15.069874,10.4777894 15.069874,11.4269341 Z M13.9702176,11.4269341 C13.9702176,11.1100966 13.6633274,10.8309456 13.2600229,10.8309456 L10.7399771,10.8309456 C10.3366726,10.8309456 10.0297824,11.1100966 10.0297824,11.4269341 C10.0297824,11.7437716 10.3366726,12.0229226 10.7399771,12.0229226 L13.2600229,12.0229226 C13.6633274,12.0229226 13.9702176,11.7437716 13.9702176,11.4269341 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"resources",icon:["24","24",[],"","M4 6.83c0-.523.423-.948.948-.948H17.17c.524 0 .949.423.949.949v12.22a.947.947 0 0 1-.949.949H4.95a.947.947 0 0 1-.95-.948V6.83zm.941 12.222c0 .005 12.228.007 12.228.007.005 0 .007-12.228.007-12.228 0-.005-12.228-.007-12.228-.007-.005 0-.007 12.228-.007 12.228zm2.353-9.405a.47.47 0 1 1 0-.941h7.588a.47.47 0 1 1 0 .941H7.294zm0 2.824a.47.47 0 1 1 0-.942h7.588a.47.47 0 1 1 0 .942H7.294zm0 2.823a.47.47 0 1 1 0-.941h2.88a.47.47 0 1 1 0 .941h-2.88zM6.353 4.941a.47.47 0 1 1 0-.941h11.766C19.155 4 20 4.848 20 5.88v12.232a.47.47 0 1 1-.941 0V5.88a.945.945 0 0 0-.94-.938H6.353z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star-o",icon:["24","24",[],"","m11.64 16.408c0.22495-0.11933 0.49443-0.11933 0.71937 0l3.7678 1.9987-0.80692-4.6021 3.3579-3.2489-4.6262-0.6547-2.0522-4.1975-2.0522 4.1975-4.6262 0.6547 3.3579 3.2489-0.80692 4.6021zm-3.7505 3.148c-0.37447 0.19865-0.83908 0.056116-1.0377-0.31836-0.080018-0.15084-0.10745-0.32406-0.077964-0.49224l0.80353-4.5828-3.3438-3.2353c-0.30465-0.29476-0.31266-0.78067-0.017902-1.0853 0.11873-0.12271 0.27499-0.20233 0.44406-0.22626l4.6068-0.65196 2.0436-4.1799c0.18619-0.38082 0.64585-0.5386 1.0267-0.35241 0.1534 0.075 0.27741 0.19901 0.35241 0.35241l2.0436 4.1799 4.6068 0.65196c0.41972 0.059399 0.71182 0.4478 0.65242 0.86752-0.02393 0.16907-0.10354 0.32533-0.22626 0.44406l-3.3438 3.2353 0.80353 4.5828c0.07321 0.41753-0.20592 0.81535-0.62345 0.88856-0.16818 0.02949-0.3414 0.0021-0.49224-0.07796l-4.1102-2.1804z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","m12.337 4.0782c0.1534 0.075 0.27741 0.19901 0.35241 0.35241l2.0436 4.1799 4.6068 0.65196c0.41972 0.059399 0.71182 0.4478 0.65242 0.86752-0.02393 0.16907-0.10354 0.32533-0.22626 0.44406l-3.3438 3.2353 0.80353 4.5828c0.07321 0.41753-0.20592 0.81535-0.62345 0.88856-0.16818 0.02949-0.3414 0.0021-0.49224-0.07796l-4.1102-2.1804-4.1102 2.1804c-0.37447 0.19865-0.83908 0.056116-1.0377-0.31836-0.080018-0.15084-0.10745-0.32406-0.077964-0.49224l0.80353-4.5828-3.3438-3.2353c-0.30465-0.29476-0.31266-0.78067-0.017902-1.0853 0.11873-0.12271 0.27499-0.20233 0.44406-0.22626l4.6068-0.65196 2.0436-4.1799c0.18619-0.38082 0.64585-0.5386 1.0267-0.35241z"]}},function(e,t){e.exports={prefix:"cv",iconName:"tag",icon:["24","24",[],"","M9.85651379,4 C10.5597673,4 11.2342681,4.27911643 11.7318501,4.77635695 L11.7318501,4.77635695 L19.5192508,12.5634018 C20.1602555,13.2045708 20.1602555,14.2439177 19.5192159,14.8851217 L19.5192159,14.8851217 L14.8855145,19.5192848 C14.2443321,20.1602442 13.2049876,20.1602442 12.5637184,19.519198 L12.5637184,19.519198 L4.7762613,11.7314233 C4.27913559,11.2340016 4,10.5595161 4,9.85635067 L4,9.85635067 L4,5.64191268 C4,4.7351029 4.73513649,4 5.64195885,4 L5.64195885,4 L9.85651379,4 Z M9.85658948,5.26315824 L5.64195885,5.26315824 C5.4327466,5.26315824 5.26315823,5.43273884 5.26315823,5.64191268 L5.26315823,5.64191268 L5.26315823,9.85642637 C5.26315823,10.2247328 5.40935021,10.5779817 5.66959105,10.8383776 L5.66959105,10.8383776 L13.4568376,18.6259418 C13.6047616,18.7738142 13.8445582,18.7738142 13.9923822,18.6260417 L13.9923822,18.6260417 L18.6259486,13.9920135 C18.7738119,13.8441123 18.7738119,13.6043763 18.6260161,13.4565426 L18.6260161,13.4565426 L10.8388259,5.6697082 C10.5782887,5.40934993 10.2250082,5.26315824 9.85658948,5.26315824 L9.85658948,5.26315824 Z M7.78947471,6.10526373 C8.71963876,6.10526373 9.4736857,6.85931068 9.4736857,7.78947472 C9.4736857,8.71963876 8.71963876,9.4736857 7.78947471,9.4736857 C6.85931067,9.4736857 6.10526373,8.71963876 6.10526373,7.78947472 C6.10526373,6.85931068 6.85931067,6.10526373 7.78947471,6.10526373 Z M7.78947471,7.36842197 C7.5569337,7.36842197 7.36842197,7.55693371 7.36842197,7.78947472 C7.36842197,8.02201573 7.5569337,8.21052747 7.78947471,8.21052747 C8.02201572,8.21052747 8.21052746,8.02201573 8.21052746,7.78947472 C8.21052746,7.55693371 8.02201572,7.36842197 7.78947471,7.36842197 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"time",icon:["24","24",[],"","M12 4c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 1.077a6.88 6.88 0 0 0-4.896 2.027A6.877 6.877 0 0 0 5.077 12c0 1.85.72 3.588 2.027 4.896A6.877 6.877 0 0 0 12 18.923a6.88 6.88 0 0 0 4.896-2.027A6.877 6.877 0 0 0 18.923 12a6.88 6.88 0 0 0-2.027-4.896A6.877 6.877 0 0 0 12 5.077zm2.524 9.599a.6.6 0 0 1-.848.848l-2.5-2.5A.6.6 0 0 1 11 12.6V8.624a.6.6 0 0 1 1.2 0v3.727l2.324 2.325z"]}},function(e,t){e.exports={prefix:"cv",iconName:"video",icon:["24","24",[],"","m5.4332 6.7668c-0.24546 0-0.44444 0.19898-0.44444 0.44444v9.5776c0 0.24546 0.19898 0.44444 0.44444 0.44444h13.134c0.24546 0 0.44444-0.19898 0.44444-0.44444v-9.5776c0-0.24546-0.19898-0.44444-0.44444-0.44444zm13.233-0.98897c0.73638 0 1.3333 0.59695 1.3333 1.3333v9.7778c0 0.73638-0.59695 1.3333-1.3333 1.3333h-13.333c-0.73638 0-1.3333-0.59695-1.3333-1.3333v-9.7778c0-0.73638 0.59695-1.3333 1.3333-1.3333zm-8.4158 3.6277c-0.01871 0.030621-0.02861 0.065813-0.02861 0.1017v4.9856c0 0.10772 0.08733 0.19505 0.19505 0.19505 0.03589 0 0.07108-0.0099 0.1017-0.02862l4.0795-2.4928c0.09192-0.05617 0.1209-0.17622 0.06473-0.26814-0.01614-0.02641-0.03832-0.04859-0.06473-0.06473l-4.0795-2.4928c-0.09192-0.056168-0.21197-0.027185-0.26814 0.064732z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subject",icon:["24","24",[],"","M19.15,21.08H5.1c-1.09,0-1.98-0.89-1.98-1.98V5.06c0-1.09,0.89-1.98,1.98-1.98h14.04c1.09,0,1.98,0.89,1.98,1.98V19.1 C21.12,20.19,20.24,21.08,19.15,21.08z M20.12,19.16V5c0-0.51-0.41-0.92-0.92-0.92H7.04C6.54,4.08,6.12,4.49,6.12,5v14.16 c0,0.51,0.41,0.92,0.92,0.92h12.16C19.71,20.08,20.12,19.67,20.12,19.16z M19.12,6.95V6.81c0-0.36-0.29-0.65-0.65-0.65H8.78 c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69C18.83,7.6,19.12,7.31,19.12,6.95z M19.12,9.95V9.81 c0-0.36-0.29-0.65-0.65-0.65H8.78c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69 C18.83,10.6,19.12,10.31,19.12,9.95z"]}},function(e,t){e.exports={prefix:"cv",iconName:"series",icon:["24","24",[],"","M20.49,3.51c0.97,0,1.76,0.79,1.76,1.76v9.27c0,0.77-0.49,1.42-1.18,1.66l0.09-10.84c0-0.39-0.3-0.7-0.68-0.7l-14.27,0 C6.46,3.99,7.1,3.51,7.85,3.51H20.49z M18.38,5.56c0.97,0,1.76,0.79,1.76,1.75v9.27c0.01,0.77-0.49,1.42-1.17,1.66l0.09-10.86 c0-0.38-0.3-0.68-0.68-0.68l-14.28,0c0.25-0.67,0.89-1.14,1.64-1.14H18.38z M16.15,7.7c0.97,0,1.75,0.79,1.75,1.76v9.27 c0,0.97-0.79,1.75-1.75,1.75H3.5c-0.97,0-1.75-0.79-1.75-1.75V9.46c0-0.97,0.79-1.76,1.75-1.76H16.15z M16.14,8.85H3.51 c-0.38,0-0.68,0.3-0.68,0.68l0,0v9.13c0,0.38,0.3,0.68,0.68,0.68l0,0h12.62c0.38,0,0.68-0.3,0.68-0.68l0,0V9.53 C16.82,9.15,16.52,8.85,16.14,8.85L16.14,8.85z M8.46,12.41v3.37c0,0.18,0.21,0.28,0.35,0.18l2.31-1.69c0.12-0.09,0.12-0.27,0-0.35 L8.8,12.23C8.66,12.13,8.46,12.23,8.46,12.41"]}},function(e,t){e.exports={prefix:"cv",iconName:"white-wave",icon:["1200","244",[],"","M1104.19651,33.5198863 C1084.14716,45.4511816 1067.10689,82.9623447 1047.23647,124.40502 C1023.86518,173.149287 924.725009,160.996474 830.060105,199.668011 C735.395201,238.339548 706.121292,249.351671 618.615175,241.737466 C531.109058,234.12326 495.404437,207.34459 432.2827,199.668011 C370.933901,192.207048 283.214734,200.240922 234.995453,186.264588 C153.311618,162.588569 167.948341,80.4093241 122.421855,59.9864363 C102.62311,51.1048469 61.8158253,37.3273576 0,18.6539685 L0,0 L1200,0 C1161.79495,7.07406031 1129.86046,18.2473557 1104.19651,33.5198863 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"compass",icon:["24","24",[],"","m13.628 5.5109c0.11004-0.22771 0.17189-0.48189 0.17189-0.75006 0-0.97095-0.80748-1.7609-1.8-1.7609s-1.8 0.78993-1.8 1.7609c0 0.26817 0.06185 0.52235 0.17192 0.75006-3.6332 0.73772-6.3719 3.8933-6.3719 7.663 0 4.3153 3.5888 7.8261 8 7.8261s8-3.5108 8-7.8261c0-3.7697-2.7387-6.9253-6.3719-7.663zm-1.6281-1.7369c0.52335 0 0.79457 0.34501 0.8001 0.787 0.0065 0.51634-0.299 0.7918-0.8001 0.78684-0.49377-0.0048883-0.7999-0.22625-0.7999-0.78684 0-0.42731 0.3654-0.787 0.7999-0.787zm0 16.252c-3.7495 0-6.9999-3.1843-6.9999-6.8523s3.2505-6.8517 7-6.8517 7 3.184 7 6.852-3.2506 6.852-7.0001 6.852zm3.2171-10.658-4.7794 2.1647c-0.14122 0.06389-0.2663 0.17795-0.33844 0.32363l-2.2638 4.5701c-0.28535 0.57615 0.34509 1.1789 0.94757 0.90609l4.7793-2.1647c0.15316-0.0694 0.27201-0.1894 0.33844-0.32363l2.2638-4.5701c0.28483-0.57501-0.3442-1.1794-0.94753-0.90609zm-4.615 3.4321 1.974 1.8813-3.6 1.4787zm2.608 1.29-1.975-1.881 3.8-1.779z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","m12 4c4.4183 0 8 3.5817 8 8s-3.5817 8-8 8-8-3.5817-8-8 3.5817-8 8-8zm0 1.071c-3.6609 0-6.829 3.2681-6.829 6.929 0 3.6609 3.1681 6.929 6.829 6.929 3.6609 0 6.829-3.2681 6.829-6.929 0-3.6609-3.1681-6.929-6.829-6.929zm-0.05 2.8147c0.37871 0 0.53589 0.30716 0.53589 0.68586l1.09e-4 3.1445 2.5561 2.6559c0.26261 0.27286 0.56761 0.70201 0.29983 0.9698-0.26779 0.26779-0.70108 0.168-0.96886-0.0998l-2.757-2.7571c-0.12859-0.1286-0.30643-0.30309-0.30114-0.48487l0.09971-3.4286c0.011009-0.37855 0.15666-0.68571 0.53536-0.68571z"]}},function(e,t){e.exports={prefix:"cv",iconName:"email",icon:["24","24",[],"","M5.09090909,16.5044548 C5.09090909,16.7087643 5.2517754,16.875 5.44811273,16.875 L18.5518873,16.875 C18.7495118,16.875 18.9090909,16.7100912 18.9090909,16.5044548 L18.9090909,7.49554521 C18.9090909,7.29123572 18.7482246,7.125 18.5518873,7.125 L5.44811273,7.125 C5.25048819,7.125 5.09090909,7.28990884 5.09090909,7.49554521 L5.09090909,16.5044548 Z M18.5518873,6 C19.3516578,6 20,6.67088532 20,7.49554521 L20,16.5044548 C20,17.3304216 19.3529644,18 18.5518873,18 L5.44811273,18 C4.64834215,18 4,17.3291147 4,16.5044548 L4,7.49554521 C4,6.6695784 4.6470356,6 5.44811273,6 L18.5518873,6 Z M5.28875242,8.40614655 C5.12000436,8.66349123 5.18550432,9.01318255 5.43505067,9.18720399 L11.4273828,13.3659638 L11.7273691,13.5751595 L12.0307568,13.3712472 L18.2317117,9.20347374 C18.4840876,9.03384736 18.5553362,8.68535347 18.3908501,8.42509084 C18.2446401,8.19374628 17.9613854,8.10998685 17.7229933,8.21336378 L17.6360272,8.26099773 L17.6360272,8.26099773 L17.634306,8.26215307 L17.6301531,8.26494056 L17.622066,8.27036883 C17.597586,8.28680036 17.530266,8.33198706 17.3451362,8.4562505 L17.2583634,8.51449439 C17.2426263,8.52505752 17.2262335,8.53606078 17.2091576,8.5475225 L17.0982873,8.62194118 C16.4410163,9.06311671 14.980414,10.0435068 11.7346312,12.2221514 C11.170907,11.8290376 10.4395891,11.3190523 9.69015295,10.7964321 L9.28047118,10.5107401 C7.64174412,9.36797184 6.04614146,8.25527648 6.04614146,8.25527648 C5.7965951,8.08125504 5.45750048,8.14880187 5.28875242,8.40614655 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"year-level",icon:["24","24",[],"","M14.5628141,2 C15.3668342,2 15.7688442,2.10471204 16.0703518,2.31413613 C16.3718593,2.52356021 16.6733668,2.73298429 16.8743719,3.15183246 C16.9748744,3.46596859 17.0753769,3.88481675 17.0753769,4.72251309 L17.0753769,9.85340314 C17.0753769,10.6212914 16.9909269,11.0372309 16.8220268,11.3431864 L16.7738693,11.4240838 L16.7738693,11.4240838 L19.3869347,11.4240838 C20.1909548,11.4240838 20.5929648,11.5287958 20.8944724,11.7382199 C21.1959799,11.947644 21.4974874,12.1570681 21.6984925,12.5759162 C21.8994975,12.9947644 22,13.4136126 22,14.1465969 L22,19.2774869 C22,20.1151832 21.8994975,20.5340314 21.6984925,20.8481675 C21.4974874,21.1623037 21.2964824,21.4764398 20.8944724,21.6858639 C20.4924623,21.895288 20.0904523,22 19.3869347,22 L14.4623116,22 C13.6582915,22 13.2562814,21.895288 12.9547739,21.6858639 C12.6532663,21.4764398 12.3517588,21.2670157 12.1507538,20.8481675 C12.1034481,20.774237 12.0617091,20.6945067 12.0255366,20.6076117 C12.002845,20.6555797 11.9772366,20.7004967 11.9497487,20.7434555 C11.7487437,21.0575916 11.5477387,21.3717277 11.1457286,21.5811518 C10.7437186,21.7905759 10.3417085,21.895288 9.63819095,21.895288 L4.61306533,21.895288 C3.80904523,21.895288 3.40703518,21.7905759 3.10552764,21.5811518 C2.8040201,21.3717277 2.50251256,21.1623037 2.30150754,20.7434555 C2.10050251,20.4293194 2,20.0104712 2,19.1727749 L2,14.0418848 C2,13.2041885 2.10050251,12.7853403 2.30150754,12.4712042 C2.50251256,12.1570681 2.70351759,11.8429319 3.10552764,11.6335079 C3.40703518,11.5287958 3.80904523,11.4240838 4.61306533,11.4240838 L7.32663317,11.4240838 L7.32663317,11.4240838 C7.12562814,11.0052356 7.02512563,10.5863874 7.02512563,9.7486911 L7.02512563,4.72251309 C7.02512563,3.88481675 7.12562814,3.46596859 7.32663317,3.04712042 C7.42713568,2.73298429 7.72864322,2.41884817 8.03015075,2.31413613 C8.4321608,2.10471204 8.83417085,2 9.63819095,2 L14.5628141,2 Z M12.0749659,12.71176 L12.0874744,12.6846501 L12.0874744,12.6846501 L12.1507538,12.5759162 L12.1507538,12.5759162 L14.361809,12.5759162 C13.758794,12.5759162 13.5577889,12.6806283 13.4572864,12.6806283 C13.3567839,12.6806283 13.2562814,12.8900524 13.1557789,12.9947644 C13.0696339,13.1742708 13.0573275,13.2768458 13.0555694,13.8300185 L13.0552764,19.2774869 C13.0552764,20.0104712 13.1557789,20.2198953 13.1557789,20.4293194 C13.2562814,20.5340314 13.3567839,20.7434555 13.5577889,20.7434555 C13.7444365,20.8406881 13.8444262,20.8476333 14.5015017,20.8481294 L19.5879397,20.8481675 C20.2914573,20.8481675 20.4924623,20.7434555 20.6934673,20.7434555 C20.7939698,20.6387435 20.9949749,20.5340314 20.9949749,20.3246073 C21.0811199,20.145101 21.0934263,20.0425259 21.0951844,19.4893533 L21.0954774,14.0418848 C21.0954774,13.3089005 20.9949749,13.0994764 20.9949749,12.8900524 C20.8944724,12.7853403 20.7939698,12.5759162 20.5929648,12.5759162 C20.4206748,12.4861631 20.3222234,12.4733412 19.7912888,12.4715095 L11.9497487,12.4712042 L11.9497487,12.4712042 C11.9970544,12.5451347 12.0387934,12.624865 12.0749659,12.71176 Z M8.03015075,12.1570681 C8.4321608,12.3664921 8.73366834,12.4712042 9.43718593,12.4712042 L4.61306533,12.4712042 C3.90954774,12.4712042 3.70854271,12.5759162 3.50753769,12.5759162 C3.40703518,12.6806283 3.20603015,12.7853403 3.20603015,12.8900524 C3.10552764,13.2041885 3.00502513,13.3089005 3.00502513,14.1465969 L3.00502513,19.2774869 C3.00502513,20.0104712 3.10552764,20.2198953 3.20603015,20.4293194 C3.30653266,20.5340314 3.40703518,20.7434555 3.50753769,20.7434555 C3.70854271,20.7434555 3.80904523,20.8481675 4.61306533,20.8481675 L9.53768844,20.8481675 C10.241206,20.8481675 10.4422111,20.7434555 10.6432161,20.7434555 C10.7437186,20.6387435 10.9447236,20.5340314 10.9447236,20.3246073 C11.0380474,20.1301421 11.0447134,20.0259643 11.0451895,19.3413674 L11.0452261,14.0418848 C11.0452261,13.3089005 10.9447236,13.0994764 10.9447236,12.8900524 C10.8442211,12.7853403 10.7437186,12.5759162 10.6432161,12.5759162 C10.4787574,12.4902427 10.3815773,12.4746657 10.0213993,12.4718336 L9.53768844,12.4712042 L9.53768844,12.4712042 C8.83417085,12.4712042 8.4321608,12.3664921 8.13065327,12.1570681 C7.82914573,11.947644 7.52763819,11.7382199 7.42713568,11.4240838 L7.32663317,11.4240838 C7.52763819,11.7382199 7.72864322,12.052356 8.03015075,12.1570681 Z M17.5778894,16.4502618 C17.9798995,16.4502618 18.281407,16.6596859 18.4824121,16.8691099 L18.427,16.923 L18.4619013,16.9649688 C18.6095785,17.1682872 18.6834171,17.4375467 18.6834171,17.7068063 L18.6834171,18.1256545 C18.6834171,18.8586387 18.080402,19.382199 17.4773869,19.382199 L15.7688442,19.382199 C15.5678392,19.486911 15.3668342,19.2774869 15.3668342,18.9633508 C15.3668342,18.7539267 15.5678392,18.5445026 15.7688442,18.5445026 L17.4773869,18.5445026 C17.678392,18.5445026 17.879397,18.3350785 17.879397,18.1256545 L17.879397,17.7068063 C17.879397,17.4973822 17.678392,17.2879581 17.4773869,17.2879581 L15.8693467,17.2879581 C15.6683417,17.2879581 15.4673367,17.078534 15.4673367,16.8691099 C15.4673367,16.6596859 15.6683417,16.4502618 15.8693467,16.4502618 L17.5778894,16.4502618 Z M7.52763819,14.2513089 C8.23115578,14.2513089 8.73366834,14.8795812 8.73366834,15.5078534 L8.73366834,15.9267016 C8.73366834,16.6596859 8.13065327,17.1832461 7.52763819,17.1832461 L6.62311558,17.1832461 C6.42211055,17.1832461 6.22110553,17.3926702 6.22110553,17.6020942 L6.22110553,18.4397906 L8.33165829,18.4397906 C8.53266332,18.4397906 8.73366834,18.6492147 8.73366834,18.8586387 C8.73366834,19.0680628 8.53266332,19.2774869 8.33165829,19.2774869 L5.81909548,19.2774869 C5.61809045,19.2774869 5.41708543,19.0680628 5.41708543,18.8586387 L5.41708543,17.7068063 C5.41708543,16.973822 6.0201005,16.4502618 6.62311558,16.4502618 L7.42713568,16.4502618 C7.72864322,16.4502618 7.82914573,16.2408377 7.82914573,15.9267016 L7.82914573,15.5078534 C7.82914573,15.2984293 7.6281407,15.0890052 7.42713568,15.0890052 L5.81909548,15.0890052 C5.61809045,15.0890052 5.41708543,14.8795812 5.41708543,14.6701571 C5.41708543,14.460733 5.61809045,14.2513089 5.81909548,14.2513089 L7.52763819,14.2513089 Z M17.4773869,14.2513089 C18.1809045,14.2513089 18.6834171,14.8795812 18.6834171,15.5078534 L18.6834171,15.9267016 C18.6834171,16.2408377 18.5829146,16.5549738 18.3819095,16.7643979 C18.1809045,16.4502618 17.879397,16.3455497 17.4773869,16.3455497 C17.678392,16.3455497 17.879397,16.1361257 17.879397,15.9267016 L17.879397,15.5078534 C17.879397,15.2984293 17.678392,15.0890052 17.4773869,15.0890052 L15.7688442,15.0890052 C15.5678392,15.0890052 15.3668342,14.8795812 15.3668342,14.6701571 C15.3668342,14.460733 15.5678392,14.2513089 15.7688442,14.2513089 L17.4773869,14.2513089 Z M14.4623116,3.04712042 L9.63819095,3.04712042 C8.83417085,3.04712042 8.73366834,3.15183246 8.53266332,3.2565445 C8.4321608,3.2565445 8.23115578,3.36125654 8.13065327,3.57068063 C8.13065327,3.78010471 8.03015075,3.88481675 8.03015075,4.72251309 L8.03015075,9.85340314 C8.03015075,10.5863874 8.13065327,10.7958115 8.13065327,11.0052356 C8.23115578,11.1099476 8.33165829,11.3193717 8.4321608,11.3193717 C8.63316583,11.3193717 8.83417085,11.4240838 9.43718593,11.4240838 L14.5628141,11.4240838 C15.1658291,11.4240838 15.3668342,11.3193717 15.4673367,11.3193717 C15.5678392,11.2146597 15.7688442,11.1099476 15.7688442,11.0052356 C15.8549892,10.8257292 15.8672957,10.7231542 15.8690537,10.1699815 L15.8693467,4.72251309 C15.8693467,3.9895288 15.7688442,3.78010471 15.7688442,3.57068063 C15.6683417,3.46596859 15.5678392,3.2565445 15.3668342,3.2565445 C15.3668342,3.15183246 15.2663317,3.04712042 14.4623116,3.04712042 Z M12.0502513,4.61780105 C12.2512563,4.61780105 12.4522613,4.82722513 12.4522613,5.03664921 L12.4522613,9.43455497 C12.4522613,9.64397906 12.2512563,9.85340314 12.0502513,9.85340314 C11.8492462,9.85340314 11.6482412,9.64397906 11.6482412,9.43455497 L11.6482412,5.03664921 C11.6482412,4.82722513 11.8492462,4.61780105 12.0502513,4.61780105 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subjects",icon:["24","24",[],"","M11.9999608,6.48873431 C12.828049,6.08104273 13.7442836,5.92395943 14.6596155,6.03432052 L14.6596155,6.03432052 L18.7411881,6.52627319 C18.8894198,6.54415652 19.0011921,6.67308566 19.0011921,6.8263023 L19.0011921,6.8263023 L19.0011921,7.51037994 L19.7056558,7.51037994 C19.8682123,7.51037994 20,7.64563269 20,7.81246321 L20,7.81246321 L20,17.6979167 C20,17.8647473 19.8682515,18 19.7056558,18 L19.7056558,18 L4.29434418,18 C4.13174845,18 4,17.8647473 4,17.6979167 L4,17.6979167 L4,7.81246321 C4,7.64563269 4.13174845,7.51037994 4.29434418,7.51037994 L4.29434418,7.51037994 L4.99872941,7.51037994 L4.99872941,6.8263023 C4.99872941,6.67308566 5.11050171,6.54415652 5.25873344,6.52627319 L5.25873344,6.52627319 L9.34030602,6.03432052 C10.2557557,5.92391915 11.1718332,6.08104273 11.9999608,6.48873431 Z M4.99876866,8.11454648 L4.58868835,8.11454648 L4.58868835,17.3958335 L19.4113116,17.3958335 L19.4113116,8.11454648 L19.0011136,8.11454648 L19.0011136,16.4188559 C19.0011136,16.5051309 18.9652036,16.5872572 18.9023709,16.6445725 C18.8482116,16.6940336 18.7784717,16.7209392 18.7067694,16.7209392 C18.6953489,16.7209392 18.6838891,16.7202544 18.6724293,16.718885 L18.6724293,16.718885 L14.5908959,16.2269323 C13.7425175,16.1246671 12.8935504,16.2838045 12.1353983,16.6870655 C12.0504702,16.7322572 11.9494513,16.7322572 11.8645232,16.6870655 C11.1063318,16.2838045 10.2570508,16.1246671 9.40902557,16.2269323 L9.40902557,16.2269323 L5.32745299,16.718885 C5.24401623,16.7289544 5.16030474,16.7018878 5.09751132,16.6445725 C5.03467865,16.5872572 4.99876866,16.5051309 4.99876866,16.4188559 L4.99876866,16.4188559 L4.99876866,8.11454648 Z M14.5909352,6.63437873 C13.8015826,6.53924264 13.0113666,6.67074955 12.2943049,7.01452032 L12.2943049,7.01452032 L12.2943049,15.9488546 C13.0426063,15.6408908 13.8514249,15.5294825 14.6596155,15.6269144 L14.6596155,15.6269144 L18.4124645,16.0792337 L18.4124645,7.0949953 Z M11.7056558,7.01452032 C10.9886334,6.67074955 10.1983389,6.53920236 9.40902557,6.63437873 L9.40902557,6.63437873 L5.58745701,7.0949953 L5.58745701,16.0791935 L9.34034527,15.6268741 C9.53041311,15.6039963 9.72055945,15.5925977 9.90984238,15.5925977 C10.5256104,15.5925977 11.1332938,15.7133907 11.7056558,15.9489351 L11.7056558,15.9489351 Z M12.8179628,13.2954357 C13.418268,13.1280413 14.0360375,13.080876 14.6541996,13.1553093 L14.6541996,13.1553093 L17.7187541,13.5245759 C17.8801725,13.5440301 17.9956731,13.6941453 17.9767566,13.8598481 C17.9591745,14.0135883 17.8320178,14.1267286 17.6848064,14.1267286 C17.6733466,14.1267286 17.6617691,14.1260439 17.6500738,14.1246341 L17.6500738,14.1246341 L14.5855585,13.7553675 C14.0427486,13.690037 13.4998209,13.7314023 12.9722777,13.8784564 C12.8155688,13.9222383 12.6537188,13.8271828 12.6110978,13.6661523 C12.5684767,13.505162 12.6610578,13.3391773 12.8179628,13.2954357 Z M9.3348116,13.1553496 C9.95195322,13.0815205 10.5768655,13.1297732 11.1712838,13.295919 C11.3281496,13.3397412 11.4206914,13.5057662 11.3779526,13.6667564 C11.3352531,13.827787 11.1734031,13.9226814 11.0166157,13.8788592 C10.4945669,13.7329328 9.9450067,13.6906412 9.40325643,13.7554078 L9.40325643,13.7554078 L6.33901581,14.1246341 C6.32735978,14.1260439 6.315743,14.1267286 6.3042832,14.1267286 C6.15707186,14.1267286 6.02991518,14.0135883 6.01229378,13.8598481 C5.99333801,13.6941453 6.10887791,13.5440704 6.27029626,13.5246162 L6.27029626,13.5246162 Z M12.8179236,11.9098804 C13.4183465,11.7424457 14.036116,11.695361 14.6541603,11.7697541 L14.6541603,11.7697541 L17.7187149,12.1390207 C17.8801332,12.1584748 17.9956339,12.3085498 17.9767174,12.4742525 C17.9591352,12.6279928 17.8319785,12.741133 17.6847672,12.741133 L17.6847672,12.741133 L17.6500346,12.7390386 L14.5855192,12.369772 C14.0425524,12.3043609 13.4997032,12.3457664 12.9722384,12.4928609 C12.8155296,12.5366428 12.6536795,12.4415873 12.6110585,12.280597 C12.5684375,12.1196068 12.6610185,11.9536221 12.8179236,11.9098804 Z M9.3348116,11.7697541 C9.95183548,11.6959249 10.5769048,11.7441777 11.1712838,11.9103235 C11.3281496,11.9541457 11.4206914,12.1201707 11.3779526,12.2811609 C11.3352531,12.4421914 11.1734031,12.5370456 11.0166157,12.4932636 C10.4944884,12.347297 9.94484971,12.3050053 9.40325643,12.3698123 L9.40325643,12.3698123 L6.33901581,12.7390386 C6.32735978,12.7404483 6.315743,12.741133 6.3042832,12.741133 C6.15707186,12.741133 6.02991518,12.6279928 6.01229378,12.4742525 C5.99333801,12.3085498 6.10887791,12.1584748 6.27029626,12.1390207 L6.27029626,12.1390207 Z M12.8179236,10.5243251 C13.4183072,10.3569307 14.036116,10.3097655 14.6541603,10.3841988 L14.6541603,10.3841988 L17.7187149,10.7534654 C17.8801332,10.7729195 17.9956339,10.9229945 17.9767174,11.0886973 C17.9591352,11.2424375 17.8319785,11.3555778 17.6847672,11.3555778 C17.6733074,11.3555778 17.6617299,11.354893 17.6500346,11.3534833 L17.6500346,11.3534833 L14.5855192,10.9842167 C14.0426308,10.9188459 13.4997817,10.9602112 12.9722384,11.1073056 C12.8155296,11.1510472 12.6536795,11.056032 12.6110585,10.8950417 C12.5684375,10.7340515 12.6610185,10.5680668 12.8179236,10.5243251 Z M9.3348116,10.3841585 C9.95199246,10.3103696 10.5769048,10.3586224 11.1712838,10.5247682 C11.3281496,10.5685904 11.4206914,10.7346154 11.3779526,10.8956056 C11.3352531,11.0566362 11.1734031,11.1515306 11.0166157,11.1077084 C10.4945669,10.961782 9.94496745,10.9194903 9.40325643,10.984257 L9.40325643,10.984257 L6.33901581,11.3534833 C6.32735978,11.354893 6.315743,11.3555778 6.3042832,11.3555778 C6.15707186,11.3555778 6.02991518,11.2424375 6.01229378,11.088657 C5.99333801,10.9229542 6.10887791,10.7728793 6.27029626,10.7534251 L6.27029626,10.7534251 Z M12.8179236,9.13876988 C13.4183072,8.97133519 14.036116,8.9242102 14.6541603,8.99864352 L14.6541603,8.99864352 L17.7187149,9.36791011 C17.8801332,9.38736427 17.9956339,9.53743924 17.9767174,9.70314198 C17.9591352,9.85688223 17.8319785,9.97002249 17.6847672,9.97002249 C17.6733074,9.97002249 17.6617299,9.96933776 17.6500346,9.96792804 L17.6500346,9.96792804 L14.5855192,9.59866145 C14.0426308,9.53329063 13.4997817,9.5746559 12.9722384,9.72175031 C12.8155296,9.76549197 12.6536795,9.67043644 12.6110585,9.50948647 C12.5684375,9.34849622 12.6610185,9.18251154 12.8179236,9.13876988 Z M9.3348116,8.99860324 C9.95195322,8.92477409 10.5768655,8.97302686 11.1712838,9.13917266 C11.3281496,9.18299487 11.4206914,9.34901984 11.3779526,9.51001008 C11.3352531,9.6710406 11.1734031,9.76589475 11.0166157,9.72211281 C10.4945669,9.57618646 9.9450067,9.5338948 9.40325643,9.59866145 L9.40325643,9.59866145 L6.33901581,9.96788776 C6.32735978,9.96929749 6.315743,9.96998221 6.3042832,9.96998221 C6.15707186,9.96998221 6.02991518,9.85684195 6.01229378,9.70310171 C5.99333801,9.53739896 6.10887791,9.38732399 6.27029626,9.36786983 L6.27029626,9.36786983 Z M12.8179236,7.75317433 C13.418268,7.58573964 14.0360375,7.53857437 14.6541603,7.61304797 L14.6541603,7.61304797 L17.7187149,7.98231456 C17.8801332,8.00176872 17.9956339,8.15184369 17.9767174,8.31754644 C17.9591352,8.47128668 17.8319785,8.58442694 17.6847672,8.58442694 L17.6847672,8.58442694 L17.6500346,8.58233249 L14.5855192,8.2130659 C14.0427093,8.14769508 13.4997817,8.18906035 12.9722384,8.33615477 C12.8155296,8.37985615 12.6536795,8.28488117 12.6110585,8.12389092 C12.5684375,7.96290068 12.6610185,7.79691599 12.8179236,7.75317433 Z M9.3348116,7.61304797 C9.95222794,7.53921882 10.576944,7.58747159 11.1712838,7.75361739 C11.3281496,7.7974396 11.4206914,7.96346456 11.3779526,8.12445481 C11.3352531,8.28548533 11.1734031,8.38033948 11.0166157,8.33655754 C10.4946061,8.19063118 9.94535991,8.14829925 9.40325643,8.21310618 L9.40325643,8.21310618 L6.33901581,8.58233249 C6.32735978,8.58374222 6.315743,8.58442694 6.3042832,8.58442694 C6.15707186,8.58442694 6.02991518,8.47128668 6.01229378,8.31754644 C5.99333801,8.15184369 6.10887791,8.00176872 6.27029626,7.98231456 L6.27029626,7.98231456 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"classrooms",icon:["24","24",[],"","m16.367 7.9638c0.82139-0.63033 1.4533-1.6413 1.4533-2.7789 0-0.27272-0.2135-0.49384-0.47681-0.49384h-2.4824c-1.2643 0-2.3666 0.5347-2.9329 1.6108-0.37042-0.75273-0.87304-1.2483-1.3291-1.5688-0.92972-0.65341-1.8633-0.72918-1.9026-0.73212-0.26323-0.01963-0.68917 0.28362-0.70791 0.55569-0.018775 0.27205 0.37516 0.60739 0.63782 0.62684 0.10606 0.0088595 2.3503 0.23081 2.8134 2.9201-0.56088-0.12442-0.92721-0.44951-2.3005-0.44951-2.1419 0-4.0528 1.7133-4.0528 5.0372 0 3.4373 2.726 7.3088 4.5297 7.3088 1.7305 0 1.6294-0.50479 2.3841-0.50479 0.75744 0 0.6506 0.50479 2.3841 0.50479 1.8051 0 4.5297-3.8683 4.5297-7.3088 0-2.5637-1.1139-4.1055-2.5469-4.7273zm-1.5059-2.1864 1.8593-0.098768c-0.22154 1.1257-1.1915 1.6495-2.3357 1.7778l-1.761 0.19754c0.22154-1.1257 1.0877-1.8155 2.2374-1.8766zm1.6896 11.277c-0.82894 1.2852-1.7173 1.7596-2.1664 1.7596-0.84261 0-1.1071-0.13049-1.3628-0.25667-0.23572-0.1163-0.50289-0.24812-1.0212-0.24812-0.51828 0-0.78545 0.13183-1.0212 0.24812-0.25575 0.12618-0.52023 0.25667-1.3628 0.25667-1.0011 0-3.3781-2.9031-3.3781-6.1233 0-2.9889 1.4715-3.8519 2.9012-3.8519 1.3671 0 1.4906 0.3643 2.3839 0.4765 7.76e-4 0.31356 0.23036 0.51118 0.47702 0.51118 0.24744 0 0.47735-0.19896 0.47658-0.51112 0.90099-0.11306 1.0125-0.47656 2.3843-0.47656 1.4298 0 2.9013 0.86294 2.9013 3.8519 0 1.3843-0.3159 2.9748-1.2118 4.3637z"]}},function(e,t){e.exports={prefix:"cv",iconName:"group",icon:["24","24",[],"","m16.286 17.714c-0.25974 0-0.47619-0.17415-0.47619-0.43538v-1.7415c0-0.6966-0.51948-1.6327-1.2121-1.6327h-5.1948c-0.69264 0-1.2121 0.93605-1.2121 1.6327v1.7415c0 0.26122-0.21645 0.43538-0.47619 0.43538s-0.47619-0.17415-0.47619-0.43538v-1.7415c0-1.219 0.95238-2.585 2.1645-2.585h5.1948c1.2121 0 2.1645 1.366 2.1645 2.585v1.7415c0 0.26122-0.21645 0.43538-0.47619 0.43538zm-4.2857-5.7143c-1.619 0-2.8571-1.2381-2.8571-2.8571 0-1.619 1.2381-2.8571 2.8571-2.8571s2.8571 1.2381 2.8571 2.8571c0 1.619-1.2381 2.8571-2.8571 2.8571zm-1e-6 -4.6476c-0.98476 0-1.7905 0.80486-1.7905 1.7886 0 0.98371 0.80572 1.7886 1.7905 1.7886 0.98476 0 1.7905-0.80486 1.7905-1.7886 0-0.98371-0.80571-1.7886-1.7905-1.7886zm-9.5238 8.4571c-0.28571 0-0.47619-0.19048-0.47619-0.47619v-0.95238c0-1.3333 1.0476-2.381 2.381-2.381h2.8571c0.28571 0 0.47619 0.19048 0.47619 0.47619s-0.19048 0.47619-0.47619 0.47619h-2.8571c-0.7619 0-1.4286 0.66667-1.4286 1.4286v0.95238c0 0.28571-0.19048 0.47619-0.47619 0.47619zm3.3333-4.2857c-1.0476 0-1.9048-0.85714-1.9048-1.9048 0-1.0476 0.85714-1.9048 1.9048-1.9048 1.0476 0 1.9048 0.85714 1.9048 1.9048 0 1.0476-0.85714 1.9048-1.9048 1.9048zm0-2.8571c-0.57143 0-0.95238 0.38095-0.95238 0.95238 0 0.57143 0.38095 0.95238 0.95238 0.95238 0.57143 0 0.95238-0.38095 0.95238-0.95238 0-0.57143-0.38095-0.95238-0.95238-0.95238zm15.714 7.1429c-0.28571 0-0.47619-0.19048-0.47619-0.47619v-0.95238c0-0.7619-0.66667-1.4286-1.4286-1.4286h-2.8571c-0.28571 0-0.47619-0.19048-0.47619-0.47619s0.19048-0.47619 0.47619-0.47619h2.8571c1.3333 0 2.381 1.0476 2.381 2.381v0.95238c0 0.28571-0.19048 0.47619-0.47619 0.47619zm-3.3333-4.2857c-1.0476 0-1.9048-0.85714-1.9048-1.9048 0-1.0476 0.85714-1.9048 1.9048-1.9048s1.9048 0.85714 1.9048 1.9048c0 1.0476-0.85714 1.9048-1.9048 1.9048zm0-2.8571c-0.57143 0-0.95238 0.38095-0.95238 0.95238 0 0.57143 0.38095 0.95238 0.95238 0.95238s0.95238-0.38095 0.95238-0.95238c0-0.57143-0.38095-0.95238-0.95238-0.95238z"]}},function(e,t){e.exports={prefix:"cv",iconName:"hamburger",icon:["24","24",[],"","M19,15.75 C19.4142136,15.75 19.75,16.0857864 19.75,16.5 C19.75,16.8796958 19.4678461,17.193491 19.1017706,17.2431534 L19,17.25 L5,17.25 C4.58578644,17.25 4.25,16.9142136 4.25,16.5 C4.25,16.1203042 4.53215388,15.806509 4.89822944,15.7568466 L5,15.75 L19,15.75 Z M19,10.75 C19.4142136,10.75 19.75,11.0857864 19.75,11.5 C19.75,11.8796958 19.4678461,12.193491 19.1017706,12.2431534 L19,12.25 L5,12.25 C4.58578644,12.25 4.25,11.9142136 4.25,11.5 C4.25,11.1203042 4.53215388,10.806509 4.89822944,10.7568466 L5,10.75 L19,10.75 Z M19,5.75 C19.4142136,5.75 19.75,6.08578644 19.75,6.5 C19.75,6.87969577 19.4678461,7.19349096 19.1017706,7.24315338 L19,7.25 L5,7.25 C4.58578644,7.25 4.25,6.91421356 4.25,6.5 C4.25,6.12030423 4.53215388,5.80650904 4.89822944,5.75684662 L5,5.75 L19,5.75 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"image",icon:["24","21",[],"","M22.5,1 C23.3284271,1 24,1.67157288 24,2.5 L24,20.5 C24,21.3284271 23.3284271,22 22.5,22 L1.5,22 C0.671572875,22 0,21.3284271 0,20.5 L0,2.5 C0,1.67157288 0.671572875,1 1.5,1 L22.5,1 Z M22.5,2.5 L1.5,2.5 L1.5,20.5 L22.5,20.5 L22.5,2.5 Z M14.2906232,6.59182043 L20.1291975,15.5918204 C20.3546288,15.9393166 20.2556757,16.4037661 19.9081796,16.6291975 C19.5606834,16.8546288 19.0962339,16.7556757 18.8708025,16.4081796 L13.6366709,8.33991109 L11.113691,11.9311419 C10.8459047,12.3123112 10.299063,12.3597231 9.96966991,12.0303301 L9.08114564,11.1418058 L5.1,16.45 C4.85147186,16.7813708 4.38137085,16.8485281 4.05,16.6 C3.71862915,16.3514719 3.65147186,15.8813708 3.9,15.55 L8.4,9.55 C8.67384721,9.18487039 9.20759806,9.14693789 9.53033009,9.46966991 L10.3993093,10.3386491 L13.0477347,6.5688581 C13.3531907,6.13406938 14.0014355,6.14604568 14.2906232,6.59182043 Z M6,4.75 C7.24264069,4.75 8.25,5.75735931 8.25,7 C8.25,8.24264069 7.24264069,9.25 6,9.25 C4.75735931,9.25 3.75,8.24264069 3.75,7 C3.75,5.75735931 4.75735931,4.75 6,4.75 Z M6,6.25 C5.58578644,6.25 5.25,6.58578644 5.25,7 C5.25,7.41421356 5.58578644,7.75 6,7.75 C6.41421356,7.75 6.75,7.41421356 6.75,7 C6.75,6.58578644 6.41421356,6.25 6,6.25 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"library",icon:["24","24",[],"","M18.912835,4 C19.4651197,4 19.912835,4.44771525 19.912835,5 L19.912835,19 C19.912835,19.5522847 19.4651197,20 18.912835,20 L5,20 C4.44771525,20 4,19.5522847 4,19 L4,5 C4,4.44771525 4.44771525,4 5,4 L18.912835,4 Z M18.3150484,5.000875 L5.59778655,5.000875 C4.99414509,5.00828676 4.95863677,5.07848054 4.95654804,5.74325684 L4.95652747,18.2497969 C4.95850089,18.958322 4.99588632,18.9976846 5.70413253,18.9998714 L5.83621044,19 L7.012,19 L7.012835,10.1458066 C7.012835,9.83822121 7.33263161,9.588874 7.72712071,9.588874 L10.2985493,9.588874 C10.4318116,9.588874 10.5565504,9.61732839 10.663317,9.66687004 C10.7685672,9.61745455 10.8935633,9.588874 11.0271207,9.588874 L13.5985493,9.588874 C13.9930384,9.588874 14.312835,9.83822121 14.312835,10.1458066 L14.312263,11.91635 C14.3666516,11.8859752 14.4278689,11.8633468 14.4938652,11.8508958 L16.9807953,11.3137255 C17.2549415,11.2620495 17.5077276,11.40552 17.545417,11.63422 L18.734264,18.24136 C18.7719534,18.47006 18.5802735,18.6973845 18.306135,18.749104 L17.097,19 L18.0766245,19 C18.9124278,19 18.954218,19 18.9563075,18.2497969 L18.9563075,5.75020312 C18.954438,5.07896875 18.9207859,5.0083125 18.3150484,5.000875 Z M14.312,13.857 L14.312,19 L15.1623895,19.0015907 C15.1591891,18.9899078 15.1565697,18.9779665 15.1545607,18.9657833 L14.312,13.857 Z M9.60410364,10.588874 L9.68015558,10.5890768 L8.24551442,10.5890768 C7.99077949,10.5912891 7.96762177,10.617636 7.96551652,10.9314038 L7.96546816,18.23844 C7.96723715,18.5570164 7.98830424,18.5859779 8.23919417,18.5886107 L9.60410364,18.588874 C9.93295936,18.588874 9.95825595,18.588874 9.96020184,18.23844 L9.96020184,10.939308 C9.95825595,10.588874 9.93295936,10.588874 9.60410364,10.588874 Z M12.9041036,10.588874 L12.9801556,10.5890768 L11.5455144,10.5890768 C11.2907795,10.5912891 11.2676218,10.617636 11.2655165,10.9314038 L11.2654682,18.23844 C11.2672372,18.5570164 11.2883042,18.5859779 11.5391942,18.5886107 L12.9041036,18.588874 C13.2329594,18.588874 13.258256,18.588874 13.2602018,18.23844 L13.2602018,10.939308 C13.258256,10.588874 13.2329594,10.588874 12.9041036,10.588874 Z M16.6046993,12.4475552 L16.5375525,12.4598817 L15.1867145,12.7444527 C14.9638992,12.7864894 14.9416172,12.7906931 14.9791881,13.0326155 L14.9937355,13.1224387 L15.874016,17.950214 C15.9231508,18.2483646 15.9280637,18.2781789 16.1090353,18.2471104 L16.176182,18.234784 L17.5953339,17.950214 C17.8181492,17.9081772 17.8404312,17.9039735 17.8028603,17.6620511 L17.7883129,17.572228 L16.8397195,12.7444527 C16.7905848,12.4463021 16.7856711,12.4164869 16.6046993,12.4475552 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"monitor-play",icon:["24","24",[],"","m18 4c1.1046 0 2 0.89543 2 2v8.5c0 1.1046-0.89543 2-2 2h-3.8696l0.36664 1.877 1.003 6.37e-4c0.34947 0 0.52421 0.16809 0.52421 0.50428 0 0.33619-0.17474 0.509-0.52421 0.51844h-7c-0.34211-0.0094-0.51317-0.18225-0.51317-0.51844 0-0.33619 0.17106-0.50428 0.51317-0.50428l1.063-6.37e-4 0.34707-1.877h-3.9101c-1.1046 0-2-0.89543-2-2v-8.5c0-1.1046 0.89543-2 2-2zm-4.9256 12.5h-2.1551l-0.32629 1.8765h2.813zm4.9256-11.55h-12c-0.51284 0-0.93551 0.38604-0.99327 0.88338l-0.0067277 0.11662v8.6c0 0.51284 0.38604 0.93551 0.88338 0.99327l0.11662 0.006728h12c0.51284 0 0.93551-0.38604 0.99327-0.88338l0.006728-0.11662v-8.6c0-0.55228-0.44772-1-1-1zm-8.2 2.5388c0.082243 0 0.16322 0.020287 0.23574 0.059064l4.0655 2.1736c0.24352 0.1302 0.33539 0.43316 0.20519 0.67668-0.04681 0.08756-0.11864 0.1592-0.20632 0.20579l-4.0655 2.1602c-0.24386 0.12957-0.54658 0.03693-0.67615-0.20692-0.038387-0.072245-0.058461-0.1528-0.058461-0.23461v-4.3338c0-0.27614 0.22386-0.5 0.5-0.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file",icon:["24","24",[],"","M6 4h7l6 5v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm6.586 1H6v14h12V9.414L12.586 5zM13 10h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 1 1 1 0V10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-pdf",icon:["24","24",[],"","M9.833 15.006c-.328.765-.657 1.316-.997 1.619-.35.312-.762.394-1.138.15a1.345 1.345 0 0 1-.358-.322c-.298-.402-.194-.843.165-1.2.228-.227.563-.433.983-.63.226-.106.466-.204.706-.292.142-.358.286-.762.43-1.205a41.787 41.787 0 0 0 .866-3.123c-.435-.563-.75-1.057-.924-1.473-.28-.67-.211-1.242.372-1.494.56-.24 1.047-.086 1.307.391.17.312.234.736.231 1.26a7.96 7.96 0 0 1-.086 1.088c.158.195.33.398.513.606a30.903 30.903 0 0 0 1.73 1.81 14.011 14.011 0 0 0 .863.761c.464-.07.87-.106 1.213-.105.947.002 1.554.319 1.415 1.079-.107.585-.514.888-1.06.834-.365-.036-.781-.224-1.259-.532a8.753 8.753 0 0 1-.538-.38 21.15 21.15 0 0 0-.944.191c-.39.087-.798.188-1.22.3a45.345 45.345 0 0 0-2.27.667zM6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm4.43 8.39c-.07.21-.138.412-.207.606l.055-.016a46.181 46.181 0 0 1 1.608-.459 33.869 33.869 0 0 1 1.538-.37 15.994 15.994 0 0 1-.378-.35 31.732 31.732 0 0 1-1.882-1.98l-.083.32a38.471 38.471 0 0 1-.652 2.248zm-2.157 2.603c.12-.107.248-.279.382-.51a2.35 2.35 0 0 0-.553.37c-.092.092-.09.086-.083.096a.54.54 0 0 0 .138.116c.017.01.025.01.116-.072zm7.434-2.3c-.047 0-.095 0-.146.002.242.132.443.209.585.223.11.011.118.005.146-.145.005-.027-.095-.079-.585-.08zm-5.36-5.49c.065.156.16.334.283.53v-.05c.003-.393-.044-.696-.128-.85-.046-.086-.063-.091-.23-.02-.04.018-.05.092.075.39z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-img",icon:["24","24",[],"","M5 6v12h14V6H5zm0-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm2.4 10.3a.5.5 0 0 1-.8-.6l3-4a.5.5 0 0 1 .754-.054l.579.58 1.765-2.513a.5.5 0 0 1 .83.015l3.891 6a.5.5 0 0 1-.838.544l-3.49-5.379-1.682 2.394a.5.5 0 0 1-.763.067l-.592-.593L7.4 15.3zm.6-4.8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-ppt",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.07 6.96h1.22c.18 0 .353-.013.52-.04a1.21 1.21 0 0 0 .44-.155.844.844 0 0 0 .305-.325c.077-.14.115-.323.115-.55 0-.227-.038-.41-.115-.55a.844.844 0 0 0-.305-.325 1.21 1.21 0 0 0-.44-.155 3.288 3.288 0 0 0-.52-.04h-1.22v2.14zM9.5 8.6h3.22c.447 0 .827.065 1.14.195.313.13.568.302.765.515.197.213.34.457.43.73a2.715 2.715 0 0 1 0 1.695c-.09.277-.233.522-.43.735a2.133 2.133 0 0 1-.765.515c-.313.13-.693.195-1.14.195h-1.65v2.56H9.5V8.6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-word",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm8.77 10.74h-1.56L12 10.88h-.02l-1.19 4.86H9.2L7.31 8.6h1.57l1.13 4.86h.02l1.24-4.86h1.47l1.22 4.92h.02l1.17-4.92h1.54l-1.92 7.14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-zip",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5 0h1v1h-1V5zm1 1h1v1h-1V6zm-1 1h1v1h-1V7zm1 1h1v1h-1V8zm-1 1h1v1h-1V9zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-excel",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.09 7l-2.3-3.4h1.82l1.4 2.28 1.45-2.28h1.72l-2.29 3.41 2.49 3.73h-1.87l-1.56-2.47-1.59 2.47H8.6L11.09 12z"]}},function(e,t){e.exports={prefix:"cv",iconName:"twitter",icon:["24","24",[],"","M20.594 7.117c-.422.656-.985 1.242-1.688 1.758v.422c0 2.46-.885 4.693-2.654 6.697C14.482 17.998 12.132 19 9.203 19c-1.875 0-3.61-.516-5.203-1.547.375.047.645.07.809.07 1.57 0 2.976-.492 4.218-1.476a3.422 3.422 0 0 1-1.968-.686 3.22 3.22 0 0 1-1.196-1.67c.282.047.492.07.633.07.234 0 .54-.046.914-.14a3.436 3.436 0 0 1-1.951-1.178 3.24 3.24 0 0 1-.791-2.162v-.035c.516.281 1.031.422 1.547.422-1.008-.656-1.512-1.605-1.512-2.848 0-.586.152-1.148.457-1.687 1.805 2.226 4.137 3.41 6.996 3.55-.047-.163-.07-.421-.07-.773 0-.96.328-1.77.984-2.426.657-.656 1.465-.984 2.426-.984.961 0 1.781.363 2.461 1.09.703-.117 1.43-.399 2.18-.844-.235.82-.739 1.453-1.512 1.899a5.806 5.806 0 0 0 1.969-.528z"]}},function(e,t){e.exports={prefix:"cv",iconName:"facebook",icon:["24","24",[],"","M13.667 9.667H16L15.708 12h-2.041v7H10.64v-7H9V9.667h1.64V8.099c0-1.02.256-1.793.766-2.315.51-.523 1.361-.784 2.552-.784H16v2.333h-1.24c-.461 0-.76.073-.893.22-.133.145-.2.388-.2.728v1.386z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm3.186 5.646l-4.723 5.18-1.683-1.615a.772.772 0 0 0-1.06 0 .7.7 0 0 0 0 1.018l2.25 2.16a.771.771 0 0 0 1.094-.035l5.25-5.76a.7.7 0 0 0-.07-1.016.772.772 0 0 0-1.058.068z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle-o",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212a7.737 7.737 0 0 0-5.508 2.28A7.737 7.737 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.737 7.737 0 0 0 12 19.788a7.737 7.737 0 0 0 5.508-2.28A7.737 7.737 0 0 0 19.788 12a7.737 7.737 0 0 0-2.28-5.508A7.737 7.737 0 0 0 12 4.212zm3.186 4.434a.772.772 0 0 1 1.058-.068.7.7 0 0 1 .07 1.016l-5.25 5.76a.771.771 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.772.772 0 0 1 1.06 0l1.683 1.616 4.723-5.181z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check",icon:["24","24",[],"","M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 0 1 1.414-1.414l2.244 2.244 6.296-7.196z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption-badge",icon:["24","24",[],"","M7.5 5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 16.5 5h-9zm0-1h9A3.5 3.5 0 0 1 20 7.5v9a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-9A3.5 3.5 0 0 1 7.5 4zM11 9a.5.5 0 1 1 0 1H9.5A1.5 1.5 0 0 0 8 11.5v1A1.5 1.5 0 0 0 9.5 14H11a.5.5 0 1 1 0 1H9.5A2.5 2.5 0 0 1 7 12.5v-1A2.5 2.5 0 0 1 9.5 9H11zm5 0a.5.5 0 1 1 0 1h-1.5a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5H16a.5.5 0 1 1 0 1h-1.5a2.5 2.5 0 0 1-2.5-2.5v-1A2.5 2.5 0 0 1 14.5 9H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"question",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zM8.142 9.17c0 .247.103.476.309.687.206.212.46.318.76.318.508 0 .854-.303 1.036-.908.193-.579.428-1.017.707-1.314.278-.297.712-.446 1.302-.446.503 0 .914.147 1.233.442.319.294.478.656.478 1.085 0 .22-.052.423-.157.61a2.305 2.305 0 0 1-.385.51c-.153.153-.4.38-.744.68-.39.342-.701.638-.932.887-.23.25-.415.539-.554.868-.14.33-.209.72-.209 1.17 0 .358.095.629.285.81.19.183.425.274.703.274.536 0 .855-.279.956-.836a12.2 12.2 0 0 1 .133-.55c.03-.104.071-.209.125-.313.053-.105.135-.22.245-.346.11-.126.255-.272.438-.438a48.078 48.078 0 0 0 1.37-1.257c.254-.25.474-.545.658-.888.185-.343.278-.742.278-1.197a2.87 2.87 0 0 0-.486-1.608c-.325-.492-.784-.882-1.378-1.169-.595-.286-1.28-.43-2.057-.43-.836 0-1.567.172-2.194.515s-1.104.775-1.43 1.297c-.327.523-.49 1.038-.49 1.547zm3.868 9.579c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797a1.073 1.073 0 0 0-.793-.324c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"info",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zm-10-.38V15a2.5 2.5 0 0 0 2.5 2.5h.75a1 1 0 0 0 0-2h-.75a.5.5 0 0 1-.5-.5v-3.75a1.75 1.75 0 0 0-1.75-1.75h-.75a1 1 0 1 0 0 2h.5zm.636-3.25c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797A1.073 1.073 0 0 0 11.636 6c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"lock",icon:["24","24",[],"","M7.01 9.5C7.156 5.97 8.87 4 12 4s4.844 1.97 4.99 5.5h1.51a.5.5 0 0 1 .5.5v9.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .5-.5h1.51zm2 0h5.98C14.88 7.037 13.932 6 12 6c-1.933 0-2.88 1.037-2.99 3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"timer",icon:["24","24",[],"","M12,19.0588235 C15.8984806,19.0588235 19.0588235,15.8984806 19.0588235,12 C19.0588235,8.10151941 15.8984806,4.94117647 12,4.94117647 C8.10151941,4.94117647 4.94117647,8.10151941 4.94117647,12 C4.94117647,15.8984806 8.10151941,19.0588235 12,19.0588235 Z M12,4 C16.418278,4 20,7.581722 20,12 C20,16.418278 16.418278,20 12,20 C7.581722,20 4,16.418278 4,12 C4,7.581722 7.581722,4 12,4 Z M11.7714286,6.74285714 C11.5189555,6.74285714 11.3142857,6.94752697 11.3142857,7.2 L11.3142857,12.6857143 C11.3142857,12.8332404 11.38548,12.9716989 11.5054691,13.0575276 L14.6792786,15.3277657 C14.8846254,15.4746511 15.170166,15.4272587 15.3170514,15.2219119 C15.4639368,15.016565 15.4165444,14.7310244 15.2111976,14.5841391 L12.2285714,12.4506552 L12.2285714,7.2 C12.2285714,6.94752697 12.0239016,6.74285714 11.7714286,6.74285714 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"verified",icon:["24","24",[],"","M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning-o",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 5L3.5 19h17L12 5zm0 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm.75-3.677a.689.689 0 0 1-.7.677.689.689 0 0 1-.7-.677V8.677c0-.374.313-.677.7-.677.387 0 .7.303.7.677v5.646z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm.75-3.677V8.677a.689.689 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677.387 0 .7-.303.7-.677z"]}},function(e,t,n){var r=n(242),a=n(243),i={float:"cssFloat"},o=n(246);function c(e,t,n){var c=i[t];if(void 0===c&&(c=function(e){var t=a(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),c){if(void 0===n)return e.style[c];e.style[c]=o(c,n)}}function u(e,t){for(var n in t)t.hasOwnProperty(n)&&c(e,n,t[n])}function s(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):c(arguments[0],arguments[1],arguments[2])}e.exports=s,e.exports.set=s,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=c(e,n||""),t}),{}):c(e,t||"")}},function(e,t,n){"use strict";var r,a,i,o,c,u,s,l,f,p,d,m,h,y,v,b,g,S,E,C,O,w,A,T,k;n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return A})),n.d(t,"f",(function(){return T})),n.d(t,"b",(function(){return k})),function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Answer="cv_product_submit",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share"}(a||(a={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PreviewInteractive="preview_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.ClipPlayer="clip_player",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.Dashboard="dashboard",e.ProductBanner="product_banner",e.Settings="settings",e.StudentFeed="student_feed"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(o||(o={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(u||(u={})),function(e){e.Publish="publish",e.Unpublish="unpublish"}(s||(s={})),function(e){e.ActivateUser="activate_user"}(l||(l={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(f||(f={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(p||(p={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(d||(d={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(m||(m={})),function(e){e.Embedded="embedded"}(h||(h={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide",e.ExternalLink="external_link",e.ViewStudentWorkspace="view_student_workspace"}(y||(y={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip",e.EditVideoDetails="edit_video_details",e.DeleteVideo="delete_video"}(v||(v={})),function(e){e.LibraryReview="library_review"}(b||(b={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(g||(g={})),function(e){e.Edit="edit"}(S||(S={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist",e.Link="link",e.Avatar="avatar",e.Clip="clip",e.Interactive="interactive"}(E||(E={})),function(e){e.On="on",e.Off="off"}(C||(C={})),function(e){e.ContinueSession="continue_session",e.NewSession="new_session"}(O||(O={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(w||(w={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(A||(A={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects"}(T||(T={})),function(e){e[e.V1=1]="V1",e[e.V2=2]="V2"}(k||(k={}))},function(e,t,n){"use strict";var r;!function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(43);var a=function(e){this.j=[],this.T=e||null};a.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],a=n[1];if(this.test(e,r))return a}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,r.inherits)(a,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),o=(0,r.inherits)(a,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=o,t.stateify=function(e,t,n,r){for(var a=0,o=e.length,c=t,u=[],s=void 0;a<o&&(s=c.next(e[a]));)c=s,a++;if(a>=o)return[];for(;a<o-1;)s=new i(r),u.push(s),c.on(e[a],s),c=s,a++;return s=new i(n),u.push(s),c.on(e[o-1],s),u}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){"use strict";var r=n(198);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}))},function(e,t){},function(e,t,n){const{noopTest:r,edit:a,merge:i}=n(35),o={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:r,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};o.def=a(o.def).replace("label",o._label).replace("title",o._title).getRegex(),o.bullet=/(?:[*+-]|\d{1,9}\.)/,o.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,o.item=a(o.item,"gm").replace(/bull/g,o.bullet).getRegex(),o.list=a(o.list).replace(/bull/g,o.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+o.def.source+")").getRegex(),o._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o._comment=/<!--(?!-?>)[\s\S]*?-->/,o.html=a(o.html,"i").replace("comment",o._comment).replace("tag",o._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),o.paragraph=a(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",o._tag).getRegex(),o.blockquote=a(o.blockquote).replace("paragraph",o.paragraph).getRegex(),o.normal=i({},o),o.gfm=i({},o.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),o.pedantic=i({},o.normal,{html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",o._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:r,paragraph:a(o.normal._paragraph).replace("hr",o.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",o.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const c={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};c.em=a(c.em).replace(/punctuation/g,c._punctuation).getRegex(),c._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,c._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,c._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,c.autolink=a(c.autolink).replace("scheme",c._scheme).replace("email",c._email).getRegex(),c._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,c.tag=a(c.tag).replace("comment",o._comment).replace("attribute",c._attribute).getRegex(),c._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,c._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,c._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,c.link=a(c.link).replace("label",c._label).replace("href",c._href).replace("title",c._title).getRegex(),c.reflink=a(c.reflink).replace("label",c._label).getRegex(),c.normal=i({},c),c.pedantic=i({},c.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",c._label).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",c._label).getRegex()}),c.gfm=i({},c.normal,{escape:a(c.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),c.gfm.url=a(c.gfm.url,"i").replace("email",c.gfm._extended_email).getRegex(),c.breaks=i({},c.gfm,{br:a(c.br).replace("{2,}","*").getRegex(),text:a(c.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:o,inline:c}},function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},function(e,t,n){const r=n(60),{defaults:a}=n(40),{inline:i}=n(199),{findClosingBracket:o,escape:c}=n(35);e.exports=class e{constructor(e,t){if(this.options=t||a,this.links=e,this.rules=i.normal,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}static get rules(){return i}static output(t,n,r){return new e(n,r).output(t)}output(t){let n,r,a,i,u,s,l="";for(;t;)if(u=this.rules.escape.exec(t))t=t.substring(u[0].length),l+=c(u[1]);else if(u=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(u[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(u[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(u[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(u[0])&&(this.inRawBlock=!1),t=t.substring(u[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):c(u[0]):u[0];else if(u=this.rules.link.exec(t)){const r=o(u[2],"()");if(r>-1){const e=(0===u[0].indexOf("!")?5:4)+u[1].length+r;u[2]=u[2].substring(0,r),u[0]=u[0].substring(0,e).trim(),u[3]=""}t=t.substring(u[0].length),this.inLink=!0,a=u[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a),n?(a=n[1],i=n[3]):i=""):i=u[3]?u[3].slice(1,-1):"",a=a.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(u,{href:e.escapes(a),title:e.escapes(i)}),this.inLink=!1}else if((u=this.rules.reflink.exec(t))||(u=this.rules.nolink.exec(t))){if(t=t.substring(u[0].length),n=(u[2]||u[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){l+=u[0].charAt(0),t=u[0].substring(1)+t;continue}this.inLink=!0,l+=this.outputLink(u,n),this.inLink=!1}else if(u=this.rules.strong.exec(t))t=t.substring(u[0].length),l+=this.renderer.strong(this.output(u[4]||u[3]||u[2]||u[1]));else if(u=this.rules.em.exec(t))t=t.substring(u[0].length),l+=this.renderer.em(this.output(u[6]||u[5]||u[4]||u[3]||u[2]||u[1]));else if(u=this.rules.code.exec(t))t=t.substring(u[0].length),l+=this.renderer.codespan(c(u[2].trim(),!0));else if(u=this.rules.br.exec(t))t=t.substring(u[0].length),l+=this.renderer.br();else if(u=this.rules.del.exec(t))t=t.substring(u[0].length),l+=this.renderer.del(this.output(u[1]));else if(u=this.rules.autolink.exec(t))t=t.substring(u[0].length),"@"===u[2]?(r=c(this.mangle(u[1])),a="mailto:"+r):(r=c(u[1]),a=r),l+=this.renderer.link(a,null,r);else if(this.inLink||!(u=this.rules.url.exec(t))){if(u=this.rules.text.exec(t))t=t.substring(u[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):c(u[0]):u[0]):l+=this.renderer.text(c(this.smartypants(u[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===u[2])r=c(u[0]),a="mailto:"+r;else{do{s=u[0],u[0]=this.rules._backpedal.exec(u[0])[0]}while(s!==u[0]);r=c(u[0]),a="www."===u[1]?"http://"+r:r}t=t.substring(u[0].length),l+=this.renderer.link(a,null,r)}return l}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,r=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,c(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,r="",a=0;for(;a<t;a++)n=e.charCodeAt(a),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}}},function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},function(e,t,n){"use strict";var r=n(8);function a(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var i=[r.a.POST,r.a.PUT];function o(e){var t=e.resource,n=e.type,r=e.headers,o=e.success,c=e.error,u=e.always,s={url:t,method:n};i.includes(n)&&e.data&&(s.data=JSON.stringify(e.data)),r&&(s.headers=r),$.ajax(s).done((function(e,t,n){o&&o(e,a(n))})).fail((function(e){c&&c(a(e))})).always((function(){u&&u()}))}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(6);function a(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a<r;a++)if(!e(t[a],n[a]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=null,r=null;return function(){return i(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function c(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];var i=0,o=r.pop(),u=c(r),s=e.apply(void 0,[function(){return i++,o.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return s.apply(null,e)}));return l.resultFunc=o,l.dependencies=u,l.recomputations=function(){return i},l.resetRecomputations=function(){return i=0},l}}var s=u(o);var l=n(31),f=n(7),p=n(18),d=n(28),m=n(19),h=n(0);function y(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)}}n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return C})),n.d(t,"e",(function(){return O})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return A})),n.d(t,"f",(function(){return T}));var v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===m.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===m.a.Fetching}},{key:"hasError",get:function(){return this.status===m.a.Error}},{key:"isComplete",get:function(){return this.status===m.a.Success||this.status===m.a.Error}}])&&y(t.prototype,n),r&&y(t,r),e}();function b(e,t,n){if(!e||!t)return g();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new v({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function g(){return new v({status:m.a.None})}function S(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function E(e,t){return function(){C(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function O(e,t){var n,r,a,i,o=S(e.getState(),null==t?void 0:t.key);if(t&&o.shouldFetch)C(e.dispatch,t);else if(o.isFetching)var c=e.subscribe((function(){O(e,t),c()}));else o.hasError?(null===(n=t.error)||void 0===n||n.call(t,{status:o.statusCode,getResponseHeader:null}),null===(r=t.always)||void 0===r||r.call(t)):(null===(a=t.success)||void 0===a||a.call(t,o.data),null===(i=t.always)||void 0===i||i.call(t))}function w(e){var t=Object(r.useDispatch)();if(e)return E(t,e)}function A(e,t){var n=Object(h.useMemo)((function(){return(null==t?void 0:t.optimize)?function(e){return u(o,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return s((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function T(e,t){var n=Object(r.useDispatch)(),a=A(e&&e.key,t),i=E(n,e);return e&&a.shouldFetch&&i(),a}},function(e,t,n){"use strict";var r,a;!function(e){e.Boolean="System.Boolean",e.String="System.String",e.StaffRequest="ClickView.DomainApi.Models.Options.Enums.StaffRequestOption, ClickView.DomainApi.Models, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null",e.Long="System.Int64"}(r||(r={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(a||(a={})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}))},function(e,t,n){var r=n(221);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,a){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(15),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.a.Buffer:void 0,c=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(57)(e))},function(e,t){e.exports=p},function(e,t,n){"use strict";e.exports=n(225).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var r,a=n(238),i=(r=a)&&r.__esModule?r:{default:r};t.default=i.default,t.Scrollbars=i.default},function(e,t,n){e.exports={dropdownToggle:"AYBvQ"}},function(e,t,n){e.exports=n(254).default},function(e,t){e.exports=d},function(e,t,n){e.exports={navContainer:"_3SbvR"}},function(e,t,n){e.exports={navContainer:"_11O8h"}},function(e,t,n){e.exports={navContainer:"_3by-P"}},function(e,t,n){e.exports={navContainer:"_3vLoN"}},function(e,t,n){"use strict";var r=n(262).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){e.exports={copyBtn:"_3uXV3"}},function(e,t){e.exports=m},function(e,t,n){"use strict";
2
2
  /** @license React v0.17.0
3
3
  * scheduler.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var r,i,a,o,c;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,l=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(l,0))},i=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},o=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,m=window.setTimeout,h=window.clearTimeout,y=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("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 v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var g=!1,S=null,E=-1,O=5,C=0;o=function(){return t.unstable_now()>=C},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):O=0<e?Math.floor(1e3/e):33.33};var w=new MessageChannel,A=w.port2;w.port1.onmessage=function(){if(null!==S){var e=t.unstable_now();C=e+O;try{S(!0,e)?A.postMessage(null):(g=!1,S=null)}catch(e){throw A.postMessage(null),e}}else g=!1},r=function(e){S=e,g||(g=!0,A.postMessage(null))},i=function(e,n){E=m((function(){e(t.unstable_now())}),n)},a=function(){h(E),E=-1}}function j(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<I(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],c=a+1,s=e[c];if(void 0!==o&&0>I(o,n))void 0!==s&&0>I(s,o)?(e[r]=s,e[c]=n,r=c):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==s&&0>I(s,n)))break e;e[r]=s,e[c]=n,r=c}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],_=[],P=1,x=null,N=3,D=!1,R=!1,M=!1;function U(e){for(var t=T(_);null!==t;){if(null===t.callback)k(_);else{if(!(t.startTime<=e))break;k(_),t.sortIndex=t.expirationTime,j(L,t)}t=T(_)}}function F(e){if(M=!1,U(e),!R)if(null!==T(L))R=!0,r(V);else{var t=T(_);null!==t&&i(F,t.startTime-e)}}function V(e,n){R=!1,M&&(M=!1,a()),D=!0;var r=N;try{for(U(n),x=T(L);null!==x&&(!(x.expirationTime>n)||e&&!o());){var c=x.callback;if(null!==c){x.callback=null,N=x.priorityLevel;var s=c(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?x.callback=s:x===T(L)&&k(L),U(n)}else k(L);x=T(L)}if(null!==x)var u=!0;else{var l=T(_);null!==l&&i(F,l.startTime-n),u=!1}return u}finally{x=null,N=r,D=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=c;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,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,o){var c=t.unstable_now();if("object"==typeof o&&null!==o){var s=o.delay;s="number"==typeof s&&0<s?c+s:c,o="number"==typeof o.timeout?o.timeout:B(e)}else o=B(e),s=c;return e={id:P++,callback:n,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>c?(e.sortIndex=s,j(_,e),null===T(L)&&e===T(_)&&(M?a():M=!0,i(F,s-c))):(e.sortIndex=o,j(L,e),R||D||(R=!0,r(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();U(e);var n=T(L);return n!==x&&null!==x&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<x.expirationTime||o()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){R||D||(R=!0,r(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return T(L)},t.unstable_Profiling=null},function(e,t,n){"use strict";e.exports=n(218)},function(e,t,n){"use strict";
9
+ */var r,a,i,o,c;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},a=function(e,t){s=setTimeout(e,t)},i=function(){clearTimeout(s)},o=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,m=window.setTimeout,h=window.clearTimeout,y=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("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 v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var g=!1,S=null,E=-1,C=5,O=0;o=function(){return t.unstable_now()>=O},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):C=0<e?Math.floor(1e3/e):33.33};var w=new MessageChannel,A=w.port2;w.port1.onmessage=function(){if(null!==S){var e=t.unstable_now();O=e+C;try{S(!0,e)?A.postMessage(null):(g=!1,S=null)}catch(e){throw A.postMessage(null),e}}else g=!1},r=function(e){S=e,g||(g=!0,A.postMessage(null))},a=function(e,n){E=m((function(){e(t.unstable_now())}),n)},i=function(){h(E),E=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),a=e[r];if(!(void 0!==a&&0<I(a,t)))break e;e[r]=t,e[n]=a,n=r}}function k(e){return void 0===(e=e[0])?null:e}function j(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,o=e[i],c=i+1,u=e[c];if(void 0!==o&&0>I(o,n))void 0!==u&&0>I(u,o)?(e[r]=u,e[c]=n,r=c):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==u&&0>I(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],_=[],P=1,x=null,N=3,R=!1,D=!1,M=!1;function U(e){for(var t=k(_);null!==t;){if(null===t.callback)j(_);else{if(!(t.startTime<=e))break;j(_),t.sortIndex=t.expirationTime,T(L,t)}t=k(_)}}function F(e){if(M=!1,U(e),!D)if(null!==k(L))D=!0,r(V);else{var t=k(_);null!==t&&a(F,t.startTime-e)}}function V(e,n){D=!1,M&&(M=!1,i()),R=!0;var r=N;try{for(U(n),x=k(L);null!==x&&(!(x.expirationTime>n)||e&&!o());){var c=x.callback;if(null!==c){x.callback=null,N=x.priorityLevel;var u=c(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?x.callback=u:x===k(L)&&j(L),U(n)}else j(L);x=k(L)}if(null!==x)var s=!0;else{var l=k(_);null!==l&&a(F,l.startTime-n),s=!1}return s}finally{x=null,N=r,R=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=c;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,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,o){var c=t.unstable_now();if("object"==typeof o&&null!==o){var u=o.delay;u="number"==typeof u&&0<u?c+u:c,o="number"==typeof o.timeout?o.timeout:B(e)}else o=B(e),u=c;return e={id:P++,callback:n,priorityLevel:e,startTime:u,expirationTime:o=u+o,sortIndex:-1},u>c?(e.sortIndex=u,T(_,e),null===k(L)&&e===k(_)&&(M?i():M=!0,a(F,u-c))):(e.sortIndex=o,T(L,e),D||R||(D=!0,r(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();U(e);var n=k(L);return n!==x&&null!==x&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<x.expirationTime||o()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){D||R||(D=!0,r(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return k(L)},t.unstable_Profiling=null},function(e,t,n){"use strict";e.exports=n(224)},function(e,t,n){"use strict";
10
10
  /** @license React v16.13.1
11
11
  * react-is.production.min.js
12
12
  *
@@ -14,4 +14,4 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case p:case o:case s:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case y:case u:return e;default:return t}}case a:return t}}}function C(e){return O(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=i,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=y,t.Portal=a,t.Profiler=s,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||O(e)===f},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===o},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===y},t.isPortal=function(e){return O(e)===a},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===S||e.$$typeof===E||e.$$typeof===b)},t.typeOf=O},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},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=n(0),o=f(a),c=f(n(34)),s=f(n(222)),u=f(n(223)),l=n(231);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return m.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r.pressedSuggestion=null,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),i(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,s.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,i=n.onSuggestionHighlighted,a=n.highlightFirstSuggestion;if(!(0,s.default)(r,e.suggestions)&&r.length>0&&a)this.highlightFirstSuggestion();else if(i){var o=this.getHighlightedSuggestion();o!=t.highlightedSuggestion&&i({suggestion:o})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(i){var a=i.valueBeforeUpDown;return null===t?a=null:null===a&&void 0!==n&&(a=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:a}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,i=n.multiSection,a=n.getSectionSuggestions;return i?a(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,i=r.value,a=r.onChange;t!==i&&a(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,i=n.value;return t.length>0&&r(i)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,i=t.renderInputComponent,a=t.onSuggestionsFetchRequested,c=t.renderSuggestion,s=t.inputProps,f=t.multiSection,d=t.renderSectionTitle,m=t.id,h=t.getSectionSuggestions,y=t.theme,v=t.getSuggestionValue,b=t.alwaysRenderSuggestions,g=t.highlightFirstSuggestion,S=this.state,E=S.isFocused,O=S.isCollapsed,C=S.highlightedSectionIndex,w=S.highlightedSuggestionIndex,A=S.valueBeforeUpDown,j=b?p:this.props.shouldRenderSuggestions,T=s.value,k=s.onFocus,I=s.onKeyDown,L=this.willRenderSuggestions(this.props),_=b||E&&!O&&L,P=_?n:[],x=r({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=j(T);e.setState({isFocused:!0,isCollapsed:!n}),k&&k(t),n&&a({value:T,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,i=j(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},g?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!i})),i?a({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var i=t.keyCode;switch(i){case 40:case 38:if(O)j(T)&&(a({value:T,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var o=r.newHighlightedSectionIndex,c=r.newHighlightedItemIndex,s=void 0;s=null===c?null===A?T:A:e.getSuggestionValueByIndex(o,c),e.updateHighlightedSuggestion(o,c,T),e.maybeCallOnChange(t,s,40===i?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(_&&!b&&e.closeSuggestions(),null!=u){var l=v(u);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:l,suggestionIndex:w,sectionIndex:C,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:_&&t.preventDefault();var f=_&&!b;if(null===A){if(!f){e.maybeCallOnChange(t,"","escape"),j("")?a({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,A,"escape");f?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}I&&I(t)}}),N={query:this.getQuery()};return o.default.createElement(u.default,{multiSection:f,items:P,renderInputComponent:i,renderItemsContainer:this.renderSuggestionsContainer,renderItem:c,renderItemData:N,renderSectionTitle:d,getSectionItems:h,highlightedSectionIndex:C,highlightedItemIndex:w,inputProps:x,itemProps:this.itemProps,theme:(0,l.mapToAutowhateverTheme)(y),id:m,ref:this.storeAutowhateverRef})}}]),t}(a.Component);d.propTypes={suggestions:c.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:c.default.func,onSuggestionHighlighted:c.default.func,renderInputComponent:c.default.func,renderSuggestionsContainer:c.default.func,getSuggestionValue:c.default.func.isRequired,renderSuggestion:c.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:c.default.func,alwaysRenderSuggestions:c.default.bool,multiSection:c.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:c.default.bool,highlightFirstSuggestion:c.default.bool,theme:c.default.object,id:c.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:l.defaultTheme,id:"1"};var m=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,i=n.itemIndex;e.updateHighlightedSuggestion(r,i),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,i=r.alwaysRenderSuggestions,a=r.onSuggestionSelected,o=r.onSuggestionsFetchRequested;a&&a(t,n),i?o({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,i=n.focusInputOnSuggestionClick,a=e.getSuggestionIndices(e.findSuggestionElement(t.target)),o=a.sectionIndex,c=a.suggestionIndex,s=e.getSuggestion(o,c),u=e.props.getSuggestionValue(s);e.maybeCallOnChange(t,u,"click"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:u,suggestionIndex:c,sectionIndex:o,method:"click"}),r||e.closeSuggestions(),!0===i?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,i=n.value,a=n.onBlur,o=e.getHighlightedSuggestion(),c=r(i);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),a&&a(e.blurEvent,{highlightedSuggestion:o})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=d},function(e,t,n){"use strict";var r=n(221);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var c=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 c.name="Invariant Violation",c}}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:a,resetWarningCache:i};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){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},function(e,t,n){"use strict";e.exports=n(224).default},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},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=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(0),c=d(o),s=d(n(34)),u=d(n(225)),l=d(n(226)),f=d(n(228)),p=d(n(229));function d(e){return e&&e.__esModule?e:{default:e}}var m={},h=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.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,r=t.inputProps,a=t.highlightedSectionIndex,o=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var c="ArrowDown"===e.key?"next":"prev",s=n.sectionIterator[c]([a,o]),u=i(s,2),l=u[0],f=u[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:f});break;default:r.onKeyDown(e,{highlightedSectionIndex:a,highlightedItemIndex:o})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),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),a(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,u.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,l.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,i=n.items,a=n.renderItem,o=n.renderItemData,s=n.renderSectionTitle,u=n.highlightedSectionIndex,l=n.highlightedItemIndex,d=n.itemProps;return i.map((function(n,i){var m="react-autowhatever-"+r+"-",h=m+"section-"+i+"-",y=0===i;return c.default.createElement("div",t(h+"container","sectionContainer",y&&"sectionContainerFirst"),c.default.createElement(f.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:h}),c.default.createElement(p.default,{items:e.sectionsItems[i],itemProps:d,renderItem:a,renderItemData:o,sectionIndex:i,highlightedItemIndex:u===i?l:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:m,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,i=n.renderItem,a=n.renderItemData,o=n.highlightedSectionIndex,s=n.highlightedItemIndex,u=n.itemProps;return c.default.createElement(p.default,{items:e,itemProps:u,renderItem:i,renderItemData:a,highlightedItemIndex:null===o?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,i=t.multiSection,a=t.renderInputComponent,o=t.renderItemsContainer,s=t.highlightedSectionIndex,u=t.highlightedItemIndex,l=this.state.isInputFocused,f=i?this.renderSections():this.renderItems(),p=null!==f,d=this.getItemId(s,u),m="react-autowhatever-"+n,h=r({role:"combobox","aria-haspopup":"listbox","aria-owns":m,"aria-expanded":p},e("react-autowhatever-"+n+"-container","container",p&&"containerOpen"),this.props.containerProps),y=a(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":m,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",p&&"inputOpen",l&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=o({containerProps:r({id:m,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:f});return c.default.createElement("div",h,y,v)}}]),t}(o.Component);h.propTypes={id:s.default.string,multiSection:s.default.bool,renderInputComponent:s.default.func,renderItemsContainer:s.default.func,items:s.default.array.isRequired,renderItem:s.default.func,renderItemData:s.default.object,renderSectionTitle:s.default.func,getSectionItems:s.default.func,containerProps:s.default.object,inputProps:s.default.object,itemProps:s.default.oneOfType([s.default.object,s.default.func]),highlightedSectionIndex:s.default.number,highlightedItemIndex:s.default.number,theme:s.default.oneOfType([s.default.object,s.default.array])},h.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return c.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return c.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:m,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:m,inputProps:m,itemProps:m,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=h},function(e,t,n){"use strict";var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function i(e){var i=r(e,2),a=i[0],o=i[1];return n?null===o||o===t[a]-1?null===(a=function(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(a))?[null,null]:[a,0]:[a,o+1]:0===t||o===t-1?[null,null]:null===o?[null,0]:[null,o+1]}return{next:i,prev:function(e){var i=r(e,2),a=i[0],o=i[1];return n?null===o||0===o?null===(a=function(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(a))?[null,null]:[a,t[a]-1]:[a,o-1]:0===t||0===o?[null,null]:null===o?[null,t-1]:[null,o-1]},isLast:function(e){return null===i(e)[1]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function i(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)}var a,o=n(227),c=(a=o)&&a.__esModule?a:{default:a},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),a=n[0],o=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var u=n.map((function(e){return a[e]})).filter(s);return"string"==typeof u[0]||"function"==typeof o?{key:e,className:o?o.apply(void 0,i(u)):u.join(" ")}:{key:e,style:c.default.apply(void 0,[{}].concat(i(u)))}}},e.exports=t.default},function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter((function(t){return r.call(e,t)}))}e.exports=Object.assign||function(e,t){for(var n,r,o=i(e),c=1;c<arguments.length;c++){n=arguments[c],r=a(Object(n));for(var s=0;s<r.length;s++)o[r[s]]=n[r[s]]}return o}},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}}(),i=n(0),a=s(i),o=s(n(34)),c=s(n(58));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f=function(e){function t(){return u(this,t),l(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,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,c.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,i=e.sectionKeyPrefix,o=n(t);return o?a.default.createElement("div",r(i+"title","sectionTitle"),o):null}}]),t}(i.Component);f.propTypes={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},t.default=f},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},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=n(0),o=l(a),c=l(n(34)),s=l(n(230)),u=l(n(58));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 d=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.storeHighlightedItemReference=function(e){r.props.onHighlightedItemChange(null===e?null:e.item)},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),i(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,i=t.itemProps,a=t.renderItem,c=t.renderItemData,u=t.sectionIndex,l=t.highlightedItemIndex,f=t.getItemId,p=t.theme,d=t.keyPrefix,m=null===u?d:d+"section-"+u+"-",h="function"==typeof i;return o.default.createElement("ul",r({role:"listbox"},p(m+"items-list","itemsList")),n.map((function(t,n){var d=0===n,y=n===l,v=m+"item-"+n,b=h?i({sectionIndex:u,itemIndex:n}):i,g=r({id:f(u,n),"aria-selected":y},p(v,"item",d&&"itemFirst",y&&"itemHighlighted"),b);return y&&(g.ref=e.storeHighlightedItemReference),o.default.createElement(s.default,r({},g,{sectionIndex:u,isHighlighted:y,itemIndex:n,item:t,renderItem:a,renderItemData:c}))})))}}]),t}(a.Component);d.propTypes={items:c.default.array.isRequired,itemProps:c.default.oneOfType([c.default.object,c.default.func]),renderItem:c.default.func.isRequired,renderItemData:c.default.object.isRequired,sectionIndex:c.default.number,highlightedItemIndex:c.default.number,onHighlightedItemChange:c.default.func.isRequired,getItemId:c.default.func.isRequired,theme:c.default.func.isRequired,keyPrefix:c.default.string.isRequired},d.defaultProps={sectionIndex:null},t.default=d},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},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=n(0),o=u(a),c=u(n(34)),s=u(n(58));function u(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 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 p=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.storeItemReference=function(e){null!==e&&(r.item=e)},r.onMouseEnter=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onMouseEnter(e,{sectionIndex:n,itemIndex:i})},r.onMouseLeave=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onMouseLeave(e,{sectionIndex:n,itemIndex:i})},r.onMouseDown=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onMouseDown(e,{sectionIndex:n,itemIndex:i})},r.onClick=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onClick(e,{sectionIndex:n,itemIndex: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),i(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,i=e.renderItem,a=e.renderItemData,c=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,["isHighlighted","item","renderItem","renderItemData"]);return delete c.sectionIndex,delete c.itemIndex,"function"==typeof c.onMouseEnter&&(c.onMouseEnter=this.onMouseEnter),"function"==typeof c.onMouseLeave&&(c.onMouseLeave=this.onMouseLeave),"function"==typeof c.onMouseDown&&(c.onMouseDown=this.onMouseDown),"function"==typeof c.onClick&&(c.onClick=this.onClick),o.default.createElement("li",r({role:"option"},c,{ref:this.storeItemReference}),i(n,r({isHighlighted:t},a)))}}]),t}(a.Component);p.propTypes={sectionIndex:c.default.number,isHighlighted:c.default.bool.isRequired,itemIndex:c.default.number.isRequired,item:c.default.any.isRequired,renderItem:c.default.func.isRequired,renderItemData:c.default.object.isRequired,onMouseEnter:c.default.func,onMouseLeave:c.default.func,onMouseDown:c.default.func,onClick:c.default.func},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},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},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=n(233),o=v(a),c=v(n(173)),s=n(0),u=v(n(34)),l=v(n(241)),f=v(n(242)),p=v(n(243)),d=v(n(244)),m=v(n(245)),h=n(246),y=n(247);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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(e){var n;b(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o=g(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));return o.getScrollLeft=o.getScrollLeft.bind(o),o.getScrollTop=o.getScrollTop.bind(o),o.getScrollWidth=o.getScrollWidth.bind(o),o.getScrollHeight=o.getScrollHeight.bind(o),o.getClientWidth=o.getClientWidth.bind(o),o.getClientHeight=o.getClientHeight.bind(o),o.getValues=o.getValues.bind(o),o.getThumbHorizontalWidth=o.getThumbHorizontalWidth.bind(o),o.getThumbVerticalHeight=o.getThumbVerticalHeight.bind(o),o.getScrollLeftForOffset=o.getScrollLeftForOffset.bind(o),o.getScrollTopForOffset=o.getScrollTopForOffset.bind(o),o.scrollLeft=o.scrollLeft.bind(o),o.scrollTop=o.scrollTop.bind(o),o.scrollToLeft=o.scrollToLeft.bind(o),o.scrollToTop=o.scrollToTop.bind(o),o.scrollToRight=o.scrollToRight.bind(o),o.scrollToBottom=o.scrollToBottom.bind(o),o.handleTrackMouseEnter=o.handleTrackMouseEnter.bind(o),o.handleTrackMouseLeave=o.handleTrackMouseLeave.bind(o),o.handleHorizontalTrackMouseDown=o.handleHorizontalTrackMouseDown.bind(o),o.handleVerticalTrackMouseDown=o.handleVerticalTrackMouseDown.bind(o),o.handleHorizontalThumbMouseDown=o.handleHorizontalThumbMouseDown.bind(o),o.handleVerticalThumbMouseDown=o.handleVerticalThumbMouseDown.bind(o),o.handleWindowResize=o.handleWindowResize.bind(o),o.handleScroll=o.handleScroll.bind(o),o.handleDrag=o.handleDrag.bind(o),o.handleDragEnd=o.handleDragEnd.bind(o),o.state={didMountUniversal:!1},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),i(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,a.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r,a=e.scrollWidth,o=void 0===a?0:a,c=e.scrollHeight,s=void 0===c?0:c,u=e.clientWidth,l=void 0===u?0:u,f=e.clientHeight,p=void 0===f?0:f;return{left:n/(o-l)||0,top:i/(s-p)||0,scrollLeft:n,scrollTop:i,scrollWidth:o,scrollHeight:s,clientWidth:l,clientHeight:p}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,a=r.clientWidth,o=(0,d.default)(this.trackHorizontal),c=Math.ceil(a/i*o);return o===c?0:t||Math.max(c,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,a=r.clientHeight,o=(0,m.default)(this.trackVertical),c=Math.ceil(a/i*o);return o===c?0:t||Math.max(c,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,d.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,m.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,f.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,f.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),a=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),a=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect().left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect().top;this.prevPageY=r-(n-i)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,h.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=p.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,h.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,i=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(i)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,c.default)(e.trackHorizontal,{opacity:0}),(0,c.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,f.default)()){var a=i.scrollLeft,o=i.clientWidth,s=i.scrollWidth,u=(0,d.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),p={width:l,transform:"translateX("+a/(s-o)*(u-l)+"px)"},h=i.scrollTop,y=i.clientHeight,v=i.scrollHeight,b=(0,m.default)(this.trackVertical),g=this.getThumbVerticalHeight(),S={height:g,transform:"translateY("+h/(v-y)*(b-g)+"px)"};if(r){var E={visibility:s>o?"visible":"hidden"},O={visibility:v>y?"visible":"hidden"};(0,c.default)(this.trackHorizontal,E),(0,c.default)(this.trackVertical,O)}(0,c.default)(this.thumbHorizontal,p),(0,c.default)(this.thumbVertical,S)}n&&n(i),"function"==typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,f.default)(),n=this.props,i=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),a=n.renderTrackHorizontal,o=n.renderTrackVertical,c=n.renderThumbHorizontal,u=n.renderThumbVertical,p=n.tagName,d=(n.hideTracksWhenNotNeeded,n.autoHide),m=(n.autoHideTimeout,n.autoHideDuration),y=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,b=n.autoHeightMin,g=n.autoHeightMax,S=n.style,E=n.children,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}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),C=this.state.didMountUniversal,w=r({},h.containerStyleDefault,v&&r({},h.containerStyleAutoHeight,{minHeight:b,maxHeight:g}),S),A=r({},h.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&r({},h.viewStyleAutoHeight,{minHeight:(0,l.default)(b)?"calc("+b+" + "+t+"px)":b+t,maxHeight:(0,l.default)(g)?"calc("+g+" + "+t+"px)":g+t}),v&&y&&!C&&{minHeight:b,maxHeight:g},y&&!C&&h.viewStyleUniversalInitial),j={transition:"opacity "+m+"ms",opacity:0},T=r({},h.trackHorizontalStyleDefault,d&&j,(!t||y&&!C)&&{display:"none"}),k=r({},h.trackVerticalStyleDefault,d&&j,(!t||y&&!C)&&{display:"none"});return(0,s.createElement)(p,r({},O,{style:w,ref:function(t){e.container=t}}),[(0,s.cloneElement)(i({style:A}),{key:"view",ref:function(t){e.view=t}},E),(0,s.cloneElement)(a({style:T}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,s.cloneElement)(c({style:h.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,s.cloneElement)(o({style:k}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,s.cloneElement)(u({style:h.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(s.Component);t.default=S,S.propTypes={onScroll:u.default.func,onScrollFrame:u.default.func,onScrollStart:u.default.func,onScrollStop:u.default.func,onUpdate:u.default.func,renderView:u.default.func,renderTrackHorizontal:u.default.func,renderTrackVertical:u.default.func,renderThumbHorizontal:u.default.func,renderThumbVertical:u.default.func,tagName:u.default.string,thumbSize:u.default.number,thumbMinSize:u.default.number,hideTracksWhenNotNeeded:u.default.bool,autoHide:u.default.bool,autoHideTimeout:u.default.number,autoHideDuration:u.default.number,autoHeight:u.default.bool,autoHeightMin:u.default.oneOfType([u.default.number,u.default.string]),autoHeightMax:u.default.oneOfType([u.default.number,u.default.string]),universal:u.default.bool,style:u.default.object,children:u.default.node},S.defaultProps={renderView:y.renderViewDefault,renderTrackHorizontal:y.renderTrackHorizontalDefault,renderTrackVertical:y.renderTrackVerticalDefault,renderThumbHorizontal:y.renderThumbHorizontalDefault,renderThumbVertical:y.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){(function(t){for(var r=n(234),i="undefined"==typeof window?t:window,a=["moz","webkit"],o="AnimationFrame",c=i["request"+o],s=i["cancel"+o]||i["cancelRequest"+o],u=0;!c&&u<a.length;u++)c=i[a[u]+"Request"+o],s=i[a[u]+"Cancel"+o]||i[a[u]+"CancelRequest"+o];if(!c||!s){var l=0,f=0,p=[];c=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(i,e)},e.exports.cancel=function(){s.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=c,e.cancelAnimationFrame=s}}).call(this,n(84))},function(e,t,n){(function(t){(function(){var n,r,i,a,o,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,a=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),c=1e9*t.uptime(),o=a-c):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(235))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!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:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!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 m(e,t){this.fun=e,this.array=t}function h(){}i.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];u.push(new m(e,t)),1!==u.length||l||c(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),a=r.length;a>=0;a--){var o=r[a]+i;if(o in t)return o}return!1}},function(e,t,n){var r=n(238);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){var r=n(239);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},function(e,t){e.exports=function(e){return n.test(e)?e.toLowerCase():r.test(e)?(function(e){return e.replace(a,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():i.test(e)?function(e){return e.replace(o,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var n=/\s/,r=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;var a=/[\W_]+(.|$)/g;var o=/(.)([A-Z]+)/g},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==o)return o;if("undefined"!=typeof document){var e=document.createElement("div");(0,a.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else o=0;return o||0};var r,i=n(173),a=(r=i)&&r.__esModule?r:{default:r};var o=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},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};t.renderViewDefault=function(e){return o.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=c(e,["style"]),i=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return o.default.createElement("div",r({style:i},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=c(e,["style"]),i=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return o.default.createElement("div",r({style:i},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=c(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",r({style:i},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=c(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",r({style:i},n))};var i,a=n(0),o=(i=a)&&i.__esModule?i:{default:i};function c(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(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(249));var i=r.tokenize,a=r.options.Options;function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(e){return e.replace(/"/g,"&quot;")}function s(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+c(r)+'"')}return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new a(t);for(var n=i(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,m=f.tagName,h=f.className,y=f.target,v=f.attributes,b="<"+m+' href="'+c(d)+'"';h&&(b+=' class="'+c(h)+'"'),y&&(b+=' target="'+c(y)+'"'),v&&(b+=" "+s(v)),b+=">"+o(p)+"</"+m+">",r.push(b)}else r.push(o(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(43),i=c(n(250)),a=c(n(251)),o=c(n(252));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}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var s=function(e){return o.run(a.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e),r=[],i=0;i<n.length;i++){var a=n[i];!a.isLink||t&&a.type!==t||r.push(a.toObject())}return r},t.inherits=r.inherits,t.options=i,t.parser=o,t.scanner=a,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=s},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},i={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function a(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function o(e){return e}t.defaults=i,t.Options=a,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},a.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var a=void 0,o=this[e];if(!o)return o;switch(void 0===o?"undefined":r(o)){case"function":return o(t,n.type);case"object":return"function"==typeof(a=o.hasOwnProperty(n.type)?o[n.type]:i[e])?a(t,n.type):a}return o},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(189),i=n(59),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}(i);var o="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),s="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(i.NUM),m=f(i.DOMAIN),h=f(),y=f(i.WS);p.on("@",f(i.AT)).on(".",f(i.DOT)).on("+",f(i.PLUS)).on("#",f(i.POUND)).on("?",f(i.QUERY)).on("/",f(i.SLASH)).on("_",f(i.UNDERSCORE)).on(":",f(i.COLON)).on("{",f(i.OPENBRACE)).on("[",f(i.OPENBRACKET)).on("<",f(i.OPENANGLEBRACKET)).on("(",f(i.OPENPAREN)).on("}",f(i.CLOSEBRACE)).on("]",f(i.CLOSEBRACKET)).on(">",f(i.CLOSEANGLEBRACKET)).on(")",f(i.CLOSEPAREN)).on("&",f(i.AMPERSAND)).on([",",";","!",'"',"'"],f(i.PUNCTUATION)),p.on("\n",f(i.NL)).on(u,y),y.on(u,y);for(var v=0;v<o.length;v++){var b=(0,r.stateify)(o[v],p,i.TLD,i.DOMAIN);l.push.apply(l,b)}var g=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),E=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),O=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,g),l.push.apply(l,S),l.push.apply(l,E),l.push.apply(l,O);var C=g.pop(),w=S.pop(),A=E.pop(),j=O.pop(),T=f(i.DOMAIN),k=f(i.PROTOCOL),I=f(i.MAILTO);w.on("s",T).on(":",k),A.on("s",T).on(":",k),l.push(T),C.on(":",k),T.on(":",k),j.on(":",I);var L=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,L),p.on(c,d),d.on("-",h).on(c,d).on(s,m),m.on("-",h).on(s,m);for(var _=0;_<l.length;_++)l[_].on("-",h).on(s,m);h.on("-",h).on(c,m).on(s,m),p.defaultTransition=f(i.SYM);var P=p;t.State=r.CharacterState,t.TOKENS=a,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var a=p,o=null,c=0,s=null,u=-1;i<n&&(o=a.next(t[i]));)(a=o).accepts()?(u=0,s=a):u>=0&&u++,c++,i++;if(!(u<0)){i-=u,c-=u;var l=s.emit();r.push(new l(e.substr(i-c,c)))}}return r},t.start=P},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(189),i=n(253),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}(i),o=n(59);var c=function(e){return new r.TokenState(e)},s=c(),u=c(),l=c(),f=c(),p=c(),d=c(),m=c(),h=c(i.URL),y=c(),v=c(i.URL),b=c(i.URL),g=c(),S=c(),E=c(),O=c(),C=c(),w=c(i.URL),A=c(i.URL),j=c(i.URL),T=c(i.URL),k=c(),I=c(),L=c(),_=c(),P=c(),x=c(),N=c(i.EMAIL),D=c(),R=c(i.EMAIL),M=c(i.MAILTOEMAIL),U=c(),F=c(),V=c(),B=c(),H=c(i.NL);s.on(o.NL,H).on(o.PROTOCOL,u).on(o.MAILTO,l).on(o.SLASH,f),u.on(o.SLASH,f),f.on(o.SLASH,p),s.on(o.TLD,d).on(o.DOMAIN,d).on(o.LOCALHOST,h).on(o.NUM,d),p.on(o.TLD,b).on(o.DOMAIN,b).on(o.NUM,b).on(o.LOCALHOST,b),d.on(o.DOT,m),P.on(o.DOT,x),m.on(o.TLD,h).on(o.DOMAIN,d).on(o.NUM,d).on(o.LOCALHOST,d),x.on(o.TLD,N).on(o.DOMAIN,P).on(o.NUM,P).on(o.LOCALHOST,P),h.on(o.DOT,m),N.on(o.DOT,x),h.on(o.COLON,y).on(o.SLASH,b),y.on(o.NUM,v),v.on(o.SLASH,b),N.on(o.COLON,D),D.on(o.NUM,R);var z=[o.DOMAIN,o.AT,o.LOCALHOST,o.NUM,o.PLUS,o.POUND,o.PROTOCOL,o.SLASH,o.TLD,o.UNDERSCORE,o.SYM,o.AMPERSAND],q=[o.COLON,o.DOT,o.QUERY,o.PUNCTUATION,o.CLOSEBRACE,o.CLOSEBRACKET,o.CLOSEANGLEBRACKET,o.CLOSEPAREN,o.OPENBRACE,o.OPENBRACKET,o.OPENANGLEBRACKET,o.OPENPAREN];b.on(o.OPENBRACE,S).on(o.OPENBRACKET,E).on(o.OPENANGLEBRACKET,O).on(o.OPENPAREN,C),g.on(o.OPENBRACE,S).on(o.OPENBRACKET,E).on(o.OPENANGLEBRACKET,O).on(o.OPENPAREN,C),S.on(o.CLOSEBRACE,b),E.on(o.CLOSEBRACKET,b),O.on(o.CLOSEANGLEBRACKET,b),C.on(o.CLOSEPAREN,b),w.on(o.CLOSEBRACE,b),A.on(o.CLOSEBRACKET,b),j.on(o.CLOSEANGLEBRACKET,b),T.on(o.CLOSEPAREN,b),k.on(o.CLOSEBRACE,b),I.on(o.CLOSEBRACKET,b),L.on(o.CLOSEANGLEBRACKET,b),_.on(o.CLOSEPAREN,b),S.on(z,w),E.on(z,A),O.on(z,j),C.on(z,T),S.on(q,k),E.on(q,I),O.on(q,L),C.on(q,_),w.on(z,w),A.on(z,A),j.on(z,j),T.on(z,T),w.on(q,w),A.on(q,A),j.on(q,j),T.on(q,T),k.on(z,w),I.on(z,A),L.on(z,j),_.on(z,T),k.on(q,k),I.on(q,I),L.on(q,L),_.on(q,_),b.on(z,b),g.on(z,b),b.on(q,g),g.on(q,g),l.on(o.TLD,M).on(o.DOMAIN,M).on(o.NUM,M).on(o.LOCALHOST,M),M.on(z,M).on(q,U),U.on(z,M).on(q,U);var J=[o.DOMAIN,o.NUM,o.PLUS,o.POUND,o.QUERY,o.UNDERSCORE,o.SYM,o.AMPERSAND,o.TLD];d.on(J,F).on(o.AT,V),h.on(J,F).on(o.AT,V),m.on(J,F),F.on(J,F).on(o.AT,V).on(o.DOT,B),B.on(J,F),V.on(o.TLD,P).on(o.DOMAIN,P).on(o.LOCALHOST,N);t.State=r.TokenState,t.TOKENS=a,t.run=function(e){for(var t=e.length,n=0,r=[],a=[];n<t;){for(var o=s,c=null,u=null,l=0,f=null,p=-1;n<t&&!(c=o.next(e[n]));)a.push(e[n++]);for(;n<t&&(u=c||o.next(e[n]));)c=null,(o=u).accepts()?(p=0,f=o):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)a.push(e[d]);else{a.length>0&&(r.push(new i.TEXT(a)),a=[]),n-=p,l-=p;var m=f.emit();r.push(new m(e.slice(n-l,n)))}}return a.length>0&&r.push(new i.TEXT(a)),r},t.start=s},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(190),i=n(43),a=n(59);function o(e){return e instanceof a.DOMAIN||e instanceof a.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var s=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,i=[],c=0;r[c]instanceof a.PROTOCOL;)t=!0,i.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof a.SLASH;)n=!0,i.push(r[c].toString()),c++;for(;o(r[c]);)i.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)i.push(r[c].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof a.PROTOCOL}});t.Base=c,t.MAILTOEMAIL=s,t.EMAIL=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){const{defaults:r}=n(40),{block:i}=n(193),{rtrim:a,splitCells:o,escape:c}=n(35);e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.rules=i.normal,this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.rules=i.gfm)}static get rules(){return i}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let n,r,s,u,l,f,p,d,m,h,y,v,b,g,S,E;for(e=e.replace(/^ +$/gm,"");e;)if((s=this.rules.newline.exec(e))&&(e=e.substring(s[0].length),s[0].length>1&&this.tokens.push({type:"space"})),s=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(s[0].length),t&&"paragraph"===t.type?t.text+="\n"+s[0].trimRight():(s=s[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?s:a(s,"\n")}))}else if(s=this.rules.fences.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"code",lang:s[2]?s[2].trim():s[2],text:s[3]||""});else if(s=this.rules.heading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:s[1].length,text:s[2]});else if((s=this.rules.nptable.exec(e))&&(f={type:"table",header:o(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]},f.header.length===f.align.length)){for(e=e.substring(s[0].length),y=0;y<f.align.length;y++)/^ *-+: *$/.test(f.align[y])?f.align[y]="right":/^ *:-+: *$/.test(f.align[y])?f.align[y]="center":/^ *:-+ *$/.test(f.align[y])?f.align[y]="left":f.align[y]=null;for(y=0;y<f.cells.length;y++)f.cells[y]=o(f.cells[y],f.header.length);this.tokens.push(f)}else if(s=this.rules.hr.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"hr"});else if(s=this.rules.blockquote.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"blockquote_start"}),s=s[0].replace(/^ *> ?/gm,""),this.token(s,t),this.tokens.push({type:"blockquote_end"});else if(s=this.rules.list.exec(e)){for(e=e.substring(s[0].length),u=s[2],g=u.length>1,p={type:"list_start",ordered:g,start:g?+u:"",loose:!1},this.tokens.push(p),s=s[0].match(this.rules.item),d=[],n=!1,b=s.length,y=0;y<b;y++)f=s[y],h=f.length,f=f.replace(/^ *([*+-]|\d+\.) */,""),~f.indexOf("\n ")&&(h-=f.length,f=this.options.pedantic?f.replace(/^ {1,4}/gm,""):f.replace(new RegExp("^ {1,"+h+"}","gm"),"")),y!==b-1&&(l=i.bullet.exec(s[y+1])[0],(u.length>1?1===l.length:l.length>1||this.options.smartLists&&l!==u)&&(e=s.slice(y+1).join("\n")+e,y=b-1)),r=n||/\n\n(?!\s*$)/.test(f),y!==b-1&&(n="\n"===f.charAt(f.length-1),r||(r=n)),r&&(p.loose=!0),S=/^\[[ xX]\] /.test(f),E=void 0,S&&(E=" "!==f[1],f=f.replace(/^\[[ xX]\] +/,"")),m={type:"list_item_start",task:S,checked:E,loose:r},d.push(m),this.tokens.push(m),this.token(f,!1),this.tokens.push({type:"list_item_end"});if(p.loose)for(b=d.length,y=0;y<b;y++)d[y].loose=!0;this.tokens.push({type:"list_end"})}else if(s=this.rules.html.exec(e))e=e.substring(s[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===s[1]||"script"===s[1]||"style"===s[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0]});else if(t&&(s=this.rules.def.exec(e)))e=e.substring(s[0].length),s[3]&&(s[3]=s[3].substring(1,s[3].length-1)),v=s[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[v]||(this.tokens.links[v]={href:s[2],title:s[3]});else if((s=this.rules.table.exec(e))&&(f={type:"table",header:o(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]},f.header.length===f.align.length)){for(e=e.substring(s[0].length),y=0;y<f.align.length;y++)/^ *-+: *$/.test(f.align[y])?f.align[y]="right":/^ *:-+: *$/.test(f.align[y])?f.align[y]="center":/^ *:-+ *$/.test(f.align[y])?f.align[y]="left":f.align[y]=null;for(y=0;y<f.cells.length;y++)f.cells[y]=o(f.cells[y].replace(/^ *\| *| *\| *$/g,""),f.header.length);this.tokens.push(f)}else if(s=this.rules.lheading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:"="===s[2].charAt(0)?1:2,text:s[1]});else if(t&&(s=this.rules.paragraph.exec(e)))e=e.substring(s[0].length),this.tokens.push({type:"paragraph",text:"\n"===s[1].charAt(s[1].length-1)?s[1].slice(0,-1):s[1]});else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"text",text:s[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}}},function(e,t,n){const r=n(60),i=n(194),a=n(195),o=n(196),{defaults:c}=n(40),{merge:s,unescape:u}=n(35);e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||c,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new i}static parse(t,n){return new e(n).parse(t)}parse(e){this.inline=new a(e.links,this.options),this.inlineText=new a(e.links,s({},this.options,{renderer:new o})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,n,r,i,a="";for(r="",t=0;t<this.token.header.length;t++)r+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(a+=this.renderer.tablerow(r),t=0;t<this.token.cells.length;t++){for(n=this.token.cells[t],r="",i=0;i<n.length;i++)r+=this.renderer.tablecell(this.inline.output(n[i]),{header:!1,align:this.token.align[i]});e+=this.renderer.tablerow(r)}return this.renderer.table(a,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,n=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,n)}case"list_item_start":{e="";const t=this.token.loose,n=this.token.checked,r=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(n)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(n)});else e+=this.renderer.checkbox(n);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,r,n)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=a(n(0)),i=a(n(257));function a(e){return e&&e.__esModule?e:{default:e}}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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?d(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){var e,n;u(this,t);for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return h(d(n=f(this,(e=p(t)).call.apply(e,[this].concat(o)))),"onClick",(function(e){var t=n.props,a=t.text,o=t.onCopy,c=t.children,s=t.options,u=r.default.Children.only(c),l=(0,i.default)(a,s);o&&o(a,l),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e)})),n}var n,a,o;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&&m(e,t)}(t,e),n=t,(a=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,["text","onCopy","options","children"]),i=r.default.Children.only(t);return r.default.cloneElement(i,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&l(n.prototype,a),o&&l(n,o),t}(r.default.PureComponent);t.CopyToClipboard=y,h(y,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(258),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,c,s,u,l=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),c=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=i[t.format]||i.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),o()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";n.r(t);var r={UPLOAD_IMAGE:"upload:image"},i={Subjects:Object.assign({SUBJECTS:"subjects",NEW_SUBJECT:"new:subject",EDIT_SUBJECT:"edit:subject",EDIT_SUBJECT_PLAYLISTS:"edit:subject:playlists",EDIT_SUBJECT_SERIES:"edit:subject:series",EDIT_SUBJECT_VIDEOS:"edit:subject:videos",SUBJECT_CLASSIFICATIONS:"subject:classifications",DELETE_SUBJECT:"delete:subject",ADD_SUBJECT_MEMBERS:"add:subject:members",REMOVE_SUBJECT_MEMBER:"remove:subject:member",CLASSIFICATIONS:"classifications",PRESENTATION_CLASSIFICATIONS:"presentation:classifications",NEW_CLASSIFICATION:"new:classification",EDIT_CLASSIFICATION:"edit:classification",EDIT_CLASSIFICATION_PLAYLISTS:"edit:classification:playlists",EDIT_CLASSIFICATION_SERIES:"edit:classification:series",EDIT_CLASSIFICATION_VIDEOS:"edit:classification:videos",DELETE_CLASSIFICATION:"delete:classification",REMOVE_CLASSIFICATION_MEMBER:"remove:classification:member",LEVELS:"levels",NEW_LEVEL:"new:level",EDIT_LEVEL:"edit:level",LEVEL_AUDIENCES:"level:audiences",EDIT_LEVEL_PLAYLISTS:"edit:level:playlists",EDIT_LEVEL_SERIES:"edit:level:series",EDIT_LEVEL_VIDEOS:"edit:level:videos",REMOVE_LEVEL_MEMBER:"remove:level:member",AUDIENCES:"audiences",PRESENTATION_AUDIENCES:"presentation:audiences",NEW_AUDIENCE:"new:audience",EDIT_AUDIENCE:"edit:audience",EDIT_AUDIENCE_PLAYLISTS:"edit:audience:playlists",EDIT_AUDIENCE_SERIES:"edit:audience:series",EDIT_AUDIENCE_VIDEOS:"edit:audience:videos",DELETE_AUDIENCE:"delete:audience",REMOVE_AUDIENCE_MEMBER:"remove:audience:member",PRESENTATIONS:"presentations",NEW_PRESENTATION:"new:presentation",EDIT_PRESENTATION:"edit:presentation"},r),Playlists:Object.assign({PLAYLISTS:"index",SEARCH_PLAYLISTS:"search:playlists",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",EDIT_PLAYLIST_VIDEOS:"edit:playlist:videos",EDIT_PLAYLIST_DASHBOARDS:"edit:playlist:dashboards",EDIT_PLAYLIST_SUBJECTS:"edit:playlist:subjects",EDIT_PLAYLIST_AUDIENCES:"edit:playlist:audiences",DELETE_PLAYLIST:"delete:playlist",REMOVE_VIDEO:"remove:video",REMOVE_FROM_SUBJECT:"remove:from:subject",DASHBOARD:"dashboard",DELETE_DASHBOARD_WIDGET:"delete:dashboard:widget"},r),Series:Object.assign({EDIT_SERIES:"edit:series",EDIT_SERIES_VIDEOS:"edit:series:videos",EDIT_SERIES_SUBJECTS:"edit:series:subjects",EDIT_SERIES_AUDIENCES:"edit:series:audiences",LEGACY_EDIT_SERIES:"legacy:edit:series"},r),Videos:Object.assign({EDIT_VIDEO:"edit:video",EDIT_VIDEO_AUDIENCES:"edit:video:audiences",EDIT_VIDEO_SUBJECTS:"edit:video:subjects",EDIT_VIDEO_ALIASES:"edit:video:aliases",LEGACY_EDIT_VIDEO:"legacy:edit:video"},r),DomainOptions:{DOMAIN_OPTIONS:"domain:options",NEW_DOMAIN_OPTION:"new:domain:option",EDIT_DOMAIN_OPTION:"edit:domain:option",DELETE_DOMAIN_OPTION:"delete:domain:option"},People:{PEOPLE:"people",NEW_PERSON:"new:person",EDIT_PERSON:"edit:person"},Companies:{COMPANIES:"companies",NEW_COMPANY:"new:company",EDIT_COMPANY:"edit:company"},Themes:Object.assign({THEMES:"themes",NEW_THEME:"new:theme",EDIT_THEME:"edit:theme",DELETE_THEME:"delete:theme"},r),ReleaseNotes:{FORM:"form",GENERATOR:"generator"},Customers:{MANAGE_CUSTOMER:"manage:customer",MANAGE_CUSTOMER_TOPICS:"manage:customer:topics"}},a={SUBJECT:"subject",SUBJECTS:"subjects",UPDATE_SUBJECT:"update:subject",DELETE_SUBJECT:"delete:subject",UPDATE_OBJECT_SUBJECTS:"update:object:subjects",ADD_TO_SUBJECT:"add:to:subject",REMOVE_FROM_SUBJECT:"remove:from:subject",CLASSIFICATION:"classification",CLASSIFICATIONS:"classifications",UPDATE_CLASSIFICATION:"update:classification",DELETE_CLASSIFICATION:"delete:classification",UPDATE_OBJECT_CLASSIFICATIONS:"update:object:classifications",ADD_TO_CLASSIFICATION:"add:to:classification",REMOVE_FROM_CLASSIFICATION:"remove:from:classification",PRESENTATION:"presentation",PRESENTATIONS:"presentations",UPDATE_PRESENTATION:"update:presentation",LEVEL:"level",LEVELS:"levels",UPDATE_LEVEL:"update:level",ADD_TO_LEVEL:"add:to:level",REMOVE_FROM_LEVEL:"remove:from:level",UPDATE_OBJECT_LEVELS:"update:object:levels",AUDIENCE:"audience",AUDIENCES:"audiences",UPDATE_AUDIENCE:"update:audience",DELETE_AUDIENCE:"delete:audience",UPDATE_OBJECT_AUDIENCES:"update:object:audiences",ADD_TO_AUDIENCE:"add:to:audience",REMOVE_FROM_AUDIENCE:"remove:from:audience",PLAYLIST:"playlist",PLAYLISTS:"playlists",UPDATE_PLAYLIST:"update:playlist",DELETE_PLAYLIST:"delete:playlist",PLAYLIST_VIDEOS:"playlist:videos",REORDER_PLAYLIST_VIDEOS:"reorder:playlist:videos",REMOVE_PLAYLIST_VIDEO:"remove:playlist:video",VIDEO:"video",SERIES:"series",SERIES_BY_ID:"series:by:id",UPDATE_SERIES:"update:series",CURRENT_USER:"current:user",UPLOAD_IMAGE:"upload:image",LOCALE:"locale",PHRASES:"PHRASES"},o={CURATOR_LAYOUT:"CuratorLayout"},c={COMPANIES:"companies:application",CUSTOMERS:"customers:application",DOMAIN_OPTIONS:"domain:options:application",PEOPLE:"people:application",PLAYLISTS:"playlists:application",SERIES:"series:application",SUBJECTS:"subjects:application",THEMES:"themes:application",VIDEOS:"videos:application",RELEASE_NOTES:"release:notes:application"},s={IMAGE_UPLOAD:"image:upload:data:service",SUBJECT:"subject:data:service",LANGUAGE:"language:data:service"},u={SUBJECT:"SubjectDataService",LANGUAGE:"LanguageDataService"},l=n(0),f=n.n(l),p=n(27),d=n(1),m=function(e){return d.isFunction(e)},h=function(){return d.identity},y=n(54),v=n(6);function b(e){return(b="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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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 E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!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&&E(e,t)}(a,e);var t,n,r,i=O(a);function a(){return g(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"isReactComponent",value:function(e){return l&&l.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),y.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return y.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return y.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return l.createElement(v.Provider,{store:this.options.store},e)}}])&&S(t.prototype,n),r&&S(t,r),a}(n(46).a),j="top:nav",T="left:nav",k="content",I="popup",L="alert",_=n(200),P=n.n(_),x=n(55),N=n.n(x);function D(e){return(D="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 R(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 M(e,t,n){return(M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=B(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var i=B(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=function(e){!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&&U(e,t)}(a,e);var t,n,r,i=F(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).childComponents={},t}return t=a,r=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=[];return Object.keys(e).forEach((function(t){n.push("".concat(t,":").concat(e[t]))})),n.length&&(n.sort(),t+=":".concat(n.join(":"))),t}}],(n=[{key:"title",get:function(){return!1}},{key:"name",get:function(){return"CuratorLayoutView"}},{key:"template",get:function(){return P.a}},{key:"className",get:function(){return"container-fluid ".concat(N.a.curatorLayout)}},{key:"regions",value:function(){return{layout:".layout-region"}}},{key:"getChildComponents",value:function(){return{topNav:{component:this.childComponents[j],className:N.a.topNavRegion},leftNav:{component:this.childComponents[T],className:"py-3 ".concat(N.a.leftNavRegion)},content:{component:this.childComponents[k],className:"position-relative container py-3"},popup:{component:this.childComponents[I]},alert:{component:this.childComponents[L]}}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"renderTopNav",value:function(){m(this.options.getTopNavView)&&(this.childComponents[j]=this.options.getTopNavView(p.AppLinkHelper.getCurrentAppLink()))}},{key:"hideLeftNav",value:function(){this.unsetRegion(T)}},{key:"closePopup",value:function(){this.unsetRegion(I)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderTopNav(),this.renderLayout()}},{key:"renderLayout",value:function(){var e=Object.assign({provider:this.options.provider},this.getChildComponents());M(B(a.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(l.createElement(W,Object.assign({},e))))}}])&&R(t.prototype,n),r&&R(t,r),a}(A),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},q=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)},J=function(e,t){return"".concat(e).concat(t?" ".concat(t):"")},K=function(e){var t=e.topNav,n=e.leftNav,r=e.content,i=e.popup,a=e.alert;return l.createElement(l.Fragment,null,l.createElement("div",{className:"position-relative"},!!t.component&&l.createElement(q,{className:J("top-nav-region",t.className)},t.component),!!n.component&&l.createElement(q,{className:J("left-nav-region",n.className)},n.component),!!r.component&&l.createElement("div",{className:"content-container"},l.createElement(q,{className:J("content-region",r.className)},r.component))),!!i.component&&l.createElement(q,{className:J("popup-region",i.className)},i.component),!!a.component&&l.createElement(q,{className:J("alert-region",a.className)},a.component))},W=function(e){var t=e.provider,n=z(e,["provider"]);return t?l.createElement(t,null,l.createElement(K,Object.assign({},n))):l.createElement(K,Object.assign({},n))},Y=n(9);function G(e){return(G="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 Z(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(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 te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var i=ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ae=function(e){!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&&te(e,t)}(a,e);var t,n,r,i=ne(a);function a(){return X(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(Y.a.SHELL,p.EventNames.ROUTING_END,this.updateNav)}},{key:"name",get:function(){return"CuratorAppNavService"}},{key:"updateNav",value:function(){var e=this,t=p.AppLinkHelper.getCurrentAppLink().application;if(t!==this.currentApplication){this.currentApplication=t;var n=this.options.navItemMappings[t];if(n){var r=document.querySelector(this.options.navSelector);r&&r.children&&Z(r.children).forEach((function(t){var r=t.querySelector("a");r&&(r.classList.remove(e.options.currentItemClassName),r.text===n&&r.classList.add(e.options.currentItemClassName))}))}}}}])&&ee(t.prototype,n),r&&ee(t,r),a}(p.Service),oe=n(70),ce=n(8),se=function(e){var t="/api/master/v2/companies";return e?"".concat(t,"?cursor=").concat(e):t},ue=function(e){return"/api/master/v2/objects/".concat(e)},le=function(){return"/api/master/v2/companies"},fe=function(e){return"/api/master/v2/objects/".concat(e)},pe="companies",de="company",me="update:company",he=function(e){return{key:"".concat(pe).concat(e?":".concat(e):""),url:se(e)}},ye=function(e){return{key:"".concat(de,":").concat(e),url:ue(e)}},ve=function(e,t,n){return{key:de,url:le(),data:e,type:ce.a.POST,success:t,error:n,invalidationKeys:[pe]}},be=function(e,t,n){return{key:"".concat(me,":").concat(e),url:fe(e),data:t,type:ce.a.PUT,always:n}},ge=n(33),Se=n.n(ge),Ee=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Oe}(e)}(e)};var Oe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ce(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ae((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function we(e,t,n){return e.concat(t).map((function(e){return Ce(e,n)}))}function Ae(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||we,n.isMergeableObject=n.isMergeableObject||Ee;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=Ce(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=Ae(e[i],t[i],n):r[i]=Ce(t[i],n)})),r}(e,t,n):Ce(t,n)}Ae.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ae(e,n,t)}),{})};var je=Ae,Te=n(15),ke=Te.a.Symbol,Ie=Object.prototype,Le=Ie.hasOwnProperty,_e=Ie.toString,Pe=ke?ke.toStringTag:void 0;var xe=function(e){var t=Le.call(e,Pe),n=e[Pe];try{e[Pe]=void 0;var r=!0}catch(e){}var i=_e.call(e);return r&&(t?e[Pe]=n:delete e[Pe]),i},Ne=Object.prototype.toString;var De=function(e){return Ne.call(e)},Re=ke?ke.toStringTag:void 0;var Me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Re&&Re in Object(e)?xe(e):De(e)};var Ue=function(e,t){return function(n){return e(t(n))}},Fe=Ue(Object.getPrototypeOf,Object);var Ve=function(e){return null!=e&&"object"==typeof e},Be=Function.prototype,He=Object.prototype,ze=Be.toString,qe=He.hasOwnProperty,Je=ze.call(Object);var $e=function(e){if(!Ve(e)||"[object Object]"!=Me(e))return!1;var t=Fe(e);if(null===t)return!0;var n=qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Je};var Ke=function(){this.__data__=[],this.size=0};var We=function(e,t){return e===t||e!=e&&t!=t};var Ye=function(e,t){for(var n=e.length;n--;)if(We(e[n][0],t))return n;return-1},Ge=Array.prototype.splice;var Ze=function(e){var t=this.__data__,n=Ye(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)};var Qe=function(e){var t=this.__data__,n=Ye(t,e);return n<0?void 0:t[n][1]};var Xe=function(e){return Ye(this.__data__,e)>-1};var et=function(e,t){var n=this.__data__,r=Ye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tt(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])}}tt.prototype.clear=Ke,tt.prototype.delete=Ze,tt.prototype.get=Qe,tt.prototype.has=Xe,tt.prototype.set=et;var nt=tt;var rt=function(){this.__data__=new nt,this.size=0};var it=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var at=function(e){return this.__data__.get(e)};var ot=function(e){return this.__data__.has(e)};var ct=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var st,ut=function(e){if(!ct(e))return!1;var t=Me(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lt=Te.a["__core-js_shared__"],ft=(st=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+st:"";var pt=function(e){return!!ft&&ft in e},dt=Function.prototype.toString;var mt=function(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ht=/^\[object .+?Constructor\]$/,yt=Function.prototype,vt=Object.prototype,bt=yt.toString,gt=vt.hasOwnProperty,St=RegExp("^"+bt.call(gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Et=function(e){return!(!ct(e)||pt(e))&&(ut(e)?St:ht).test(mt(e))};var Ot=function(e,t){return null==e?void 0:e[t]};var Ct=function(e,t){var n=Ot(e,t);return Et(n)?n:void 0},wt=Ct(Te.a,"Map"),At=Ct(Object,"create");var jt=function(){this.__data__=At?At(null):{},this.size=0};var Tt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},kt=Object.prototype.hasOwnProperty;var It=function(e){var t=this.__data__;if(At){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return kt.call(t,e)?t[e]:void 0},Lt=Object.prototype.hasOwnProperty;var _t=function(e){var t=this.__data__;return At?void 0!==t[e]:Lt.call(t,e)};var Pt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=At&&void 0===t?"__lodash_hash_undefined__":t,this};function xt(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])}}xt.prototype.clear=jt,xt.prototype.delete=Tt,xt.prototype.get=It,xt.prototype.has=_t,xt.prototype.set=Pt;var Nt=xt;var Dt=function(){this.size=0,this.__data__={hash:new Nt,map:new(wt||nt),string:new Nt}};var Rt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mt=function(e,t){var n=e.__data__;return Rt(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ut=function(e){var t=Mt(this,e).delete(e);return this.size-=t?1:0,t};var Ft=function(e){return Mt(this,e).get(e)};var Vt=function(e){return Mt(this,e).has(e)};var Bt=function(e,t){var n=Mt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ht(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])}}Ht.prototype.clear=Dt,Ht.prototype.delete=Ut,Ht.prototype.get=Ft,Ht.prototype.has=Vt,Ht.prototype.set=Bt;var zt=Ht;var qt=function(e,t){var n=this.__data__;if(n instanceof nt){var r=n.__data__;if(!wt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zt(r)}return n.set(e,t),this.size=n.size,this};function Jt(e){var t=this.__data__=new nt(e);this.size=t.size}Jt.prototype.clear=rt,Jt.prototype.delete=it,Jt.prototype.get=at,Jt.prototype.has=ot,Jt.prototype.set=qt;var $t=Jt;var Kt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Wt=function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Yt=function(e,t,n){"__proto__"==t&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Gt=Object.prototype.hasOwnProperty;var Zt=function(e,t,n){var r=e[t];Gt.call(e,t)&&We(r,n)&&(void 0!==n||t in e)||Yt(e,t,n)};var Qt=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var c=t[a],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),i?Yt(n,c,s):Zt(n,c,s)}return n};var Xt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var en=function(e){return Ve(e)&&"[object Arguments]"==Me(e)},tn=Object.prototype,nn=tn.hasOwnProperty,rn=tn.propertyIsEnumerable,an=en(function(){return arguments}())?en:function(e){return Ve(e)&&nn.call(e,"callee")&&!rn.call(e,"callee")},on=Array.isArray,cn=n(49),sn=/^(?:0|[1-9]\d*)$/;var un=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&sn.test(e))&&e>-1&&e%1==0&&e<t};var ln=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},fn={};fn["[object Float32Array]"]=fn["[object Float64Array]"]=fn["[object Int8Array]"]=fn["[object Int16Array]"]=fn["[object Int32Array]"]=fn["[object Uint8Array]"]=fn["[object Uint8ClampedArray]"]=fn["[object Uint16Array]"]=fn["[object Uint32Array]"]=!0,fn["[object Arguments]"]=fn["[object Array]"]=fn["[object ArrayBuffer]"]=fn["[object Boolean]"]=fn["[object DataView]"]=fn["[object Date]"]=fn["[object Error]"]=fn["[object Function]"]=fn["[object Map]"]=fn["[object Number]"]=fn["[object Object]"]=fn["[object RegExp]"]=fn["[object Set]"]=fn["[object String]"]=fn["[object WeakMap]"]=!1;var pn=function(e){return Ve(e)&&ln(e.length)&&!!fn[Me(e)]};var dn=function(e){return function(t){return e(t)}},mn=n(29),hn=mn.a&&mn.a.isTypedArray,yn=hn?dn(hn):pn,vn=Object.prototype.hasOwnProperty;var bn=function(e,t){var n=on(e),r=!n&&an(e),i=!n&&!r&&Object(cn.a)(e),a=!n&&!r&&!i&&yn(e),o=n||r||i||a,c=o?Xt(e.length,String):[],s=c.length;for(var u in e)!t&&!vn.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||un(u,s))||c.push(u);return c},gn=Object.prototype;var Sn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gn)},En=Ue(Object.keys,Object),On=Object.prototype.hasOwnProperty;var Cn=function(e){if(!Sn(e))return En(e);var t=[];for(var n in Object(e))On.call(e,n)&&"constructor"!=n&&t.push(n);return t};var wn=function(e){return null!=e&&ln(e.length)&&!ut(e)};var An=function(e){return wn(e)?bn(e):Cn(e)};var jn=function(e,t){return e&&Qt(t,An(t),e)};var Tn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},kn=Object.prototype.hasOwnProperty;var In=function(e){if(!ct(e))return Tn(e);var t=Sn(e),n=[];for(var r in e)("constructor"!=r||!t&&kn.call(e,r))&&n.push(r);return n};var Ln=function(e){return wn(e)?bn(e,!0):In(e)};var _n=function(e,t){return e&&Qt(t,Ln(t),e)},Pn=n(202);var xn=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Nn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var Dn=function(){return[]},Rn=Object.prototype.propertyIsEnumerable,Mn=Object.getOwnPropertySymbols,Un=Mn?function(e){return null==e?[]:(e=Object(e),Nn(Mn(e),(function(t){return Rn.call(e,t)})))}:Dn;var Fn=function(e,t){return Qt(e,Un(e),t)};var Vn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Bn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Vn(t,Un(e)),e=Fe(e);return t}:Dn;var Hn=function(e,t){return Qt(e,Bn(e),t)};var zn=function(e,t,n){var r=t(e);return on(e)?r:Vn(r,n(e))};var qn=function(e){return zn(e,An,Un)};var Jn=function(e){return zn(e,Ln,Bn)},$n=Ct(Te.a,"DataView"),Kn=Ct(Te.a,"Promise"),Wn=Ct(Te.a,"Set"),Yn=Ct(Te.a,"WeakMap"),Gn=mt($n),Zn=mt(wt),Qn=mt(Kn),Xn=mt(Wn),er=mt(Yn),tr=Me;($n&&"[object DataView]"!=tr(new $n(new ArrayBuffer(1)))||wt&&"[object Map]"!=tr(new wt)||Kn&&"[object Promise]"!=tr(Kn.resolve())||Wn&&"[object Set]"!=tr(new Wn)||Yn&&"[object WeakMap]"!=tr(new Yn))&&(tr=function(e){var t=Me(e),n="[object Object]"==t?e.constructor:void 0,r=n?mt(n):"";if(r)switch(r){case Gn:return"[object DataView]";case Zn:return"[object Map]";case Qn:return"[object Promise]";case Xn:return"[object Set]";case er:return"[object WeakMap]"}return t});var nr=tr,rr=Object.prototype.hasOwnProperty;var ir=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&rr.call(e,"index")&&(n.index=e.index,n.input=e.input),n},ar=Te.a.Uint8Array;var or=function(e){var t=new e.constructor(e.byteLength);return new ar(t).set(new ar(e)),t};var cr=function(e,t){var n=t?or(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},sr=/\w*$/;var ur=function(e){var t=new e.constructor(e.source,sr.exec(e));return t.lastIndex=e.lastIndex,t},lr=ke?ke.prototype:void 0,fr=lr?lr.valueOf:void 0;var pr=function(e){return fr?Object(fr.call(e)):{}};var dr=function(e,t){var n=t?or(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var mr=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return or(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return cr(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dr(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return ur(e);case"[object Set]":return new r;case"[object Symbol]":return pr(e)}},hr=Object.create,yr=function(){function e(){}return function(t){if(!ct(t))return{};if(hr)return hr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var vr=function(e){return"function"!=typeof e.constructor||Sn(e)?{}:yr(Fe(e))};var br=function(e){return Ve(e)&&"[object Map]"==nr(e)},gr=mn.a&&mn.a.isMap,Sr=gr?dn(gr):br;var Er=function(e){return Ve(e)&&"[object Set]"==nr(e)},Or=mn.a&&mn.a.isSet,Cr=Or?dn(Or):Er,wr={};wr["[object Arguments]"]=wr["[object Array]"]=wr["[object ArrayBuffer]"]=wr["[object DataView]"]=wr["[object Boolean]"]=wr["[object Date]"]=wr["[object Float32Array]"]=wr["[object Float64Array]"]=wr["[object Int8Array]"]=wr["[object Int16Array]"]=wr["[object Int32Array]"]=wr["[object Map]"]=wr["[object Number]"]=wr["[object Object]"]=wr["[object RegExp]"]=wr["[object Set]"]=wr["[object String]"]=wr["[object Symbol]"]=wr["[object Uint8Array]"]=wr["[object Uint8ClampedArray]"]=wr["[object Uint16Array]"]=wr["[object Uint32Array]"]=!0,wr["[object Error]"]=wr["[object Function]"]=wr["[object WeakMap]"]=!1;var Ar=function e(t,n,r,i,a,o){var c,s=1&n,u=2&n,l=4&n;if(r&&(c=a?r(t,i,a,o):r(t)),void 0!==c)return c;if(!ct(t))return t;var f=on(t);if(f){if(c=ir(t),!s)return xn(t,c)}else{var p=nr(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(cn.a)(t))return Object(Pn.a)(t,s);if("[object Object]"==p||"[object Arguments]"==p||d&&!a){if(c=u||d?{}:vr(t),!s)return u?Hn(t,_n(c,t)):Fn(t,jn(c,t))}else{if(!wr[p])return a?t:{};c=mr(t,p,s)}}o||(o=new $t);var m=o.get(t);if(m)return m;o.set(t,c),Cr(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,o))})):Sr(t)&&t.forEach((function(i,a){c.set(a,e(i,n,r,a,t,o))}));var h=f?void 0:(l?u?Jn:qn:u?Ln:An)(t);return Kt(h||t,(function(i,a){h&&(i=t[a=i]),Zt(c,a,e(i,n,r,a,t,o))})),c};var jr=function(e){return Ar(e,4)};var Tr=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var kr=function(e){return"symbol"==typeof e||Ve(e)&&"[object Symbol]"==Me(e)};function Ir(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ir.Cache||zt),n}Ir.Cache=zt;var Lr=Ir;var _r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pr=/\\(\\)?/g,xr=function(e){var t=Lr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_r,(function(e,n,r,i){t.push(r?i.replace(Pr,"$1"):n||e)})),t}));var Nr=function(e){if("string"==typeof e||kr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Dr=ke?ke.prototype:void 0,Rr=Dr?Dr.toString:void 0;var Mr=function e(t){if("string"==typeof t)return t;if(on(t))return Tr(t,e)+"";if(kr(t))return Rr?Rr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Ur=function(e){return null==e?"":Mr(e)};var Fr=function(e){return on(e)?Tr(e,Nr):kr(e)?[e]:xn(xr(Ur(e)))};var Vr=function(e,t){},Br=n(61),Hr=n(62),zr=n.n(Hr);var qr=function(e){return Ar(e,5)};function Jr(){return(Jr=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 $r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Kr(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Yr=function(e){return"function"==typeof e},Gr=function(e){return null!==e&&"object"==typeof e},Zr=function(e){return String(Math.floor(Number(e)))===e},Qr=function(e){return"[object String]"===Object.prototype.toString.call(e)},Xr=function(e){return 0===l.Children.count(e)},ei=function(e){return Gr(e)&&Yr(e.then)};function ti(e,t,n,r){void 0===r&&(r=0);for(var i=Fr(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function ni(e,t,n){for(var r=jr(e),i=r,a=0,o=Fr(t);a<o.length-1;a++){var c=o[a],s=ti(e,o.slice(0,a+1));if(s&&(Gr(s)||Array.isArray(s)))i=i[c]=jr(s);else{var u=o[a+1];i=i[c]=Zr(u)&&Number(u)>=0?[]:{}}}return(0===a?e:i)[o[a]]===n?e:(void 0===n?delete i[o[a]]:i[o[a]]=n,0===a&&void 0===n&&delete r[o[a]],r)}function ri(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],c=e[o];Gr(c)?n.get(c)||(n.set(c,!0),r[o]=Array.isArray(c)?[]:{},ri(c,t,n,r[o])):r[o]=t}return r}var ii=Object(l.createContext)(void 0),ai=ii.Provider,oi=ii.Consumer;function ci(){var e=Object(l.useContext)(ii);return e||Vr(!1),e}function si(e,t){switch(t.type){case"SET_VALUES":return Jr({},e,{values:t.payload});case"SET_TOUCHED":return Jr({},e,{touched:t.payload});case"SET_ERRORS":return Jr({},e,{errors:t.payload});case"SET_STATUS":return Jr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Jr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Jr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Jr({},e,{values:ni(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Jr({},e,{touched:ni(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Jr({},e,{errors:ni(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Jr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Jr({},e,{touched:ri(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Jr({},e,{isSubmitting:!1});default:return e}}var ui={},li={};function fi(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,i=void 0===r||r,a=e.validateOnMount,o=void 0!==a&&a,c=e.isInitialValid,s=e.enableReinitialize,u=void 0!==s&&s,f=e.onSubmit,p=Kr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=Jr({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:f},p),m=Object(l.useRef)(d.initialValues),h=Object(l.useRef)(d.initialErrors||ui),y=Object(l.useRef)(d.initialTouched||li),v=Object(l.useRef)(d.initialStatus),b=Object(l.useRef)(!1),g=Object(l.useRef)({});Object(l.useEffect)((function(){0}),[]),Object(l.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]);var S=Object(l.useReducer)(si,{values:d.initialValues,errors:d.initialErrors||ui,touched:d.initialTouched||li,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],O=S[1],C=Object(l.useCallback)((function(e,t){return new Promise((function(n,r){var i=d.validate(e,t);null==i?n(ui):ei(i)?i.then((function(e){n(e||ui)}),(function(e){r(e)})):n(i)}))}),[d.validate]),w=Object(l.useCallback)((function(e,t){var n=d.validationSchema,r=Yr(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var i=function e(t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=String(r);!0===Array.isArray(t[i])?n[i]=t[i].map((function(t){return!0===Array.isArray(t)||$e(t)?e(t):""!==t?t:void 0})):$e(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){i.then((function(){e(ui)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ni(t,e.path,e.message);var n=e.inner,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 o=a;ti(t,o.path)||(t=ni(t,o.path,o.message))}}return t}(n)):t(n)}))}))}),[d.validationSchema]),A=Object(l.useCallback)((function(e,t){return new Promise((function(n){return n(g.current[e].validate(t))}))}),[]),j=Object(l.useCallback)((function(e){var t=Object.keys(g.current).filter((function(e){return Yr(g.current[e].validate)})),n=t.length>0?t.map((function(t){return A(t,ti(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=ni(e,t[r],n)),e}),{})}))}),[A]),T=Object(l.useCallback)((function(e){return Promise.all([j(e),d.validationSchema?w(e):{},d.validate?C(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return je.all([t,n,r],{arrayMerge:di})}))}),[d.validate,d.validationSchema,j,C,w]),k=hi((function(e){return void 0===e&&(e=E.values),Object(Br.unstable_runWithPriority)(Br.LowPriority,(function(){return T(e).then((function(e){return b.current&&O({type:"SET_ERRORS",payload:e}),e}))}))})),I=hi((function(e){return void 0===e&&(e=E.values),O({type:"SET_ISVALIDATING",payload:!0}),T(e).then((function(e){return b.current&&(O({type:"SET_ISVALIDATING",payload:!1}),Se()(E.errors,e)||O({type:"SET_ERRORS",payload:e})),e}))}));Object(l.useEffect)((function(){o&&!0===b.current&&k(d.initialValues)}),[d.initialValues,o,k]);var L=Object(l.useCallback)((function(e){var t=e&&e.values?e.values:m.current,n=e&&e.errors?e.errors:h.current?h.current:d.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:d.initialTouched||{},i=e&&e.status?e.status:v.current?v.current:d.initialStatus;m.current=t,h.current=n,y.current=r,v.current=i,O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[d.initialErrors,d.initialStatus,d.initialTouched]);Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(m.current,d.initialValues)&&(m.current=d.initialValues,L())}),[u,d.initialValues,L]),Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(h.current,d.initialErrors)&&(h.current=d.initialErrors||ui,O({type:"SET_ERRORS",payload:d.initialErrors||ui}))}),[u,d.initialErrors]),Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(y.current,d.initialTouched)&&(y.current=d.initialTouched||li,O({type:"SET_TOUCHED",payload:d.initialTouched||li}))}),[u,d.initialTouched]),Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(v.current,d.initialStatus)&&(v.current=d.initialStatus,O({type:"SET_STATUS",payload:d.initialStatus}))}),[u,d.initialStatus,d.initialTouched]);var _=hi((function(e){if(Yr(g.current[e].validate)){var t=ti(E.values,e),n=g.current[e].validate(t);return ei(n)?(O({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()})),P=Object(l.useCallback)((function(e,t){var n=t.validate;g.current[e]={validate:n}}),[]),x=Object(l.useCallback)((function(e){delete g.current[e]}),[]),N=hi((function(e){return O({type:"SET_TOUCHED",payload:e}),i?k(E.values):Promise.resolve()})),D=Object(l.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),R=hi((function(e){return O({type:"SET_VALUES",payload:e}),n?k(e):Promise.resolve()})),M=Object(l.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),U=hi((function(e,t,r){return void 0===r&&(r=!0),O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?k(ni(E.values,e,t)):Promise.resolve()})),F=Object(l.useCallback)((function(e,t){var n,r=t,i=e;if(!Qr(e)){e.persist&&e.persist();var a=e.target,o=a.type,c=a.name,s=a.id,u=a.value,l=a.checked,f=(a.outerHTML,a.options),p=a.multiple;r=t||(c||s),i=/number|range/.test(o)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(o)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(ti(E.values,r),l,u):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):u}r&&U(r,i)}),[U,E.values]),V=Object(l.useCallback)((function(e){if(Qr(e))return function(t){return F(t,e)};F(e)}),[F]),B=hi((function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),i&&n?k(E.values):Promise.resolve()})),H=Object(l.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,a=(n.outerHTML,t||(r||i));B(a,!0)}),[B]),z=Object(l.useCallback)((function(e){if(Qr(e))return function(t){return H(t,e)};H(e)}),[H]),q=Object(l.useCallback)((function(e){Yr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),J=Object(l.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),$=Object(l.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),K={resetForm:L,validateForm:I,validateField:_,setErrors:D,setFieldError:M,setFieldTouched:B,setFieldValue:U,setStatus:J,setSubmitting:$,setTouched:N,setValues:R,setFormikState:q},W=hi((function(){return f(E.values,K)})),Y=hi((function(){return O({type:"SUBMIT_ATTEMPT"}),I().then((function(e){if(0===Object.keys(e).length){var t=W();if(void 0===t)return;return Promise.resolve(t).then((function(){b.current&&O({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(b.current)throw O({type:"SUBMIT_FAILURE"}),e}))}b.current&&O({type:"SUBMIT_FAILURE"})}))})),G=hi((function(e){e&&e.preventDefault&&Yr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Yr(e.stopPropagation)&&e.stopPropagation(),Y()})),Z=hi((function(e){if(e&&e.preventDefault&&Yr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Yr(e.stopPropagation)&&e.stopPropagation(),d.onReset){var t=d.onReset(E.values,K);ei(t)?t.then(L):L()}else L()})),Q=Object(l.useCallback)((function(e){return{value:ti(E.values,e),error:ti(E.errors,e),touched:!!ti(E.touched,e),initialValue:ti(m.current,e),initialTouched:!!ti(y.current,e),initialError:ti(h.current,e)}}),[E.errors,E.touched,E.values]),X=Object(l.useCallback)((function(e){var t=Gr(e),n=t?e.name:e,r=ti(E.values,n),i={name:n,value:r,onChange:V,onBlur:z};if(t){var a=e.type,o=e.value,c=e.as,s=e.multiple;"checkbox"===a?void 0===o?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(o)),i.value=o):"radio"===a?(i.checked=r===o,i.value=o):"select"===c&&s&&(i.value=i.value||[],i.multiple=!0)}return i}),[z,V,E.values]),ee=Object(l.useMemo)((function(){return!Se()(m.current,E.values)}),[E.values]),te=Object(l.useMemo)((function(){return void 0!==c?ee?E.errors&&0===Object.keys(E.errors).length:!1!==c&&Yr(c)?c(d):c:E.errors&&0===Object.keys(E.errors).length}),[c,ee,E.errors,d]);return Jr({},E,{initialValues:m.current,initialErrors:h.current,initialTouched:y.current,initialStatus:v.current,handleBlur:z,handleChange:V,handleReset:Z,handleSubmit:G,resetForm:L,setErrors:D,setFormikState:q,setFieldTouched:B,setFieldValue:U,setFieldError:M,setStatus:J,setSubmitting:$,setTouched:N,setValues:R,submitForm:Y,validateForm:I,validateField:_,isValid:te,dirty:ee,unregisterField:x,registerField:P,getFieldProps:X,getFieldMeta:Q,validateOnBlur:i,validateOnChange:n,validateOnMount:o})}function pi(e){var t=fi(e),n=e.component,r=e.children,i=e.render;return Object(l.useEffect)((function(){0}),[]),Object(l.createElement)(ai,{value:t},n?Object(l.createElement)(n,t):i?i(t):r?Yr(r)?r(t):Xr(r)?null:l.Children.only(r):null)}function di(e,t,n){var r=e.slice();return t.forEach((function(t,i){if(void 0===r[i]){var a=!1!==n.clone&&n.isMergeableObject(t);r[i]=a?je(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=je(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var mi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function hi(e){var t=Object(l.useRef)(e);return mi((function(){t.current=e})),Object(l.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function yi(e){var t=e.validate,n=e.name,r=e.render,i=e.children,a=e.as,o=e.component,c=Kr(e,["validate","name","render","children","as","component"]),s=ci(),u=(s.validate,s.validationSchema,Kr(s,["validate","validationSchema"]));Object(l.useEffect)((function(){0}),[]);var f=u.registerField,p=u.unregisterField;Object(l.useEffect)((function(){return f(n,{validate:t}),function(){p(n)}}),[f,p,n,t]);var d=u.getFieldProps(Jr({name:n},c)),m=u.getFieldMeta(n),h={field:d,form:u};if(r)return r(Jr({},h,{meta:m}));if(Yr(i))return i(Jr({},h,{meta:m}));if(o){if("string"==typeof o){var y=c.innerRef,v=Kr(c,["innerRef"]);return Object(l.createElement)(o,Jr({ref:y},d,v),i)}return Object(l.createElement)(o,Jr({field:d,form:u},c),i)}var b=a||"input";if("string"==typeof b){var g=c.innerRef,S=Kr(c,["innerRef"]);return Object(l.createElement)(b,Jr({ref:g},d,S),i)}return Object(l.createElement)(b,Jr({},d,c),i)}var vi=Object(l.forwardRef)((function(e,t){var n=e.action,r=Kr(e,["action"]),i=n||"#",a=ci(),o=a.handleReset,c=a.handleSubmit;return Object(l.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:o,action:i},r))}));function bi(e){var t=function(t){return Object(l.createElement)(oi,null,(function(n){return n||Vr(!1),Object(l.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",zr()(t,e)}vi.displayName="Form";var gi=function(e,t,n){var r=Si(e);return r.splice(t,0,n),r},Si=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Jr({},e,{length:t+1}))}return[]},Ei=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,a=i.name,o=i.validateOnChange,c=i.formik,s=c.setFormikState,u=c.validateForm;s((function(n){var i="function"==typeof r?r:e,o="function"==typeof t?t:e;return Jr({},n,{values:ni(n.values,a,e(ti(n.values,a))),errors:r?ni(n.errors,a,i(ti(n.errors,a))):n.errors,touched:t?ni(n.touched,a,o(ti(n.touched,a))):n.touched})}),(function(){o&&u()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(Si(t),[qr(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Si(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Si(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return gi(n,e,t)}),(function(t){return gi(t,e,null)}),(function(t){return gi(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Si(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Wr(n)),n.pop=n.pop.bind(Wr(n)),n}$r(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?Si(n):[];return t||(t=r[e]),Yr(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,a=t.name,o=t.formik,c=(o.validate,o.validationSchema,Jr({},e,{form:Kr(o,["validate","validationSchema"]),name:a}));return n?Object(l.createElement)(n,c):r?r(c):i?"function"==typeof i?i(c):Xr(i)?null:l.Children.only(i):null},t}(l.Component);Ei.defaultProps={validateOnChange:!0};var Oi=bi(function(e){function t(){return e.apply(this,arguments)||this}$r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return ti(this.props.formik.errors,this.props.name)!==ti(e.formik.errors,this.props.name)||ti(this.props.formik.touched,this.props.name)!==ti(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,i=e.children,a=e.name,o=Kr(e,["component","formik","render","children","name"]),c=ti(n.touched,a),s=ti(n.errors,a);return c&&s?r?Yr(r)?r(s):null:i?Yr(i)?i(s):null:t?Object(l.createElement)(t,o,s):s:null},t}(l.Component));(function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.render,i=t.children,a=t.component,o=t.as;t.name;return r&&Vr(!1),a&&r&&Vr(!1),o&&i&&Yr(i)&&Vr(!1),a&&i&&Yr(i)&&Vr(!1),r&&i&&!Xr(i)&&Vr(!1),n}$r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):ti(this.context.values,this.props.name)!==ti(n.values,this.props.name)||ti(this.context.errors,this.props.name)!==ti(n.errors,this.props.name)||ti(this.context.touched,this.props.name)!==ti(n.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==n.isSubmitting},n.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},n.render=function(){var e=this.props,t=(e.validate,e.name),n=e.render,r=e.as,i=e.children,a=e.component,o=(e.shouldUpdate,Kr(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,s=(c.validate,c.validationSchema,Kr(c,["validate","validationSchema"])),u={value:"radio"===o.type||"checkbox"===o.type?o.value:ti(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},f={field:u,meta:{value:ti(c.values,t),error:ti(c.errors,t),touched:!!ti(c.touched,t),initialValue:ti(c.initialValues,t),initialTouched:!!ti(c.initialTouched,t),initialError:ti(c.initialErrors,t)},form:s};if(n)return n(f);if(Yr(i))return i(f);if(a){if("string"==typeof a){var p=o.innerRef,d=Kr(o,["innerRef"]);return Object(l.createElement)(a,Jr({ref:p},u,d),i)}return Object(l.createElement)(a,Jr({field:u,form:c},o),i)}var m=r||"input";if("string"==typeof m){var h=o.innerRef,y=Kr(o,["innerRef"]);return Object(l.createElement)(m,Jr({ref:h},u,y),i)}return Object(l.createElement)(m,Jr({},u,o),i)},t}(l.Component)).contextType=ii;var Ci=n(7),wi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ai(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,r=e.initialValues,i=e.onSubmit,a=wi(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),o=t&&e.validationSchema?e.validationSchema.cast(function e(t){var n=Ci.a.deepClone(t);return Object.keys(n).forEach((function(t){n.hasOwnProperty(t)&&(Ci.a.isObject(n[t])?n[t]=e(n[t]):null===n[t]&&delete n[t])})),n}(r)):r,c={allowInitialSubmit:e.allowInitialSubmit};return l.createElement(pi,Object.assign({enableReinitialize:!0},a,{initialValues:o,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,c=n&&e.validationSchema?e.validationSchema.cast(t):t;i(c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&o(),a(!1)}))},initialStatus:c}),m(e.children)?function(t){return e.children(t)}:l.Children.count(e.children)?e.children:null)}Ai.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0};var ji=n(2),Ti=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),ki=n(3),Ii=function(e,t,n,r,i){var a="form-control";return"sm"===r&&(a+=" form-control-sm"),"lg"===r&&(a+=" form-control-lg"),ti(t,n)&&ti(e,n)&&(a+=" is-invalid"),i&&(a+=" ".concat(i)),a},Li=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function _i(e){var t=e.label,n=e.checkboxLabelClassName,r=Li(e,["label","checkboxLabelClassName"]);return l.createElement(ki.Form.Group,null,l.createElement("div",{className:"custom-control custom-checkbox"},l.createElement($c,Object.assign({className:"custom-control-input"},r)),l.createElement(ki.Form.Label,{className:"custom-control-label cursor-pointer ".concat(n),htmlFor:r.id},t)))}var Pi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function xi(e){var t=e.title,n=e.placement,r=e.trigger,i=e.spanHack,a=e.children;return i?l.createElement(ki.OverlayTrigger,{placement:n,overlay:l.createElement(ki.Tooltip,{id:"".concat(t,"-").concat(Pi())},t),trigger:r},l.createElement("span",{className:"d-flex justify-content-center align-items-center"},a)):l.createElement(ki.OverlayTrigger,{placement:n,overlay:l.createElement(ki.Tooltip,{id:"".concat(t,"-").concat(Pi())},t),trigger:r},a)}xi.defaultProps={trigger:["hover","click","focus"],placement:"top"};var Ni,Di,Ri=n(38),Mi=n(85),Ui=n.n(Mi),Fi=n(86),Vi=n.n(Fi),Bi=n(87),Hi=n.n(Bi),zi=n(88),qi=n.n(zi),Ji=(n(89),n(90)),$i=n.n(Ji),Ki=n(91),Wi=n.n(Ki),Yi=n(92),Gi=n.n(Yi),Zi=n(93),Qi=n.n(Zi),Xi=n(94),ea=n.n(Xi),ta=n(95),na=n.n(ta),ra=n(96),ia=n.n(ra),aa=n(97),oa=n.n(aa),ca=n(98),sa=n.n(ca),ua=n(99),la=n.n(ua),fa=n(100),pa=n.n(fa),da=n(101),ma=n.n(da),ha=n(102),ya=n.n(ha),va=n(103),ba=n.n(va),ga=n(104),Sa=n.n(ga),Ea=n(105),Oa=n.n(Ea),Ca=n(106),wa=n.n(Ca),Aa=n(107),ja=n.n(Aa),Ta=n(108),ka=n.n(Ta),Ia=n(109),La=n.n(Ia),_a=n(110),Pa=n.n(_a),xa=n(111),Na=n.n(xa),Da=n(112),Ra=n.n(Da),Ma=n(113),Ua=n.n(Ma),Fa=n(114),Va=n.n(Fa),Ba=n(115),Ha=n.n(Ba),za=n(116),qa=n.n(za),Ja=n(117),$a=n.n(Ja),Ka=n(118),Wa=n.n(Ka),Ya=n(119),Ga=n.n(Ya),Za=n(120),Qa=n.n(Za),Xa=(n(121),n(122),n(123)),eo=n.n(Xa),to=n(124),no=n.n(to),ro=n(125),io=n.n(ro),ao=n(126),oo=n.n(ao),co=n(127),so=n.n(co),uo=n(128),lo=n.n(uo),fo=n(129),po=n.n(fo),mo=(n(130),n(131)),ho=n.n(mo),yo=n(132),vo=n.n(yo),bo=n(133),go=n.n(bo),So=n(134),Eo=n.n(So),Oo=n(135),Co=n.n(Oo),wo=n(136),Ao=n.n(wo),jo=n(137),To=n.n(jo),ko=(n(138),n(139)),Io=n.n(ko),Lo=n(140),_o=n.n(Lo),Po=n(141),xo=n.n(Po),No=n(142),Do=n.n(No),Ro=n(143),Mo=n.n(Ro),Uo=n(144),Fo=n.n(Uo),Vo=n(145),Bo=n.n(Vo),Ho=n(146),zo=n.n(Ho),qo=n(147),Jo=n.n(qo),$o=n(148),Ko=n.n($o),Wo=n(149),Yo=n.n(Wo),Go=n(150),Zo=n.n(Go),Qo=n(151),Xo=n.n(Qo),ec=n(152),tc=n.n(ec),nc=n(153),rc=n.n(nc),ic=n(154),ac=n.n(ic),oc=n(155),cc=n.n(oc),sc=n(156),uc=n.n(sc),lc=n(157),fc=n.n(lc),pc=n(158),dc=n.n(pc),mc=n(159),hc=n.n(mc),yc=n(160),vc=n.n(yc),bc=n(161),gc=n.n(bc),Sc=n(162),Ec=n.n(Sc),Oc=n(163),Cc=n.n(Oc),wc=n(164),Ac=n.n(wc),jc=n(165),Tc=n.n(jc),kc=n(166),Ic=n.n(kc),Lc=n(167),_c=n.n(Lc),Pc=(n(168),n(169),n(170),n(171)),xc=n.n(Pc),Nc=n(172),Dc=n.n(Nc),Rc=[Ui.a,Hi.a,qi.a,Wi.a,ea.a,na.a,ia.a,oa.a,Qi.a,$i.a,Vi.a,sa.a,la.a,pa.a,ma.a,ya.a,Gi.a,ba.a,Sa.a,Oa.a,wa.a,ja.a,ka.a,La.a,Pa.a,Na.a,qa.a,$a.a,Ra.a,Ua.a,Va.a,Ha.a,Wa.a,oo.a,Xo.a,rc.a,tc.a,fc.a,ac.a,cc.a,uc.a,Eo.a,Ao.a,Co.a,Ga.a,Qa.a,vo.a,go.a,ho.a,eo.a,so.a,_o.a,xo.a,lo.a,po.a,Do.a,no.a,Io.a,Mo.a,Fo.a,To.a,Bo.a,Jo.a,zo.a,dc.a,hc.a,Ko.a,Yo.a,io.a,Zo.a,Ec.a,gc.a,vc.a,Cc.a,Tc.a,Ac.a,Ic.a,_c.a,Dc.a,xc.a];function Mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Minus="minus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects",e.Download="download",e.Print="print",e.CreateInteractive="create-interactive",e.Play="play",e.PlayCircle="play-circle",e.Twitter="twitter",e.Facebook="facebook",e.Classrooms="classrooms",e.Group="group",e.Timer="timer",e.CrossCircle="cross-circle",e.Hamburger="hamburger"}(Ni||(Ni={}));var Uc;function Fc(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)}}d.extend(Ri.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(Di=Ri.library).add.apply(Di,function(e){if(Array.isArray(e))return Mc(e)}(Uc=Rc)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(Uc)||function(e,t){if(e){if("string"==typeof e)return Mc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mc(e,t):void 0}}(Uc)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var Vc,Bc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(e,t){return Ri.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return Ri.findIconDefinition({prefix:r,iconName:e})}}])&&Fc(t.prototype,n),r&&Fc(t,r),e}().Instance,Hc=Ni;function zc(e){var t=e.svgName,n=e.className,r=void 0===n?"d-inline-block svg-container":n,i=e.tagName,a=void 0===i?"span":i,o=e.size,c=void 0===o?Vc.Standard:o,s=e.onClick,u=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,d=a,h={dangerouslySetInnerHTML:{__html:Bc.getSvg(t)},className:"".concat(r," ").concat(c),onClick:m(s)?s:null};return u?l.createElement(xi,{title:u,placement:p},l.createElement(d,Object.assign({},h))):l.createElement(d,Object.assign({},h))}function qc(e){var t=ci().values[e.fieldName];return"string"!=typeof t?l.createElement(l.Fragment,null):l.createElement("div",{className:"float-right text-muted"},t.length,"/",e.limit)}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(Vc||(Vc={}));var Jc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $c(e){var t=e.children,n=Jc(e,["children"]);return l.createElement(yi,Object.assign({},Ci.a.omit(n,["formSize"])),m(t)?function(e){return t(e)}:l.Children.count(t)?t:null)}function Kc(e){var t=e.label,n=e.className,r=e.showCharacterCounter,i=e.showRequiredStar,a=e.infoTooltip,o=e.formSize,c=Jc(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","formSize"]),s=ci(),u=s.errors,f=s.touched,p=function(){};if("checkbox"===c.type){var d=Ci.a.omit(e,["formSize"]);return e.disabled&&(d.onChange=p),l.createElement(_i,Object.assign({},d))}var m=Object.assign(Object.assign({},c),{className:Ii(u,f,c.name,o,n)});return e.disabled&&(m.onChange=p),l.createElement(ki.Form.Group,null,!!t&&l.createElement(ki.Form.Label,{htmlFor:c.id},t,i&&l.createElement("span",{className:"text-danger"},"*"),a&&l.createElement(xi,{title:a},l.createElement("span",null,l.createElement(zc,{svgName:Hc.Info})))),l.createElement($c,Object.assign({},m)),!!r&&!!c.maxLength&&l.createElement(qc,{fieldName:c.name,limit:c.maxLength}),l.createElement(Oi,{name:c.name},(function(e){return l.createElement(ki.Form.Control.Feedback,{type:"invalid"},e)})))}function Wc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gc(e){var t,n=Wc(l.useState(!1),2),r=n[0],i=n[1];return l.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?i(!0):i(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),l.useEffect((function(){e.isSubmitting&&i(!1)}),[e.isSubmitting]),r}var Zc=n(203),Qc=n(50),Xc=n(22),es=n(4),ts="AlertService",ns="LanguageService",rs=n(11),is=n(37);function as(e){return(as="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 os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cs(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 ss(e,t){return(ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function us(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fs(e);if(t){var i=fs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ls(this,n)}}function ls(e,t){return!t||"object"!==as(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fs(e){return(fs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ps(e){return Qc.sanitize(e).replace("&amp;","&")}var ds=function(e){!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&&ss(e,t)}(a,e);var t,n,r,i=us(a);function a(){return os(this,a),i.apply(this,arguments)}return t=a,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return ns}},{key:"setConfig",value:function(e){this.polyglot=new Zc({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||es.c.throw(new rs.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!is.a.isDevelopment){var i=window.trackJs;return i&&i.console.error("No phrase set for ".concat(r," in language config")),""}es.c.throw(new rs.a("No phrase set for ".concat(r," in language config.")))}if(!n||d.isEmpty(n)){var a=this.cache[r];if(a)return a;var o=this.polyglot.t(r);return this.cache[r]=o,o}var c=d.omit(n,"smartCount"),s={};for(var u in c){var l=c[u];"number"==typeof l&&(l=l.toString()),s[u]=ps(l)}d.isNumber(n.smartCount)&&(s.smart_count=n.smartCount);var f="".concat(r,":").concat(d.values(Object.assign({},s)).join(":")),p=this.cache[f];if(p)return p;var m=this.polyglot.t(r,s);return this.cache[f]=m,m}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}}])&&cs(t.prototype,n),r&&cs(t,r),a}(Xc.a).Instance,ms=l.createContext(""),hs=l.memo((function(e){var t=e.phrase,n=e.namespace,r=e.options,i=l.useContext(ms),a=n||i,o=ds.getPhrase(a,t,r);return l.createElement("span",{dangerouslySetInnerHTML:{__html:o}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&Ci.a.isEqual(e.options,t.options)}));function ys(e){var t=ci(),n=Gc(t);return l.createElement(ki.Button,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size},t.isSubmitting?l.createElement(ki.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?l.createElement(l.Fragment,null,e.submitText):l.createElement(hs,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}function vs(e){var t=ci();return l.createElement(vi,null,l.createElement(Kc,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this company",autoFocus:!0}),l.createElement(ys,{isNew:e.isNew}))}function bs(e){return l.createElement(Ai,{initialValues:e.company,validationSchema:Ti,onSubmit:e.saveCompany},l.createElement(vs,{isNew:!(e.company&&e.company.id)}))}function gs(e){var t=Object(v.useDispatch)(),n=oe.useBasicFetch(ye(e.id));return l.createElement(l.Fragment,null,!!n.data&&l.createElement(bs,{company:n.data,saveCompany:function(n,r){return oe.fetch(t,be(e.id,n,r))}}))}function Ss(){var e=Object(v.useDispatch)();return l.createElement(bs,{saveCompany:function(t,n){oe.fetch(e,ve(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.PEOPLE,action:i.Companies.EDIT_COMPANY,args:[e.id]})}),n))}})}var Es,Os=n(204),Cs=n(205),ws=n.n(Cs);function As(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return js(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ts(e){return(Ts="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(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(Es||(Es={}));var ks={isNumber:function(e){return ks.isType(e,"number")},isString:function(e){return ks.isType(e,"string")},isType:function(e,t){return Ts(e)===t}},Is=n(21),Ls=n.n(Is);function _s(e){return function(e){if(Array.isArray(e))return Ps(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ps(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ns,Ds=[{empty:!0}];function Rs(e,t){return Ci.a.isObject(e)&&e.hasOwnProperty(t)&&ks.isString(e[t])}function Ms(e,t,n){return function(r){var i=r.value;if(i.length||n(),!(i.length<e.activationLength)){if(e.local){var a=m(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):(c=i,s=e.local,u=e.valueKey,(l=c.trim().toLowerCase()).length?s.filter((function(e){return!(!Rs(e,u)||!ks.isString(e[u]))&&e[u].trim().toLowerCase().includes(l)})):[]),o=!a.length&&e.getEmptyStateComponent;t((function(e){var t;return Object.assign(Object.assign({},e),(xs(t={},Ns.Local,a),xs(t,Ns.Empty,o?Ds:[]),t))}))}var c,s,u,l;e.getRemoteUrl&&function(e,t,n,r){var i=m(e)&&e(t);i&&oe.ajaxRequest({resource:i,type:ce.a.GET,success:n,error:function(){},headers:r})}(e.getRemoteUrl,i,(function(n){var r=m(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n,i=!r.length&&e.getEmptyStateComponent;t((function(e){var t;return Object.assign(Object.assign({},e),(xs(t={},Ns.Remote,r),xs(t,Ns.Empty,i?Ds:[]),t))}))}),e.requestHeaders)}}}function Us(e,t,n,r,i,a,o){var c=function(t){return e[t]||[]},s=t?c(Ns.Recent):[],u=c(Ns.Local),l=c(Ns.Remote),f=c(Ns.Empty);if(f.length&&n)return[{data:f}];var p=[];s.length&&p.push({title:r,data:s});var d=[].concat(_s(u),_s(l));return d.length?(Number.isInteger(o)&&d.length>o&&(d=d.slice(0,o)),m(a)?p.push.apply(p,_s(a(d))):p.push({title:i,data:d}),p):p}function Fs(e){return e.data}function Vs(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(Ls.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":Ls.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(Ls.a.sectionContainer)}}function Bs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=Vs(t),r=Object.assign(n,e);return r}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Empty="empty"}(Ns||(Ns={}));var Hs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function zs(e,t,n,r,i){var a="form-control";return n||(a+=" ".concat(Ls.a.inputWithoutHighlight)),"left"===e&&(a+=" ".concat(Ls.a.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t)&&(a+=" ".concat(Ls.a.inputWithRightIcon)),"right"===e&&t&&(a+=" ".concat(Ls.a.inputWithTwoRightIcons)),"lg"===i&&(a+=" form-control-lg"),"sm"===i&&(a+=" form-control-sm"),r&&(a+="".concat(r)),a}function qs(e){var t="d-inline-block svg-container";return m(e)?t+" cursor-pointer":t}function Js(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.showClearInputIcon,i=e.onClickClearInput,a=e.highlightOnFocus,o=e.className,c=e.formSize,s=Hs(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),u=function(){return l.createElement("div",{className:"d-inline-block"},l.createElement(zc,{svgName:Hc.Search,size:Vc.Standard,onClick:t,className:qs(t)}))};return l.createElement("div",{className:"position-relative ".concat(Ls.a.inputContainer)},"left"===n&&l.createElement("div",{className:"".concat(Ls.a.iconContainer," ").concat(Ls.a.leftIconContainer)},l.createElement(u,null)),l.createElement("input",Object.assign({className:zs(n,r,a,o,c)},s)),("right"===n||!!r)&&l.createElement("div",{className:"".concat(Ls.a.iconContainer," ").concat(Ls.a.rightIconContainer)},!!r&&l.createElement((function(){return l.createElement("div",{className:"d-inline-block text-muted ".concat(Ls.a.clearButton)},l.createElement(zc,{svgName:Hc.Close,size:Vc.Standard,onClick:i,className:qs(i)}))}),null),"right"===n&&l.createElement(u,null)))}function $s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ks(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ks(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ws=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ys=m;function Gs(e){return e.renderAsForm?l.createElement("form",{onSubmit:e.onSubmit},e.children):l.createElement(l.Fragment,null,e.children)}function Zs(e){var t,n,r,i=(t=e.initialSuggestions,n=e.recentSearches,xs(r={},Ns.Recent,n),xs(r,Ns.Local,t),xs(r,Ns.Remote,[]),xs(r,Ns.Empty,[]),r),a=$s(l.useState(e.initialQuery||""),2),o=a[0],c=a[1],s=$s(l.useState(i),2),u=s[0],f=s[1],p=function(e){var t=As(Object(l.useState)(window.matchMedia(e).matches),2),n=t[0],r=t[1];return Object(l.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&r(t.matches);var i=function(){return r(t.matches)};return t.addListener(i),function(){return t.removeListener(i)}}),[e]),n}(Es.XS);l.useEffect((function(){var t=e.initialQuery||"";o!==t&&c(t)}),[e.initialQuery]);var d=function(){f(i)},h=function(t){t.preventDefault(),Ys(e.onSubmit)&&e.onSubmit(o)};return l.createElement(Gs,{onSubmit:h,renderAsForm:!!e.renderAsForm},l.createElement(Os,Object.assign({suggestions:Us(u,!o,!!e.getEmptyStateComponent,e.recentSearchHeading||ds.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:Ms(e,f,d),onSuggestionsClearRequested:function(){e.alwaysRenderSuggestions||d()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.empty||(e.clearQueryOnSelect&&c(""),e.onSuggestionSelected(r))},getSuggestionValue:function(t){return e.updateQueryOnSelection?function(e,t){return Rs(t,e)?t[e]:""}(e.valueKey,t):o},renderSuggestion:function(t){return t&&t.empty?o.length>=e.activationLength&&m(e.getEmptyStateComponent)?e.getEmptyStateComponent(o):l.createElement(l.Fragment,null):Ys(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return Rs(t,e)?l.createElement(l.Fragment,null,t[e]):l.createElement(l.Fragment,null)}(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,r=n.ref,i=Ws(n,["ref"]);return e.customScrollbarProps?l.createElement(ws.a,Object.assign({ref:r},e.customScrollbarProps,i),t.children):l.createElement("div",Object.assign({ref:r},i),t.children)},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!p,inputProps:{placeholder:e.placeholder||ds.getPhrase("shared.searchBar","placeholder"),value:o,onChange:function(t,n){var r=n.newValue;c(r),Ys(e.onQueryChange)&&e.onQueryChange(r)},onKeyDown:function(t){8===t.keyCode&&e.onBackspace&&!o&&e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&h,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!o.length,onClickClearInput:function(){c(""),Ys(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size},renderInputComponent:Js,theme:Bs(e.theme,!!u.empty.find((function(e){return e.empty}))),multiSection:!0,renderSectionTitle:function(t){return function(e,t){if(e.title)return l.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},l.createElement("strong",null,e.title))}(t,e.sectionTitleClassName)},getSectionSuggestions:Fs},e.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}Zs.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0};var Qs,Xs=n(13);function eu(e){return(eu="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 tu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nu(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 ru(e,t){return(ru=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ou(e);if(t){var i=ou(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return au(this,n)}}function au(e,t){return!t||"object"!==eu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ou(e){return(ou=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(Qs||(Qs={}));var cu,su=new(function(e){!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&&ru(e,t)}(a,e);var t,n,r,i=iu(a);function a(){var e;return tu(this,a),(e=i.apply(this,arguments)).contextHistory=[],e}return t=a,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return Qs.Context}},{key:"initialize",value:function(){this.listenTo(Y.a.SHELL,p.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}}])&&nu(t.prototype,n),r&&nu(t,r),a}(p.Service)),uu=n(5);!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(cu||(cu={}));var lu="global:analytics";function fu(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)}}var pu=Xs.EventVersion.V1,du=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.data=n,this.actionContext=r,this.eventVersion=i||pu}var t,n,r;return t=e,(n=[{key:"isType",value:function(e){return e===this.type}},{key:"enrich",value:function(e,t){this.validateKey(e),this[e]=t}},{key:"get",value:function(e){if(e&&this[e])return this[e]}},{key:"validateKey",value:function(e){"type"!==e&&"data"!==e||p.ErrorHelper.throw(new rs.a("".concat(e," is not a valid key"))),this[e]&&p.ErrorHelper.throw(new rs.a("Event already contains an enrichment named ".concat(e)))}}])&&fu(t.prototype,n),r&&fu(t,r),e}(),mu=function(e,t,n,r){uu.Radio.channel(lu).trigger(cu.Inlet,new du(e,t,n,r))};function hu(){var e=su.getCurrentContext().appLink;return d.isObject(e)||p.ErrorHelper.throw(new rs.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function yu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,r=e.workflowPhase,i=void 0===r?null:r,a=e.descriptor,o=void 0===a?null:a;return t||p.ErrorHelper.throw(new rs.a("location must be set.")),n||p.ErrorHelper.throw(new rs.a("entity must be set.")),{productArea:hu(),location:t,entity:n,descriptor:o,workflowPhase:i}}function vu(){return p.LocationUtils.GetCurrentPath()+p.LocationUtils.GetCurrentQueryString()}var bu={logUserAction:function(e,t){if(function(e){return!(!d.isArray(e)||!d.every(e,(function(e){return d.isObject(e)})))||!!d.isObject(e)}(e)&&d.isObject(t)){var n=bu.buildUserActionEvent(t),r=n.userAction,i=n.action,a=n.eventVersion;mu(r,e,i,a)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:vu(),appLink:e},t);mu(Xs.UserAction.Navigate,n)},mergeOptions:function(e,t){return d.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return yu(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,i=yu(e);return{userAction:r,action:i,eventVersion:n}},buildCurrentLocation:function(){return vu()},buildSearchEvent:function(e,t){return{data:{query:e},action:yu({entity:Xs.EntityType.Video,location:Xs.LocationContext.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===Xs.SearchQueryType.Series&&(r=Xs.EntityType.Series),n===Xs.SearchQueryType.Folder&&(r=Xs.EntityType.Folder),n===Xs.SearchQueryType.Tags&&(r=Xs.EntityType.Tag),n===Xs.SearchQueryType.Video&&(r=Xs.EntityType.Video),n===Xs.SearchQueryType.Subjects&&(r=Xs.EntityType.Classification);var i={instant:{},query:e};return t.id&&(i.instant.selectedId=t.id),t.name&&(i.instant.selectedName=t.name),{data:i,action:yu({entity:r,location:Xs.LocationContext.SearchBar})}},mapInteractionType:function(e){switch(e){case Xs.InteractionType.DragDrop:return Xs.InteractionTypeDescriptor.DragDrop;case Xs.InteractionType.FileSelect:return Xs.InteractionTypeDescriptor.FileSelect;default:return}}};function gu(e){var t=e.appLink,n=e.appLinkOptions,r=e.className,i=e.style,a=e.children,o=e.tag,c=void 0===o?"a":o;if(!t)return l.createElement("span",{className:r||""},a);var s=p.AppLinkHelper.getHref(t),u={onClick:function(r){var i;r.preventDefault(),null===(i=e.onClick)||void 0===i||i.call(e,r),e.analyticsData&&e.analyticsOptions&&bu.logUserAction(Object.assign({href:s},e.analyticsData),e.analyticsOptions),p.AppLinkHelper.trigger(t,n)},href:s,className:r,style:i};return e.title&&(u.title=e.title),l.createElement(c,Object.assign({},u),a)}function Su(e){var t=e.backToName,n=e.appLink;return l.createElement(gu,{appLink:n,className:"d-inline-flex align-items-center"},l.createElement(zc,{svgName:Hc.ArrowLeft,size:Vc.Small}),l.createElement("span",{className:"ml-1"},"Back to ".concat(t)))}function Eu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ou(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ou(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}gu.defaultProps={appLinkOptions:{}};var Cu,wu,Au,ju,Tu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ku(e){var t=e.selected,n=e.onToggle,r=Tu(e,["selected","onToggle"]),i=Eu(l.useState(t),2),a=i[0],o=i[1];l.useEffect((function(){return o(t)}),[t]);return l.createElement(ki.Form.Check,Object.assign({type:"checkbox",id:"checkbox-".concat(Pi()),checked:a,onChange:function(){o(!a),n(!a)}},r))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(Cu||(Cu={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners",e[e.None=99999]="None"}(wu||(wu={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(Au||(Au={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(ju||(ju={}));var Iu,Lu,_u=function(e,t){var n=d.map(t,(function(e,t){return t&&Array.isArray(e)?e.map((function(e){return"".concat(t,"=").concat(encodeURIComponent(e))})).join("&"):t&&void 0!==e?"".concat(t,"=").concat(encodeURIComponent(e)):""})),r=d.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return r?"".concat(e,"?").concat(r):e},Pu=function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}};function xu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(Lu||(Lu={}));var Nu,Du=(xu(Iu={},wu.Banners,Lu.Banner),xu(Iu,wu.Thumbnails,Lu.Thumbnail),Iu),Ru=function(e){return"/v1/category-map/".concat(e)},Mu={createUrl:function(e,t){return Mu._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?Mu._createUrl(e.url,n):Mu._createCategoryMappedUrl(t,n)},createResourceImage:function(e,t,n){return Mu._createUrl(e,Object.assign({url:t},n))},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,i=e.type,a=Pu(n,"".concat(Ru(Du[i]))),o=Object.assign({name:Mu.Rfc3986EncodeURIComponent(r)},t);return Mu._createUrl(a,o)},_createUrl:function(e,t){if(e){if(Ci.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&",i=e;return i.endsWith("/")&&(i=i.slice(0,-1)),i+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof p.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:Cu.Small,bgColor:"000"},t);return Mu._createUrl(n,r)}},getDisplayImageFromObject:function(e){var t,n,r,i,a;return"tallPoster"in e&&(null===(t=e.tallPoster)||void 0===t?void 0:t.url)?e.tallPoster:"cover"in e&&(null===(n=e.cover)||void 0===n?void 0:n.url)?e.cover:"thumbnail"in e&&(null===(r=e.thumbnail)||void 0===r?void 0:r.url)?e.thumbnail:"video"in e&&(null===(a=null===(i=e.video)||void 0===i?void 0:i.thumbnail)||void 0===a?void 0:a.url)?e.video.thumbnail:null}};function Uu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fu=(Uu(Nu={},wu.Thumbnails,{width:1280,height:720}),Uu(Nu,wu.Banners,{width:3600,height:666}),Uu(Nu,wu.Covers,{width:1080,height:1080}),Uu(Nu,wu.Posters,{width:1e3,height:1500}),Uu(Nu,wu.TallPosters,{width:1080,height:1920}),Uu(Nu,wu.HeroBanners,{width:1920,height:640}),Uu(Nu,wu.None,{width:1,height:1}),Uu(Nu,wu.Avatars,{width:256,height:256}),Nu);function Vu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Hu,zu=l.createContext(void 0),qu=function(e){var t=e.children,n=Vu(l.useState(),2),r=n[0],i=n[1],a=Vu(l.useState(!1),2),o=a[0],c=a[1],s=Vu(l.useState(),2),u=s[0],f=s[1],p={getDataUrl:function(){var e=r;return i(null),e},setDataUrl:i,imageUploaded:o,getImage:function(){var e=u;return f(null),c(!1),e},setImage:function(e){f(e),c(!0)}};return l.createElement(zu.Provider,{value:p},t)},Ju={onFileSelect:function(e,t,n){if(t&&t.length){var r=new FileReader;r.addEventListener("load",(function(){return Ju.onReaderLoad(r,e,n)})),r.readAsDataURL(t[0])}},onReaderLoad:function(e,t,n){var r=new Image;r.src=e.result;var i=Fu[t].width,a=Fu[t].height;r.addEventListener("load",(function(){Ju.isImageValid(t,r)&&m(n)?n(r):alert("Image too small: minimum dimensions are ".concat(i," x ").concat(a))}))},isImageValid:function(e,t){var n=Fu[e].width,r=Fu[e].height;return!(n&&t.width<n)&&!(r&&t.height<r)},mapImageTypeToString:function(e){switch(e){case wu.Avatars:return"avatars";case wu.Thumbnails:return"thumbnails";case wu.Logos:return"logos";case wu.Covers:return"covers";case wu.Posters:return"posters";case wu.TallPosters:return"tallposters";case wu.HeroBanners:return"herobanners";case wu.None:default:return""}}},$u=["pdf"],Ku=["doc","docx","dotx","dot","rtf","docm","odt"],Wu=["csv","txt"],Yu=["xls","xlt","xlsx"],Gu=["jpg","tif","png","bmp","gif","jpeg"],Zu=["zip","rar"],Qu=["ppt","pot","pps","pptx"],Xu=["srt"],el={IMAGES:".".concat(Gu.join(",.")),RESOURCES:".".concat([].concat(Ku,Yu,Qu,$u,Wu,Gu,Zu).join(",.")),SUBTITLES:".".concat(Xu.join(",."))},tl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function nl(e){var t=e.onFileSelect,n=e.acceptMultiple,r=e.mimeType,i=e.label,a=e.error,o=e.touched,c=tl(e,["onFileSelect","acceptMultiple","mimeType","label","error","touched"]),s="custom-file-input cursor-pointer";a&&o&&(s+=" is-invalid");var u=Object.assign({type:"file",className:s,onChange:function(e){var n=e.currentTarget.files;n&&n.length&&m(t)&&t(n)},autoComplete:"off",value:"",multiple:!!n},r?{accept:r}:{});return l.createElement("div",{className:"form-group"},l.createElement("div",{className:"custom-file"},l.createElement(yi,Object.assign({},u,c),e.children),l.createElement(ki.Form.Label,{className:"custom-file-label",htmlFor:c.id},i)))}function rl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return il(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return il(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function il(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ol=(al(Hu={},wu.Thumbnails,"Thumbnail"),al(Hu,wu.Banners,"Banner"),al(Hu,wu.Avatars,"Avatar"),al(Hu,wu.Logos,"Logo"),al(Hu,wu.Covers,"Cover"),al(Hu,wu.Posters,"Poster"),al(Hu,wu.TallPosters,"Tall Poster"),al(Hu,wu.HeroBanners,"Hero Banner"),al(Hu,wu.None,"Image"),Hu);function cl(e){var t=ci(),n=ti(null==t?void 0:t.values,e.fieldName),r=l.useContext(zu),i=r.setDataUrl,a=r.getImage,o=r.imageUploaded,c=rl(l.useState(!1),2),s=c[0],u=c[1],f=rl(l.useState(n),2),d=f[0],h=f[1],y=rl(l.useState(!1),2),v=y[0],b=y[1];function g(t){u(!0),i(t.src),p.AppLinkHelper.trigger({application:e.application,action:e.uploadAction,args:[e.imageType]})}l.useEffect((function(){if(s){var n,r=a();if(r)u(!1),h(r),n=r,m(e.setSelectedImage)?e.setSelectedImage(n):t&&t.setFieldValue(e.fieldName,{fileId:n.id,fileIdType:ju.ImageAPIv2})}}),[o]);var S=e.label||ol[e.imageType]||"Image";return l.createElement("div",{className:"form-group"},l.createElement("div",{className:"form-control h-auto py-2"},l.createElement("label",null,S),l.createElement("em",{className:"ml-1 text-muted"},"(Minimum dimensions are ".concat(Fu[e.imageType].width,"px")+" x ".concat(Fu[e.imageType].height,"px)")),l.createElement(nl,{label:"Choose a ".concat(S.toLowerCase()),name:"image",mimeType:el.IMAGES,onFileSelect:function(t){return Ju.onFileSelect(e.imageType,t,g)}}),!!d&&!!d.url&&l.createElement(l.Fragment,null,!v&&l.createElement("div",{className:"pb-2 ".concat(e.imageType===wu.Banners?"w-100":"w-50")},l.createElement("img",{src:Mu.createUrl(d.url),className:"img img-fluid"})),l.createElement("div",{className:"d-flex justify-content-center"},l.createElement(zc,{svgName:v?Hc.ChevronDown:Hc.ChevronUp,size:Vc.Large,className:"svg-container cursor-pointer",onClick:function(){return b(!v)},title:v?"Show image":"Hide image",tooltipPlacement:"top"})))))}var sl=function(){uu.Radio.channel(Y.a.SHELL).trigger("prevent:scroll:top")};function ul(e,t){return t?{application:e.application,action:e.action,args:e.args,params:Object.assign({},e.params,{cursor:t})}:null}function ll(e){var t=e.appLink,n=e.cursors,r=e.className,i=e.buttonVariant;function a(e){sl(),bu.logUserAction({page:e},{location:Xs.LocationContext.Pagination,entity:Xs.EntityType.Pagination,actionType:Xs.UserAction.Navigate})}return l.createElement(ms.Provider,{value:"shared.pagination"},l.createElement("div",{className:r},l.createElement(gu,{appLink:ul(t,n.previous),className:"btn btn-".concat(i," mr-1 ").concat(n.previous?"":"disabled"),onClick:function(){return a("previous")}},l.createElement(hs,{phrase:"previous"})),l.createElement(gu,{appLink:ul(t,n.next),className:"btn btn-".concat(i," ").concat(n.next?"":"disabled"),onClick:function(){return a("next")}},l.createElement(hs,{phrase:"next"}))))}function fl(e){return l.createElement("tr",null,e.columns.map((function(t,n){var r=function(){return l.createElement(l.Fragment,null,m(t.accessor)?t.accessor(e.object):e.object[t.accessor])},i=m(t.appLink)?t.appLink(e.object):t.appLink;return l.createElement("td",{key:n},i?l.createElement(gu,{appLink:i},l.createElement(r,null)):l.createElement(r,null))})),!!e.addNewObjectColumn&&l.createElement("td",null))}function pl(e){return l.createElement(ki.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,e.columns.map((function(e,t){return l.createElement("th",{key:t},e.header)})),!!e.newObjectAppLink&&l.createElement("th",null,l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(gu,{appLink:e.newObjectAppLink},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New ".concat(e.objectName))))))),l.createElement("tbody",null,e.objects.map((function(t){return l.createElement(fl,{key:t.id,object:t,columns:e.columns,addNewObjectColumn:!!e.newObjectAppLink})}))))}function dl(e){if(!e.collection)return l.createElement(l.Fragment,null);var t=e.collection,n=t.data,r=t.pagination;return l.createElement(l.Fragment,null,!!n&&l.createElement(pl,{objects:n,columns:e.columns,newObjectAppLink:e.newObjectAppLink,objectName:e.objectName}),!!r&&!!r.cursors&&l.createElement(ll,{cursors:r.cursors,appLink:e.collectionAppLink}))}ll.defaultProps={className:"py-2",buttonVariant:"secondary"};var ml=n(42),hl=n.n(ml);function yl(e){var t="".concat(e.className," ").concat(hl.a.iconButton);e.children?t+=" ".concat(hl.a.iconWithText):t+=" ".concat(hl.a.iconOnly);var n=l.createElement(zc,{svgName:e.svgName,className:"svg-container ".concat(hl.a.svg),size:e.svgSize});return e.appLink?l.createElement(gu,{appLink:e.appLink,className:t,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n,e.children):l.createElement("button",{className:t,onClick:function(t){e.analyticsData&&e.analyticsOptions&&bu.logUserAction(e.analyticsData,e.analyticsOptions),m(e.onClick)&&e.onClick(t)}},n,e.children)}var vl=n(206),bl=n.n(vl);function gl(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function Sl(e){if(e.action.appLink)return l.createElement(gu,{appLink:e.action.appLink,onClick:e.action.onClick,className:gl(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions},e.action.label);function t(){e.action.analyticsData&&e.action.analyticsOptions&&bu.logUserAction(e.action.analyticsData,e.action.analyticsOptions),m(e.action.onClick)&&e.action.onClick()}return l.createElement("span",{className:"cursor-pointer ".concat(gl(e.action.className)),onClick:t,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&t()}},e.action.label)}function El(e){if(!e.actions||!e.actions.length)return l.createElement(l.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var n="actions-dropdown-".concat(Pi()),r="dropdown-toggle px-0 ".concat(bl.a.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),l.createElement("div",{className:t},l.createElement("button",{className:r,type:"button",id:n,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},l.createElement(zc,{svgName:Hc.More,size:Vc.Small})),l.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":n},e.actions.map((function(e,t){return e.tooltip?l.createElement(xi,{key:t,title:e.tooltip,spanHack:!0},l.createElement(Sl,{action:e})):l.createElement(Sl,{key:t,action:e})}))))}function Ol(e){var t=e.showSpinner?l.createElement(ki.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip)return l.createElement(xi,{title:e.tooltip},l.createElement("span",null,l.createElement(yl,{appLink:e.appLink,svgName:e.svgName,svgSize:e.svgSize,onClick:e.onClick,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t)));if(e.svgName)return l.createElement(yl,{onClick:e.onClick,appLink:e.appLink,svgName:e.svgName,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t);if(e.appLink)return l.createElement(gu,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t);return l.createElement("button",{onClick:function(t){e.analyticsData&&e.analyticsOptions&&bu.logUserAction(e.analyticsData,e.analyticsOptions),m(e.onClick)&&e.onClick(t)},className:e.className},t)}function Cl(e){var t=l.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),n=[],r=[];t.forEach((function(e){e.button?n.push(e):r.push(e)}));var i="d-flex";return e.className&&(i+=" ".concat(e.className)),n.length||r.length?l.createElement("div",{className:i},l.createElement(l.Fragment,null,l.createElement("span",{className:"d-flex align-items-center"},n.length?n.map((function(e,t){return l.createElement(l.Fragment,{key:t},function(){if(e.label)return l.createElement(Ol,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},e.label);var t=l.createElement(yl,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return e.tooltip?l.createElement(xi,{title:e.tooltip,spanHack:!0},t):t}())})):l.createElement(l.Fragment,null),e.sortComponent&&e.sortComponent,r.length?l.createElement(El,{actions:r,dropdownToggleClassName:e.actionsDropdownClassName}):l.createElement(l.Fragment,null)))):l.createElement(l.Fragment,null)}function wl(e){var t=e.object,n=e.actions;return l.createElement("div",{className:"d-flex justify-content-between py-2"},!!t&&l.createElement("h5",null,t.name),!!n&&l.createElement("span",null,l.createElement(Cl,{actions:n})))}function Al(e){var t=e.objects,n=e.getAppLink,r=e.emptyMessage;return t?t.length?l.createElement("ul",{className:"list-unstyled"},t.map((function(e,t){return l.createElement("li",{key:t,className:"border rounded mb-3"},l.createElement(gu,{appLink:n(e),className:"d-block p-3"},e.name))}))):l.createElement("div",{className:"py-3"},l.createElement("p",null,r)):l.createElement(l.Fragment,null)}El.defaultProps={dropdownToggleClassName:"btn btn-light"},Al.defaultProps={emptyMessage:"There is nothing here."};function jl(e){var t=ci();return l.createElement(Kc,{as:"select",label:"Rating",name:"rating",id:"rating",value:t.values.rating&&t.values.rating.id,onChange:function(e){return t.setFieldValue("rating",e.target.value?{id:e.target.value}:{})},disabled:e.disabled},l.createElement(l.Fragment,null,l.createElement("option",{value:""},"Please select a rating"),e.ratings.map((function(e,t){return l.createElement("option",{key:t,value:e.id},function(e){return"".concat(e.name).concat(e.code?" (".concat(e.code,")"):"")}(e))}))))}var Tl={isItemActive:function(e,t){return t||(t=p.AppLinkHelper.getCurrentAppLink()),t.application===e.appLink.application&&(Array.isArray(e.activeActions)?e.activeActions.includes(t.action):t.action===e.appLink.action)}},kl=function(e){return Object.values(e).every((function(e){return!!e}))},Il=(n(207),function(e,t){return!!e&&!!t&&e.toString()===t.toString()}),Ll=function(e){return e.split(" ").map((function(e){return(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")})).join(" ")};function _l(e){return function(e){if(Array.isArray(e))return Pl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xl={find:function(e,t){if(e&&e.children&&e.children.length)for(var n=function e(n){if(Il(n.id,t))return n;var r=n.children;if(r&&r.length)for(var i=0;i<r.length;i++){var a=e(r[i]);if(a)return a}},r=0;r<e.children.length;r++){var i=n(e.children[r]);if(i)return i}},getPath:function(e,t){for(var n=[t],r=function(e){return e.hasOwnProperty("parentIds")&&Array.isArray(e.parentIds)&&e.parentIds.length?e.parentIds[0]:e.hasOwnProperty("parentId")?e.parentId:null},i=r(t);i;){var a=xl.find(e,i);a&&(n=[a].concat(_l(n))),i=a?r(a):null}return n}},Nl=function(e){return e&&e.groups?e.groups.map((function(e){return e.name})):[]};function Dl(e){var t=e.tabs,n=e.isItemActive;return l.createElement(ki.Nav,{fill:!0,variant:"tabs"},t.map((function(e,t){return l.createElement(ki.Nav.Item,{key:t},l.createElement(gu,{appLink:e.appLink,className:(r=n(e),r?"nav-link active":"nav-link")},e.label));var r})))}Dl.defaultProps={isItemActive:Tl.isItemActive};var Rl=n(23),Ml=n.n(Rl);function Ul(e){var t=e.name,n=e.appLink,r=e.onSelect,i=e.isDisabled,a=e.className,o=e.actions,c=Ml.a.text;return a&&(c+=" ".concat(a)),i?l.createElement("a",{className:"".concat(c," text-muted ").concat(Ml.a.disabled)},t):l.createElement(l.Fragment,null,n?l.createElement(gu,{appLink:n,className:c},t):l.createElement("a",{onClick:r,className:c},t),!!o&&l.createElement(Cl,{className:Ml.a.actions,actions:o}))}function Fl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bl(e){var t=e.tree,n=e.selectedIds,r=e.getAppLink,i=e.onSelect,a=e.isDisabled,o=e.actions,c=Array.isArray(n)&&n.some((function(e){return Il(t.id,e)})),s=l.useMemo((function(){return Array.isArray(n)&&n.some((function(e){return xl.find(t,e)}))}),[t,n]),u=Fl(l.useState(s),2),f=u[0],p=u[1],d=!!t.children&&!!t.children.length,h={name:t.name,appLink:m(r)?r(t):null,onSelect:m(i)?function(){return i(t)}:null,isDisabled:!!m(a)&&a(t),className:c&&Ml.a.selected||s&&Ml.a.parentOfSelected,actions:!!o&&o.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(t)})}))};return l.createElement("li",{className:"position-relative".concat(f?"":" ".concat(Ml.a.collapsed))},l.createElement("div",{className:"position-relative"},l.createElement("span",{className:Ml.a.node},d&&l.createElement(zc,{svgName:Hc.ChevronDown,size:Vc.Small,className:"svg-container ".concat(Ml.a.chevron),onClick:function(){return p(!f)}}),l.createElement(Ul,Object.assign({},h))),f&&l.createElement(zl,Object.assign({},e))))}var Hl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function zl(e){var t=e.tree,n=Hl(e,["tree"]);return t&&t.children?l.createElement("ul",{className:"m-0 p-0 ".concat(Ml.a.tree)},t.children.map((function(e){return l.createElement(Bl,Object.assign({key:e.id,tree:e},n))}))):l.createElement(l.Fragment,null)}var ql={getChord:function(e,t){return xl.getPath(e,t).map((function(e){return e.name})).join(" -> ")},getState:function(e,t){var n={};return Array.isArray(e)&&e.forEach((function(e){var r,i,a,o=xl.find(t,e);o&&(n=Object.assign((r={},i=e,a=ql.getChord(t,o),i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r),n))})),n}};function Jl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Wl(e){var t=e.onSelect,n=e.label,r=e.hideCollapseBtn,i=e.collapse,a=e.noSelectionMessage,o=e.isNodeDisabled,c=e.getSelectedItemAppLink,s=Kl(e,["onSelect","label","hideCollapseBtn","collapse","noSelectionMessage","isNodeDisabled","getSelectedItemAppLink"]),u=s.tree,f=s.selectedIds,p=Jl(l.useState(ql.getState(f,u)),2),d=p[0],h=p[1];l.useEffect((function(){return h(ql.getState(f,u))}),[f,u]);var y=Jl(l.useState(!!i),2),v=y[0],b=y[1];l.useEffect((function(){return b(!!i)}),[i]);var g=!r||!!n;return l.createElement(l.Fragment,null,g&&l.createElement("div",{className:"pb-2"},!!n&&l.createElement("label",{className:"m-0"},n),!r&&l.createElement("a",{className:"float-right cursor-pointer",onClick:function(){return b(!v)}},v?"Expand":"Collapse")),!v&&l.createElement("div",{className:"py-2 border-top"},l.createElement(zl,Object.assign({onSelect:function(e){return m(t)&&t(e)},isDisabled:o},s))),(!Ci.a.isEmpty(d)||!!a)&&l.createElement("div",{className:"py-2 border-top"},l.createElement("label",null,"Selected:"),l.createElement("ul",{className:"m-0"},Ci.a.isEmpty(d)?l.createElement("li",null,a):Object.keys(d).map((function(e,t){return l.createElement("li",{key:t},m(c)?l.createElement(gu,{appLink:c(e)},d[e]):d[e])})))))}var Yl=n(51);var Gl=function(e){return e&&!(e.data&&e.data.length)},Zl=function(e){return e&&e.data&&e.data.length},Ql=function(e){var t="bg-white";return e&&(t+=" ".concat(e)),t};function Xl(e){var t=e.video,n=e.getVideoAppLink,r=e.getVideoActions,i=e.className,a=void 0===i?"":i,o=e.itemNumber,c=m(n)&&n(t);return l.createElement("tr",{className:Ql(a)},!!o&&l.createElement("td",null,l.createElement("span",null,o)),l.createElement("td",null,c?l.createElement(gu,{appLink:c},t.name):t.name),m(r)&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Cl,{actions:r(t)}))))}var ef=Object(Yl.SortableElement)((function(e){return l.createElement(Xl,Object.assign({sortable:!0},e))})),tf=n(32),nf=n.n(tf),rf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},af=function(e){var t=e.sortable,n=e.getVideoActions;return l.createElement("thead",null,l.createElement("tr",null,!!t&&l.createElement("th",null,"#"),l.createElement("th",null,"Name"),!!n&&l.createElement("th",null)))},of=l.forwardRef((function(e,t){var n=e.videos,r=e.sortable,i=rf(e,["videos","sortable"]);return l.createElement("tbody",{ref:t},!Gl(n)&&n.data.map((function(e,t){return r?l.createElement(ef,Object.assign({key:e.id,index:t,itemNumber:t+1,video:e,className:nf.a.draggableVideoItem},i)):l.createElement(Xl,Object.assign({video:e},i))})))}));var cf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},sf=Object(Yl.SortableContainer)((function(e){var t=e.forwardedRef,n=cf(e,["forwardedRef"]);return l.createElement(of,Object.assign({sortable:!0,ref:t},n))})),uf=function(e){return function(t){var n=t.node,r=e.current;if(r){r.classList.add(nf.a.sortingContainer);var i=r.querySelector(".".concat(nf.a.draggedVideoItem));n.childNodes.forEach((function(e,t){return i.childNodes[t].style.width="".concat(e.offsetWidth,"px")}))}}},lf=function(e,t){return function(n){var r=e.current;r&&r.classList.remove(nf.a.sortingContainer),t(n.oldIndex,n.newIndex)}};function ff(e){var t=e.onSortEnd,n=e.emptyMessage,r=cf(e,["onSortEnd","emptyMessage"]),i=l.useRef();return Gl(e.videos)?l.createElement("div",null,n):l.createElement(ki.Table,{responsive:!0},l.createElement(af,Object.assign({sortable:!0},e)),l.createElement(sf,Object.assign({forwardedRef:i,onSortStart:uf(i),onSortEnd:lf(i,t),lockAxis:"y",lockToContainerEdges:!0,distance:1,helperClass:nf.a.draggedVideoItem,helperContainer:function(){return i.current}},r)))}function pf(e){var t=e.alias,n=e.onDelete;return l.createElement("li",{className:"list-group-item d-flex justify-content-between"},t.name,l.createElement(zc,{svgName:Hc.Delete,onClick:function(){return n(t.id)}}))}function df(e){var t=e.aliases,n=e.onDelete;return l.createElement("ul",{className:"list-group mb-3"},t?t.map((function(e){return l.createElement(pf,{key:e.id,alias:e,onDelete:n})})):l.createElement("span",null,"Currently there are no aliases for this object."))}function mf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ff.defaultProps={emptyMessage:"There are no videos in this list."};var yf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function vf(e){var t=e.showSpinner,n=e.children,r=yf(e,["showSpinner","children"]),i=l.useRef(),a=mf(l.useState({}),2),o=a[0],c=a[1];return l.useEffect((function(){var e=o.width,t=o.height;if(!e||!t){var n=i.current,r=n.offsetHeight,a=n.offsetWidth;r&&a&&c({width:a,height:r})}})),l.useEffect((function(){var e=o.width,t=o.height;if(e&&t){var n=i.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[o]),l.createElement(ki.Button,Object.assign({ref:i,disabled:t},r),t?l.createElement(ki.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var bf=Object(ji.object)().shape({name:Object(ji.string)().trim().max(255,"Name is too long").required("Name is required").default("")});function gf(){var e=ci(),t=Gc(e);return l.createElement(vi,null,l.createElement(Kc,{label:"Create an alias",name:"name",id:"name",value:e.values.name,placeholder:"Add an alias"}),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(vf,{showSpinner:e.isSubmitting,type:"submit",disabled:!t},"Add")))}function Sf(e){var t=e.onSave;return l.createElement(Ai,{initialValues:{name:""},validationSchema:bf,onSubmit:function(e,n){t(e,(function(){return n({reset:!0})}))}},l.createElement(gf,null))}function Ef(e){var t=e.onSave,n=e.aliases,r=e.onDelete;return l.createElement("div",{className:"w-50"},l.createElement("h1",null,"Aliases"),l.createElement(df,{aliases:n,onDelete:r}),l.createElement(Sf,{onSave:t}))}var Of=c.COMPANIES,Cf=function(e){return{application:Of,action:i.Companies.EDIT_COMPANY,args:[e.id]}},wf=function(e){return p.AppLinkHelper.trigger(Cf(e))};function Af(e){var t=oe.useBasicFetch(he(e.cursor));return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 w-50"},l.createElement(Zs,{placeholder:"Search for a company",onSuggestionSelected:wf,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/companies/instant/raw","?q=").concat(e)},activationLength:2})),l.createElement(dl,{collection:t&&t.data,columns:[{accessor:"name",header:"Name",appLink:Cf}],collectionAppLink:{application:Of,action:i.Companies.COMPANIES},newObjectAppLink:{application:Of,action:i.Companies.NEW_COMPANY},objectName:"Company"}))}function jf(e){return(jf="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 Tf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kf(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 If(e,t,n){return t&&kf(e.prototype,t),n&&kf(e,n),e}function Lf(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&&_f(e,t)}function _f(e,t){return(_f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nf(e);if(t){var i=Nf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xf(this,n)}}function xf(e,t){return!t||"object"!==jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nf(e){return(Nf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Df=function(e){Lf(n,e);var t=Pf(n);function n(){return Tf(this,n),t.apply(this,arguments)}return If(n,[{key:"channelName",get:function(){return c.COMPANIES}},{key:"appRoutes",get:function(){return{"manage/companies(/)":"companies","manage/companies/new(/)":"newCompany","manage/companies/:id(/)":"editCompany"}}}]),n}(p.AppRouter),Rf=function(e){Lf(n,e);var t=Pf(n);function n(){return Tf(this,n),t.apply(this,arguments)}return If(n,[{key:"name",get:function(){return"Companies Application"}},{key:"channelName",get:function(){return c.COMPANIES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"companies",value:function(e){var t=e.cursor;this.layout.showChildView(k,l.createElement(Af,{cursor:t}))}},{key:"newCompany",value:function(){this.layout.showChildView(k,l.createElement(Ss,null))}},{key:"editCompany",value:function(e){this.layout.showChildView(k,l.createElement(gs,{id:e}))}}],[{key:"router",get:function(){return Df}}]),n}(p.Application);function Mf(e){return(Mf="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 Uf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ff(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 Vf(e,t){return(Vf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zf(e);if(t){var i=zf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hf(this,n)}}function Hf(e,t){return!t||"object"!==Mf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zf(e){return(zf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qf=function(e){!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&&Vf(e,t)}(a,e);var t,n,r,i=Bf(a);function a(){return Uf(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,l.createElement(t,{alerts:r,removeAlert:function(e){return uu.Radio.channel(Y.a.ALERT).trigger("remove:alert",e)}}))}}}])&&Ff(t.prototype,n),r&&Ff(t,r),a}(n(44).a);function Jf(e){return(Jf="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 $f(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 Kf(e,t){return(Kf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gf(e);if(t){var i=Gf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yf(this,n)}}function Yf(e,t){return!t||"object"!==Jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gf(e){return(Gf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zf=function(e){!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&&Kf(e,t)}(a,e);var t,n,r,i=Wf(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=a,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"InstanceManager"}},{key:"registerDataService",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e({dataProvider:n.getInstance(t.dataProvider),cache:n.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService})},this.destructors[r]=function(){n.instances[r]?n.instances[r].destroy():es.c.throw(new rs.a("Trying to destroy a ".concat(r," instance that has already been destroyed"))),n.releaseInstance(t.dataProvider),n.releaseInstance(t.cache)},this}},{key:"registerInstance",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e(t)},this.destructors[r]=function(){return d.isFunction(n.instances[r].destroy)&&n.instances[r].destroy()},this}},{key:"registerSingleton",value:function(e){var t=e.name;return this.singletonInstances[t]=e,this}},{key:"getInstance",value:function(e,t){var n=this;return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||es.c.throw(new rs.a("".concat(e," was not registered with ").concat(this.name))),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",(function(){return n.releaseInstance(e)})),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}},{key:"releaseInstance",value:function(e){var t=this;if(this.instances[e])return window.setTimeout((function(){t.referenceCounts[e]--,t.referenceCounts[e]<1&&(t.destructors[e](),delete t.instances[e])}),0),this}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||es.c.throw(new rs.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&es.c.throw(new rs.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}}])&&$f(t.prototype,n),r&&$f(t,r),a}(Xc.a).Instance;function Qf(e){var t,n;return t=e,n=Zf.getInstance(t),l.useEffect((function(){return function(){return Zf.releaseInstance(t)}})),n}var Xf,ep,tp=n(36),np=n(30);function rp(e){return(rp="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 ip(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 ap(e,t){return(ap=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function op(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sp(e);if(t){var i=sp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cp(this,n)}}function cp(e,t){return!t||"object"!==rp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sp(e){return(sp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(Xf||(Xf={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(ep||(ep={}));var up=function(e){!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&&ap(e,t)}(a,e);var t,n,r,i=op(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.alertCollection=new tp.a,this.listenTo(Y.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"name",get:function(){return ts}},{key:"defaults",get:function(){return{maxAlerts:3}}},{key:"showAlerts",value:function(){var e=uu.Radio.channel(Y.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=d.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}},{key:"removeAlert",value:function(e){this.alertCollection.remove(e),this.showAlerts()}},{key:"createAlert",value:function(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=d.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new np.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?d.bind((function(){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?d.bind((function(e,n){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):d.bind((function(){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?d.bind((function(){return t.createAlert(d.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?d.bind((function(e){return t.createAlert(d.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):d.bind((function(){return t.createAlert(d.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return d.uniqueId("alert_")}}])&&ip(t.prototype,n),r&&ip(t,r),a}(Xc.a);function lp(){var e=Qf(ts);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:Xf.Warning,heading:ep.Warning,message:t})}}}function fp(){return l.createElement("div",{className:"text-center p-5"},l.createElement(ki.Spinner,{as:"div",animation:"border",role:"status"}))}function pp(e){var t,n=(null===(t=e.headerButtons)||void 0===t?void 0:t.length)?e.headerButtons.map((function(e,t){return l.createElement(Ol,Object.assign({key:t},e))})):l.createElement(l.Fragment,null);return l.createElement(ki.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size,dialogClassName:e.dialogClassName,centered:e.centered},!!e.title&&l.createElement(ki.Modal.Header,{className:"d-flex align-items-center",closeButton:e.closeButton},l.createElement(ki.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),n),e.showLoadingSpinner?l.createElement(fp,null):l.createElement(ki.Modal.Body,{className:e.bodyClassName},e.children))}pp.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:""};var dp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function mp(e){var t=e.buttons;return l.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3"},t.map((function(e,t){return function(e,t){var n=e.buttonText,r=e.type,i=void 0===r?"button":r,a=e.isSpinnerButton,o=e.showSpinner,c=void 0!==o&&o,s=e.className,u=dp(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),f=Object.assign({key:t,type:i,className:"ml-2".concat(s?" ".concat(s):"")},u);return a?l.createElement(vf,Object.assign({showSpinner:c},f),n):l.createElement(ki.Button,Object.assign({},f),n)}(e,t)})))}function hp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vp=ds.encloseNamespace("shared.confirmationPopup");function bp(e){var t=hp(l.useState(!1),2),n=t[0],r=t[1],i=[{variant:e.cancelButtonVariant,onClick:e.closePopup,buttonText:e.cancelButtonText||vp("cancel")},{variant:e.confirmButtonVariant,onClick:function(){r(!0),e.onClickConfirm()},buttonText:e.confirmButtonText||vp("confirm"),isSpinnerButton:!0,showSpinner:n}];return l.createElement(pp,{title:e.title,closePopup:e.closePopup},l.createElement(l.Fragment,null,e.children,l.createElement(mp,{buttons:i})))}bp.defaultProps={confirmButtonVariant:"primary",cancelButtonVariant:"link"};var gp,Sp,Ep="locale",Op="phrases",Cp="currentuser",wp=function(e,t){return{url:"/api/currentuser",key:"currentuser",normalizeOptions:{namespace:"currentuser"},bootstrapName:Cp,formatData:function(e){return e.id?e:null},success:e,error:t,expiryTime:1/0}},Ap=n(10),jp=function(e,t,n,r){return{key:"settings:".concat(e,":").concat(t),url:"/api/domain/v3/settings/".concat(e,"?type=").concat(t),normalize:!1,formatData:function(e){return Ap.a.first(e)},success:n,error:r}},Tp=function(e,t,n,r){return{key:"update:settings:".concat(e,":bulk"),url:"/api/domain/v3/settings/".concat(e,"/bulk"),data:t,type:ce.a.PUT,invalidationKeys:t.map((function(t){return"settings:".concat(e,":").concat(t.name)})),success:n,error:r}};function kp(e){var t=l.useRef(null);return l.useEffect((function(){t.current&&(e.checked?t.current.indeterminate&&(t.current.indeterminate=!1):!e.indeterminate||t.current.indeterminate?!e.indeterminate&&t.current.indeterminate&&(t.current.indeterminate=!1):t.current.indeterminate=!0)}),[t.current,e.indeterminate,e.checked]),l.createElement("div",{className:"custom-control custom-checkbox ".concat(e.className)},l.createElement("input",{ref:t,type:"checkbox",className:"custom-control-input",id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled}),l.createElement("label",{className:"custom-control-label cursor-pointer",htmlFor:e.id},e.label))}function Ip(e,t){return t?"".concat(e,":").concat(t):e}!function(e){e.MustCompleteOnboarding="must_complete_onboarding",e.StudentWorkspaceSharing="student_ws_sharing",e.StudentToStudentMessaging="student_to_student_messaging",e.HideResourcesForStudents="hide_resources_for_students",e.LibraryReview="library_review",e.SchoolMessaging="school_messaging",e.LegacyTvNaming="legacy_tv_naming",e.LegacyAlbertCustomer="legacy_albert_customer",e.HideHostedLibraries="hide_hosted_libraries",e.StaffRequest="staff_request",e.MaxCustomLibraries="max_custom_libraries",e.CustomLibrariesBetaAccess="custom_libraries_beta_access",e.AutoCaptioning="auto_captioning",e.Topics="subjects",e.NewDashboards="new_dashboards",e.LiteAccess="lite_access",e.HasCompletedOnboarding="has_completed_onboarding",e.BulkOnboardingPreferencesState="bulk_onboarding_preferences_state"}(gp||(gp={})),kp.defaultProps={checked:!1,label:"",className:""},function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Sp||(Sp={}));var Lp,_p=function(e){return{key:Ip("presentations",e),url:_u("/api/subjects/v1/presentations",{type:e})}},Pp=function(e,t){return{key:Ip("customers:".concat(e,":presentations"),t),url:_u("/api/subjects/v1/customers/".concat(e,"/presentations"),{type:t})}},xp=function(e,t,n,r,i){return{key:"customers:".concat(e,":presentations:").concat(t,":add"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ce.a.POST,invalidationKeys:"customers:".concat(e,":presentation"),success:n,error:r,always:i}},Np=function(e,t,n,r,i){return{key:"customers:".concat(e,":presentations:").concat(t,":remove"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ce.a.DELETE,invalidationKeys:"customers:".concat(e,":presentations"),success:n,error:r,always:i}};!function(e){e.Developer="Curator Devs",e.Content="Content",e.Curator="Curators",e.Support="Support",e.SalesSupport="Sales Support"}(Lp||(Lp={}));var Dp,Rp,Mp,Up=function(){return[{value:"protected",access:"r"}]},Fp=function(e){return Nl(e).includes(Lp.Developer)},Vp=function(e){return[Lp.Developer,Lp.Content].some((function(t){return Nl(e).includes(t)}))},Bp=function(e,t,n,r,i){var a="settings:entity:".concat(e),o="/api/cache?keys=".concat(a);return{url:"/ajax/online/".concat(t,"?endpoint=").concat(encodeURIComponent(o)),key:"settings:cache:".concat(e),type:ce.a.DELETE,success:n,error:r,always:i}},Hp=function(e){return{key:"customers:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=country,contentregion")}};function zp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jp(e){var t,n=zp(l.useState(),2),r=n[0],i=n[1],a=e.availablePresentations.filter((function(t){return!e.currentPresentations.find((function(e){return e.id===t.id}))}));return l.createElement("div",null,!!e.canAdd&&!!a.length&&l.createElement(l.Fragment,null,l.createElement(ki.Form.Label,null,"Select a presentation to add"),l.createElement(ki.Form.Control,{as:"select",value:null!==(t=null==r?void 0:r.id)&&void 0!==t?t:"",onChange:function(t){var n=function(e,t){return Ap.a.first(t.filter((function(t){return t.id.toString()===e.toString()})))}(t.target.value,a);n&&(i(n),e.onSelectPresentation(n))},className:"cursor-pointer"},l.createElement("option",{value:""},"Select a presentation"),a.map((function(e){return l.createElement("option",{value:e.id,key:e.id},e.name)})))),!!e.currentPresentations.length&&l.createElement(l.Fragment,null,l.createElement("ul",{className:"list-unstyled mt-2"},e.currentPresentations.map((function(t){return l.createElement("li",null,t.name,!!e.canRemove&&l.createElement("span",{className:"text-danger cursor-pointer ml-2",onClick:function(){return e.removePresentation(t)}},l.createElement("em",null,"remove")))})))))}!function(e){e.Draft="Draft",e.Published="Published"}(Dp||(Dp={})),function(e){e.Subject="subject",e.Curriculum="curriculum"}(Rp||(Rp={})),function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(Mp||(Mp={}));var $p="9",Kp="13",Wp="14",Yp="15";function Gp(e,t){return Fp(t)?e:function(e){return e.filter((function(e){return e.status===Dp.Published}))}(e)}function Zp(e,t,n){return Fp(t)?e:Gp(e,t).filter((function(e){return n.contentRegion.systemName===Mp.US?e.id.toString()===Kp||e.id.toString()===Yp||e.id.toString()===Wp:n.contentRegion.systemName===Mp.AU?e.id.toString()===$p:void 0}))}function Qp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ed(e){var t,n,r=lp(),a=Object(v.useDispatch)(),o=Qp(l.useState(!!e.newCustomer),2),s=o[0],u=o[1],f=Qp(l.useState(),2),d=f[0],m=f[1],h=Qp(l.useState(),2),y=h[0],b=h[1],g=Qp(l.useState(),2),S=g[0],E=g[1],O=Qp(l.useState(!1),2),C=O[0],w=O[1],A=oe.useBasicFetch(Hp(e.customerId)),j=oe.useBasicFetch(wp()),T=oe.useBasicFetch(jp(e.customerId,gp.Topics)),k=(n=e.customerId,{availableTopicPresentations:oe.useBasicFetch(_p(Rp.Subject)),availableCurriculumPresentations:oe.useBasicFetch(_p(Rp.Curriculum)),customerTopicPresentations:oe.useBasicFetch(Pp(n,Rp.Subject)),customerCurriculumPresentations:oe.useBasicFetch(Pp(n,Rp.Curriculum))}),I=k.availableTopicPresentations,L=k.availableCurriculumPresentations,_=k.customerTopicPresentations,P=k.customerCurriculumPresentations;function x(){if(e.newCustomer)return alert("Successfully set up Topics for this customer."),void p.LocationUtils.PageLoad(p.AppLinkHelper.getHref({application:c.CUSTOMERS,action:i.Customers.MANAGE_CUSTOMER_TOPICS,args:[e.customerId]}));w(!1),r.success("Successfully saved customer presentations.")}if(l.useEffect((function(){var e;(null===(e=T.data)||void 0===e?void 0:e.value)&&u(!0)}),[null===(t=T.data)||void 0===t?void 0:t.value]),l.useEffect((function(){s||(m(null),b(null))}),[s]),l.useEffect((function(){if(!Fp(j.data)&&d){var e=L.data.find((function(e){return"Default Curriculum"===e.name}));b(e)}}),[d]),!!!(j.data&&T.data&&A.data&&I.data&&L.data&&_.data&&P.data))return l.createElement(l.Fragment,null);var N=Fp(j.data),D=N?d||y:s&&d&&y;return l.createElement(l.Fragment,null,l.createElement("h1",{className:"h6 mb-3"},A.data.name," - ",A.data.crmId),l.createElement("div",{className:"alert alert-danger",role:"alert"},"After enabling Topics, please ensure that ",l.createElement("strong",null,"Dashboard")," is enabled for this customer and that they have the correct library for the ",l.createElement("strong",null,"Topics Presentation")," you choose."),l.createElement(kp,{id:"enableTopics",checked:s,onChange:function(){return u(!s)},label:"Enable Topics",disabled:T.data.value}),s&&l.createElement(l.Fragment,null,l.createElement("p",{className:"mt-3"},l.createElement("strong",null,"Topic Presentations")),l.createElement(Jp,{availablePresentations:Zp(I.data,j.data,A.data),currentPresentations:_.data,onSelectPresentation:function(e){return m(e)},removePresentation:function(e){return E(e)},canRemove:N,canAdd:!0}),N&&l.createElement(l.Fragment,null,l.createElement("p",{className:"mt-3"},l.createElement("strong",null,"Curriculum Presentations")),l.createElement(Jp,{availablePresentations:Gp(L.data,j.data),currentPresentations:P.data,onSelectPresentation:function(e){return b(e)},removePresentation:function(e){return E(e)},canRemove:N,canAdd:!0}))),l.createElement("div",{className:"d-flex justify-content-end align-items-center pt-3"},!T.data.value&&l.createElement(gu,{className:"info-link mr-3",appLink:{application:c.CUSTOMERS,action:i.Customers.MANAGE_CUSTOMER,args:[e.customerId]}},"Skip for now"),l.createElement("button",{className:"btn btn-primary",onClick:function(){return w(!0)},disabled:!D},"Save")),C&&l.createElement(bp,{title:"Confirmation needed",onClickConfirm:function(){var t=function(){var e=[];return d&&e.push(d),y&&e.push(y),e}();if(t.length){var n=function(){var t=T.data.value?[]:[gp.Topics,gp.NewDashboards];return e.newCustomer&&t.push(gp.MustCompleteOnboarding),t}(),r=0,i=0,o=t.length+(n.length?1:0),c=t.map((function(t){return xp(e.customerId,t.id,s,u)}));n.length&&c.push(Tp(e.customerId,n.map((function(e){return{name:e,value:!0,kind:Sp.Temporary}})),s,u)),c.forEach((function(e){return oe.fetch(a,e)}))}function s(){i++,u()}function u(){var t;if(++r===o){if(i<r||!(null===(t=A.data.country)||void 0===t?void 0:t.code))return w(!1),void alert("Something went wrong while setting up Topics for this customer. Please contact to the Product Team so that they look into the issue.");if(!n.length)return x(),m(null),void b(null);var c=Bp(e.customerId,A.data.country.code,x,(function(){w(!1),alert("Successfully set up Topics but failed to clear Online cache. Please contact to the Product Team so that they look into the issue.")}));oe.fetch(a,c)}}},closePopup:function(){return w(!1)}},T.data.value?l.createElement("p",null,"Are you sure you want to add this customer to:"):l.createElement("p",null,"Are you sure you want enable Topics for this customer and add it to the following presentations:"),l.createElement("ul",null,!!d&&l.createElement("li",null,l.createElement("strong",null,"Topic Presentation:")," ",d.name),!!N&&!!y&&l.createElement("li",null,l.createElement("strong",null,"Curriculum Presentation:")," ",y.name)),!N&&l.createElement("p",{className:"text-danger"},l.createElement("strong",null,"You will be able to come back and add more presentations."))),!!S&&l.createElement(bp,{title:"Confirmation needed",onClickConfirm:function(){if(S){var t=Np(e.customerId,S.id,(function(){return r.success("Successfully removed customer from presentation.")}),(function(e){var t;return r.error((null===(t=e.responseJSON)||void 0===t?void 0:t.message)||"Failed to remove presentation.")}),(function(){return E(null)}));oe.fetch(a,t)}},closePopup:function(){return E(null)}},l.createElement("p",null,"Are you sure you want to remove this customer from ",l.createElement("strong",null,S.name),"?")))}function td(e){return(td="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 nd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rd(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 id(e,t,n){return t&&rd(e.prototype,t),n&&rd(e,n),e}function ad(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&&od(e,t)}function od(e,t){return(od=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ud(e);if(t){var i=ud(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sd(this,n)}}function sd(e,t){return!t||"object"!==td(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ud(e){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ld=function(e){ad(n,e);var t=cd(n);function n(){return nd(this,n),t.apply(this,arguments)}return id(n,[{key:"channelName",get:function(){return c.CUSTOMERS}},{key:"appRoutes",get:function(){return{"customers/:id/topics(/)":"manageCustomerTopics"}}},{key:"externalRoutes",get:function(){return{"customers/:id(/)":"manageCustomer"}}}]),n}(p.AppRouter),fd=function(e){ad(n,e);var t=cd(n);function n(){return nd(this,n),t.apply(this,arguments)}return id(n,[{key:"name",get:function(){return"Customers Application"}},{key:"channelName",get:function(){return c.CUSTOMERS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{alertRegion:L}}}},{key:"manageCustomerTopics",value:function(e,t){this.layout.showChildView(k,l.createElement(ed,{customerId:e,newCustomer:t.newCustomer}))}}],[{key:"router",get:function(){return ld}}]),n}(qf),pd=n(63),dd=n(25),md=n.n(dd);function hd(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,a=t.message,o=t.heading,c=t.appLink,s=t.appLinkText,u=t.appLinkClassName,f=void 0===u?"":u,p=Object(Qc.sanitize)(a);return l.createElement(l.Fragment,null,l.createElement("div",{className:"d-inline-block ".concat(md.a.icon)},l.createElement(zc,{svgName:n,className:"svg-container ".concat(r)})),l.createElement("div",{className:"pl-2 d-inline-block ".concat(md.a.alertContent)},l.createElement("p",{className:"p-0 m-0 pb-1 ".concat(md.a.heading)},o),l.createElement("p",{className:"p-0 text-break clamp-4 ".concat(md.a.message),dangerouslySetInnerHTML:{__html:p}}),!!c&&l.createElement(gu,{className:f,appLink:c},s)),l.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function yd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bd=function(e){switch(e.type){case Xf.Success:return Hc.CheckCircleOutline;case Xf.Fail:case Xf.Warning:return Hc.Warning;case Xf.Info:default:return Hc.Info}};function gd(e){var t=e.alert,n=e.closeAlert,r=yd(l.useState(!0),2),i=r[0],a=r[1],o=l.useRef();l.useEffect((function(){i?o.current=window.setTimeout(n,3e3):clearTimeout(o.current)}),[i]);var c="text-".concat(t.type.toLowerCase());return l.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(md.a.alertItem),onMouseEnter:function(){return a(!1)},onMouseLeave:function(){return a(!0)}},l.createElement(hd,{alert:t,svgName:bd(t),svgClassName:c,closeAlert:n}))}function Sd(e){var t=e.alerts,n=e.removeAlert;return l.createElement("div",{className:md.a.alertBox},l.createElement(pd.TransitionGroup,{component:"ul",className:"".concat(md.a.alertList," list-unstyled")},t&&t.map((function(e,t){return l.createElement(pd.CSSTransition,{key:t,timeout:200,classNames:"alert"},l.createElement(gd,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var Ed=n(20),Od={namespace:"domain_options"},Cd=function(){return"/api/domain/v3/settings/types"},wd=function(e){return"/api/domain/v3/settings/types/".concat(e)},Ad=function(){return"/api/domain/v3/settings/types"},jd=function(e){return"/api/domain/v3/settings/types/".concat(e)},Td=function(e){return"/api/domain/v3/settings/types/".concat(e)},kd="domain:options",Id="domain:option",Ld="update:domain:option",_d="delete:domain:option",Pd=function(){return{key:kd,url:Cd(),normalizeOptions:Od}},xd=function(e){return{key:"".concat(Id,":").concat(e),url:wd(e),normalizeOptions:Od}},Nd=function(e,t,n){return e.type===Ed.DomainOptionType.String&&(e=Md(e)),{key:Id,url:Ad(),data:e,type:ce.a.POST,success:t,error:n,invalidationKeys:[kd],normalizeOptions:Od}},Dd=function(e,t){return e.type===Ed.DomainOptionType.String&&(e=Md(e)),{key:"".concat(Ld,":").concat(e.id),url:jd(e.id),data:e,type:ce.a.PUT,always:t,formatData:function(){return e},normalizeOptions:Od}},Rd=function(e,t){return{key:"".concat(_d,":").concat(e),url:Td(e),type:ce.a.DELETE,invalidationKeys:[kd],normalizeOptions:Od,success:t}};function Md(e){var t=e.defaultValue;if('"'===t)return Object.assign(Object.assign({},e),{defaultValue:'"'.concat(t,'"')});var n=t.charAt(0),r=t.charAt(t.length-1);return'"'!==n&&(t='"'.concat(t)),'"'!==r&&(t="".concat(t,'"')),Object.assign(Object.assign({},e),{defaultValue:t})}function Ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vd(e){var t=Ud(l.useState(!1),2),n=t[0],r=t[1],a=oe.useBasicFetch(xd(e.optionId)),o=Object(v.useDispatch)(),s=function(){e.closePopup(),p.AppLinkHelper.trigger({application:c.DOMAIN_OPTIONS,action:i.DomainOptions.DOMAIN_OPTIONS})};return l.createElement(pp,{title:"Delete Domain Option",closePopup:e.closePopup,showLoadingSpinner:!a.data},a.data&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,a.data.name),"?")),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){r(!0),oe.fetch(o,Rd(e.optionId,s))},buttonText:"Yes, delete this domain option",isSpinnerButton:!0,showSpinner:n}]})))}var Bd,Hd=function(e){return{application:c.DOMAIN_OPTIONS,action:i.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]}},zd={application:c.DOMAIN_OPTIONS,action:i.DomainOptions.NEW_DOMAIN_OPTION};function qd(){var e=oe.useBasicFetch(Pd());if(!e.data)return l.createElement(l.Fragment,null);var t=e.data.map((function(e){return e.displayName&&(e.name=e.displayName),e}));return l.createElement(l.Fragment,null,l.createElement("div",{className:"d-flex justify-content-between mb-2"},l.createElement("h5",{className:"d-inline-block m-0"},"Select a domain option type to edit:"),l.createElement(gu,{appLink:zd,className:"d-block"},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New Domain Option"))),l.createElement(Al,{objects:t,getAppLink:Hd}))}!function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup"}(Bd||(Bd={}));var Jd=ji.object().shape({id:ji.string(),name:ji.string().trim().max(64,"Name is too long").required("Name is required").default(""),displayName:ji.string().trim().max(255,"Display name is too long").required("Display name is required").default(""),type:ji.mixed().required("Type is required").default(Ed.DomainOptionType.Boolean),entityType:ji.mixed().required("Entity type is required").default(Bd.Customer),kind:ji.mixed().required("Kind is required").default(Ed.DomainOptionKind.Temporary),defaultValue:ji.mixed().required("Default value is required").default("false")}).noUnknown();function $d(e){var t=e.type,n=e.defaultValue;if(!t)return l.createElement(l.Fragment,null);var r={label:"Default Value",name:"defaultValue",id:"defaultValue",value:n};return t===Ed.DomainOptionType.Boolean?l.createElement(Kc,Object.assign({as:"select"},r),l.createElement("option",{value:"true"},"True"),l.createElement("option",{value:"false"},"False")):t===Ed.DomainOptionType.Long||t===Ed.DomainOptionType.StaffRequest?l.createElement(Kc,Object.assign({as:"input",type:"number"},r)):t===Ed.DomainOptionType.String?l.createElement(Kc,Object.assign({as:"input"},r)):void 0}var Kd=[Bd.Customer,Bd.User];function Wd(e){var t=null===e.id||void 0===e.id,n=ci(),r=Gc(n);return l.createElement(vi,null,l.createElement(Kc,{label:"Name (snake_case)",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this domain option",autoFocus:!0}),l.createElement(Kc,{label:"Display Name",type:"text",name:"displayName",id:"displayName",value:n.values.displayName,placeholder:"Enter a display name for this domain option"}),l.createElement(Kc,{as:"select",label:"Kind",name:"kind",id:"kind",value:n.values.kind},Ci.a.getEnumKeys(Ed.DomainOptionKind).map((function(e){return l.createElement("option",{key:e,value:Ed.DomainOptionKind[e]},e)}))),l.createElement(Kc,{as:"select",label:"Entity",name:"entityType",id:"entityType",value:n.values.entityType},Ci.a.getEnumKeys(Bd).filter((function(e){return Kd.includes(Bd[e])})).map((function(e){return l.createElement("option",{key:e,value:Bd[e]},e)}))),l.createElement(Kc,{as:"select",label:"Type",name:"type",id:"type",value:n.values.type},Ci.a.getEnumKeys(Ed.DomainOptionType).map((function(e){return l.createElement("option",{key:e,value:Ed.DomainOptionType[e]},e)}))),l.createElement($d,{type:n.values.type,defaultValue:n.values.defaultValue}),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(vf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(ki.Button,{as:gu,variant:"danger",appLink:{application:c.DOMAIN_OPTIONS,action:i.DomainOptions.DELETE_DOMAIN_OPTION,args:[e.id]}},"Delete")))}function Yd(e){return l.createElement(Ai,{initialValues:e.domainOption,validationSchema:Jd,onSubmit:e.saveDomainOption},l.createElement(Wd,{id:e.domainOption&&e.domainOption.id}))}function Gd(){var e=Object(v.useDispatch)();return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Domain Option"),l.createElement(Yd,{saveDomainOption:function(t,n){oe.fetch(e,Nd(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.DOMAIN_OPTIONS,action:i.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]})}),n))}}))}function Zd(e){var t=e.optionId,n=oe.useBasicFetch(xd(t)),r=Object(v.useDispatch)();return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Edit Domain Option"),n.data&&l.createElement(Yd,{domainOption:n.data,saveDomainOption:function(e,t){return oe.fetch(r,Dd(e,t))}}))}function Qd(e){return(Qd="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 Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(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 tm(e,t,n){return t&&em(e.prototype,t),n&&em(e,n),e}function nm(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&&rm(e,t)}function rm(e,t){return(rm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=om(e);if(t){var i=om(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return am(this,n)}}function am(e,t){return!t||"object"!==Qd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function om(e){return(om=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cm=function(e){nm(n,e);var t=im(n);function n(){return Xd(this,n),t.apply(this,arguments)}return tm(n,[{key:"channelName",get:function(){return c.DOMAIN_OPTIONS}},{key:"appRoutes",get:function(){return{"developer/options(/)":"domainOptions","developer/options/new(/)":"newDomainOption","developer/options/:id(/)":"editDomainOption"}}},{key:"appLinks",get:function(){return["deleteDomainOption"]}}]),n}(p.AppRouter),sm=function(e){nm(n,e);var t=im(n);function n(){return Xd(this,n),t.apply(this,arguments)}return tm(n,[{key:"name",get:function(){return"Domain Options Application"}},{key:"channelName",get:function(){return c.DOMAIN_OPTIONS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"domainOptions",value:function(){this.layout.showChildView(k,l.createElement(qd,null))}},{key:"newDomainOption",value:function(){this.layout.showChildView(k,l.createElement(Gd,null))}},{key:"editDomainOption",value:function(e){this.layout.showChildView(k,l.createElement(Zd,{optionId:e}))}},{key:"deleteDomainOption",value:function(e){this.layout.showChildView(I,l.createElement(Vd,Object.assign({optionId:e},this.getPopupProps())))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return uu.Radio.channel(Y.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Sd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return cm}}]),n}(p.Application),um=function(e){return e?"".concat("/api/master/v2/people","?cursor=").concat(e):"/api/master/v2/people"},lm=function(e){return"/api/master/v2/objects/".concat(e)},fm=function(){return"/api/master/v2/people"},pm=function(e){return"/api/master/v2/objects/".concat(e)},dm="people",mm="person",hm="update:person",ym=function(e){return{key:"".concat(dm).concat(e?":".concat(e):""),url:um(e)}},vm=function(e){return{key:"".concat(mm,":").concat(e),url:lm(e)}},bm=function(e,t,n){return{key:mm,url:fm(),data:e,type:ce.a.POST,success:t,error:n,invalidationKeys:[dm]}},gm=function(e,t,n){return{key:"".concat(hm,":").concat(e),url:pm(e),data:t,type:ce.a.PUT,always:n}},Sm=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown();function Em(e){var t=ci();return l.createElement(vi,null,l.createElement(Kc,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this person",autoFocus:!0}),l.createElement(ys,{isNew:e.isNew}))}function Om(e){return l.createElement(Ai,{initialValues:e.person,validationSchema:Sm,onSubmit:e.savePerson},l.createElement(Em,{isNew:!(e.person&&e.person.id)}))}function Cm(e){var t=Object(v.useDispatch)(),n=oe.useBasicFetch(vm(e.id));return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Om,{person:n.data,savePerson:function(n,r){return oe.fetch(t,gm(e.id,n,r))}}))}function wm(){var e=Object(v.useDispatch)();return l.createElement(Om,{savePerson:function(t,n){oe.fetch(e,bm(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.PEOPLE,action:i.People.EDIT_PERSON,args:[e.id]})}),n))}})}var Am=c.PEOPLE,jm=function(e){return{application:Am,action:i.People.EDIT_PERSON,args:[e.id]}},Tm=function(e){return p.AppLinkHelper.trigger(jm(e))};function km(e){var t=oe.useBasicFetch(ym(e.cursor));return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 w-50"},l.createElement(Zs,{placeholder:"Search for a person",onSuggestionSelected:Tm,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/people/instant/raw","?q=").concat(e)},activationLength:2})),l.createElement(dl,{collection:t&&t.data,columns:[{accessor:"name",header:"Name",appLink:jm}],collectionAppLink:{application:Am,action:i.People.PEOPLE},newObjectAppLink:{application:Am,action:i.People.NEW_PERSON},objectName:"Person"}))}function Im(e){return(Im="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 Lm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(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 Pm(e,t,n){return t&&_m(e.prototype,t),n&&_m(e,n),e}function xm(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&&Nm(e,t)}function Nm(e,t){return(Nm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mm(e);if(t){var i=Mm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rm(this,n)}}function Rm(e,t){return!t||"object"!==Im(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mm(e){return(Mm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Um,Fm=function(e){xm(n,e);var t=Dm(n);function n(){return Lm(this,n),t.apply(this,arguments)}return Pm(n,[{key:"channelName",get:function(){return c.PEOPLE}},{key:"appRoutes",get:function(){return{"manage/people(/)":"people","manage/people/new(/)":"newPerson","manage/people/:id(/)":"editPerson"}}}]),n}(p.AppRouter),Vm=function(e){xm(n,e);var t=Dm(n);function n(){return Lm(this,n),t.apply(this,arguments)}return Pm(n,[{key:"name",get:function(){return"People Application"}},{key:"channelName",get:function(){return c.PEOPLE}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"people",value:function(e){var t=e.cursor;this.layout.showChildView(k,l.createElement(km,{cursor:t}))}},{key:"newPerson",value:function(){this.layout.showChildView(k,l.createElement(wm,null))}},{key:"editPerson",value:function(e){this.layout.showChildView(k,l.createElement(Cm,{id:e}))}}],[{key:"router",get:function(){return Fm}}]),n}(p.Application),Bm=function(e,t,n,r,i){return{url:"/api/image/upload?type=".concat(t),key:"upload:image",data:e,type:ce.a.POST,success:n,error:r,always:i}},Hm=n(208),zm=n.n(Hm);function qm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e[e.NoRestrictions=0]="NoRestrictions",e[e.RestrictToCanvas=1]="RestrictToCanvas"}(Um||(Um={}));var $m=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function Km(e){var t=e.dataUrl,n=e.minHeight,r=e.minWidth,i=e.onCrop,a=e.onCancel,o=l.useRef(),c=l.useRef(),s=qm(l.useState(!1),2),u=s[0],f=s[1],p=qm(l.useState(!1),2),d=p[0],h=p[1];return l.useEffect((function(){var e=new Image;e.src=t;var i=o.current.offsetWidth/e.width;return c.current=new zm.a(o.current,{viewMode:Um.RestrictToCanvas,autoCropArea:1,aspectRatio:r/n,minCropBoxWidth:r*i,minCropBoxHeight:n*i,ready:function(){return f(!0)}}),function(){return c.current.destroy()}}),[]),l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3"},l.createElement("img",{ref:o,src:t,className:"img img-fluid"})),l.createElement("div",{className:"d-flex justify-content-end border-top pt-3"},l.createElement(ki.Button,{variant:"link",onClick:a},"Cancel"),l.createElement(vf,{onClick:function(){if(u){h(!0);var e=c.current.getCroppedCanvas().toDataURL(function(e){var t=e.match($m);if(t)return t[1]}(t));m(i)&&i(e)}},disabled:!u,showSpinner:d},"Crop")))}function Wm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ym(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ym(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ym(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gm(e){var t=Object(v.useDispatch)(),n=l.useContext(zu),r=n.getDataUrl,i=n.setImage,a=Wm(l.useState(r()),1)[0],o=Wm(l.useState(!1),2),c=o[0],s=o[1];return l.createElement(pp,{title:"Crop Image",size:e.popupSize,closePopup:e.closePopup,onEntered:function(){return s(!0)}},c&&l.createElement(Km,{dataUrl:a,minWidth:Fu[e.imageType].width,minHeight:Fu[e.imageType].height,onCrop:function(n){oe.fetch(t,Bm(n,e.imageType,(function(e){return i(e)}),null,e.closePopup))},onCancel:e.closePopup}))}var Zm=function(e){var t=e.children;return l.createElement(qu,null,t)};function Qm(e){var t=e.page,n=e.totalPages,r=ks.isNumber(t)&&t>0&&t<n&&t+1,i=ks.isNumber(t)&&t>1&&t-1,a={};if(r&&r<=n&&(a.next=r.toString()),i&&(a.previous=i.toString()),!Ci.a.isEmpty(a))return a}var Xm={convertLegacyPaginatedCollection:function(e){if(e)return{data:e.data,pagination:{cursors:Qm(e.pagination),limit:e.pagination.pageSize}}}},eh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1";return{key:"playlists:".concat(e),url:"/ajax/playlists/curators?page=".concat(e),formatData:Xm.convertLegacyPaginatedCollection}},th=function(e,t){var n="/api/domain/v1/search/playlists?query=".concat(e);return t&&(n+="&filter={page:".concat(t,"}")),{key:"playlists:search:".concat(e).concat(t?":".concat(t):""),url:n,formatData:Xm.convertLegacyPaginatedCollection}},nh=function(e){return{key:"playlist:".concat(e),url:"/ajax/playlists/".concat(e,"?query=cover,banner")}},rh=function(e){var t=e.slice().sort();return{key:"playlists:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},ih=function(e,t,n,r){return{url:"/ajax/playlists",key:"playlist",data:e,type:ce.a.POST,invalidationKeys:"playlists",success:t,error:n,always:r}},ah=function(e,t,n,r,i){return{url:"/ajax/v2/playlists//".concat(e),key:"update:playlist:".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}},oh=function(e,t,n,r){return{url:"/ajax/playlists/".concat(e),key:"delete:playlist:".concat(e),type:ce.a.DELETE,invalidationKeys:"playlists",success:t,error:n,always:r}},ch=function(e){return{key:"playlist:".concat(e,":videos"),url:"/api/master/v2/objects/".concat(e,"/videos?query={orderBy:orderindex,limit:100}")}},sh=function(e,t,n,r){return{key:"reorder:playlist",url:"/api/master/v1/objects/".concat(e,"/videos/reorder"),data:t,type:ce.a.PUT,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r}},uh=function(e,t,n,r,i){return{key:"remove:playlist:video",url:"/api/master/v1/playlists/".concat(e,"/dissociate/").concat(t),type:ce.a.DELETE,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r,always:i}},lh=function(e,t,n,r){return{key:"playlist:metadata:".concat(e.join(",")),url:_u("/ajax/playlists/metadata",{ids:e}),success:t,error:n,always:r}},fh=function(e,t,n,r){return{key:"dashboards:".concat(e),url:"/ajax/dashboards/".concat(e),success:t,error:n,always:r}},ph=function(e,t,n,r,i){return{key:"dashboard:".concat(e,":widget:").concat(t),url:"/ajax/dashboards/".concat(e,"/widgets/").concat(t),success:n,error:r,always:i}},dh=function(e,t,n,r){return{key:"playlist:".concat(e,":widgets"),url:"/ajax/playlists/".concat(e,"/widgets"),success:t,error:n,always:r}},mh=function(e,t,n,r,i,a){return{key:"dashboard:".concat(e,":widget:").concat(t),url:"/ajax/dashboards/".concat(e,"/widgets/").concat(t),type:ce.a.DELETE,invalidationKeys:"playlist:".concat(n,":widgets"),formatData:function(){return null},success:r,error:i,always:a}};function hh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vh(e){var t=Object(v.useDispatch)(),n=lp(),r=hh(l.useState(!1),2),a=r[0],o=r[1],s=oe.useBasicFetch(nh(e.playlistId));var u=[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),oe.fetch(t,oh(e.playlistId,(function(){n.success("Successfully deleted playlist."),p.AppLinkHelper.trigger({application:c.PLAYLISTS,action:i.Playlists.PLAYLISTS})}),(function(){o(!1),n.error("Failed to delete playlist.")}),e.closePopup))},buttonText:"Yes, delete playlist",isSpinnerButton:!0,showSpinner:a}],f=!!s.data;return l.createElement(pp,{title:"Delete Playlist",closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,s.data.name),"?"),l.createElement("p",null,"Please ensure it is not being used in any widgets.")),l.createElement(mp,{buttons:u})))}var bh=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ji.string().trim().max(65535,"Description is too long").default(""),cover:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),banner:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),metadata:ji.object().shape({playlistId:ji.string(),internalDescription:ji.string().trim().max(255,"Description is too long").default("")}).default({}).noUnknown()}).noUnknown(),gh=function(e,t){var n=c.PLAYLISTS,r=i.Playlists,a=[{label:"Edit Playlist Details",appLink:{application:n,action:r.EDIT_PLAYLIST,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_PLAYLIST_VIDEOS,args:[t]}},{label:"Dashboards",appLink:{application:n,action:r.EDIT_PLAYLIST_DASHBOARDS,args:[t]}}];return Vp(e)&&a.push.apply(a,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_PLAYLIST_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_PLAYLIST_AUDIENCES,args:[t]}}]),a};function Sh(e){var t,n=ci(),r=Gc(n);return l.createElement(vi,null,l.createElement(Kc,{label:"Name",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this playlist",autoFocus:!0}),l.createElement(Kc,{label:"Description",as:"textarea",name:"description",id:"description",value:n.values.description,placeholder:"Describe this playlist here"}),l.createElement(Kc,{label:"Internal Description",as:"textarea",name:"metadata.internalDescription",id:"metadata.internalDescription",value:null===(t=n.values.metadata)||void 0===t?void 0:t.internalDescription,placeholder:"This description will only be displayed in Curator"}),l.createElement(cl,{imageType:wu.Covers,fieldName:"cover",application:c.PLAYLISTS,uploadAction:i.Playlists.UPLOAD_IMAGE}),l.createElement(cl,{imageType:wu.Banners,fieldName:"banner",application:c.PLAYLISTS,uploadAction:i.Playlists.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(vf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},e.id?"Save":"Create"),!!e.actions&&l.createElement(Cl,{actions:e.actions})))}function Eh(e){var t,n=e.playlist&&e.playlist.id;return l.createElement(Ai,{initialValues:e.playlist,validationSchema:bh,onSubmit:e.savePlaylist},l.createElement(Sh,{id:n,actions:!!n&&(t=n,[{label:"Delete playlist",appLink:{application:c.PLAYLISTS,action:i.Playlists.DELETE_PLAYLIST,args:[t]},className:"text-danger"}])}))}function Oh(e){return l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:gh(e.currentUser,e.playlistId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function Ch(e){var t=Object(v.useDispatch)(),n=lp(),r=oe.useBasicFetch(nh(e.playlistId)),a=oe.useBasicFetch(wp());return l.createElement(l.Fragment,null,!!a.data&&l.createElement(Oh,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST,currentUser:a.data}),!!r.data&&l.createElement(Eh,{playlist:r.data,savePlaylist:function(r,i){oe.fetch(t,ah(e.playlistId,r,(function(){n.success("Successfully updated playlist.")}),(function(){n.error("Failed to update playlist.")}),i))}}))}var wh=function(e,t){var n=e.dataServiceName,r=e.eventPrefix,i=e.fetchData,a=e.setData,o=e.onError,c=e.deleteEventPrefix;if(m(i)){if(m(a)){var s=o&&m(o),u=Zf.getInstance(n),l=uu.Radio.channel(u.channelName),f="".concat(r,":request"),d="".concat(r,":sync"),h="".concat(r,":error"),y="".concat(r,":invalidate"),v=c&&"".concat(c,":sync"),b=function(){return t(!1)},g=function(){return t(!0)},S=function(){return t(!1)},E=function(){return l.off(y,S)};l.once(f,b),l.once(d,g),l.once(y,S),s&&l.once(h,o),v&&l.once(v,E);var O=i(u);return O&&(t(!0),e.setData(O)),function(){Zf.releaseInstance(n),l.off(f,b),l.off(d,g),l.off(y,S),s&&l.off(h,o),v&&l.off(v,E)}}p.ErrorHelper.throw(new rs.a("A setData function must be passed to fetch"))}else p.ErrorHelper.throw(new rs.a("A fetchData function must be passed to fetch"))};function Ah(e){return function(e){if(Array.isArray(e))return kh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Th(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||Th(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Th(e,t){if(e){if("string"==typeof e)return kh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kh(e,t):void 0}}function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ih=function(e){return Array(Array.isArray(e)?e.length:0).fill(!1)};function Lh(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l.useState(Ih(e)),i=jh(r,2),a=i[0],o=i[1];l.useEffect((function(){o(Ih(e))}),Ah(t)),l.useEffect((function(){if(n){var t=[];return e&&e.forEach((function(e,n){t.push(wh(e,(function(e){e!==a[n]&&o(Ap.a.cloneAndReplaceAtIdx(a,n,e))})))})),function(){return t.forEach((function(e){return e()}))}}}),[a,n])}function _h(e){return function(e){if(Array.isArray(e))return Nh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ph(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||xh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xh(e,t){if(e){if("string"==typeof e)return Nh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nh(e,t):void 0}}function Nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dh(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l.useState(!1),i=Ph(r,2),a=i[0],o=i[1];l.useEffect((function(){o(!1)}),_h(t)),l.useEffect((function(){if(n)return wh(e,o)}),[a,n])}var Rh=function(e,t,n){return function(r){return e((function(e){var i=m(n)?n:h();return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,i(r,e)))}))}};function Mh(e){return(Mh="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 Uh(e){return function(e){if(Array.isArray(e))return Fh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vh(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 Bh(e,t){return(Bh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jh(e);if(t){var i=Jh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zh(this,n)}}function zh(e,t){return!t||"object"!==Mh(t)&&"function"!=typeof t?qh(e):t}function qh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jh(e){return(Jh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $h,Kh,Wh,Yh,Gh,Zh=function(e){!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&&Bh(e,t)}(a,e);var t,n,r,i=Hh(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e),d.result(qh(t),"name")||es.c.throw(new rs.a("Must provide a name when extending BaseDataService")),d.result(qh(t),"channelName")||es.c.throw(new rs.a("Must provide a channelName for ".concat(d.result(qh(t),"name"))));var n=[].concat(Uh(t.defaultProps),Uh(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=a,(n=[{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}},{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,a=this.getEventNames(i),o=a.syncEvent,c=a.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),o,(function(e){d.isFunction(r)&&t.stopListening(t.getChannel(),c,r),d.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),c,(function(){d.isFunction(n)&&t.stopListening(t.getChannel(),o,n),d.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,a=e.resource,o=e.formatData,c=e.expiryTime,s=e.successHandler,u=e.errorHandler,l=e.bootstrapName,f=this.getEventNames(i),p=f.syncEvent,m=f.requestEvent,h=f.successEvent,y=f.errorEvent,v=this.getChannel(),b=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(i,this.bootstrapData[l],o,{openRequest:!1,timestamp:b}),delete this.bootstrapData[l]);var g,S=this.cache.get(i);S&&(g=S.data);var E=S&&S.openRequest,O=this.isExpired(i,c);if(E&&(this.listenToOnce(v,p,(function(e){d.isFunction(r)&&t.stopListening(t.getChannel(),y,r),d.isFunction(n)&&n(e)})),this.listenToOnce(v,y,(function(){d.isFunction(n)&&t.stopListening(t.getChannel(),p,n),d.isFunction(r)&&r()}))),this.cache.has(i)&&!O||(v.trigger(m),this.listenToResponse({eventPrefix:i,formatData:o,cacheOptions:{timestamp:b},callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.cacheData(i,null,null,{openRequest:!0,timestamp:b}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:h,errorEvent:y})),g&&d.isFunction(n)&&!O&&n(g),g)return g}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,i=e.formatData,a=e.callback,o=e.errorCallback,c=e.invalidationKeys,s=e.successHandler,u=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,m=this.getChannel(),h=this.getTransportChannel();m.trigger(f),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:c,callback:a,errorCallback:o,successHandler:s,errorHandler:u}),this.dataProvider.create(n,r,{channel:h,successEvent:p,errorEvent:d})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,i=e.resource,a=e.formatData,o=e.eventPrefix,c=e.invalidationKeys,s=e.errorHandler,u=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,m=this.getChannel(),h=this.getTransportChannel();m.trigger(f),this.listenToResponse({eventPrefix:o,formatData:a,invalidationKeys:c,callback:n,errorCallback:r,successHandler:u,errorHandler:s}),this.dataProvider.update(i,t,{channel:h,successEvent:p,errorEvent:d})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,i=e.errorCallback,a=e.invalidationKeys,o=e.successHandler,c=e.errorHandler,s=this.getEventNames(t),u=s.successEvent,l=s.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:a,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:o,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:u,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,r=e.formatData,i=e.callback,a=e.errorCallback,o=e.successHandler,c=e.errorHandler,s=e.invalidationKeys,u=e.cacheOptions,l=void 0===u?{}:u,f=this.getEventNames(n),p=f.syncEvent,m=f.successEvent,h=f.errorEvent,y=f.successAlertEvent,v=f.errorAlertEvent,b=this.getChannel(),g=this.getTransportChannel(),S=this.getAlertChannel();d.isFunction(i)&&this.listenToOnce(b,p,i),d.isFunction(a)&&this.listenToOnce(b,h,a),this.stopListening(S,y),this.stopListening(S,v),d.isFunction(o)&&this.listenToOnce(S,y,o),d.isFunction(c)&&this.listenToOnce(S,v,c),!d.isFunction(c)&&!1!==c&&d.isFunction(this.defaultErrorHandler)&&this.listenToOnce(S,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,m,(function(e){t.stopListening(b,h,a);for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];S.trigger.apply(S,[y,e].concat(o));var u=l.noCache?t.formatData(e,r):t.cacheData(n,e,r);l.clearCacheKey&&t.cache.remove(n),b.trigger(p,u),s&&s.length&&t.cache.invalidate(s,(function(e){return b.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,h,(function(){var e;t.stopListening(b,p,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);S.trigger(v,r),b.trigger(h,r),l.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.openRequest,a=void 0!==i&&i,o=r.timestamp;o||(o=this.currentTimestamp());var c=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:o,cursors:c,openRequest:a}),s}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:d.isUndefined(t.offset)||d.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return d.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){d.isFunction(e)&&e(t)},r=function(r,a){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[a](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return uu.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return uu.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,r=e.totalItems,i=r>0&&t<r&&t+n,a=r>0&&t>0&&Math.max(t-n,0),o={};if(i&&i<r&&(o.next=i.toString()),d.isNumber(a)&&(o.previous=a.toString()),!d.isEmpty(o))return o}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=d.isNumber(t)&&t>0&&t<n&&t+1,i=d.isNumber(t)&&t>1&&t-1,a={};if(r&&r<=n&&(a.next=r.toString()),i&&(a.previous=i.toString()),!d.isEmpty(a))return a}}])&&Vh(t.prototype,n),r&&Vh(t,r),a}(Xc.a),Qh=n(47),Xh={SHORT:120,STANDARD:600};!function(e){e[e.Subject=0]="Subject",e[e.Classification=1]="Classification",e[e.Level=2]="Level",e[e.Audience=3]="Audience"}($h||($h={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(Kh||(Kh={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(Wh||(Wh={})),function(e){e.Root="0"}(Yh||(Yh={})),function(e){e.Root="root"}(Gh||(Gh={}));var ey,ty,ny=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),backboneAudienceIds:ji.array().of(ji.string()).required("A level is required").default([])}).noUnknown();!function(e){e.Subject="Subject",e.Topic="Topic"}(ey||(ey={})),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(ty||(ty={}));var ry=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentIds:ji.array().of(ji.string()).default([Gh.Root]),backboneClassificationIds:ji.array().of(ji.string()).min(1,"A classification must be mapped to at least one subject").required("A classification must be mapped to at least one subject").default([]),type:ji.mixed().required("Type is required").default(ey.Subject),status:ji.mixed().required("Status is required").default(ty.Draft),emphasize:ji.boolean().default(!1),canBePreferred:ji.boolean().default(!1),cover:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),banner:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),tallPoster:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown()}).noUnknown(),iy=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),ay=ji.object().shape({name:ji.string().max(255,"Name is too long").required("Name is required"),description:ji.string().max(65535,"Description is too long").required("Description is required"),status:ji.mixed().required("Status is required").default(Dp.Draft)}),oy=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentId:ji.string().default(Yh.Root)}).noUnknown(),cy={singularizeMemberType:function(e){switch(e){case Kh.Playlists:return"playlist";case Kh.Series:return"series";case Kh.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case Kh.Playlists:return{application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:n};case Kh.Series:return{application:c.SERIES,action:i.Series.EDIT_SERIES,args:n};case Kh.Videos:return{application:c.VIDEOS,action:i.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(cy.singularizeMemberType(n)),appLink:{application:c.SUBJECTS,action:t===$h.Subject?i.Subjects.REMOVE_SUBJECT_MEMBER:i.Subjects.REMOVE_CLASSIFICATION_MEMBER,args:[e,r,n]},className:"text-danger"}]}},sy=function(){var e=c.SUBJECTS,t=i.Subjects;return[{label:"Classifications",appLink:{application:e,action:t.CLASSIFICATIONS},activeActions:[t.CLASSIFICATIONS,t.PRESENTATION_CLASSIFICATIONS,t.NEW_CLASSIFICATION,t.EDIT_CLASSIFICATION,t.EDIT_CLASSIFICATION_PLAYLISTS,t.EDIT_CLASSIFICATION_SERIES,t.EDIT_CLASSIFICATION_VIDEOS,t.DELETE_CLASSIFICATION,t.REMOVE_CLASSIFICATION_MEMBER]},{label:"Backbone Classifications",appLink:{application:e,action:t.SUBJECTS},activeActions:[t.SUBJECTS,t.NEW_SUBJECT,t.EDIT_SUBJECT,t.EDIT_SUBJECT_PLAYLISTS,t.EDIT_SUBJECT_SERIES,t.EDIT_SUBJECT_VIDEOS,t.SUBJECT_CLASSIFICATIONS,t.DELETE_SUBJECT,t.ADD_SUBJECT_MEMBERS,t.REMOVE_SUBJECT_MEMBER]},{label:"Audiences",appLink:{application:e,action:t.AUDIENCES},activeActions:[t.AUDIENCES,t.PRESENTATION_AUDIENCES,t.NEW_AUDIENCE,t.EDIT_AUDIENCE,t.EDIT_AUDIENCE_PLAYLISTS,t.EDIT_AUDIENCE_SERIES,t.EDIT_AUDIENCE_VIDEOS,t.REMOVE_AUDIENCE_MEMBER]},{label:"Backbone Audiences",appLink:{application:e,action:t.LEVELS},activeActions:[t.LEVELS,t.NEW_LEVEL,t.EDIT_LEVEL,t.LEVEL_AUDIENCES,t.EDIT_LEVEL_PLAYLISTS,t.EDIT_LEVEL_SERIES,t.EDIT_LEVEL_VIDEOS]},{label:"Presentations",appLink:{application:e,action:t.PRESENTATIONS},activeActions:[t.PRESENTATIONS,t.NEW_PRESENTATION,t.EDIT_PRESENTATION]}]},uy=function(e,t){var n=c.SUBJECTS,r=i.Subjects,a=[e];return[{label:"Edit Backbone Classification Details",appLink:{action:r.EDIT_SUBJECT}},{label:"Classifications",appLink:{action:r.SUBJECT_CLASSIFICATIONS}},{label:"Playlists",appLink:{action:r.EDIT_SUBJECT_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_SUBJECT_SERIES}},{label:"Videos",appLink:{action:r.EDIT_SUBJECT_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:a});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},ly=function(e,t){var n=c.SUBJECTS,r=i.Subjects;return[{label:"Edit Classification Details",appLink:{application:n,action:r.EDIT_CLASSIFICATION,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_CLASSIFICATION_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_CLASSIFICATION_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_CLASSIFICATION_VIDEOS,args:[e,t]}}]},fy=function(e,t){var n=c.SUBJECTS,r=i.Subjects,a=[e];return[{label:"Edit Level Details",appLink:{action:r.EDIT_LEVEL}},{label:"Audiences",appLink:{action:r.LEVEL_AUDIENCES}},{label:"Playlists",appLink:{action:r.EDIT_LEVEL_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_LEVEL_SERIES}},{label:"Videos",appLink:{action:r.EDIT_LEVEL_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:a});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},py=function(e,t){var n=c.SUBJECTS,r=i.Subjects;return[{label:"Edit Audience Details",appLink:{application:n,action:r.EDIT_AUDIENCE,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_AUDIENCE_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_AUDIENCE_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_AUDIENCE_VIDEOS,args:[e,t]}}]},dy={singularizeMemberType:function(e){switch(e){case Wh.Playlists:return"playlist";case Wh.Series:return"series";case Wh.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case Wh.Playlists:return{application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:n};case Wh.Series:return{application:c.SERIES,action:i.Series.EDIT_SERIES,args:n};case Wh.Videos:return{application:c.VIDEOS,action:i.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(dy.singularizeMemberType(n)),appLink:{application:c.SUBJECTS,action:t===$h.Level?i.Subjects.REMOVE_LEVEL_MEMBER:i.Subjects.REMOVE_AUDIENCE_MEMBER,args:[e,r,n]},className:"text-danger"}]}};function my(e){return(my="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 hy(e){return function(e){if(Array.isArray(e))return yy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yy(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function by(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 gy(e,t){return(gy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oy(e);if(t){var i=Oy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ey(this,n)}}function Ey(e,t){return!t||"object"!==my(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oy(e){return(Oy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cy=function(){return"/api/subjects/v1/backbone-classifications/tree"},wy=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},Ay=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/").concat(t,"?query={limit:100}")},jy=function(e,t,n){var r="/api/subjects/v1/backbone-classifications/".concat(e,"/classifications"),i=[];return t&&i.push("presentationId=".concat(t)),n&&i.push("query=".concat(n,"{limit:100}")),i.length?"".concat(r,"?").concat(i.join("&")):r},Ty=function(){return"/api/subjects/v1/backbone-classifications"},ky=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},Iy=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},Ly=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications")},_y=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications?addToClassifications=").concat(!!t)},Py=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?addToClassifications=").concat(!!t)},xy=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Ny=function(){return"/api/subjects/v1/presentations"},Dy=function(e){return"/api/subjects/v1/presentations/".concat(e)},Ry=function(){return"/api/subjects/v1/presentations"},My=function(e){return"/api/subjects/v1/presentations/".concat(e)},Uy=function(e){return"/api/subjects/v1/presentations/".concat(e,"/classifications/tree")},Fy=function(e){return"/api/subjects/v1/classifications/".concat(e,"?query=cover,banner,followers[count()]{limit:0}")},Vy=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/").concat(t,"?query={limit:100}")},By=function(){return"/api/subjects/v1/classifications"},Hy=function(e){return"/api/subjects/v1/classifications/".concat(e)},zy=function(e){return"/api/subjects/v1/classifications/".concat(e)},qy=function(e){return"/api/subjects/v1/objects/".concat(e,"/classifications")},Jy=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/classifications?presentationId=").concat(t)},$y=function(e){return"/api/subjects/v1/classifications/".concat(e,"/objects")},Ky=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Wy=function(){return"/api/subjects/v1/backbone-audiences"},Yy=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},Gy=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/").concat(t,"?query={limit:100}")},Zy=function(e,t,n){var r="/api/subjects/v1/backbone-audiences/".concat(e,"/audiences"),i=[];return t&&i.push("presentationId=".concat(t)),n&&i.push("query=".concat(n,"{limit:100}")),i.length?"".concat(r,"?").concat(i.join("&")):r},Qy=function(){return"/api/subjects/v1/backbone-audiences"},Xy=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},ev=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences")},tv=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences?addToAudiences=").concat(!!t)},nv=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?addToAudiences=").concat(!!t)},rv=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},iv=function(e){return"/api/subjects/v1/presentations/".concat(e,"/audiences")},av=function(e){return"/api/subjects/v1/audiences/".concat(e)},ov=function(e,t){return"/api/master/v2/objects/".concat(e,"/").concat(t,"?query={limit:100}")},cv=function(){return"/api/subjects/v1/audiences"},sv=function(e){return"/api/subjects/v1/audiences/".concat(e)},uv=function(e){return"/api/subjects/v1/audiences/".concat(e)},lv=function(e){return"/api/subjects/v1/objects/".concat(e,"/audiences")},fv=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/audiences?presentationId=").concat(t)},pv=function(e){return"/api/subjects/v1/audiences/".concat(e,"/objects")},dv=function(e,t){return"/api/subjects/v1/audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},mv=function(e,t,n){var r="".concat(a.SUBJECT,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(a.CLASSIFICATIONS),n&&(r+=":".concat(n)),r},hv=function(e,t,n){var r="".concat(a.LEVEL,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(a.AUDIENCES),n&&(r+=":".concat(n)),r},yv=function(e){!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&&gy(e,t)}(o,e);var t,n,r,i=Sy(o);function o(){return vy(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return u.SUBJECT}},{key:"channelName",get:function(){return s.SUBJECT}},{key:"getPresentations",value:function(e,t){return this.get({resource:Ny(),eventPrefix:a.PRESENTATIONS,expiryTime:Xh.STANDARD,callback:e,errorCallback:t})}},{key:"getPresentation",value:function(e,t,n){return this.get({resource:Dy(e),eventPrefix:"".concat(a.PRESENTATION,":").concat(e),expiryTime:Xh.STANDARD,callback:t,errorCallback:n})}},{key:"createPresentation",value:function(e,t,n){return this.create({resource:Ry(),data:e,callback:t,errorCallback:n,eventPrefix:a.PRESENTATION,invalidationKeys:[a.PRESENTATIONS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully created presentation."),errorHandler:this.alertService.error("Failed to create presentation.")})}},{key:"updatePresentation",value:function(e,t,n,r){return this.update({resource:My(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(a.UPDATE_PRESENTATION,":").concat(e),invalidationKeys:["".concat(a.PRESENTATION,":").concat(e),a.PRESENTATIONS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully updated presentation."),errorHandler:this.alertService.error("Failed to update presentation.")})}},{key:"getSubjectTree",value:function(e,t){return this.get({resource:Cy(),formatData:function(e){return{children:e,name:Yh.Root,id:null}},eventPrefix:a.SUBJECTS,expiryTime:Xh.STANDARD,callback:e,errorCallback:t})}},{key:"getSubject",value:function(e,t,n){return this.get({resource:wy(e),eventPrefix:"".concat(a.SUBJECT,":").concat(e),expiryTime:Xh.STANDARD,callback:t,errorCallback:n})}},{key:"getSubjectMemberIds",value:function(e,t,n,r){return this.get({resource:Ay(e,t),eventPrefix:"".concat(a.SUBJECT,":").concat(e,":").concat(t),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"getSubjectClassifications",value:function(e,t,n,r,i){return this.get({resource:jy(e,t,n),eventPrefix:mv(e,t,n),expiryTime:Xh.STANDARD,callback:r,errorCallback:i})}},{key:"createSubject",value:function(e,t,n){return this.create({resource:Ty(),data:e,callback:t,errorCallback:n,eventPrefix:a.SUBJECT,invalidationKeys:[a.SUBJECTS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully created subject."),errorHandler:this.alertService.error("Failed to create subject.")})}},{key:"updateSubject",value:function(e,t,n,r){return this.update({resource:ky(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(a.UPDATE_SUBJECT,":").concat(e),invalidationKeys:["".concat(a.SUBJECT,":").concat(e),a.SUBJECTS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully updated subject."),errorHandler:this.alertService.error("Failed to save subject.")})}},{key:"deleteSubject",value:function(e,t,n){var r=this;return this.delete({resource:Iy(e),callback:t,errorCallback:n,eventPrefix:a.DELETE_SUBJECT,invalidationKeys:["".concat(a.SUBJECT,":").concat(e),a.SUBJECTS],successHandler:this.alertService.success("Successfully deleted subject."),errorHandler:function(e){var t=(null==e?void 0:e.code)===Qh.a.Conflict?"Cannot delete a subject with child subjects and/or classifications.":"Failed to delete subject.";r.alertService.error(t)()}})}},{key:"getObjectSubjects",value:function(e,t,n,r){return this.get({resource:Ly(e),eventPrefix:"".concat(t,":").concat(e,":").concat(a.SUBJECTS),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectSubjects",value:function(e,t,n,r,i,o){var c=cy.singularizeMemberType(n),s=["".concat(n,":").concat(e,":").concat(a.SUBJECTS)];return r&&s.push("".concat(n,":").concat(e,":").concat(a.CLASSIFICATIONS)),s.push.apply(s,hy(t.map((function(e){return"".concat(a.SUBJECTS,":").concat(e,":").concat(n)})))),this.update({resource:_y(e,r),data:t,callback:i,errorCallback:o,eventPrefix:"".concat(a.UPDATE_OBJECT_SUBJECTS,":").concat(e),invalidationKeys:s,successHandler:this.alertService.success("Successfully updated ".concat(c," subjects.")),errorHandler:this.alertService.error("Failed to update ".concat(c," subjects."))})}},{key:"addObjectsToSubject",value:function(e,t,n,r,i,o){var c=1===t.length?cy.singularizeMemberType(n):n,s=["".concat(a.SUBJECT,":").concat(e,":").concat(n)].concat(hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.SUBJECTS)}))),hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.CLASSIFICATIONS)}))));return this.create({resource:Py(e,r),data:t,callback:i,errorCallback:o,eventPrefix:"".concat(a.ADD_TO_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to subject.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to subject."))})}},{key:"removeObjectsFromSubject",value:function(e,t,n,r,i){var o=1===t.length?cy.singularizeMemberType(n):n,c=["".concat(a.SUBJECT,":").concat(e,":").concat(n)].concat(hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.SUBJECTS)}))));return this.delete({resource:xy(e,t),callback:r,errorCallback:i,eventPrefix:"".concat(a.REMOVE_FROM_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(o," from subject.")),errorHandler:this.alertService.error("Failed to remove ".concat(o," from subject."))})}},{key:"getClassificationTree",value:function(e,t,n){return this.get({resource:Uy(e),formatData:function(e){return{children:e,name:Gh.Root,id:null}},eventPrefix:"".concat(a.CLASSIFICATIONS,":").concat(e),expiryTime:Xh.STANDARD,callback:t,errorCallback:n})}},{key:"getClassification",value:function(e,t,n){return this.get({resource:Fy(e),eventPrefix:"".concat(a.CLASSIFICATION,":").concat(e),expiryTime:Xh.STANDARD,callback:t,errorCallback:n})}},{key:"getClassificationMembers",value:function(e,t,n,r){return this.get({resource:Vy(e,t),eventPrefix:"".concat(a.CLASSIFICATION,":").concat(e,":").concat(t),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"createClassification",value:function(e,t,n){return this.create({resource:By(),data:e,callback:t,errorCallback:n,eventPrefix:a.CLASSIFICATION,invalidationKeys:[a.CLASSIFICATIONS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully created classification."),errorHandler:this.alertService.error("Failed to create classification.")})}},{key:"updateClassification",value:function(e,t,n,r){return this.update({resource:Hy(e),data:Ci.a.omit(t,["followers"]),callback:n,errorCallback:r,eventPrefix:"".concat(a.UPDATE_CLASSIFICATION,":").concat(e),invalidationKeys:["".concat(a.CLASSIFICATION,":").concat(e),a.CLASSIFICATIONS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully updated classification."),errorHandler:this.alertService.error("Failed to save classification.")})}},{key:"deleteClassification",value:function(e,t,n){return this.delete({resource:zy(e),callback:t,errorCallback:n,eventPrefix:a.DELETE_CLASSIFICATION,invalidationKeys:["".concat(a.CLASSIFICATION,":").concat(e),a.CLASSIFICATIONS],successHandler:this.alertService.success("Successfully deleted classification"),errorHandler:this.alertService.error("Failed to delete classification")})}},{key:"getObjectClassifications",value:function(e,t,n,r){return this.get({resource:qy(e),eventPrefix:"".concat(t,":").concat(e,":").concat(a.CLASSIFICATIONS),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectClassifications",value:function(e,t,n,r,i,o){var c=cy.singularizeMemberType(r),s=["".concat(r,":").concat(e,":").concat(a.CLASSIFICATIONS)];return s.push.apply(s,hy(n.map((function(e){return"".concat(a.CLASSIFICATION,":").concat(e,":").concat(r)})))),this.update({resource:Jy(e,t),data:n,callback:i,errorCallback:o,eventPrefix:"".concat(a.UPDATE_OBJECT_CLASSIFICATIONS,":").concat(e),invalidationKeys:s,successHandler:this.alertService.success("Successfully updated ".concat(c," classifications.")),errorHandler:this.alertService.error("Failed to update ".concat(c," classifications."))})}},{key:"addObjectsToClassification",value:function(e,t,n,r,i,o,c){var s=1===t.length?cy.singularizeMemberType(n):n,u=["".concat(a.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&u.push(mv(r,i,n)),u.push.apply(u,hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.CLASSIFICATIONS)})))),this.create({resource:$y(e),data:t,callback:o,errorCallback:c,eventPrefix:"".concat(a.ADD_TO_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(s," to classification.")),errorHandler:this.alertService.error("Failed to add ".concat(s," to classification."))})}},{key:"removeObjectsFromClassification",value:function(e,t,n,r,i,o,c){var s=1===t.length?cy.singularizeMemberType(n):n,u=["".concat(a.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&u.push(mv(r,i,n)),u.push.apply(u,hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.CLASSIFICATIONS)})))),this.delete({resource:Ky(e,t),callback:o,errorCallback:c,eventPrefix:"".concat(a.REMOVE_FROM_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(s," from classification.")),errorHandler:this.alertService.error("Failed to remove ".concat(s," from classification."))})}},{key:"getLevels",value:function(e,t){return this.get({resource:Wy(),eventPrefix:a.LEVELS,expiryTime:Xh.STANDARD,callback:e,errorCallback:t})}},{key:"getLevel",value:function(e,t,n){return this.get({resource:Yy(e),eventPrefix:"".concat(a.LEVEL,":").concat(e),expiryTime:Xh.STANDARD,callback:t,errorCallback:n})}},{key:"getLevelMemberIds",value:function(e,t,n,r){return this.get({resource:Gy(e,t),eventPrefix:"".concat(a.LEVEL,":").concat(e,":").concat(t),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"getLevelAudiences",value:function(e,t,n,r,i){return this.get({resource:Zy(e,t,n),eventPrefix:hv(e,t,n),expiryTime:Xh.STANDARD,callback:r,errorCallback:i})}},{key:"createLevel",value:function(e,t,n){return this.create({resource:Qy(),data:e,callback:t,errorCallback:n,eventPrefix:a.LEVEL,invalidationKeys:[a.LEVELS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully created level."),errorHandler:this.alertService.error("Failed to create level.")})}},{key:"updateLevel",value:function(e,t,n,r){return this.update({resource:Xy(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(a.UPDATE_LEVEL,":").concat(e),invalidationKeys:["".concat(a.LEVEL,":").concat(e),a.LEVELS],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully updated level."),errorHandler:this.alertService.error("Failed to save level.")})}},{key:"getObjectLevels",value:function(e,t,n,r){return this.get({resource:ev(e),eventPrefix:"".concat(t,":").concat(e,":").concat(a.LEVELS),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectLevels",value:function(e,t,n,r,i,o){var c=cy.singularizeMemberType(n),s=["".concat(n,":").concat(e,":").concat(a.LEVELS)];return r&&s.push("".concat(n,":").concat(e,":").concat(a.AUDIENCES)),this.update({resource:tv(e,r),data:t,callback:i,errorCallback:o,eventPrefix:"".concat(a.UPDATE_OBJECT_LEVELS,":").concat(e),invalidationKeys:s,successHandler:this.alertService.success("Successfully updated ".concat(c," levels.")),errorHandler:this.alertService.error("Failed to update ".concat(c," levels."))})}},{key:"addObjectsToLevel",value:function(e,t,n,r,i,o){var c=1===t.length?dy.singularizeMemberType(n):n,s=["".concat(a.LEVEL,":").concat(e,":").concat(n)].concat(hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.LEVELS)}))),hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.AUDIENCES)}))));return this.create({resource:nv(e,r),data:t,callback:i,errorCallback:o,eventPrefix:"".concat(a.ADD_TO_LEVEL,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to level.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to level."))})}},{key:"removeObjectsFromLevel",value:function(e,t,n,r,i){var o=1===t.length?dy.singularizeMemberType(n):n,c=["".concat(a.LEVEL,":").concat(e,":").concat(n)].concat(hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.LEVELS)}))));return this.delete({resource:rv(e,t),callback:r,errorCallback:i,eventPrefix:"".concat(a.REMOVE_FROM_LEVEL,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(o," from level.")),errorHandler:this.alertService.error("Failed to remove ".concat(o," from level."))})}},{key:"getAudiences",value:function(e,t,n){return this.get({resource:iv(e),callback:t,errorCallback:n,eventPrefix:"".concat(a.AUDIENCES,":").concat(e),expiryTime:Xh.STANDARD})}},{key:"getAudience",value:function(e,t,n){return this.get({resource:av(e),callback:t,errorCallback:n,eventPrefix:"".concat(a.AUDIENCE,":").concat(e),expiryTime:Xh.STANDARD})}},{key:"getAudienceMembers",value:function(e,t,n,r){return this.get({resource:ov(e,t),eventPrefix:"".concat(a.AUDIENCE,":").concat(e,":").concat(t),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"createAudience",value:function(e,t,n){return this.create({resource:cv(),data:e,callback:t,errorCallback:n,eventPrefix:a.AUDIENCE,invalidationKeys:[a.AUDIENCES],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully created audience."),errorHandler:this.alertService.error("Failed to create audience.")})}},{key:"updateAudience",value:function(e,t,n,r){return this.update({resource:sv(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(a.UPDATE_AUDIENCE,":").concat(e),invalidationKeys:["".concat(a.AUDIENCE,":").concat(e),a.AUDIENCES],expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully updated audience."),errorHandler:this.alertService.error("Failed to update audience.")})}},{key:"deleteAudience",value:function(e,t,n){return this.delete({resource:uv(e),callback:t,errorCallback:n,eventPrefix:a.DELETE_AUDIENCE,invalidationKeys:["".concat(a.AUDIENCE,":").concat(e),a.AUDIENCES],successHandler:this.alertService.success("Successfully deleted audience"),errorHandler:this.alertService.error("Failed to delete audience")})}},{key:"getObjectAudiences",value:function(e,t,n,r){return this.get({resource:lv(e),eventPrefix:"".concat(t,":").concat(e,":").concat(a.AUDIENCES),expiryTime:Xh.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectAudiences",value:function(e,t,n,r,i,o){var c=cy.singularizeMemberType(r);return this.update({resource:fv(e,t),data:n,callback:i,errorCallback:o,eventPrefix:"".concat(a.UPDATE_OBJECT_AUDIENCES,":").concat(e),invalidationKeys:["".concat(r,":").concat(e,":").concat(a.AUDIENCES)],successHandler:this.alertService.success("Successfully updated ".concat(c," audiences.")),errorHandler:this.alertService.error("Failed to update ".concat(c," audiences."))})}},{key:"addObjectsToAudience",value:function(e,t,n,r,i,o,c){var s=1===t.length?dy.singularizeMemberType(n):n,u=["".concat(a.AUDIENCE,":").concat(e,":").concat(n)];return r&&u.push(hv(r,i,n)),u.push.apply(u,hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.AUDIENCES)})))),this.create({resource:pv(e),data:t,callback:o,errorCallback:c,eventPrefix:"".concat(a.ADD_TO_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(s," to audience.")),errorHandler:this.alertService.error("Failed to add ".concat(s," to audience."))})}},{key:"removeObjectsFromAudience",value:function(e,t,n,r,i,o,c){var s=1===t.length?dy.singularizeMemberType(n):n,u=["".concat(a.AUDIENCE,":").concat(e,":").concat(n)];return r&&u.push(hv(r,i,n)),u.push.apply(u,hy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(a.AUDIENCES)})))),this.delete({resource:dv(e,t),callback:o,errorCallback:c,eventPrefix:"".concat(a.REMOVE_FROM_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:Xh.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(s," from audience.")),errorHandler:this.alertService.error("Failed to remove ".concat(s," from audience."))})}}])&&by(t.prototype,n),r&&by(t,r),o}(Zh),vv={dataServiceName:u.SUBJECT,dataChannelName:s.SUBJECT},bv={getSubjectTreeFetchOptions:function(e,t){return Object.assign(Object.assign({},vv),{eventPrefix:a.SUBJECTS,fetchData:function(e){return e.getSubjectTree()},setData:e,onError:t})},getSubjectFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.SUBJECT,":").concat(e),fetchData:function(t){return t.getSubject(e)},setData:t,onError:n,deleteEventPrefix:a.DELETE_SUBJECT})},getSubjectMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.SUBJECT,":").concat(e,":").concat(t),fetchData:function(n){return n.getSubjectMemberIds(e,t)},setData:n,onError:r})},getSubjectClassificationFetchOptions:function(e,t,n,r,i){return Object.assign(Object.assign({},vv),{eventPrefix:mv(e,n,r),fetchData:function(t){return t.getSubjectClassifications(e,n,r)},setData:t,onError:i})},getObjectSubjectsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(t,":").concat(e,":").concat(a.SUBJECTS),fetchData:function(n){return n.getObjectSubjects(e,t)},setData:n,onError:r})},getPresentationsFetchOptions:function(e,t){return Object.assign(Object.assign({},vv),{eventPrefix:a.PRESENTATIONS,fetchData:function(e){return e.getPresentations()},setData:e,onError:t})},getPresentationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.PRESENTATION,":").concat(e),fetchData:function(t){return t.getPresentation(e)},setData:t,onError:n})},getClassificationTreeFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.CLASSIFICATIONS,":").concat(e),fetchData:function(t){return t.getClassificationTree(e)},setData:t,onError:n})},getClassificationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.CLASSIFICATION,":").concat(e),fetchData:function(t){return t.getClassification(e)},setData:t,onError:n,deleteEventPrefix:a.DELETE_CLASSIFICATION})},getClassificationMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.CLASSIFICATION,":").concat(e,":").concat(t),fetchData:function(n){return n.getClassificationMembers(e,t)},setData:n,onError:r})},getObjectClassificationsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(t,":").concat(e,":").concat(a.CLASSIFICATIONS),fetchData:function(n){return n.getObjectClassifications(e,t)},setData:n,onError:r})},getLevelsFetchOptions:function(e,t){return Object.assign(Object.assign({},vv),{eventPrefix:a.LEVELS,fetchData:function(e){return e.getLevels()},setData:e,onError:t})},getLevelFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.LEVEL,":").concat(e),fetchData:function(t){return t.getLevel(e)},setData:t,onError:n})},getLevelMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.LEVEL,":").concat(e,":").concat(t),fetchData:function(n){return n.getLevelMemberIds(e,t)},setData:n,onError:r})},getLevelAudiencesFetchOptions:function(e,t,n,r,i){return Object.assign(Object.assign({},vv),{eventPrefix:hv(e,n,r),fetchData:function(t){return t.getLevelAudiences(e,n,r)},setData:t,onError:i})},getObjectLevelsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(t,":").concat(e,":").concat(a.LEVELS),fetchData:function(n){return n.getObjectLevels(e,t)},setData:n,onError:r})},getAudiencesFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.AUDIENCES,":").concat(e),fetchData:function(t){return t.getAudiences(e)},setData:t,onError:n})},getAudienceFetchOptions:function(e,t,n){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.AUDIENCE,":").concat(e),fetchData:function(t){return t.getAudience(e)},setData:t,onError:n})},getAudienceMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(a.AUDIENCE,":").concat(e,":").concat(t),fetchData:function(n){return n.getAudienceMembers(e,t)},setData:n,onError:r})},getObjectAudiencesFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},vv),{eventPrefix:"".concat(t,":").concat(e,":").concat(a.AUDIENCES),fetchData:function(n){return n.getObjectAudiences(e,t)},setData:n,onError:r})}},gv=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[e.id]}},Sv=function(e,t){var n=e.backboneAudienceIds;return t.filter((function(e){return n.includes(e.id)}))};function Ev(e){var t=e.showLevels;return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,"Audiences"),!!t&&l.createElement("th",null,"Mapped Backbone Audience(s)")))}function Ov(e){var t,n=e.audience,r=e.levels;return l.createElement("tr",null,l.createElement("td",null,l.createElement(gu,{appLink:(t=n,{application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[t.presentationId,t.masterId]})},n.name)),l.createElement("td",null,r.map((function(e){return l.createElement(gu,{key:e.id,appLink:gv(e),className:"mr-2"},e.name)}))))}function Cv(e){var t=e.audiences,n=e.levels;return l.createElement(ki.Table,{responsive:!0,bordered:!0},l.createElement(Ev,{showLevels:!!t.length}),l.createElement("tbody",null,t.length?t.map((function(e){return l.createElement(Ov,{key:e.masterId,audience:e,levels:Sv(e,n)})})):l.createElement("tr",null,l.createElement("td",null,"This presentation has no audiences."))))}function wv(e){var t=null===e.masterId||void 0===e.masterId,n=ci(),r=Gc(n);return l.createElement(vi,null,l.createElement(Kc,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this audience",autoFocus:!0}),l.createElement(Kc,{label:"Mapped Level(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return l.createElement("option",{key:e.id,value:e.id},e.name)}))),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(vf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(ki.Button,{as:gu,variant:"danger",appLink:{application:c.SUBJECTS,action:i.Subjects.DELETE_AUDIENCE,args:[e.presentationId,e.masterId]}},"Delete")))}function Av(e){return l.createElement(Ai,{initialValues:e.audience,validationSchema:ny,onSubmit:e.saveAudience},l.createElement(wv,{masterId:e.audience&&e.audience.masterId,presentationId:e.presentationId,levels:e.levels}))}function jv(e){var t=e.objectAudiences,n=e.presentationAudiences;return t.filter((function(e){return n.some((function(t){return t.masterId===e.masterId}))}))}function Tv(e){var t,n,r,i,a,o=cy.singularizeMemberType(e.memberType),c=(n=(t=e).presentationAudiences,r=t.objectLevels,i=t.objectAudiences,a=r.map((function(e){return e.id})),n.filter((function(e){return Ap.a.intersection(e.backboneAudienceIds,a).length||i.some((function(t){return t.masterId===e.masterId}))})));return l.createElement(l.Fragment,null,l.createElement("div",{className:"border-bottom pb-3 mb-3"},l.createElement("h6",null,"Backbone Audiences"),l.createElement("p",null,"Select which backbone audiences this ".concat(o," is mapped to.")),l.createElement("p",null,"To see how backbone audiences correspond to audiences, scroll down to the audience-backbone audience mappings table."),l.createElement(Qv,{initialValues:{backboneAudienceIds:e.objectLevels.map((function(e){return e.id}))},saveLevels:e.saveLevels,levels:e.levels,memberType:e.memberType})),l.createElement("h6",null,"Audiences"),l.createElement("p",null,"Select a presentation to view its audiences and map them to this ".concat(o,".")),l.createElement("div",{className:"w-50 pb-3"},l.createElement(lb,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),l.createElement("p",null,"Audience to backbone audience mappings for this presentation are displayed below."),l.createElement(Cv,{levels:e.levels,audiences:e.presentationAudiences}),l.createElement("p",null,"Only the audiences which are mapped to a backbone audience that this"+" ".concat(o," is mapped to are displayed below.")),!!c.length&&l.createElement(Iv,{initialValues:{audienceIds:jv(e).map((function(e){return e.masterId}))},saveAudiences:e.saveAudiences,audiences:c}))}function kv(e){var t=ci(),n=Gc(t);return l.createElement(vi,null,l.createElement(Kc,{label:"Audience(s)",as:"select",name:"audienceIds",id:"audience-ids",multiple:!0,size:e.audiences.length,value:t.values.audienceIds},e.audiences.map((function(e){return l.createElement("option",{key:e.masterId,value:e.masterId},e.name)}))),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(vf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Audiences")))}function Iv(e){return l.createElement(Ai,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.audienceIds;return e.saveAudiences(r,n)},enableReinitialize:!0},l.createElement(kv,{audiences:e.audiences}))}var Lv=function(e){return function(t){if(!e)return t.appLink.action===i.Subjects.EDIT_AUDIENCE;switch(e){case Wh.Playlists:return t.appLink.action===i.Subjects.EDIT_AUDIENCE_PLAYLISTS;case Wh.Series:return t.appLink.action===i.Subjects.EDIT_AUDIENCE_SERIES;case Wh.Videos:return t.appLink.action===i.Subjects.EDIT_AUDIENCE_VIDEOS}}};function _v(e){var t=e.presentation,n=e.audienceId,r=e.memberType;return t?l.createElement(l.Fragment,null,l.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:py(t.id,n),isItemActive:Lv(r)}))):l.createElement(l.Fragment,null)}function Pv(e){var t=e.item,n=e.getItemAppLink,r=e.actions;return l.createElement("tr",null,l.createElement("td",null,l.createElement(gu,{appLink:n(t)},t.name)),r&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Cl,{actions:r}))))}function xv(e){var t=e.items,n=e.memberType,r=e.getItemAppLink,i=e.getActions;if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this audience."));var a="".concat(Ll(dy.singularizeMemberType(n))," Name");return l.createElement(ki.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,a),m(i)&&l.createElement("th",null))),l.createElement("tbody",null,t.map((function(e){return l.createElement(Pv,{item:e,key:e.id,getItemAppLink:r,actions:m(i)&&i(e)})}))))}function Nv(e){var t=e.item,n=e.getItemAppLink,r=e.actions,i=e.pinState;return l.createElement("tr",null,l.createElement("td",null,l.createElement(gu,{appLink:n(t)},t.name)),i.isPinnable&&l.createElement("td",null,l.createElement(ku,{selected:parseInt(t.id)===parseInt(i.currentPinnedVideo),onToggle:function(e){return i.onChange(e,t.id)},id:t.id})),r&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Cl,{actions:r}))))}function Dv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fv(e){var t=e.items,n=e.memberType,r=e.classification,i=e.getItemAppLink,a=e.getActions,o=e.updatePinnedVideo,c=Mv(l.useState(!1),2),s=c[0],u=c[1],f=function(e,t){var n=e.pinnedVideoMasterId||null,r=Dv(l.useState(n),2),i=r[0],a=r[1];return{currentPinnedVideo:i,onChange:function(e,t){a(e?t:null)},canSubmit:n!==i,isPinnable:t===Kh.Videos}}(r,n);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this classification."));var p="".concat(Ll(cy.singularizeMemberType(n))," Name");return l.createElement(l.Fragment,null,l.createElement(ki.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,p),f.isPinnable&&l.createElement("th",null,"Pinned"),m(a)&&l.createElement("th",null))),l.createElement("tbody",null,t.map((function(e){return l.createElement(Nv,{item:e,key:e.id,getItemAppLink:i,actions:m(a)&&a(e),pinState:f})})))),f.isPinnable&&l.createElement(vf,{showSpinner:s,onClick:function(){u(!0),o(f.currentPinnedVideo,(function(){return u(!1)}))},disabled:!f.canSubmit||s},"Save"))}function Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Hv=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[e]}};function zv(e){var t,n,r,a,o,s=ci(),u=Gc(s),f=null===(null===(t=e.classification)||void 0===t?void 0:t.id)||void 0===(null===(n=e.classification)||void 0===n?void 0:n.id),p=!f||!(!s.values.parentIds||!s.values.parentIds.length),d=Vv(l.useState(p),2),m=d[0],h=d[1];l.useEffect((function(){return h(p)}),[null===(r=e.classification)||void 0===r?void 0:r.id,s.values.parentIds]),l.useEffect((function(){s.values.backboneClassificationIds.length&&!s.touched.backboneClassificationIds&&s.setFieldTouched("backboneClassificationIds",!0)}),[s.values.backboneClassificationIds]);var y=function(e){return s.setFieldValue("parentIds",Ap.a.addOrRemove(s.values.parentIds.map((function(e){return e.toString()})),e.id.toString()))},v=function(e){return s.setFieldValue("backboneClassificationIds",Ap.a.addOrRemove(s.values.backboneClassificationIds.map((function(e){return e.toString()})),e.id.toString()))},b=function(e){return"".concat(Ii(s.errors,s.touched,e)," h-auto py-2")};return l.createElement(vi,null,l.createElement(Kc,{label:"Name",name:"name",id:"name",value:s.values.name,placeholder:"Enter a name for this classification",autoFocus:!0}),l.createElement(Kc,{as:"select",label:"Type",name:"type",id:"type",value:s.values.type},Ci.a.getEnumKeys(ey).map((function(e){return l.createElement("option",{key:e,value:ey[e]},e)}))),l.createElement(Kc,{as:"select",label:"Status",name:"status",id:"status",value:s.values.status,disabled:f},Ci.a.getEnumKeys(ty).map((function(e){return l.createElement("option",{key:e,value:ty[e]},e)}))),l.createElement(Kc,{label:"Emphasize",name:"emphasize",id:"emphasize",type:"checkbox",checked:s.values.emphasize}),l.createElement(Kc,{label:"Can Be Preferred",name:"canBePreferred",id:"canBePreferred",type:"checkbox",checked:s.values.canBePreferred}),!f&&l.createElement(l.Fragment,null,l.createElement("label",null,"Total Followers:")," ",null===(a=e.classification.followers)||void 0===a?void 0:a.count),l.createElement(Kc,{name:"parentIds"},(function(){var t,n,r;return l.createElement("div",{className:b("parentIds")},l.createElement(Wl,{label:"Parent Classification(s)",tree:e.classificationTree,selectedIds:s.values.parentIds,onSelect:y,collapse:m,noSelectionMessage:"No parent selected, this will be a root classification.",isNodeDisabled:(n=e.classificationTree,r=null===(t=e.classification)||void 0===t?void 0:t.id,function(e){if(e.id===r)return!0;var t=xl.find(n,r);return!!xl.find(t,e.id)})}))})),l.createElement(Kc,{name:"backboneClassificationIds"},(function(){return l.createElement("div",{className:b("backboneClassificationIds")},l.createElement(Wl,{label:"Mapped Subject(s)",tree:e.subjectTree,selectedIds:s.values.backboneClassificationIds,onSelect:v,collapse:!f,getSelectedItemAppLink:Hv}))})),l.createElement(cl,{imageType:wu.Covers,fieldName:"cover",application:c.SUBJECTS,uploadAction:i.Subjects.UPLOAD_IMAGE}),l.createElement(cl,{imageType:wu.Banners,fieldName:"banner",application:c.SUBJECTS,uploadAction:i.Subjects.UPLOAD_IMAGE}),l.createElement(cl,{imageType:wu.TallPosters,fieldName:"tallPoster",application:c.SUBJECTS,uploadAction:i.Subjects.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(vf,{showSpinner:s.isSubmitting,type:"submit",disabled:!u},f?"Create":"Save"),!f&&l.createElement(ki.Button,{as:gu,variant:"danger",appLink:{application:c.SUBJECTS,action:i.Subjects.DELETE_CLASSIFICATION,args:[e.presentationId,null===(o=e.classification)||void 0===o?void 0:o.id]}},"Delete")))}function qv(e){return l.createElement(Ai,{initialValues:e.classification,validationSchema:ry,onSubmit:e.saveClassification},l.createElement(zv,{presentationId:e.presentationId,classificationTree:e.classificationTree,subjectTree:e.subjectTree,classification:e.classification}))}var Jv=function(e){return function(t){if(!e)return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION;switch(e){case Kh.Playlists:return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;case Kh.Series:return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION_SERIES;case Kh.Videos:return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION_VIDEOS}}};function $v(e){var t=e.presentation,n=e.classificationId,r=e.memberType;return t?l.createElement(l.Fragment,null,l.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:ly(t.id,n),isItemActive:Jv(r)}))):l.createElement(l.Fragment,null)}function Kv(e){var t=ci(),n=Gc(t),r=function(e){return t.setFieldValue("classificationIds",Ap.a.addOrRemove(t.values.classificationIds.map((function(e){return e.toString()})),e.id.toString()))},a="".concat(Ii(t.errors,t.touched,"classificationIds")," h-auto py-2");return l.createElement(vi,null,l.createElement(Kc,{name:"classificationIds"},(function(){return l.createElement("div",{className:a},l.createElement(Wl,{label:"Mapped Classification(s)",tree:e.classificationTree,selectedIds:t.values.classificationIds,onSelect:r,getSelectedItemAppLink:(n=e.presentationId,function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[n,e]}}),isNodeDisabled:e.isClassificationDisabled}));var n})),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(vf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Classifications")))}function Wv(e){return l.createElement(Ai,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.classificationIds;return e.saveClassifications(r,n)},enableReinitialize:!0},l.createElement(Kv,{presentationId:e.presentationId,classificationTree:e.classificationTree,isClassificationDisabled:e.isClassificationDisabled}))}function Yv(e){var t=null===e.id||void 0===e.id,n=ci(),r=Gc(n);return l.createElement(vi,null,l.createElement(Kc,{label:"Name",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this level",autoFocus:!0}),l.createElement(vf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"))}function Gv(e){return l.createElement(Ai,{initialValues:e.level,validationSchema:iy,onSubmit:e.saveLevel},l.createElement(Yv,{id:e.level&&e.level.id}))}function Zv(e){var t=cy.singularizeMemberType(e.memberType),n=ci(),r=Gc(n);return l.createElement(vi,null,l.createElement(Kc,{label:"Backbone Audience(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return l.createElement("option",{key:e.id,value:e.id},e.name)}))),l.createElement("p",null,l.createElement("strong",null,"Note:")," When removing a ".concat(t," from a backbone audience, that backbone audience's mapped audiences "),l.createElement("strong",null,"will not")," be automatically removed from."),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(vf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},"Save Backbone Audience")))}function Qv(e){return l.createElement(Ai,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.backboneAudienceIds;return e.saveLevels(r,!1,n)}},l.createElement(Zv,{levels:e.levels,memberType:e.memberType}))}var Xv=function(e){return function(t){return t.appLink.action===e}};function eb(e){var t=e.levelId,n=e.activeAction,r=e.presentationId;return l.createElement(l.Fragment,null,l.createElement(ki.Alert,{variant:"danger"},"Warning: You are editing the backbone audiences."),l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:fy(t,r),isItemActive:Xv(n)})))}var tb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function nb(e){return l.createElement(l.Fragment,null,e.audiences.map((function(t){return l.createElement("th",{key:t.masterId},l.createElement("span",{className:"d-inline-block"},l.createElement(ku,{selected:e.getIsAudienceSelected(t),onToggle:function(n){return e.onToggleAudience(t.masterId,n)}})),l.createElement(gu,{appLink:e.getAudienceAppLink(t.masterId)},function(e,t){return t?e.name:"Audience: ".concat(e.name)}(t,e.showAudienceSubHeader)))})))}function rb(e){var t=e.memberType,n=e.hasActions,r=e.audiences,i=tb(e,["memberType","hasActions","audiences"]),a="".concat(Ll(dy.singularizeMemberType(t))," Name"),o=!!r&&!!r.length,c=o&&r.length>1,s=o?2:1,u=Object.assign({audiences:r,showAudienceSubHeader:c},i);return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",{rowSpan:s},a),o&&(c?l.createElement("th",{colSpan:r.length,className:"text-center"},"Audiences"):l.createElement(nb,Object.assign({},u))),n&&l.createElement("th",{rowSpan:s})),o&&c&&l.createElement("tr",null,l.createElement(nb,Object.assign({},u))))}function ib(e){var t=e.member,n=t.id,r=t.name,i=t.audiences,a=void 0===i?[]:i,o=e.getMemberAppLink,c=e.onToggleAudience,s=e.actions,u=m(o)&&o(n);return a.length&&!m(c)&&p.ErrorHelper.throw(new rs.a("onToggleAudience must be passed to LevelMemberItem")),l.createElement("tr",null,l.createElement("td",null,u?l.createElement(gu,{appLink:o(n)},r):r),!!a.length&&a.map((function(e){return l.createElement("td",{key:e.id},l.createElement(ku,{selected:e.selected,onToggle:function(t){return c(e.id,t,n)}}))})),s&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Cl,{actions:s}))))}var ab=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ob(e,t){return function(n){var r=n[e],i=Zl(r);return!!i&&i===t.length}}function cb(e){var t=e.members,n=e.memberType,r=e.getActions,i=e.audiences,a=e.getAudienceAppLink,o=e.onToggleAudience,c=ab(e,["members","memberType","getActions","audiences","getAudienceAppLink","onToggleAudience"]);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this level."));var s=m(r),u={memberType:n,audiences:i,getAudienceAppLink:a,getIsAudienceSelected:ob(n,t),onToggleAudience:o,hasActions:s};return l.createElement(ki.Table,{responsive:!0,bordered:!0},l.createElement(rb,Object.assign({},u)),l.createElement("tbody",null,t.map((function(e,t){return l.createElement(ib,Object.assign({key:t,member:e,actions:s&&r(e.id),onToggleAudience:o},c))}))))}function sb(e){var t=ci();return l.createElement(vi,null,l.createElement(Kc,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this presentation",autoFocus:!0}),l.createElement(Kc,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this presentation here"}),l.createElement(Kc,{as:"select",label:"Status",name:"status",id:"status",value:t.values.status,disabled:e.isNew},Ci.a.getEnumKeys(Dp).map((function(e){return l.createElement("option",{key:e,value:Dp[e]},e)}))),l.createElement("div",{className:"btn-container d-flex justify-content-end"},l.createElement(ys,{isNew:e.isNew})))}function ub(e){var t;return l.createElement(Ai,{initialValues:e.presentation,validationSchema:ay,onSubmit:e.savePresentation},l.createElement(sb,{isNew:!(null===(t=e.presentation)||void 0===t?void 0:t.id)}))}function lb(e){var t=e.presentations,n=e.currentPresentationId,r=e.setCurrentPresentation,i=e.label,a=function(e){var n=function(e,t){return Ap.a.first(t.filter((function(t){return t.id.toString()===e.toString()})))}(e,t);r(n)};return l.useEffect((function(){t&&!n&&r(Ap.a.first(t))}),[t]),l.createElement(l.Fragment,null,!!n&&l.createElement(l.Fragment,null,l.createElement(ki.Form.Label,null,i),l.createElement(ki.Form.Control,{as:"select",value:n,onChange:function(e){return a(e.target.value)},className:"cursor-pointer"},t.map((function(e){return l.createElement("option",{value:e.id,key:e.id},e.name)})))))}function fb(e){return l.createElement(l.Fragment,null,l.createElement("h4",null,"".concat(Ll(e.memberType))),l.createElement(ki.Table,{responsive:!0},l.createElement("tbody",null,e.objects&&e.objects.map((function(t){return l.createElement("tr",{key:t.id},l.createElement("td",null,l.createElement(gu,{appLink:cy.getMemberAppLink(e.memberType,t.id)},t.name)))})))),l.createElement(Cb,{initialValues:{backboneClassificationIds:[]},subjectTree:e.subjectTree,saveSubjects:e.onClickAddToSubject,memberType:e.memberType,saveBtnText:"Add to backbone classification",subjectRequired:!0}))}function pb(e){return function(e){if(Array.isArray(e))return db(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return db(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function db(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mb(e){var t=cy.singularizeMemberType(e.memberType),n=[].concat(pb(e.objectClassifications),pb(e.objectSubjectClassifications)).map((function(e){return e.id}));return l.createElement(l.Fragment,null,l.createElement("div",{className:"border-bottom pb-3 mb-3"},l.createElement("h6",null,"Backbone Classifications"),l.createElement("p",null,"Select which backbone classifications this ".concat(t," is mapped to.")),l.createElement(Cb,{initialValues:{backboneClassificationIds:e.objectSubjects.map((function(e){return e.id}))},subjectTree:e.subjectTree,saveSubjects:e.saveSubjects,memberType:e.memberType,saveBtnText:"Save Backbone Classifications",allowMultiple:!0})),l.createElement("h6",null,"Classifications"),l.createElement("p",null,"Select a presentation to view its classifications and map them to this ".concat(t,".")),l.createElement("div",{className:"w-50 pb-3"},l.createElement(lb,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),e.currentPresentation&&e.classificationTree&&e.classificationTree.children.length?l.createElement(l.Fragment,null,l.createElement("p",null,"Only classifications which are mapped to one of the backbone classifications selected above can be selected."),l.createElement(Wv,{initialValues:{classificationIds:e.objectClassifications.map((function(e){return e.id}))},presentationId:e.currentPresentation.id,classificationTree:e.classificationTree,saveClassifications:e.saveClassifications,isClassificationDisabled:function(e){return!n.includes(e.id)}})):l.createElement("p",null,"This presentation has no classifications."))}function hb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}lb.defaultProps={label:"Presentation"};function vb(e){var t=!e.id,n=ci(),r=Gc(n),a=!t||!!n.values.parentId,o=hb(l.useState(a),2),s=o[0],u=o[1];l.useEffect((function(){return u(a)}),[e.id,n.values.parentId]);var f=function(e){var t=e.id===n.values.parentId?null:e.id;n.setFieldValue("parentId",t)},p="".concat(Ii(n.errors,n.touched,"parentId")," h-auto py-2");return l.createElement(vi,null,l.createElement(Kc,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this backbone classification",autoFocus:!0}),l.createElement(Kc,{name:"parentId"},(function(){return l.createElement("div",{className:p},l.createElement(Wl,{label:"Parent Backbone Classification",tree:e.subjectTree,selectedIds:[n.values.parentId],onSelect:f,collapse:s,noSelectionMessage:"No parent selected, this will be a root backbone classification.",isNodeDisabled:(t=e.subjectTree,r=e.id,function(e){if(e.id===r)return!0;var n=xl.find(t,r);return!!xl.find(n,e.id)})}));var t,r})),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(vf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(ki.Button,{as:gu,variant:"danger",appLink:{application:c.SUBJECTS,action:i.Subjects.DELETE_SUBJECT,args:[e.id]}},"Delete")))}function bb(e){return l.createElement(Ai,{initialValues:e.subject,validationSchema:oy,onSubmit:e.saveSubject},l.createElement(vb,{id:e.subject&&e.subject.id,subjectTree:e.subjectTree}))}var gb=function(e){return function(t){return t.appLink.action===e}};function Sb(e){var t=e.subjectId,n=e.activeAction,r=e.presentationId;return l.createElement(l.Fragment,null,l.createElement(ki.Alert,{variant:"danger"},"Warning: You are editing the backbone classifications."),l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:uy(t,r),isItemActive:gb(n)})))}var Eb=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[e]}};function Ob(e){var t=ci(),n=Gc(t),r=function(n){var r=e.allowMultiple?Ap.a.addOrRemove(t.values.backboneClassificationIds.map((function(e){return e.toString()})),n.id.toString()):[n.id];t.setFieldValue("backboneClassificationIds",r)},i="".concat(Ii(t.errors,t.touched,"backboneClassificationIds")," h-auto py-2");return l.createElement(vi,null,l.createElement(Kc,{name:"backboneClassificationIds"},(function(){return l.createElement("div",{className:i},l.createElement(Wl,{label:"Mapped Backbone Classification".concat(e.allowMultiple?"(s)":""),tree:e.subjectTree,selectedIds:t.values.backboneClassificationIds,onSelect:r,collapse:!!t.initialValues.backboneClassificationIds.length,getSelectedItemAppLink:Eb}))})),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(vf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.saveBtnText)))}function Cb(e){var t;return l.createElement(Ai,{initialValues:e.initialValues,validationSchema:(t=e.subjectRequired,ji.object().shape({backboneClassificationIds:t?ji.array().of(ji.string()).min(1,"A subject is required").required("A subject is required"):ji.array().of(ji.string())}).noUnknown()),onSubmit:function(t,n){var r=t.backboneClassificationIds;return e.saveSubjects(r,!1,n)}},l.createElement(Ob,{subjectTree:e.subjectTree,memberType:e.memberType,allowMultiple:e.allowMultiple,saveBtnText:e.saveBtnText}))}Ob.defaultProps={saveBtnText:"Save"};var wb=function(e){return l.createElement("div",{className:"border rounded p-2 mb-3"},l.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.classifications&&e.classifications.length?l.createElement("ul",{className:"list-unstyled mb-0"},e.classifications.map((function(t){return l.createElement("li",{key:t.id,className:"py-1"},l.createElement(gu,{appLink:(n=e.presentation.id,r=t.id,{application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[n,r]})},t.name));var n,r}))):l.createElement("p",null,l.createElement("em",null,"There are no classifications mapped to this backbone classification in this presentation.")))},Ab=function(e){return l.createElement(l.Fragment,null,!!e.presentations&&!!e.classificationDictionary&&e.presentations.map((function(t){return l.createElement(wb,{key:t.id,presentation:t,classifications:e.classificationDictionary[t.id]})})))},jb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Tb(e){return l.createElement(l.Fragment,null,e.classifications.map((function(t){return l.createElement("th",{key:t.id},l.createElement("span",{className:"d-inline-block"},l.createElement(ku,{selected:e.getIsClassificationSelected(t),onToggle:function(n){return e.onToggleClassification(t.id,n)}})),l.createElement(gu,{appLink:e.getClassificationAppLink(t.id)},function(e,t){return t?e.name:"Classification: ".concat(e.name)}(t,e.showClassificationSubHeader)))})))}function kb(e){var t=e.memberType,n=e.hasActions,r=e.classifications,i=jb(e,["memberType","hasActions","classifications"]),a="".concat(Ll(cy.singularizeMemberType(t))," Name"),o=!!r&&!!r.length,c=o&&r.length>1,s=o?2:1,u=Object.assign({classifications:r,showClassificationSubHeader:c},i);return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",{rowSpan:s},a),o&&(c?l.createElement("th",{colSpan:r.length,className:"text-center"},"Classifications"):l.createElement(Tb,Object.assign({},u))),n&&l.createElement("th",{rowSpan:s})),o&&c&&l.createElement("tr",null,l.createElement(Tb,Object.assign({},u))))}function Ib(e){var t=e.member,n=t.id,r=t.name,i=t.classifications,a=void 0===i?[]:i,o=e.getMemberAppLink,c=e.onToggleClassification,s=e.actions,u=m(o)&&o(n);return a.length&&!m(c)&&p.ErrorHelper.throw(new rs.a("onToggleClassification must be passed to SubjectMemberItem")),l.createElement("tr",null,l.createElement("td",null,u?l.createElement(gu,{appLink:o(n)},r):r),!!a.length&&a.map((function(e){return l.createElement("td",{key:e.id},l.createElement(ku,{selected:e.selected,onToggle:function(t){return c(e.id,t,n)}}))})),s&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Cl,{actions:s}))))}var Lb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function _b(e,t){return function(n){var r=n[e],i=Zl(r);return!!i&&i===t.length}}function Pb(e){var t=e.members,n=e.memberType,r=e.getActions,i=e.classifications,a=e.getClassificationAppLink,o=e.onToggleClassification,c=Lb(e,["members","memberType","getActions","classifications","getClassificationAppLink","onToggleClassification"]);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this backbone classification."));var s=m(r),u={memberType:n,classifications:i,getClassificationAppLink:a,getIsClassificationSelected:_b(n,t),onToggleClassification:o,hasActions:s};return l.createElement(ki.Table,{responsive:!0,bordered:!0},l.createElement(kb,Object.assign({},u)),l.createElement("tbody",null,t.map((function(e,t){return l.createElement(Ib,Object.assign({key:t,member:e,actions:s&&r(e.id),onToggleClassification:o},c))}))))}function xb(e){var t=e.navItems,n=e.currentAppLink;return l.createElement(ki.Container,null,l.createElement(ki.Navbar,{className:"justify-content-between align-items-center"},l.createElement(ki.Nav,null,!!t&&t.map((function(e,t){return l.createElement(ki.Nav.Item,{key:t},l.createElement(gu,{appLink:e.appLink,className:"nav-link".concat(Tl.isItemActive(e,n)?" text-primary":"")},e.label))})))))}function Nb(e,t){l.useEffect((function(){e.presentations&&!e.currentPresentation&&Rh(t,"currentPresentation")(Ap.a.first(e.presentations))}),[e.presentations])}function Db(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mb(e){var t=oe.useBasicFetch(nh(e.playlistId)),n=oe.useBasicFetch(wp()),r=Db(l.useState({}),2),a=r[0],o=r[1],c=Qf(u.SUBJECT);!function(e,t,n){var r=function(e){return Rh(n,e)};Lh([bv.getObjectLevelsFetchOptions(e,Kh.Playlists,r("playlistLevels"))],[e]),Dh(bv.getObjectAudiencesFetchOptions(e,Kh.Playlists,r("playlistAudiences")),[e,t.playlistLevels]),Lh([bv.getPresentationsFetchOptions(r("presentations")),bv.getLevelsFetchOptions(r("levels"))],[]),Dh(!!t.currentPresentation&&bv.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.playlistId,a,o),Nb(a,o);var s=!!(a.presentations&&a.levels&&a.presentationAudiences&&a.playlistLevels&&a.playlistAudiences);return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Oh,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_AUDIENCES,currentUser:n.data}),l.createElement(wl,{object:t.data}),!!s&&l.createElement(Tv,{objectLevels:a.playlistLevels,objectAudiences:a.playlistAudiences,presentations:a.presentations,currentPresentation:a.currentPresentation,setCurrentPresentation:Rh(o,"currentPresentation"),levels:a.levels,presentationAudiences:a.presentationAudiences,memberType:Kh.Playlists,saveLevels:function(t,n,r){return c.updateObjectLevels(e.playlistId,t,Kh.Playlists,n,r,r)},saveAudiences:function(t,n){return c.updateObjectAudiences(e.playlistId,a.currentPresentation.id,t,Kh.Playlists,n,n)}}))}function Ub(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||Vb(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fb(e){return function(e){if(Array.isArray(e))return Bb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Vb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vb(e,t){if(e){if("string"==typeof e)return Bb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bb(e,t):void 0}}function Bb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hb(e){var t=oe.useBasicFetch(nh(e.playlistId)),n=oe.useBasicFetch(wp()),r=Ub(l.useState({}),2),a=r[0],o=r[1],c=Qf(u.SUBJECT);!function(e,t,n){var r=function(e){return Rh(n,e)};Lh([bv.getSubjectTreeFetchOptions(r("subjectTree")),bv.getPresentationsFetchOptions(r("presentations"))],[]),Lh([bv.getObjectSubjectsFetchOptions(e,Kh.Playlists,r("playlistSubjects"))],[e]),Dh(!!t.currentPresentation&&bv.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.playlistSubjects]);var i=function(e,t){return[].concat(Fb(t.subjectClassifications||[]),Fb(e))},a=t.playlistSubjects&&t.playlistSubjects.map((function(e){return bv.getSubjectClassificationFetchOptions(e.id,Rh(n,"subjectClassifications",i))}));Lh(a,[t.playlistSubjects],!!a),Dh(bv.getObjectClassificationsFetchOptions(e,Kh.Playlists,r("playlistClassifications")),[e,t.playlistSubjects])}(e.playlistId,a,o),Nb(a,o);var s=!!(a.playlistSubjects&&a.subjectTree&&a.presentations&&a.classificationTree&&a.playlistClassifications&&a.subjectClassifications);return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Oh,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_SUBJECTS,currentUser:n.data}),l.createElement(wl,{object:t.data}),s&&l.createElement(mb,{objectSubjects:a.playlistSubjects,subjectTree:a.subjectTree,memberType:Kh.Playlists,presentations:a.presentations,currentPresentation:a.currentPresentation,setCurrentPresentation:Rh(o,"currentPresentation"),objectClassifications:a.playlistClassifications,objectSubjectClassifications:a.subjectClassifications,classificationTree:a.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.playlistId,t,Kh.Playlists,n,r,r)},saveClassifications:function(t,n){return c.updateObjectClassifications(e.playlistId,a.currentPresentation.id,t,Kh.Playlists,n,n)}}))}var zb=function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var r=Ap.a.moveItem(e,t,n),i=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:i}}};function qb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wb=function(e){return{application:c.VIDEOS,action:i.Videos.EDIT_VIDEO,args:[e.id]}};function Yb(e){var t,n,r,a,o,s,u=Object(v.useDispatch)(),f=lp(),p=oe.useBasicFetch(nh(e.playlistId)),d=oe.useBasicFetch(ch(e.playlistId)),m=oe.useBasicFetch(wp()),h=$b((n=null===(t=d.data)||void 0===t?void 0:t.data,r=qb(Object(l.useState)(),2),a=r[0],o=r[1],Object(l.useEffect)((function(){a&&(n.length!==a.length||function(e,t){var n=!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(n,a))&&o(null)}),[n]),[a,o]),2),y=h[0],b=h[1],g=y?{data:y,pagination:null}:d.data;return l.createElement(l.Fragment,null,!!m.data&&l.createElement(Oh,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_VIDEOS,currentUser:m.data}),l.createElement(wl,{object:p.data}),!!g&&l.createElement(ff,{onSortEnd:function(t,n){if(t!==n){var r=zb(d.data.data,t,n),i=r.reorderRequest,a=r.reorderedItems;b(a);oe.fetch(u,sh(e.playlistId,i,null,(function(){f.error("Failed to update playlist order."),b(null)})))}},videos:g,getVideoAppLink:Wb,getVideoActions:(s=e.playlistId,function(e){return[{label:"Remove video",appLink:{application:c.PLAYLISTS,action:i.Playlists.REMOVE_VIDEO,args:[s.toString(),e.id.toString()]},className:"text-danger"}]}),emptyMessage:"There are no videos in this playlist."}))}function Gb(){var e=Object(v.useDispatch)(),t=lp();return l.createElement(Eh,{savePlaylist:function(n,r){oe.fetch(e,ih(n,(function(e){t.success("Successfully created playlist."),function(e){e&&e.id&&p.AppLinkHelper.trigger({application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]})}(e)}),(function(){t.error("Failed to create playlist.")}),r))}})}var Zb="rating,thumbnail,glance,herobanner,tags",Qb=function(e){return{url:"/api/master/v2/objects/".concat(e,"?query=").concat(Zb),key:"videos:".concat(e)}},Xb=function(e){var t=e.slice().sort();return{key:"videos:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},eg=function(e){return{url:"/ajax/hostedlibraries/rightsline/programs/".concat(e),key:"rightsline:videos:".concat(e),normalizeOptions:{namespace:"rightsline"}}},tg=function(e,t,n,r,i){return{key:"videos:".concat(e),url:"/api/master/v2/objects/".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}};function ng(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(e){var t=Object(v.useDispatch)(),n=lp(),r=oe.useBasicFetch(nh(e.playlistId)),i=oe.useBasicFetch(Qb(e.videoId)),a=ng(l.useState(!1),2),o=a[0],c=a[1];var s=!!r.data&&!!i.data;return l.createElement(pp,{title:"Remove Video",closePopup:e.closePopup,showLoadingSpinner:!s},!!s&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,i.data.name)," from ",l.createElement("strong",null,r.data.name),"?")),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){c(!0),oe.fetch(t,uh(e.playlistId,e.videoId,(function(){n.success("Successfully removed video from playlist")}),(function(){n.error("Failed to remove video from playlist")}),e.closePopup))},buttonText:"Yes, remove video",isSpinnerButton:!0,showSpinner:o}]})))}function ag(e){return p.AppLinkHelper.trigger(function(e){return{application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]}}(e))}function og(e){var t=e?{application:c.PLAYLISTS,action:i.Playlists.SEARCH_PLAYLISTS,params:{query:e}}:{application:c.PLAYLISTS,action:i.Playlists.PLAYLISTS};p.AppLinkHelper.trigger(t)}function cg(e){return l.createElement("div",{className:"pb-3 w-50"},l.createElement(Zs,{initialQuery:e.query,placeholder:"Search for a playlist",onSuggestionSelected:ag,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/playlists/instant/raw","?query=").concat(e)},activationLength:2,onSubmit:og}))}var sg=c.PLAYLISTS,ug=function(e){return{application:sg,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]}};function lg(e){var t=oe.useBasicFetch(eh(e.cursor));return l.createElement(l.Fragment,null,l.createElement(cg,null),l.createElement(dl,{collection:t.data,columns:[{header:"Name",accessor:"name",appLink:ug},{header:"Internal Description",accessor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.internalDescription}}],collectionAppLink:{application:sg,action:i.Playlists.PLAYLISTS},newObjectAppLink:{application:sg,action:i.Playlists.NEW_PLAYLIST},objectName:"Playlist"}))}var fg=c.PLAYLISTS,pg=function(e){return{application:fg,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]}};function dg(e){var t,n,r=oe.useBasicFetch(th(e.query,e.cursor)),a=oe.useBasicFetch(!!(null===(n=null===(t=r.data)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)&&lh(r.data.data.map((function(e){return e.id})))),o=a.isComplete&&function(e,t){var n,r;return(null==t?void 0:t.length)?Object.assign(Object.assign({},e),{data:null!==(r=null===(n=e.data)||void 0===n?void 0:n.map((function(e){return Object.assign(Object.assign({},e),{metadata:t.find((function(t){return t.playlistId.toString()===e.id.toString()}))})})))&&void 0!==r?r:[]}):e}(r.data,a.data);return l.createElement(l.Fragment,null,l.createElement(cg,{query:e.query}),!!r.data&&(r.data.data.length?l.createElement(dl,{collection:o,columns:[{header:"Name",accessor:"name",appLink:pg},{header:"Internal Description",accessor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.internalDescription}}],collectionAppLink:{application:fg,action:i.Playlists.SEARCH_PLAYLISTS,params:{query:e.query}},newObjectAppLink:{application:fg,action:i.Playlists.NEW_PLAYLIST},objectName:"Playlist"}):l.createElement("p",null,"No playlists found, please try a different search query.")))}function mg(e){return{application:c.PLAYLISTS,action:i.Playlists.DASHBOARD,args:[e.dashboardId]}}function hg(e){return[{label:"Remove playlist from dashboard",appLink:{application:c.PLAYLISTS,action:i.Playlists.DELETE_DASHBOARD_WIDGET,args:[e.dashboardId,e.id]},className:"text-danger"}]}function yg(e){var t=oe.useBasicFetch(nh(e.playlistId)),n=oe.useBasicFetch(dh(e.playlistId)),r=oe.useBasicFetch(wp());return f.a.createElement(f.a.Fragment,null,!!r.data&&f.a.createElement(Oh,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_DASHBOARDS,currentUser:r.data}),f.a.createElement(wl,{object:t.data}),!!n.data&&(n.data.length?f.a.createElement(pl,{objects:n.data,columns:[{header:"Dashboard",accessor:function(e){var t;return null===(t=e.dashboard)||void 0===t?void 0:t.name},appLink:mg},{accessor:function(e){return f.a.createElement("span",{className:"d-flex justify-content-end"},f.a.createElement(Cl,{actions:hg(e)}))}}]}):f.a.createElement("p",null,"This playlist isn't in any dashboards.")))}function vg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gg(e){var t=vg(f.a.useState(!1),2),n=t[0],r=t[1],i=Object(v.useDispatch)(),a=lp(),o=oe.useBasicFetch(ph(e.dashboardId,e.widgetId)),c=oe.useBasicFetch(fh(e.dashboardId)),s=oe.useBasicFetch(!!o.data&&nh(o.data.collectionId)),u=!!o.data&&!!c.data&&!!s.data;return f.a.createElement(pp,{title:"Remove playlist from dashboard",closePopup:e.closePopup,showLoadingSpinner:!u},!!u&&f.a.createElement(f.a.Fragment,null,f.a.createElement("div",null,f.a.createElement("p",null,"Are you sure you want to remove ",f.a.createElement("strong",null,s.data.name)," from ",f.a.createElement("strong",null,c.data.name),"?"),f.a.createElement("p",null,f.a.createElement("em",null,"Note: This is the same as deleting the widget from the dashboard."))),f.a.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){r(!0),oe.fetch(i,mh(c.data.id,o.data.id,s.data.id,(function(){a.success("Successfully removed playlist from dashboard")}),(function(){a.error("Failed to remove playlist from dashboard")}),e.closePopup))},buttonText:"Yes, remove playlist",isSpinnerButton:!0,showSpinner:n}]})))}function Sg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Og=function(e,t,n){return[{variant:"link",onClick:t,buttonText:"Cancel"},{variant:"danger",onClick:e,buttonText:"Yes, delete this audience",isSpinnerButton:!0,showSpinner:n}]};function Cg(e){var t=e.id,n=e.routeToOnDelete,r=e.closePopup,i=Sg(l.useState(),2),a=i[0],o=i[1],c=Sg(l.useState(!1),2),s=c[0],f=c[1],d=Qf(u.SUBJECT);Dh(bv.getAudienceFetchOptions(t,o),[t]);return l.createElement(pp,{title:"Delete Audience",closePopup:r,showLoadingSpinner:!a},!!a&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,a.name),"?")),l.createElement(mp,{buttons:Og((function(){f(!0);d.deleteAudience(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)}),r,s)})))}function wg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ag(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ag(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jg(e){var t=e.presentationId,n=e.audienceId,r=wg(l.useState(),2),i=r[0],a=r[1],o=wg(l.useState(),2),c=o[0],s=o[1],f=wg(l.useState(),2),p=f[0],d=f[1],m=Qf(u.SUBJECT);Dh(bv.getAudienceFetchOptions(n,a),[n]),Dh(bv.getLevelsFetchOptions(s),[]),Dh(bv.getPresentationFetchOptions(t,d),[t]);return l.createElement(l.Fragment,null,l.createElement(_v,{presentation:p,audienceId:n}),!!p&&l.createElement("h6",null,"Presentation: ".concat(p.name)),!!i&&!!c&&l.createElement(Av,{audience:i,levels:c,saveAudience:function(e,r){return m.updateAudience(n,Object.assign(Object.assign({},e),{presentationId:t}),r,r)},presentationId:t}))}function Tg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ig=function(e){return{application:c.SUBJECTS,action:i.Subjects.PRESENTATION_AUDIENCES,args:[e]}};function Lg(e){var t=e.presentationId,n=Tg(l.useState(),2),r=n[0],a=n[1],o=Tg(l.useState(),2),s=o[0],f=o[1],d=Qf(u.SUBJECT);Dh(bv.getLevelsFetchOptions(a),[]),Dh(bv.getPresentationFetchOptions(t,f),[t]);return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-2"},l.createElement(Su,{appLink:Ig(t),backToName:"audiences"})),!!s&&l.createElement("h6",null,"Presentation: ".concat(s.name)),!!r&&l.createElement(Av,{levels:r,presentationId:t,saveAudience:function(e,n){return d.createAudience(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]})}}(t,n),n)}}))}var _g=n(209),Pg=n.n(_g);function xg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ng(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dg(e){var t=e.presentationId,n=e.selectedAudienceId,r=xg(l.useState(),2),a=r[0],o=r[1];Dh(bv.getAudiencesFetchOptions(t,o),[]);var s=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[t,e.masterId]}},u={application:c.SUBJECTS,action:i.Subjects.NEW_AUDIENCE,args:[t]};return l.createElement("div",{className:"".concat(Pg.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Audiences"),l.createElement(gu,{appLink:u,className:"d-inline-block pb-2"},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New Audience")),l.createElement("div",{className:"border-top pt-1"},l.createElement("ul",{className:"list-unstyled"},a&&a.map((function(e){return l.createElement("li",{className:"position-relative py-1"},l.createElement(gu,{className:(null==n?void 0:n.toString())===e.masterId.toString()?"text-primary font-weight-500":"",appLink:s(e)},e.name))})))))}function Rg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ug(e){var t=e.presentationId,n=e.audienceId,r=e.memberType,i=Rg(l.useState(),2),a=i[0],o=i[1],c=Rg(l.useState(),2)[1],s=Rg(l.useState(),2),u=s[0],f=s[1];Dh(bv.getPresentationFetchOptions(t,o),[]),Dh(bv.getAudienceFetchOptions(n,c),[n]),Dh(bv.getAudienceMembersFetchOptions(n,r,f),[n,r]);var p={items:u&&u.data,memberType:r,getItemAppLink:function(e){return dy.getMemberAppLink(r,e.id)},getActions:function(e){return dy.getMemberActions(n,$h.Audience,r,e.id)}},d={presentation:a,audienceId:n},m=kl(p);return l.createElement(l.Fragment,null,l.createElement(_v,Object.assign({},d,{memberType:r})),m&&l.createElement(xv,Object.assign({},p)))}function Fg(e){return{application:c.SUBJECTS,action:i.Subjects.NEW_CLASSIFICATION,args:[e]}}function Vg(e){return[{label:"Add child",getAppLink:function(t){return Object.assign(Object.assign({},Fg(e)),{args:[e],params:{parentId:t.id}})}},{label:"Delete classification",getAppLink:function(t){return{application:c.SUBJECTS,action:i.Subjects.DELETE_CLASSIFICATION,args:[e,t.id]}},className:"text-danger"}]}var Bg=n(210),Hg=n.n(Bg);function zg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jg(e){var t=e.presentationId,n=e.selectedClassificationId,r=zg(l.useState(),2),a=r[0],o=r[1],s=zg(l.useState(),2),u=s[0],f=s[1];return function(e,t,n){Lh([bv.getClassificationTreeFetchOptions(e,t),bv.getPresentationFetchOptions(e,n)],[e])}(t,o,f),l.createElement("div",{className:"".concat(Hg.a.navContainer," h-auto pr-2 border-right")},!!u&&l.createElement("h6",{className:"border-bottom pb-2"},"Classifications (".concat(u.name,")")),l.createElement(gu,{appLink:Fg(t),className:"d-inline-block pb-2"},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New Classification")),!!a&&l.createElement("div",{className:"border-top pt-1"},l.createElement(zl,{tree:a,getAppLink:function(e){return function(e,t){return{application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[e,t.id]}}(t,e)},selectedIds:[n],actions:Vg(t)})))}function $g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wg(e){var t=e.classificationId,n=e.routeToOnDelete,r=e.closePopup,i=$g(l.useState(),2),a=i[0],o=i[1],c=$g(l.useState(!1),2),s=c[0],f=c[1];Dh(bv.getClassificationFetchOptions(t,o),[]);var d=Qf(u.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){f(!0);d.deleteClassification(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this classification",isSpinnerButton:!0,showSpinner:s}];return l.createElement(pp,{title:"Delete Classification",closePopup:r,showLoadingSpinner:!a},!!a&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,a.name),"?")),l.createElement(mp,{buttons:m})))}function Yg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zg(e){var t=e.presentationId,n=e.classificationId,r=Yg(l.useState(),2),i=r[0],a=r[1],o=Yg(l.useState(),2),c=o[0],s=o[1],f=Yg(l.useState(),2),p=f[0],d=f[1],m=Yg(l.useState(),2),h=m[0],y=m[1],v=Qf(u.SUBJECT),b=bv.getClassificationFetchOptions(n,a),g=bv.getPresentationFetchOptions(t,s),S=bv.getClassificationTreeFetchOptions(t,d);Dh(bv.getSubjectTreeFetchOptions(y),[]),Dh(b,[n]),Lh([g,S],[t]);return l.createElement("div",null,l.createElement($v,{presentation:c,classificationId:n}),!!i&&!!p&&!!h&&l.createElement(qv,{classification:i,presentationId:t,subjectTree:h,classificationTree:p,saveClassification:function(e,t){var r=Object.assign({pinnedVideoMasterId:(null==i?void 0:i.pinnedVideoMasterId)||null},e);return v.updateClassification(n,r,t,t)}}))}function Qg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eS(e){var t=e.presentationId,n=e.classificationId,r=e.memberType,i=Qg(l.useState(),2),a=i[0],o=i[1],c=Qg(l.useState(),2),s=c[0],f=c[1],p=Qg(l.useState(),2),d=p[0],m=p[1];Dh(bv.getPresentationFetchOptions(t,o),[]),Dh(bv.getClassificationFetchOptions(n,f),[n]),Dh(bv.getClassificationMembersFetchOptions(n,r,m),[n,r]);var h=Qf(u.SUBJECT),y={items:d&&d.data,memberType:r,classification:s,updatePinnedVideo:function(e,t){var r=Object.assign(Object.assign({},s),{pinnedVideoMasterId:e});h.updateClassification(n,r,t)},getItemAppLink:function(e){return cy.getMemberAppLink(r,e.id)},getActions:function(e){return cy.getMemberActions(n,$h.Classification,r,e.id)}},v={presentation:a,classificationId:n},b=kl(y);return l.createElement(l.Fragment,null,l.createElement($v,Object.assign({},v,{memberType:r})),b&&l.createElement(Fv,Object.assign({},y)))}function tS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rS(e){var t=e.presentationId,n=e.parentId,r=tS(l.useState(),2),a=r[0],o=r[1],s=tS(l.useState(),2),f=s[0],d=s[1],m=Qf(u.SUBJECT),h=bv.getClassificationTreeFetchOptions(t,o);Dh(bv.getSubjectTreeFetchOptions(d),[]),Dh(h,[t]);return l.createElement("div",null,l.createElement("h4",{className:"py-2"},"Create New Classification"),!!f&&!!a&&l.createElement(qv,{classification:n?{parentIds:[n]}:{},presentationId:t,subjectTree:f,classificationTree:a,saveClassification:function(e,n){return m.createClassification(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),n&&n.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]})}}(t,n),n)}}))}var iS=function(e){return{key:"series:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=thumbnail,tallPoster,banner,rating")}},aS=function(e){var t=e.slice().sort();return{key:"series:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},oS=function(e,t,n,r){return{url:"/api/master/v2/series",key:"series",data:e,type:ce.a.POST,success:t,error:n,always:r}},cS=function(e,t,n,r,i){return{url:"/api/master/v2/objects/".concat(e),key:"update:series:".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}};function sS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lS(e){var t=sS(l.useState(),2),n=t[0],r=t[1],i=sS(l.useState(!1),2),a=i[0],o=i[1],c=oe.useBasicFetch(function(e,t){switch(e){case Kh.Playlists:return nh(t);case Kh.Series:return iS(t);case Kh.Videos:return Qb(t)}}(e.memberType,e.memberId)),s=Qf(u.SUBJECT);Dh(bv.getClassificationFetchOptions(e.classificationId,r),[e.classificationId]);var f=!!n&&!!c.data,p="Remove ".concat(Ll(cy.singularizeMemberType(e.memberType)));return l.createElement(pp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"This will not remove it from the backbone subject.")),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),s.removeObjectsFromClassification(e.classificationId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup),n.pinnedVideoMasterId===e.memberId&&s.updateClassification(e.classificationId,Object.assign(Object.assign({},n),{pinnedVideoMasterId:null}))},buttonText:"Yes, remove this ".concat(cy.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:a}]})))}function fS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dS(e){var t=e.id,n=fS(l.useState(),2),r=n[0],a=n[1],o=Qf(u.SUBJECT);Dh(bv.getLevelFetchOptions(t,a),[t]);return l.createElement(l.Fragment,null,l.createElement(eb,{levelId:t,activeAction:i.Subjects.EDIT_LEVEL}),l.createElement("h4",{className:"py-2"},"Edit Level"),!!r&&l.createElement(Gv,{level:r,saveLevel:function(e,n){return o.updateLevel(t,e,n,n)}}))}function mS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yS(){var e=mS(l.useState(),2),t=e[0],n=e[1];return Dh(bv.getLevelsFetchOptions(n),[]),l.useEffect((function(){t&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[Ap.a.first(t).id]},{replace:!0})}),[t]),l.createElement(l.Fragment,null)}function vS(){var e=Qf(u.SUBJECT);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Level"),l.createElement(Gv,{saveLevel:function(t,n){return e.createLevel(t,function(e){return function(t){e(),t&&t.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[t.id]})}}(n),n)}}))}var bS=n(211),gS=n.n(bS);function SS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ES(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ES(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ES(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OS(e){var t=e.selectedLevelId,n=SS(l.useState(),2),r=n[0],a=n[1];Dh(bv.getLevelsFetchOptions(a),[]);var o=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[e.id]}},s={application:c.SUBJECTS,action:i.Subjects.NEW_LEVEL};return l.createElement("div",{className:"".concat(gS.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Backbone Audiences"),l.createElement(gu,{appLink:s,className:"d-inline-block pb-2"},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New Backbone Audience")),l.createElement("div",{className:"border-top pt-1"},l.createElement("ul",{className:"list-unstyled"},r&&r.map((function(e){return l.createElement("li",{className:"position-relative py-1"},l.createElement(gu,{className:(null==t?void 0:t.toString())===e.id.toString()?"text-primary font-weight-500":"",appLink:o(e)},e.name))})))))}var CS=function(e){return l.createElement("div",{className:"border rounded p-2 mb-3"},l.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.audiences&&e.audiences.length?l.createElement("ul",{className:"list-unstyled mb-0"},e.audiences.map((function(t){return l.createElement("li",{key:t.masterId,className:"py-1"},l.createElement(gu,{appLink:(n=e.presentation.id,r=t.masterId,{application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[n,r]})},t.name));var n,r}))):l.createElement("p",null,l.createElement("em",null,"There are no audiences mapped to this level in this presentation.")))},wS=function(e){return l.createElement(l.Fragment,null,!!e.presentations&&!!e.audienceDictionary&&e.presentations.map((function(t){return l.createElement(CS,{key:t.id,presentation:t,audiences:e.audienceDictionary[t.id]})})))};function AS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TS(e){var t=e.levelId,n=AS(l.useState({}),2),r=n[0];return function(e,t){var n=function(e){return Rh(t,e)};Dh(bv.getLevelAudiencesFetchOptions(e,n("audiences")),[e]),Dh(bv.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),l.createElement(l.Fragment,null,l.createElement(eb,{levelId:t,activeAction:i.Subjects.LEVEL_AUDIENCES}),l.createElement(wS,{presentations:r.presentations,audienceDictionary:Ap.a.groupBy(r.audiences,"presentationId")}))}function kS(e,t){return Rh(e,t)}function IS(e){switch(e){case Wh.Playlists:return i.Subjects.EDIT_LEVEL_PLAYLISTS;case Wh.Series:return i.Subjects.EDIT_LEVEL_SERIES;case Wh.Videos:return i.Subjects.EDIT_LEVEL_VIDEOS}}function LS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PS(e){var t=LS(l.useState({}),2),n=t[0],r=t[1],a=n.presentations,o=n.audiences,s=n.memberIds,f=n.membersWithAudiences,d=oe.useBasicFetch(Array.isArray(s)&&s.length?function(e,t){switch(e){case Wh.Playlists:return rh(t);case Wh.Series:return aS(t);case Wh.Videos:return Xb(t)}}(e.memberType,s):null),m=Qf(u.SUBJECT);function h(t){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:e.action,args:[e.levelId],params:{presentationId:t}})}!function(e,t,n){var r=e.presentationId,i=e.levelId,a=e.memberType;Dh(bv.getPresentationsFetchOptions(kS(n,"presentations")),[]),Dh(bv.getLevelMemberIdsFetchOptions(i,a,kS(n,"memberIds")),[i,a]),Dh(!!r&&bv.getLevelAudiencesFetchOptions(i,kS(n,"audiences"),r,a),[i,a,r],!!r)}(e,0,r),function(e,t,n,r){var i=n.audiences;l.useEffect((function(){kS(r,"membersWithAudiences")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,audiences:n.map((function(n){return{id:n.masterId,selected:(r=t,i=n,!!i[e]&&!!i[e].data.filter((function(e){return e.id===r.id})).length)};var r,i}))}}))}(t.memberType,e,i))}),[e,i])}(d.data,e,n,r),l.useEffect((function(){!e.presentationId&&(null==a?void 0:a.length)&&h(Ap.a.first(a).id)}),[e.presentationId]);var y,v,b=!!e.presentationId&&!!o;return l.createElement(l.Fragment,null,l.createElement(eb,{levelId:e.levelId,presentationId:e.presentationId,activeAction:IS(e.memberType)}),l.createElement(ki.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each audience in this level.")+" Change the selected presentation to view different audiences."),l.createElement("div",{className:"w-50 py-2"},!!a&&l.createElement(lb,{presentations:a,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),b&&l.createElement(cb,{members:f||[],memberType:e.memberType,getMemberAppLink:function(t){return dy.getMemberAppLink(e.memberType,t)},getActions:function(t){return dy.getMemberActions(e.levelId,$h.Level,e.memberType,t)},audiences:o,getAudienceAppLink:e.presentationId&&(y=e.memberType,v=e.presentationId,function(e){var t,n=c.SUBJECTS,r=[v,e];switch(y){case Wh.Playlists:t=i.Subjects.EDIT_AUDIENCE_PLAYLISTS;break;case Wh.Series:t=i.Subjects.EDIT_AUDIENCE_SERIES;break;case Wh.Videos:t=i.Subjects.EDIT_AUDIENCE_VIDEOS}return{application:n,action:t,args:r}}),onToggleAudience:function(t,n,r){return function(e,t,n,r,i,a,o){(o?e.addObjectsToAudience.bind(e):e.removeObjectsFromAudience.bind(e))(a,n,t,r,i)}(m,e.memberType,r?[r]:s,e.levelId,e.presentationId,t,n)}}))}function xS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DS(e){var t=xS(l.useState(),2),n=t[0],r=t[1],i=xS(l.useState(!1),2),a=i[0],o=i[1],c=oe.useBasicFetch(function(e,t){switch(e){case Wh.Playlists:return nh(t);case Wh.Series:return iS(t);case Wh.Videos:return Qb(t)}}(e.memberType,e.memberId)),s=Qf(u.SUBJECT);Dh(bv.getLevelFetchOptions(e.levelId,r),[e.levelId]);var f=!!n&&!!c.data,p="Remove ".concat(Ll(dy.singularizeMemberType(e.memberType)));return l.createElement(pp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"Please ensure that it is not in any audiences before removing.")),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),s.removeObjectsFromLevel(e.levelId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(dy.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:a}]})))}function RS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function US(e){var t=e.id,n=RS(l.useState(),2),r=n[0],i=n[1],a=Qf(u.SUBJECT);Dh(bv.getPresentationFetchOptions(t,i),[t]);var o={presentation:r,savePresentation:function(e,n){a.updatePresentation(t,e,n,n)}},c=kl(o);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Edit Presentation"),!!c&&l.createElement(ub,Object.assign({},o)))}function FS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var BS=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_PRESENTATION,args:[e.id]}},HS={application:c.SUBJECTS,action:i.Subjects.NEW_PRESENTATION};function zS(){var e=FS(l.useState(),2),t=e[0],n=e[1];return Dh(bv.getPresentationsFetchOptions(n),[]),l.createElement("div",null,l.createElement("div",{className:"d-flex justify-content-between mb-2"},l.createElement("h5",{className:"d-inline-block m-0"},"Select a presentation to edit:"),l.createElement(gu,{appLink:HS,className:"d-block"},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New Presentation"))),l.createElement(Al,{objects:t,getAppLink:BS}))}function qS(){var e=Qf(u.SUBJECT);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Presentation"),l.createElement(ub,{savePresentation:function(t,n){e.createPresentation(t,(function(e){n(),e&&e.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_PRESENTATION,args:[e.id]})}),n)}}))}function JS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KS(e){var t=e.objectType,n=e.getAppLink,r=JS(l.useState(),2),i=r[0],a=r[1];return Dh(bv.getPresentationsFetchOptions(a),[]),l.createElement("div",null,l.createElement("h5",null,l.createElement(hs,{namespace:"subjects.selectPresentation",phrase:"heading",options:{objectType:t}})),l.createElement(Al,{objects:i,getAppLink:n}))}function WS(e,t){return Rh(e,t)}function YS(e,t,n,r,a){var o=r.selectedSubject,s=function(){return WS(a,"showConfirmationPopup")(!1)};t.addObjectsToSubject(o.id,e.map((function(e){return e.id})),n.memberType,r.addToClassifications,(function(){s(),p.AppLinkHelper.trigger(function(e,t){var n={application:c.SUBJECTS,args:[e]};switch(t){case Kh.Playlists:return Object.assign(Object.assign({},n),{action:i.Subjects.EDIT_SUBJECT_PLAYLISTS});case Kh.Series:return Object.assign(Object.assign({},n),{action:i.Subjects.EDIT_SUBJECT_SERIES});case Kh.Videos:return Object.assign(Object.assign({},n),{action:i.Subjects.EDIT_SUBJECT_VIDEOS})}}(o.id,n.memberType))}),s)}function GS(e,t,n){if(t&&n){var r=1===t.length?"this ".concat(cy.singularizeMemberType(e)):"these ".concat(e);return"Add ".concat(r," to ").concat(n.name)}}function ZS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return QS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XS(e,t){return function(n,r,i){i(),WS(t,"selectedSubject")(xl.find(e.subjectTree,Ap.a.first(n))),WS(t,"addToClassifications")(r),WS(t,"showConfirmationPopup")(!0)}}function eE(e){var t=ZS(l.useState({}),2),n=t[0],r=t[1],i=oe.useBasicFetch(function(e,t){switch(e){case Kh.Playlists:return rh(t);case Kh.Series:return aS(t);case Kh.Videos:return Xb(t)}}(e.memberType,e.objectIds)),a=Qf(u.SUBJECT);!function(e,t){Dh(bv.getSubjectTreeFetchOptions(WS(t,"subjectTree")),[])}(0,r);var o;return l.createElement(l.Fragment,null,!!i.data&&!!n.subjectTree&&l.createElement(fb,{memberType:e.memberType,objects:i.data,subjectTree:n.subjectTree,onClickAddToSubject:XS(n,r)}),n.showConfirmationPopup&&l.createElement(bp,{title:GS(e.memberType,i.data,n.selectedSubject),onClickConfirm:function(){return YS(i.data,a,e,n,r)},closePopup:function(){return e=!1,WS(r,"showConfirmationPopup")(e);var e}},l.createElement("p",null,"The following ".concat(e.memberType," will be added to "),l.createElement("strong",null,n.selectedSubject.name),n.addToClassifications?" and its mapped classifications:":":"),l.createElement("ul",null,i.data.map((function(e){return l.createElement("li",{key:e.id},e.name)}))),!n.addToClassifications&&l.createElement("p",null,"".concat(1===i.data.length?"It":"They"," will not be added to its mapped classifications.")),l.createElement("p",null,"".concat((o=e.memberType,Ll(cy.singularizeMemberType(o)))," to classification mappings can be managed from the "),l.createElement("strong",null,"Edit Subject ".concat(Ll(e.memberType)," ")),"page.")))}function tE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rE(e){var t=e.subjectId,n=e.routeToOnDelete,r=e.closePopup,i=tE(l.useState(),2),a=i[0],o=i[1],c=tE(l.useState(!1),2),s=c[0],f=c[1];Dh(bv.getSubjectFetchOptions(t,o),[]);var d=Qf(u.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){f(!0);d.deleteSubject(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this backbone classification",isSpinnerButton:!0,showSpinner:s}];return l.createElement(pp,{title:"Delete Subject",closePopup:r,showLoadingSpinner:!a},!!a&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,a.name),"?"),l.createElement("p",null,"Subjects that have mapped classifications cannot be deleted.")),l.createElement(mp,{buttons:m})))}function iE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oE(e){var t=e.subjectId,n=iE(l.useState(),2),r=n[0],a=n[1],o=iE(l.useState(),2),c=o[0],s=o[1],f=Qf(u.SUBJECT),p=bv.getSubjectFetchOptions(t,a);Dh(bv.getSubjectTreeFetchOptions(s),[]),Dh(p,[t]);return l.createElement(l.Fragment,null,l.createElement(Sb,{subjectId:t,activeAction:i.Subjects.EDIT_SUBJECT}),!!r&&!!c&&l.createElement(bb,{subject:r,subjectTree:c,saveSubject:function(e,n){return f.updateSubject(t,e,n,n)}}))}function cE(e,t){return Rh(e,t)}function sE(e){switch(e){case Kh.Playlists:return i.Subjects.EDIT_SUBJECT_PLAYLISTS;case Kh.Series:return i.Subjects.EDIT_SUBJECT_SERIES;case Kh.Videos:return i.Subjects.EDIT_SUBJECT_VIDEOS}}function uE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fE(e){var t=uE(l.useState({}),2),n=t[0],r=t[1],a=n.presentations,o=n.classifications,s=n.memberIds,f=n.membersWithClassifications,d=oe.useBasicFetch(Array.isArray(s)&&function(e,t){switch(e){case Kh.Playlists:return rh(t);case Kh.Series:return aS(t);case Kh.Videos:return Xb(t)}}(e.memberType,s)),m=Qf(u.SUBJECT);function h(t){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:e.action,args:[e.subjectId],params:{presentationId:t}})}!function(e,t,n){var r=e.subjectId,i=e.memberType,a=e.presentationId;Dh(bv.getPresentationsFetchOptions(cE(n,"presentations")),[]),Dh(bv.getSubjectMemberIdsFetchOptions(r,i,cE(n,"memberIds")),[r,i]),Dh(!!a&&bv.getSubjectClassificationFetchOptions(r,cE(n,"classifications"),a,i),[r,i,a],!!a)}(e,0,r),function(e,t,n,r){var i=n.classifications;l.useEffect((function(){cE(r,"membersWithClassifications")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,classifications:n.map((function(n){return{id:n.id,selected:(r=t,i=n,!!i[e]&&!!i[e].data.filter((function(e){return e.id===r.id})).length)};var r,i}))}}))}(t.memberType,e,i))}),[e,i])}(d.data,e,n,r),l.useEffect((function(){!e.presentationId&&(null==a?void 0:a.length)&&h(Ap.a.first(a).id)}),[e.presentationId]);var y,v,b=!!e.presentationId&&!!o;return l.createElement(l.Fragment,null,l.createElement(Sb,{subjectId:e.subjectId,presentationId:e.presentationId,activeAction:sE(e.memberType)}),l.createElement(ki.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each classification in this backbone classification.")+" Change the selected presentation to view different classifications."),l.createElement("div",{className:"w-50 py-2"},!!a&&l.createElement(lb,{presentations:a,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),b&&l.createElement(Pb,{members:f||[],memberType:e.memberType,getMemberAppLink:function(t){return cy.getMemberAppLink(e.memberType,t)},getActions:function(t){return cy.getMemberActions(e.subjectId,$h.Subject,e.memberType,t)},classifications:o,getClassificationAppLink:e.presentationId&&(y=e.memberType,v=e.presentationId,function(e){var t,n=c.SUBJECTS,r=[v,e];switch(y){case Kh.Playlists:t=i.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;break;case Kh.Series:t=i.Subjects.EDIT_CLASSIFICATION_SERIES;break;case Kh.Videos:t=i.Subjects.EDIT_CLASSIFICATION_VIDEOS}return{application:n,action:t,args:r}}),onToggleClassification:function(t,n,r){return function(e,t,n,r,i,a,o){(o?e.addObjectsToClassification.bind(e):e.removeObjectsFromClassification.bind(e))(a,n,t,r,i)}(m,e.memberType,r?[r]:s,e.subjectId,e.presentationId,t,n)}}))}function pE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mE(e){var t=e.parentId,n=pE(l.useState(),2),r=n[0],a=n[1],o=Qf(u.SUBJECT);Dh(bv.getSubjectTreeFetchOptions(a),[]);var s={application:c.SUBJECTS,action:i.Subjects.PRESENTATIONS};return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-2 border-bottom"},l.createElement(Su,{backToName:"Presentations",appLink:s})),l.createElement("h4",{className:"py-2"},"Create New Subject"),!!r&&l.createElement(bb,{subject:{parentId:t},subjectTree:r,saveSubject:function(e,t){return o.createSubject(e,function(e){return function(t){e(),t&&t.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[t.id]})}}(t),t)}}))}function hE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vE(e){var t=hE(l.useState(),2),n=t[0],r=t[1],i=hE(l.useState(!1),2),a=i[0],o=i[1],c=oe.useBasicFetch(function(e,t){switch(e){case Kh.Playlists:return nh(t);case Kh.Series:return iS(t);case Kh.Videos:return Qb(t)}}(e.memberType,e.memberId)),s=Qf(u.SUBJECT);Dh(bv.getSubjectFetchOptions(e.subjectId,r),[e.subjectId]);var f=!!n&&!!c.data,p="Remove ".concat(Ll(cy.singularizeMemberType(e.memberType)));return l.createElement(pp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"Please ensure that it is not in any classifications before removing.")),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),s.removeObjectsFromSubject(e.subjectId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(cy.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:a}]})))}function bE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SE(e){var t=e.subjectId,n=bE(l.useState({}),2),r=n[0];return function(e,t){var n=function(e){return Rh(t,e)};Dh(bv.getSubjectClassificationFetchOptions(e,n("classifications")),[e]),Dh(bv.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),l.createElement(l.Fragment,null,l.createElement(Sb,{subjectId:t,activeAction:i.Subjects.SUBJECT_CLASSIFICATIONS}),l.createElement(Ab,{presentations:r.presentations,classificationDictionary:Ap.a.groupBy(r.classifications,"presentationId")}))}var EE=n(212),OE=n.n(EE);function CE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AE(e){var t=e.selectedSubjectId,n=CE(l.useState(),2),r=n[0],a=n[1];Dh(bv.getSubjectTreeFetchOptions(a),[]);var o=l.useCallback((function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[e.id]}}),[]),s={application:c.SUBJECTS,action:i.Subjects.NEW_SUBJECT},u=[{label:"Add child",getAppLink:function(e){return Object.assign(Object.assign({},s),{params:{parentId:e.id}})}},{label:"Delete backbone classification",getAppLink:function(e){return{application:c.SUBJECTS,action:i.Subjects.DELETE_SUBJECT,args:[e.id]}},className:"text-danger"}];return l.createElement("div",{className:"".concat(OE.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Backbone Classifications"),l.createElement(gu,{appLink:s,className:"d-inline-block pb-2"},l.createElement(zc,{svgName:Hc.Plus,size:Vc.Small}),l.createElement("span",null,"New Backbone Classification")),!!r&&l.createElement("div",{className:"border-top pt-1"},l.createElement(zl,{tree:r,getAppLink:o,selectedIds:[t],actions:u})))}function jE(e){var t=e.currentAppLink;return l.createElement(xb,{navItems:sy(),currentAppLink:t})}function TE(e){return(TE="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 kE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IE(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 LE(e,t,n){return t&&IE(e.prototype,t),n&&IE(e,n),e}function _E(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&&PE(e,t)}function PE(e,t){return(PE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=DE(e);if(t){var i=DE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(e,t){return!t||"object"!==TE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function DE(e){return(DE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var RE=function(e){_E(n,e);var t=xE(n);function n(){return kE(this,n),t.apply(this,arguments)}return LE(n,[{key:"channelName",get:function(){return c.PLAYLISTS}},{key:"appRoutes",get:function(){return{"manage/playlists(/)":"index","manage/playlists/new(/)":"newPlaylist","manage/playlists/search(/)":"searchPlaylists","manage/playlists/:id(/)":"editPlaylist","manage/playlists/:id/videos(/)":"editPlaylistVideos","manage/playlists/:id/dashboards(/)":"editPlaylistDashboards","manage/playlists/:id/classifications(/)":"editPlaylistSubjects","manage/playlists/:id/audiences(/)":"editPlaylistAudiences"}}},{key:"appLinks",get:function(){return["deletePlaylist","removeVideo","uploadImage","removeFromSubject","deleteDashboardWidget"]}},{key:"externalRoutes",get:function(){return{"dashboards/:id(/)":"dashboard"}}}]),n}(p.AppRouter),ME=function(e){_E(n,e);var t=xE(n);function n(){return kE(this,n),t.apply(this,arguments)}return LE(n,[{key:"initialize",value:function(){var e=this;Ci.a.values(u).forEach((function(t){return Zf.getInstance(t,e)}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"channelName",get:function(){return c.PLAYLISTS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:Zm}}}},{key:"index",value:function(e){this.layout.showChildView(k,l.createElement(lg,{cursor:null==e?void 0:e.cursor}))}},{key:"searchPlaylists",value:function(e){this.layout.showChildView(k,l.createElement(dg,{query:null==e?void 0:e.query,cursor:null==e?void 0:e.cursor}))}},{key:"newPlaylist",value:function(){this.layout.showChildView(k,l.createElement(Gb,null))}},{key:"editPlaylist",value:function(e){this.layout.showChildView(k,l.createElement(Ch,{key:e,playlistId:e}))}},{key:"editPlaylistVideos",value:function(e){this.layout.showChildView(k,l.createElement(Yb,{key:e,playlistId:e}))}},{key:"editPlaylistDashboards",value:function(e){this.layout.showChildView(k,l.createElement(yg,{key:e,playlistId:e}))}},{key:"editPlaylistSubjects",value:function(e){this.layout.showChildView(k,l.createElement(Hb,{key:e,playlistId:e}))}},{key:"editPlaylistAudiences",value:function(e){this.layout.showChildView(k,l.createElement(Mb,{key:e,playlistId:e}))}},{key:"deletePlaylist",value:function(e){var t=Object.assign({playlistId:e},this.getPopupProps());this.layout.showChildView(I,l.createElement(vh,Object.assign({},t)))}},{key:"removeVideo",value:function(e,t){var n=Object.assign({playlistId:e,videoId:t},this.getPopupProps());this.layout.showChildView(I,l.createElement(ig,Object.assign({},n)))}},{key:"removeFromSubject",value:function(e,t){var n=Object.assign({subjectId:t,memberId:e,memberType:Kh.Playlists},this.getPopupProps());this.layout.showChildView(I,l.createElement(vE,Object.assign({},n)))}},{key:"deleteDashboardWidget",value:function(e,t){var n=this;this.layout.showChildView(I,l.createElement(gg,{dashboardId:e,widgetId:t,closePopup:function(){return n.layout.closePopup()}}))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(I,l.createElement(Gm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return uu.Radio.channel(Y.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Sd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return RE}}]),n}(p.Application),UE=function(e){var t=e.children;return l.createElement(qu,null,t)},FE=function(){return{url:"/api/domain/v2/me/ratings",key:"ratings"}},VE=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ji.string().trim().max(350,"Description is too long").default(""),rating:ji.object().shape({id:ji.string()}).default({}).noUnknown(),tallPoster:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),banner:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown()}).noUnknown(),BE=function(e,t){var n=c.SERIES,r=i.Series,a=[{label:"Edit Series Details",appLink:{application:n,action:r.EDIT_SERIES,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_SERIES_VIDEOS,args:[t]}}];return Vp(e)&&a.push.apply(a,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_SERIES_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_SERIES_AUDIENCES,args:[t]}}]),a};function HE(e){var t=ci(),n=Gc(t);return l.createElement(vi,null,l.createElement(Kc,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this series",autoFocus:!0}),l.createElement(Kc,{label:"Description",as:"textarea",name:"description",id:"description",maxLength:350,value:t.values.description,placeholder:"Describe this series here",showCharacterCounter:!0}),l.createElement(jl,{ratings:e.ratings}),l.createElement(cl,{imageType:wu.TallPosters,fieldName:"tallPoster",application:c.SERIES,uploadAction:i.Series.UPLOAD_IMAGE}),l.createElement(cl,{imageType:wu.Banners,fieldName:"banner",application:c.SERIES,uploadAction:i.Playlists.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(vf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.id?"Save":"Create"),!!e.actions&&l.createElement(Cl,{actions:e.actions})))}function zE(e){return l.createElement(Ai,{initialValues:e.series,validationSchema:VE,onSubmit:e.saveSeries},l.createElement(HE,{id:e.series&&e.series.id,ratings:e.ratings}))}function qE(e){return l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:BE(e.currentUser,e.seriesId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function JE(e){var t,n=Object(v.useDispatch)(),r=lp(),a=oe.useBasicFetch(iS(e.seriesId)),o=oe.useBasicFetch(FE()),s=oe.useBasicFetch(wp());return l.createElement(l.Fragment,null,!!s.data&&l.createElement(qE,{seriesId:e.seriesId,activeAction:i.Series.EDIT_SERIES,currentUser:s.data}),!!a.data&&!!o.data&&l.createElement(zE,{series:a.data,saveSeries:function(t,i){oe.fetch(n,cS(e.seriesId,t,(function(){r.success("Successfully updated series.")}),(function(){r.error("Failed to update series.")}),i))},ratings:o.data}),l.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit series page ",l.createElement(gu,{className:"info-link",appLink:(t=e.seriesId,{application:c.SERIES,action:i.Series.LEGACY_EDIT_SERIES,args:[t]})},"here"),"."))}function $E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return KE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WE(e){var t=$E(l.useState({}),2),n=t[0],r=t[1],a=oe.useBasicFetch(iS(e.seriesId)),o=oe.useBasicFetch(wp()),c=Qf(u.SUBJECT);!function(e,t,n){var r=function(e){return Rh(n,e)};Dh(bv.getObjectLevelsFetchOptions(e,Kh.Series,r("seriesLevels")),[e]),Dh(bv.getObjectAudiencesFetchOptions(e,Kh.Series,r("seriesAudiences")),[e,t.seriesLevels]),Lh([bv.getPresentationsFetchOptions(r("presentations")),bv.getLevelsFetchOptions(r("levels"))],[]),Dh(!!t.currentPresentation&&bv.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.seriesId,n,r),Nb(n,r);var s=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.seriesLevels&&n.seriesAudiences);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(qE,{seriesId:e.seriesId,activeAction:i.Series.EDIT_SERIES_AUDIENCES,currentUser:o.data}),l.createElement(wl,{object:a.data}),!!s&&l.createElement(Tv,{objectLevels:n.seriesLevels,objectAudiences:n.seriesAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Rh(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:Kh.Series,saveLevels:function(t,n,r){return c.updateObjectLevels(e.seriesId,t,Kh.Series,n,r,r)},saveAudiences:function(t,r){return c.updateObjectAudiences(e.seriesId,n.currentPresentation.id,t,Kh.Series,r,r)}}))}function YE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||ZE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GE(e){return function(e){if(Array.isArray(e))return QE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ZE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZE(e,t){if(e){if("string"==typeof e)return QE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QE(e,t):void 0}}function QE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XE(e){var t=YE(l.useState({}),2),n=t[0],r=t[1],a=oe.useBasicFetch(iS(e.seriesId)),o=oe.useBasicFetch(wp()),c=Qf(u.SUBJECT);!function(e,t,n){var r=function(e){return Rh(n,e)};Lh([bv.getSubjectTreeFetchOptions(r("subjectTree")),bv.getPresentationsFetchOptions(r("presentations"))],[]),Dh(bv.getObjectSubjectsFetchOptions(e,Kh.Series,r("seriesSubjects")),[e]),Dh(!!t.currentPresentation&&bv.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.seriesSubjects]);var i=function(e,t){return[].concat(GE(t.subjectClassifications||[]),GE(e))},a=t.seriesSubjects&&t.seriesSubjects.map((function(e){return bv.getSubjectClassificationFetchOptions(e.id,Rh(n,"subjectClassifications",i))}));Lh(a,[t.seriesSubjects],!!a),Dh(bv.getObjectClassificationsFetchOptions(e,Kh.Series,r("seriesClassifications")),[e,t.seriesSubjects])}(e.seriesId,n,r),Nb(n,r);var s=!!(n.seriesSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.seriesClassifications&&n.subjectClassifications);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(qE,{seriesId:e.seriesId,activeAction:i.Series.EDIT_SERIES_SUBJECTS,currentUser:o.data}),l.createElement(wl,{object:a.data}),s&&l.createElement(mb,{objectSubjects:n.seriesSubjects,subjectTree:n.subjectTree,memberType:Kh.Series,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Rh(r,"currentPresentation"),objectClassifications:n.seriesClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.seriesId,t,Kh.Series,n,r,r)},saveClassifications:function(t,r){return c.updateObjectClassifications(e.seriesId,n.currentPresentation.id,t,Kh.Series,r,r)}}))}function eO(){var e=Object(v.useDispatch)(),t=lp(),n=oe.useBasicFetch(FE());return l.createElement(l.Fragment,null,!!n.data&&l.createElement(zE,{saveSeries:function(n,r){var a=function(){t.error("Failed to create series.")},o=function(e){t.success("Successfully created series."),function(e){p.AppLinkHelper.trigger({application:c.SERIES,action:i.Series.EDIT_SERIES,args:[e.id]})}(e)};oe.fetch(e,oS(n,(function(t){var n={permissions:Up()};oe.fetch(e,cS(t.id,n,o,a,r))}),a))},ratings:n.data}))}function tO(e){return(tO="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 nO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rO(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 iO(e,t,n){return t&&rO(e.prototype,t),n&&rO(e,n),e}function aO(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&&oO(e,t)}function oO(e,t){return(oO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uO(e);if(t){var i=uO(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sO(this,n)}}function sO(e,t){return!t||"object"!==tO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uO(e){return(uO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lO=function(e){aO(n,e);var t=cO(n);function n(){return nO(this,n),t.apply(this,arguments)}return iO(n,[{key:"channelName",get:function(){return c.SERIES}},{key:"appRoutes",get:function(){return{"manage/series/new(/)":"newSeries","manage/series/:id(/)":"editSeries","manage/series/:id/videos(/)":"editSeriesVideos","manage/series/:id/classifications(/)":"editSeriesSubjects","manage/series/:id/audiences(/)":"editSeriesAudiences","manage/legacy/series/:id(/)":"legacyEditSeries"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(p.AppRouter),fO=function(e){aO(n,e);var t=cO(n);function n(){return nO(this,n),t.apply(this,arguments)}return iO(n,[{key:"initialize",value:function(){var e=this;Ci.a.values(u).forEach((function(t){return Zf.getInstance(t,e)}))}},{key:"name",get:function(){return"Series Application"}},{key:"channelName",get:function(){return c.SERIES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:UE}}}},{key:"newSeries",value:function(){this.layout.showChildView(k,l.createElement(eO,null))}},{key:"editSeries",value:function(e){this.layout.showChildView(k,l.createElement(JE,{seriesId:e}))}},{key:"editSeriesVideos",value:function(e){this.legacyEditSeries(e)}},{key:"editSeriesSubjects",value:function(e){this.layout.showChildView(k,l.createElement(XE,{seriesId:e}))}},{key:"editSeriesAudiences",value:function(e){this.layout.showChildView(k,l.createElement(WE,{seriesId:e}))}},{key:"legacyEditSeries",value:function(e){p.LocationUtils.Redirect("/manage/legacy/series/".concat(e),!0)}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(I,l.createElement(Gm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return uu.Radio.channel(Y.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Sd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return lO}}]),n}(p.Application);function pO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mO(e){var t=pO(l.useState(),2),n=t[0],r=t[1],i=pO(l.useState(!1),2),a=i[0],o=i[1],c=oe.useBasicFetch(function(e,t){switch(e){case Wh.Playlists:return nh(t);case Wh.Series:return iS(t);case Wh.Videos:return Qb(t)}}(e.memberType,e.memberId)),s=Qf(u.SUBJECT);Dh(bv.getAudienceFetchOptions(e.audienceId,r),[e.audienceId]);var f=!!n&&!!c.data,p="Remove ".concat(Ll(dy.singularizeMemberType(e.memberType)));return l.createElement(pp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"This will not remove it from the backbone level.")),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),s.removeObjectsFromAudience(e.audienceId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(dy.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:a}]})))}function hO(e){return(hO="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 yO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vO(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 bO(e,t,n){return t&&vO(e.prototype,t),n&&vO(e,n),e}function gO(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&&SO(e,t)}function SO(e,t){return(SO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function EO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CO(e);if(t){var i=CO(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return OO(this,n)}}function OO(e,t){return!t||"object"!==hO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function CO(e){return(CO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wO,AO=function(e){gO(n,e);var t=EO(n);function n(){return yO(this,n),t.apply(this,arguments)}return bO(n,[{key:"channelName",get:function(){return c.SUBJECTS}},{key:"appRoutes",get:function(){return{"manage/subjects(/)":"subjects","manage/subjects/add-objects(/)":"addSubjectMembers","manage/subjects/new(/)":"newSubject","manage/subjects/:id/edit(/)":"editSubject","manage/subjects/:id/edit/playlists(/)":"editSubjectPlaylists","manage/subjects/:id/edit/series(/)":"editSubjectSeries","manage/subjects/:id/edit/videos(/)":"editSubjectVideos","manage/subjects/:id/classifications(/)":"subjectClassifications","manage/subjects/classifications(/)":"classifications","manage/subjects/presentations/:id/classifications(/)":"presentationClassifications","manage/subjects/presentations/:id/classifications/new(/)":"newClassification","manage/subjects/presentations/:id/classifications/:id/edit(/)":"editClassification","manage/subjects/presentations/:id/classifications/:id/edit/playlists(/)":"editClassificationPlaylists","manage/subjects/presentations/:id/classifications/:id/edit/series(/)":"editClassificationSeries","manage/subjects/presentations/:id/classifications/:id/edit/videos(/)":"editClassificationVideos","manage/subjects/levels(/)":"levels","manage/subjects/levels/new(/)":"newLevel","manage/subjects/levels/:id(/)":"level","manage/subjects/levels/:id/edit(/)":"editLevel","manage/subjects/levels/:id/edit/playlists(/)":"editLevelPlaylists","manage/subjects/levels/:id/edit/series(/)":"editLevelSeries","manage/subjects/levels/:id/edit/videos(/)":"editLevelVideos","manage/subjects/levels/:id/audiences(/)":"levelAudiences","manage/subjects/audiences(/)":"audiences","manage/subjects/presentations/:id/audiences(/)":"presentationAudiences","manage/subjects/presentations/:id/audiences/new(/)":"newAudience","manage/subjects/presentations/:id/audiences/:id/edit(/)":"editAudience","manage/subjects/presentations/:id/audiences/:id/edit/playlists(/)":"editAudiencePlaylists","manage/subjects/presentations/:id/audiences/:id/edit/series(/)":"editAudienceSeries","manage/subjects/presentations/:id/audiences/:id/edit/videos(/)":"editAudienceVideos","manage/subjects/presentations(/)":"presentations","manage/subjects/presentations/new":"newPresentation","manage/subjects/presentations/:id(/)":"editPresentation"}}},{key:"appLinks",get:function(){return["deleteClassification","removeClassificationMember","deleteSubject","removeSubjectMember","deleteAudience","removeLevelMember","removeAudienceMember","uploadImage"]}}]),n}(p.AppRouter),jO=function(e){gO(n,e);var t=EO(n);function n(){return yO(this,n),t.apply(this,arguments)}return bO(n,[{key:"initialize",value:function(){var e=this;this.subjectDataService=Zf.getInstance(u.SUBJECT,this),Ci.a.values(u).forEach((function(t){return Zf.getInstance(t,e)}))}},{key:"name",get:function(){return"Subjects Application"}},{key:"channelName",get:function(){return c.SUBJECTS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:qu,getTopNavView:this.getTopNav}}}},{key:"subjects",value:function(){this.subjectDataService.getSubjectTree((function(e){var t=!!e.children&&e.children[0];t?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[t.id]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.NEW_SUBJECT},{replace:!0})}))}},{key:"newSubject",value:function(e){var t={parentId:e.parentId};this.layout.showChildView(k,l.createElement(mE,Object.assign({key:e.parentId},t))),this.renderSubjectsLeftNav()}},{key:"editSubject",value:function(e){this.layout.showChildView(k,l.createElement(oE,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"editSubjectPlaylists",value:function(e,t){var n={subjectId:e,memberType:Kh.Playlists,action:i.Subjects.EDIT_SUBJECT_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(k,l.createElement(fE,Object.assign({key:"".concat(e,":playlists")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectSeries",value:function(e,t){var n={subjectId:e,memberType:Kh.Series,action:i.Subjects.EDIT_SUBJECT_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(k,l.createElement(fE,Object.assign({key:"".concat(e,":series")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectVideos",value:function(e,t){var n={subjectId:e,memberType:Kh.Videos,action:i.Subjects.EDIT_SUBJECT_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(k,l.createElement(fE,Object.assign({key:"".concat(e,":videos")},n))),this.renderSubjectsLeftNav(e)}},{key:"subjectClassifications",value:function(e){this.layout.showChildView(k,l.createElement(SE,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"addSubjectMembers",value:function(e){var t=e.memberType,n=e.objectIds;if(t&&n){var r={memberType:t,objectIds:Array.isArray(n)?n:[n]};this.layout.showChildView(k,l.createElement(eE,Object.assign({},r))),this.hideLeftNav()}}},{key:"removeSubjectMember",value:function(e,t,n){var r=Object.assign({subjectId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(I,l.createElement(vE,Object.assign({},r)))}},{key:"deleteSubject",value:function(e){var t=e.toString()===this.currentLeftNavId.toString()?{application:c.SUBJECTS,action:i.Subjects.NEW_SUBJECT}:null,n=Object.assign({subjectId:e,routeToOnDelete:t||null},this.getPopupProps());this.layout.showChildView(I,l.createElement(rE,Object.assign({},n)))}},{key:"classifications",value:function(){var e={objectType:"classifications",getAppLink:function(e){return{application:c.SUBJECTS,action:i.Subjects.PRESENTATION_CLASSIFICATIONS,args:[e.id]}}};this.layout.showChildView(k,l.createElement(KS,Object.assign({},e))),this.hideLeftNav()}},{key:"presentationClassifications",value:function(e){this.subjectDataService.getClassificationTree(e,(function(t){var n=!!t.children&&t.children[0];n?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.NEW_CLASSIFICATION,args:[e]},{replace:!0})}))}},{key:"newClassification",value:function(e,t){var n={presentationId:e,parentId:t.parentId};this.layout.showChildView(k,l.createElement(rS,Object.assign({key:t.parentId},n))),this.renderClassificationLeftNav(e)}},{key:"editClassification",value:function(e,t){var n={presentationId:e,classificationId:t};this.layout.showChildView(k,l.createElement(Zg,Object.assign({key:t},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationPlaylists",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:Kh.Playlists};this.layout.showChildView(k,l.createElement(eS,Object.assign({key:"".concat(t,":playlists")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationSeries",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:Kh.Series};this.layout.showChildView(k,l.createElement(eS,Object.assign({key:"".concat(t,":series")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationVideos",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:Kh.Videos};this.layout.showChildView(k,l.createElement(eS,Object.assign({key:"".concat(t,":videos")},n))),this.renderClassificationLeftNav(e,t)}},{key:"removeClassificationMember",value:function(e,t,n){var r=Object.assign({classificationId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(I,l.createElement(lS,Object.assign({},r)))}},{key:"deleteClassification",value:function(e,t){var n=t===this.currentLeftNavId?{application:c.SUBJECTS,action:i.Subjects.NEW_CLASSIFICATION,args:[e]}:null,r=Object.assign({classificationId:t,routeToOnDelete:n||null},this.getPopupProps());this.layout.showChildView(I,l.createElement(Wg,Object.assign({},r)))}},{key:"levels",value:function(){this.layout.showChildView(k,l.createElement(yS,null)),this.renderLevelsLeftNav()}},{key:"newLevel",value:function(){this.layout.showChildView(k,l.createElement(vS,null)),this.renderLevelsLeftNav()}},{key:"level",value:function(e){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[e]},{replace:!0})}},{key:"editLevel",value:function(e){this.layout.showChildView(k,l.createElement(dS,{key:e,id:e})),this.renderLevelsLeftNav(e)}},{key:"levelAudiences",value:function(e){this.layout.showChildView(k,l.createElement(TS,{key:e,levelId:e})),this.renderLevelsLeftNav(e)}},{key:"editLevelPlaylists",value:function(e,t){var n={levelId:e,memberType:Wh.Playlists,action:i.Subjects.EDIT_LEVEL_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(k,l.createElement(PS,Object.assign({key:"".concat(e,":playlists")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelSeries",value:function(e,t){var n={levelId:e,memberType:Wh.Series,action:i.Subjects.EDIT_LEVEL_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(k,l.createElement(PS,Object.assign({key:"".concat(e,":series")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelVideos",value:function(e,t){var n={levelId:e,memberType:Wh.Videos,action:i.Subjects.EDIT_LEVEL_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(k,l.createElement(PS,Object.assign({key:"".concat(e,":videos")},n))),this.renderLevelsLeftNav(e)}},{key:"removeLevelMember",value:function(e,t,n){var r=Object.assign({levelId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(I,l.createElement(DS,Object.assign({},r)))}},{key:"audiences",value:function(){var e={objectType:"audiences",getAppLink:function(e){return{application:c.SUBJECTS,action:i.Subjects.PRESENTATION_AUDIENCES,args:[e.id]}}};this.layout.showChildView(k,l.createElement(KS,Object.assign({},e))),this.hideLeftNav()}},{key:"removeAudienceMember",value:function(e,t,n){var r=Object.assign({audienceId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(I,l.createElement(mO,Object.assign({},r)))}},{key:"presentationAudiences",value:function(e){this.subjectDataService.getAudiences(e,(function(t){var n=!!t&&t[0];n?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.NEW_AUDIENCE,args:[e]},{replace:!0})}))}},{key:"newAudience",value:function(e){this.layout.showChildView(k,l.createElement(Lg,{presentationId:e})),this.hideLeftNav()}},{key:"editAudience",value:function(e,t){var n={presentationId:e,audienceId:t};this.layout.showChildView(k,l.createElement(jg,Object.assign({key:t},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudiencePlaylists",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:Wh.Playlists};this.layout.showChildView(k,l.createElement(Ug,Object.assign({key:"".concat(t,":playlists")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceSeries",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:Wh.Series};this.layout.showChildView(k,l.createElement(Ug,Object.assign({key:"".concat(t,":series")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceVideos",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:Wh.Videos};this.layout.showChildView(k,l.createElement(Ug,Object.assign({key:"".concat(t,":videos")},n))),this.renderAudienceLeftNav(e,t)}},{key:"deleteAudience",value:function(e,t){var n={application:c.SUBJECTS,action:i.Subjects.PRESENTATION_AUDIENCES,args:[e]},r=Object.assign({id:t,routeToOnDelete:n},this.getPopupProps());this.layout.showChildView(I,l.createElement(Cg,Object.assign({},r)))}},{key:"presentations",value:function(){this.layout.showChildView(k,l.createElement(zS,null)),this.hideLeftNav()}},{key:"newPresentation",value:function(){this.layout.showChildView(k,l.createElement(qS,null))}},{key:"editPresentation",value:function(e){this.layout.showChildView(k,l.createElement(US,{key:e,id:e})),this.hideLeftNav()}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(I,l.createElement(Gm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return uu.Radio.channel(Y.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Sd,{alerts:n,removeAlert:r}))}},{key:"renderClassificationLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedClassificationId:t};this.layout.showChildView(T,l.createElement(Jg,Object.assign({},n)))}},{key:"renderSubjectsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(T,l.createElement(AE,{selectedSubjectId:e}))}},{key:"renderAudienceLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedAudienceId:t};this.layout.showChildView(T,l.createElement(Dg,Object.assign({},n)))}},{key:"renderLevelsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(T,l.createElement(OS,{selectedLevelId:e}))}},{key:"setCurrentLeftNavItem",value:function(e){this.currentLeftNavId=e||null}},{key:"hideLeftNav",value:function(){this.setCurrentLeftNavItem(),this.layout.hideLeftNav()}},{key:"getTopNav",value:function(e){return l.createElement(jE,{currentAppLink:e})}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return AO}}]),n}(p.Application),TO=function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},kO=function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n}},IO=function(e,t,n,r){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:ce.a.POST,invalidationKeys:"themes",success:t,error:n,always:r}},LO=function(e,t,n,r,i){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}},_O=function(e,t,n,r){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:ce.a.DELETE,invalidationKeys:"themes",success:t,error:n,always:r}},PO=function(e){return{application:c.THEMES,action:i.Themes.EDIT_THEME,args:[e.id]}};function xO(){var e=oe.useBasicFetch(kO());return e.data?l.createElement(pl,{objects:e.data,columns:[{accessor:"name",header:"Name",appLink:PO}],newObjectAppLink:{application:c.THEMES,action:i.Themes.NEW_THEME},objectName:"Theme"}):l.createElement(l.Fragment,null)}!function(e){e.Glance="glance"}(wO||(wO={}));var NO=[{key:"topLeft",label:"Top Left"},{key:"topRight",label:"Top Right"},{key:"bottomLeft",label:"Bottom Left"},{key:"bottomRight",label:"Bottom Right"}];function DO(){var e=ci();return l.createElement("div",{className:"form-group"},NO.map((function(t){var n="data.".concat(t.key);return l.createElement(cl,{label:t.label,imageType:wu.HeroBanners,fieldName:n,application:c.THEMES,uploadAction:i.Videos.UPLOAD_IMAGE,setSelectedImage:function(t){e.setFieldValue(n,{fileId:t.id,url:t.url,fileIdType:ju.ImageAPIv2})}})})))}var RO=ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),MO=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),type:ji.mixed().required("Type is required"),data:ji.mixed().when("type",{is:wO.Glance,then:ji.object().shape({topLeft:RO,topRight:RO,bottomLeft:RO,bottomRight:RO}).noUnknown(),otherwise:ji.mixed().strip(!0)}).default({})}).noUnknown();function UO(e){var t=ci(),n=function(e){switch(e){case wO.Glance:return DO;default:return}}(t.values.type);return l.createElement(vi,null,l.createElement(Kc,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this theme",autoFocus:!0}),l.createElement(Kc,{as:"select",label:"Type",name:"type",id:"type",value:t.values.type},l.createElement("option",{value:null},"Select a type..."),Ci.a.getEnumKeys(wO).map((function(e){return l.createElement("option",{key:e,value:wO[e]},e)}))),!!n&&l.createElement(n,null),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(ys,{isNew:e.isNew}),!!e.actions&&l.createElement(Cl,{actions:e.actions})))}function FO(e){var t;return l.createElement(Ai,{initialValues:e.theme,validationSchema:MO,onSubmit:e.saveTheme},l.createElement(UO,{isNew:!(null===(t=e.theme)||void 0===t?void 0:t.id),actions:e.actions}))}function VO(){var e=Object(v.useDispatch)();return l.createElement(FO,{saveTheme:function(t,n){oe.fetch(e,IO(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.THEMES,action:i.Themes.EDIT_THEME,args:[e.id]})}),null,n))}})}function BO(e){var t=Object(v.useDispatch)(),n=lp(),r=oe.useBasicFetch(TO(e.id));return r.data?l.createElement(FO,{theme:r.data,saveTheme:function(r,i){oe.fetch(t,LO(e.id,r,(function(){n.success("Successfully updated theme")}),(function(){n.error("Failed to update theme")}),i))},actions:[{label:"Delete theme",className:"btn btn-danger",button:!0,appLink:{application:c.THEMES,action:i.Themes.DELETE_THEME,args:[e.id]}}]}):l.createElement(l.Fragment,null)}function HO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qO(e){var t=Object(v.useDispatch)(),n=lp(),r=HO(l.useState(!1),2),a=r[0],o=r[1],s=oe.useBasicFetch(TO(e.id));return l.createElement(pp,{title:"Delete Theme",closePopup:e.closePopup,showLoadingSpinner:!s.data},l.createElement(l.Fragment,null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,s.data.name),"?"),l.createElement(mp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),oe.fetch(t,_O(e.id,(function(){n.success("Successfully deleted theme"),p.AppLinkHelper.trigger({application:c.THEMES,action:i.Themes.THEMES})}),(function(){n.error("Failed to delete theme")})))},buttonText:"Yes, delete this theme",isSpinnerButton:!0,showSpinner:a}]})))}var JO=function(e){var t=e.children;return l.createElement(qu,null,t)};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 KO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(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 YO(e,t,n){return t&&WO(e.prototype,t),n&&WO(e,n),e}function GO(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&&ZO(e,t)}function ZO(e,t){return(ZO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function QO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eC(e);if(t){var i=eC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return XO(this,n)}}function XO(e,t){return!t||"object"!==$O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function eC(e){return(eC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tC=function(e){GO(n,e);var t=QO(n);function n(){return KO(this,n),t.apply(this,arguments)}return YO(n,[{key:"channelName",get:function(){return c.THEMES}},{key:"appRoutes",get:function(){return{"manage/themes(/)":"themes","manage/themes/new(/)":"newTheme","manage/themes/:id(/)":"editTheme"}}},{key:"appLinks",get:function(){return["deleteTheme","uploadImage"]}}]),n}(p.AppRouter),nC=function(e){GO(n,e);var t=QO(n);function n(){return KO(this,n),t.apply(this,arguments)}return YO(n,[{key:"name",get:function(){return"Themes Application"}},{key:"channelName",get:function(){return c.THEMES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:JO}}}},{key:"themes",value:function(){this.layout.showChildView(k,l.createElement(xO,null))}},{key:"newTheme",value:function(){this.layout.showChildView(k,l.createElement(VO,null))}},{key:"editTheme",value:function(e){this.layout.showChildView(k,l.createElement(BO,{id:e}))}},{key:"deleteTheme",value:function(e){var t=this;this.layout.showChildView(I,l.createElement(qO,{id:e,closePopup:function(){return t.layout.closePopup()}}))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(I,l.createElement(Gm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}}],[{key:"router",get:function(){return tC}}]),n}(qf),rC=function(e){var t=e.children;return l.createElement(qu,null,t)},iC=function(e,t){var n=c.VIDEOS,r=i.Videos,a=[{label:"Edit Video Details",appLink:{application:n,action:r.EDIT_VIDEO,args:[t]}}];return Vp(e)?[].concat(a,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_VIDEO_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_VIDEO_AUDIENCES,args:[t]}},{label:"Aliases",appLink:{application:n,action:r.EDIT_VIDEO_ALIASES,args:[t]}}]):a};function aC(e){var t,n=iC(e.currentUser,e.videoId);return n.length<2?l.createElement(l.Fragment,null):l.createElement("div",{className:"py-2"},l.createElement(Dl,{tabs:n,isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}))}var oC,cC,sC=ji.object().shape({name:ji.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ji.string().trim().default(""),status:ji.mixed().required("Status is required"),productionYear:ji.number().min(1900),rating:ji.object().shape({id:ji.string()}).default({}).noUnknown(),thumbnail:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),heroBanner:ji.object().shape({fileId:ji.string(),fileIdType:ji.mixed(),url:ji.string()}).default({}).noUnknown(),glance:ji.object().shape({theme:ji.string(),format:ji.mixed(),content:ji.string(),type:ji.mixed()}).default({}).noUnknown()}).noUnknown();!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(oC||(oC={})),function(e){e.Markdown="text/markdown"}(cC||(cC={}));var uC=n(52),lC=n.n(uC),fC=n(31);function pC(e){return f.a.createElement("div",Object.assign({},e,{role:"button",tabIndex:0,className:"".concat(e.className?e.className:""," cursor-pointer"),onKeyDown:e.onKeyDown?e.onKeyDown:function(t){return"Enter"===t.key&&e.onClick(t)},onClick:e.onClick,style:e.style?e.style:{}}),e.children)}var dC=n(53),mC=n.n(dC);function hC(e){var t=e.tag,n=e.appLink,r=e.onClick,i=e.disabled,a=e.tagClass,o=void 0===a?"tag":a,c=t.name.toLowerCase(),s="badge-pill py-1 px-2 my-1 mr-1 ".concat(o);return!n&&!r||i||(s+=" cursor-pointer"),i&&(s+=" "+mC.a.disabled),n?f.a.createElement(gu,{onClick:r,appLink:n,className:s,title:c},f.a.createElement("span",{className:"text-truncate text-nowrap"},c)):f.a.createElement("span",{onClick:r,className:s,title:c},f.a.createElement("span",{className:"text-truncate text-nowrap"},c))}function yC(e){var t=e.tags,n=e.getAppLink;return t&&t.data?f.a.createElement("div",{className:mC.a.tagList},t.data.map((function(e){var t=m(n)?n(e):null;return f.a.createElement(hC,{key:e.id,tag:e,appLink:t})}))):f.a.createElement(f.a.Fragment,null)}var vC=n(26),bC=n.n(vC);function gC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return SC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EC;function OC(e){var t,n,r,i=gC(l.useState(""),2),a=i[0],o=i[1];if(l.useEffect((function(){if(e.hasGlanceData){var t=uC(e.video.glance.content).split('a href="cv-tag://').join('a class="badge-pill tag mr-1 my-1 px-2 py-1" href="cv-tag://');o(t)}}),[null===(t=e.video.glance)||void 0===t?void 0:t.content]),!e.hasGlanceData&&e.hasDetails)return e.onClickShowDescription&&e.onClickShowDescription(),l.createElement(l.Fragment,null);return l.createElement("div",{className:"rounded border px-5 py-3 mb-3 position-relative d-flex justify-content-center ".concat(bC.a.container," ").concat((r=null===(n=e.theme)||void 0===n?void 0:n.name.toLowerCase(),r===EC.Maths?bC.a.bgBlue:r===EC.English?bC.a.bgPink:r===EC.History?bC.a.bgYellow:bC.a.bgGreen))},l.createElement("div",{className:"".concat(bC.a.content)},l.createElement("h2",{className:"h4"},l.createElement(hs,{namespace:"shared.videoAtAGlance",phrase:"videoAtAGlance"})),e.hasDetails&&e.onClickShowDescription&&l.createElement(pC,{onClick:e.onClickShowDescription,className:"".concat(bC.a.detailsBtn," position-absolute cursor-pointer mr-4 font-weight-500 text-info")},l.createElement(hs,{namespace:"shared.videoAtAGlance",phrase:"readFullDescription"})),l.createElement("div",{className:"position-relative",onClick:function(t){t.preventDefault();var n=t.target.getAttribute("href");if(n)if(n.includes("cv-timestamp://")){var r=n.split("cv-timestamp://")[1];e.setStartTime&&e.setStartTime(fC.a.convertDurationToSeconds(r))}else if(n.includes("cv-tag://")&&e.getTagAppLink){var i=n.split("cv-tag://")[1];p.AppLinkHelper.trigger(e.getTagAppLink(i))}else;},dangerouslySetInnerHTML:{__html:a}}),function(){var t,n,r;return(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?l.createElement("div",{className:"py-1"},l.createElement(yC,{tags:null===(r=e.video)||void 0===r?void 0:r.tags,getAppLink:function(t){return e.getTagAppLink?e.getTagAppLink(t.name):null}})):l.createElement(l.Fragment,null)}(),l.createElement("div",{className:"mt-2"},e.hasCurriculumLinks&&e.onClickShowCurriculumLinks&&l.createElement(pC,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block font-weight-500 text-info"},l.createElement(hs,{namespace:"shared.videoAtAGlance",phrase:"seeCurriculumLinks"})))),function(){var t;return Ci.a.keys(null===(t=e.theme)||void 0===t?void 0:t.data).filter((function(t){var n;return!Ci.a.isEmpty(null===(n=e.theme)||void 0===n?void 0:n.data[t])})).map((function(t){var n,r,i,a;return l.createElement("div",{key:null===(r=null===(n=e.theme)||void 0===n?void 0:n.data[t])||void 0===r?void 0:r.fileId,className:"".concat(bC.a[t]," ").concat(bC.a.background),style:{backgroundImage:"url('".concat(Mu.createUrl(null===(a=null===(i=e.theme)||void 0===i?void 0:i.data[t])||void 0===a?void 0:a.url,{format:"png"}),"')")}})}))}())}function CC(e){var t,n,r,i,a,o=ci(),c=e.themes.find((function(e){var t;return e.name===(null===(t=o.values.glance)||void 0===t?void 0:t.theme)})),s=(null===(t=o.values.glance)||void 0===t?void 0:t.format)===cC.Markdown&&(null===(n=o.values.glance)||void 0===n?void 0:n.content)&&c;return l.createElement("div",{className:"form-group p-2 border"},l.createElement("div",{className:"border-bottom mb-2"},l.createElement("label",null,"Video at a Glance")),l.createElement(Kc,{as:"select",label:"Theme",name:"glance.theme",id:"glance.theme",value:null===(r=o.values.glance)||void 0===r?void 0:r.theme},l.createElement("option",{value:null},"Select a theme..."),e.themes.map((function(e){return l.createElement("option",{key:e.id,value:e.name},e.name)}))),l.createElement(Kc,{as:"select",label:"Format",name:"glance.format",id:"glance.format",value:null===(i=o.values.glance)||void 0===i?void 0:i.format},l.createElement("option",{value:null},"Select a format..."),Ci.a.getEnumKeys(cC).map((function(e){return l.createElement("option",{key:e,value:cC[e]},e)}))),l.createElement(Kc,{label:"Content",as:"textarea",name:"glance.content",id:"glance.content",value:null===(a=o.values.glance)||void 0===a?void 0:a.content}),s&&l.createElement("div",{className:"form-group"},l.createElement("label",null,"Preview"),l.createElement(OC,{theme:c,video:{glance:o.values.glance,tags:e.tags},hasGlanceData:!0})))}function wC(e){switch(e){case oC.Published:return"badge-success";case oC.Archived:return"badge-danger";case oC.Draft:return"badge-warning";case oC.Pending:return"badge-info";case oC.Rejected:return"badge-dark";default:return"badge-secondary"}}function AC(e){var t=ci(),n=!!e.rightslineId,r=Vp(e.currentUser);return l.createElement(vi,null,n&&l.createElement(Kc,{label:"Rightsline ID",name:"rightslineId",id:"rightslineId",value:e.rightslineId,disabled:!0}),l.createElement(Kc,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this video",disabled:n,autoFocus:!0}),l.createElement("div",{className:"form-group"},l.createElement("label",null,"Status"),l.createElement("div",null,l.createElement("span",{className:"badge ".concat(wC(t.values.status))},oC[t.values.status]))),l.createElement(Kc,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this video here",disabled:n,showCharacterCounter:!0}),l.createElement(Kc,{label:"Production Year",type:"number",name:"productionYear",id:"productionYear",value:t.values.productionYear,disabled:n}),l.createElement(jl,{ratings:e.ratings,disabled:n}),l.createElement(cl,{imageType:wu.Thumbnails,fieldName:"thumbnail",application:c.VIDEOS,uploadAction:i.Videos.UPLOAD_IMAGE}),l.createElement(cl,{imageType:wu.HeroBanners,fieldName:"heroBanner",application:c.VIDEOS,uploadAction:i.Videos.UPLOAD_IMAGE}),r&&l.createElement(CC,{themes:e.themes,tags:e.tags}),l.createElement(ys,{isNew:!e.id}))}function jC(e,t){if(e)return t?Object.assign(Object.assign({},e),t):e}function TC(e){var t;return l.createElement(Ai,{initialValues:jC(e.video,e.rightslineVideo),validationSchema:sC,onSubmit:e.saveVideo,allowInitialSubmit:!!e.rightslineVideo},l.createElement(AC,{id:e.video&&e.video.id,ratings:e.ratings,themes:e.themes,tags:null===(t=e.video)||void 0===t?void 0:t.tags,currentUser:e.currentUser,rightslineId:e.rightslineId}))}function kC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return IC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LC(e){var t,n=Object(v.useDispatch)(),r=kC(l.useState(!1),2),a=r[0],o=r[1],s=oe.useBasicFetch(Qb(e.videoId)),u=oe.useBasicFetch(eg(e.videoId)),f=oe.useBasicFetch(FE()),p=oe.useBasicFetch(kO(wO.Glance)),d=oe.useBasicFetch(wp());var m,h=!!s.data&&!!f.data&&!!p.data&&!!d.data&&u.isComplete;return l.createElement(l.Fragment,null,!!d.data&&l.createElement(aC,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO,currentUser:d.data}),!!u.data&&l.createElement("div",{className:"pt-3 text-right"},l.createElement(ki.Button,{variant:"outline-dark",size:"sm",onClick:function(){u.isFetching||(o(!0),oe.fetch(n,eg(e.videoId)))}},"Sync from Rightsline")),h&&l.createElement(TC,{video:s.data,saveVideo:function(t,r){oe.fetch(n,tg(e.videoId,t,null,null,r))},ratings:f.data,themes:p.data,currentUser:d.data,rightslineId:null===(t=u.data)||void 0===t?void 0:t.rightslineId,rightslineVideo:a&&u.data}),l.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit video page ",l.createElement(gu,{className:"info-link",appLink:(m=e.videoId,{application:c.VIDEOS,action:i.Videos.LEGACY_EDIT_VIDEO,args:[m]})},"here"),"."))}function _C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return PC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xC(e){var t=_C(l.useState({}),2),n=t[0],r=t[1],a=oe.useBasicFetch(Qb(e.videoId)),o=oe.useBasicFetch(wp()),c=Qf(u.SUBJECT);!function(e,t,n){var r=function(e){return Rh(n,e)};Dh(bv.getObjectLevelsFetchOptions(e,Kh.Videos,r("videoLevels")),[e]),Dh(bv.getObjectAudiencesFetchOptions(e,Kh.Videos,r("videoAudiences")),[e,t.videoLevels]),Lh([bv.getPresentationsFetchOptions(r("presentations")),bv.getLevelsFetchOptions(r("levels"))],[]),Dh(!!t.currentPresentation&&bv.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.videoId,n,r),Nb(n,r);var s=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.videoLevels&&n.videoAudiences);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(aC,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO_AUDIENCES,currentUser:o.data}),l.createElement(wl,{object:a.data}),!!s&&l.createElement(Tv,{objectLevels:n.videoLevels,objectAudiences:n.videoAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Rh(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:Kh.Videos,saveLevels:function(t,n,r){return c.updateObjectLevels(e.videoId,t,Kh.Videos,n,r,r)},saveAudiences:function(t,r){return c.updateObjectAudiences(e.videoId,n.currentPresentation.id,t,Kh.Videos,r,r)}}))}function NC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||RC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DC(e){return function(e){if(Array.isArray(e))return MC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||RC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RC(e,t){if(e){if("string"==typeof e)return MC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MC(e,t):void 0}}function MC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UC(e){var t=NC(l.useState({}),2),n=t[0],r=t[1],a=oe.useBasicFetch(Qb(e.videoId)),o=oe.useBasicFetch(wp()),c=Qf(u.SUBJECT);!function(e,t,n){var r=function(e){return Rh(n,e)};Lh([bv.getSubjectTreeFetchOptions(r("subjectTree")),bv.getPresentationsFetchOptions(r("presentations"))],[]),Dh(bv.getObjectSubjectsFetchOptions(e,Kh.Videos,r("videoSubjects")),[e]),Dh(!!t.currentPresentation&&bv.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.videoSubjects]);var i=function(e,t){return[].concat(DC(t.subjectClassifications||[]),DC(e))},a=t.videoSubjects&&t.videoSubjects.map((function(e){return bv.getSubjectClassificationFetchOptions(e.id,Rh(n,"subjectClassifications",i))}));Lh(a,[t.videoSubjects],!!a),Dh(bv.getObjectClassificationsFetchOptions(e,Kh.Videos,r("videoClassifications")),[e,t.videoSubjects])}(e.videoId,n,r),Nb(n,r);var s=!!(n.videoSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.videoClassifications&&n.subjectClassifications);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(aC,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO_SUBJECTS,currentUser:o.data}),l.createElement(wl,{object:a.data}),s&&l.createElement(mb,{objectSubjects:n.videoSubjects,subjectTree:n.subjectTree,memberType:Kh.Videos,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Rh(r,"currentPresentation"),objectClassifications:n.videoClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.videoId,t,Kh.Videos,n,r,r)},saveClassifications:function(t,r){return c.updateObjectClassifications(e.videoId,n.currentPresentation.id,t,Kh.Videos,r,r)}}))}!function(e){e.Maths="maths",e.English="english",e.History="history"}(EC||(EC={}));var FC=function(e){return{key:"aliases:".concat(e),url:"/api/master/v2/objects/".concat(e,"/aliases")}},VC=function(e,t,n,r){return{key:"create:alias",url:"/api/master/v2/objects/".concat(e,"/aliases"),type:ce.a.POST,invalidationKeys:"aliases:".concat(e),data:t,success:n,error:r}},BC=function(e,t,n,r){return{key:"delete:alias",url:"/api/domain/v2/objects/".concat(e,"/aliases/").concat(t),type:ce.a.DELETE,invalidationKeys:"aliases:".concat(e),success:n,error:r}};function HC(e){var t=Object(v.useDispatch)(),n=lp(),r=oe.useBasicFetch(FC(e.videoId)),a=oe.useBasicFetch(wp());return r.data?l.createElement(l.Fragment,null,!!a.data&&l.createElement(aC,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO_ALIASES,currentUser:a.data}),l.createElement(Ef,{aliases:r.data.data,onSave:function(r,i){oe.fetch(t,VC(e.videoId,r,(function(){n.success("Successfully created alias"),i()}),(function(){n.error("Something went wrong creating your alias")})))},onDelete:function(r){oe.fetch(t,BC(e.videoId,r,(function(){n.success("Successfully deleted alias")}),(function(){n.error("Something went wrong deleting your alias")})))}})):l.createElement(l.Fragment,null,"Loading...")}function zC(e){return(zC="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 qC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JC(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 $C(e,t,n){return t&&JC(e.prototype,t),n&&JC(e,n),e}function KC(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&&WC(e,t)}function WC(e,t){return(WC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function YC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ZC(e);if(t){var i=ZC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return GC(this,n)}}function GC(e,t){return!t||"object"!==zC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ZC(e){return(ZC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var QC,XC,ew=function(e){KC(n,e);var t=YC(n);function n(){return qC(this,n),t.apply(this,arguments)}return $C(n,[{key:"channelName",get:function(){return c.VIDEOS}},{key:"appRoutes",get:function(){return{"manage/videos/:id(/)":"editVideo","manage/videos/:id/audiences(/)":"editVideoAudiences","manage/videos/:id/classifications(/)":"editVideoSubjects","manage/videos/:id/aliases(/)":"editVideoAliases","tools/programlookup/:id":"legacyEditVideo"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(p.AppRouter),tw=function(e){KC(n,e);var t=YC(n);function n(){return qC(this,n),t.apply(this,arguments)}return $C(n,[{key:"initialize",value:function(){var e=this;Ci.a.values(u).forEach((function(t){return Zf.getInstance(t,e)}))}},{key:"name",get:function(){return"Videos Application"}},{key:"channelName",get:function(){return c.VIDEOS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:rC,alertRegion:L}}}},{key:"editVideo",value:function(e){this.layout.showChildView(k,l.createElement(LC,{videoId:e}))}},{key:"editVideoAudiences",value:function(e){this.layout.showChildView(k,l.createElement(xC,{videoId:e}))}},{key:"editVideoSubjects",value:function(e){this.layout.showChildView(k,l.createElement(UC,{videoId:e}))}},{key:"editVideoAliases",value:function(e){this.layout.showChildView(k,l.createElement(HC,{videoId:e}))}},{key:"legacyEditVideo",value:function(e){p.LocationUtils.Redirect("/tools/programlookup/".concat(e))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(I,l.createElement(Gm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}}],[{key:"router",get:function(){return ew}}]),n}(qf);function nw(e){return(nw="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 rw(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&&iw(e,t)}function iw(e,t){return(iw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function aw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cw(e);if(t){var i=cw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ow(this,n)}}function ow(e,t){return!t||"object"!==nw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cw(e){return(cw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uw(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 lw(e,t,n){return t&&uw(e.prototype,t),n&&uw(e,n),e}!function(e){e.UPDATE="UPDATE_VIEW_MODEL"}(QC||(QC={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage"}(XC||(XC={}));var fw=function(){function e(t){if(sw(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport)try{this.storage=window[this.type]}catch(e){}}return lw(e,[{key:"get",value:function(e){if(this.hasSupport){var t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}},{key:"set",value:function(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}},{key:"remove",value:function(e){if(this.hasSupport)return this.storage.removeItem(e)}},{key:"length",value:function(){if(this.hasSupport)return this.storage.length}},{key:"clear",value:function(){if(this.hasSupport)return this.storage.clear()}},{key:"cacheSet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set("".concat(this.cachePrefix).concat(e),r)}},{key:"cacheGet",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}},{key:"cacheExists",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}},{key:"cacheRemove",value:function(e){return this.remove("".concat(this.cachePrefix).concat(e))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var e=0;e<this.storage.length;e++){var t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){var n=this.get(t);n&&n.time&&this.isExpired(n)&&this.remove(t)}}}},{key:"isExpired",value:function(e){return e.time<this.getCurrentTime()}},{key:"getCurrentTime",value:function(){return(new Date).getTime()}},{key:"hasBrowserSupport",value:function(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}]),e}(),pw=function(e){rw(n,e);var t=aw(n);function n(){return sw(this,n),t.apply(this,arguments)}return lw(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:XC.LocalStorage}))}}]),n}(fw),dw=function(e){rw(n,e);var t=aw(n);function n(){return sw(this,n),t.apply(this,arguments)}return lw(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:XC.SessionStorage}))}}]),n}(fw),mw=pw.Instance,hw=dw.Instance;var yw=function(e,t,n){var r,i=(r=null==n?void 0:n.storage)?r===XC.SessionStorage?hw:mw:null,a=Object(v.useDispatch)(),o=Object(v.useSelector)((function(t){return t.viewModelData[e]})),c=void 0!==t&&void 0===o;if(c)u(t);else if(i&&void 0===o){var s=i.get(e);u("undefined"===s?null:s)}function u(t,n){i&&function(t,n){if(!i)return;var r=i.get(e);if("string"==typeof t&&void 0!==n)return void i.set(e,Object.assign(Object.assign({},r),{dataOrKey:n}));i.set(e,t)}(t,n),a({type:QC.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:n}})}return c?[t,u]:[null!=o?o:void 0,u]},vw="release:notes:config",bw=[{id:"798",name:"Monorepo"},{id:"109",name:"Online"},{id:"822",name:"Lite"},{id:"534",name:"Library Editor"},{id:"62",name:"Curator"}];function gw(e){var t=ci(),n=Gc(t),r="798"===t.values.project;return f.a.useEffect((function(){e.getMilestones(t.values.project),r&&e.getBranchNames(t.values.project)}),[t.values.project]),f.a.useEffect((function(){t.setFieldValue("milestone",Ap.a.first(e.milestones))}),[e.milestones]),f.a.useEffect((function(){t.setFieldValue("branchName",Ap.a.first(e.branchNames))}),[e.branchNames]),f.a.createElement(vi,null,f.a.createElement(Kc,{as:"select",label:"Project",name:"project",id:"project",value:t.values.project},bw.map((function(e){return f.a.createElement("option",{key:e.id,value:e.id},e.name)}))),f.a.createElement(Kc,{as:"select",label:"Milestone",name:"milestone",id:"milestone",value:t.values.milestone,disabled:!e.milestones.length},e.milestones.map((function(e){return f.a.createElement("option",{key:e,value:e},e)}))),r&&f.a.createElement(Kc,{as:"select",label:"Branch Name",name:"branchName",id:"branchName",value:t.values.branchName,disabled:!e.branchNames.length},e.branchNames.map((function(e){return f.a.createElement("option",{key:e,value:e},e)}))),f.a.createElement("div",{className:"d-flex justify-content-between"},f.a.createElement(vf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Generate")))}var Sw="U_Jxes3Htv-xiaDX5wfn",Ew="https://gitlab.cvinternal.net/api/v4",Ow=function(e,t){return{key:"milestones:".concat(e),url:_u("".concat(Ew,"/projects/").concat(e,"/milestones"),{private_token:Sw}),normalize:!1,formatData:function(e){return e.map((function(e){return e.title}))},success:t}},Cw=function(e,t){return{key:"branch:names:".concat(e),url:_u("".concat(Ew,"/projects/").concat(e,"/repository/branches"),{private_token:Sw,per_page:50}),normalize:!1,formatData:function(e){return e.map((function(e){return e.name}))},success:t}},ww=function(e,t,n,r){return{key:"merge:requests:".concat(e,":").concat(t,":").concat(n),url:_u("".concat(Ew,"/projects/").concat(e,"/merge_requests"),{private_token:Sw,milestone:t,state:"merged",per_page:50,page:n}),success:r}},Aw=function(e,t,n){return{key:"file:paths:".concat(t,":").concat(e),url:_u("".concat(Ew,"/projects/").concat(e,"/search"),{scope:"blobs",search:t,private_token:Sw}),normalize:!1,formatData:function(e){return e.filter((function(e){return e.filename.includes(t)}))},success:n}},jw=function(e,t,n,r){return{key:"file:".concat(e,":").concat(t,":").concat(n),url:_u("".concat(Ew,"/projects/").concat(e,"/repository/files/").concat(encodeURIComponent(t),"/raw"),{ref:n,private_token:Sw}),normalize:!1,formatData:function(e){return JSON.parse(e)},success:r}},Tw=ji.object().shape({project:ji.string().required("Project is required").default(""),milestone:ji.string().required("Milestone is required").default(""),branchName:ji.string().when("project",(function(e,t){return"798"===e?t.required("Branch name is required"):t})).default("")}).noUnknown();function kw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lw={project:Ap.a.first(bw).id};function _w(){var e=kw(f.a.useState([]),2),t=e[0],n=e[1],r=kw(f.a.useState([]),2),a=r[0],o=r[1],s=kw(yw(vw),2)[1],u=Object(v.useDispatch)();return f.a.createElement(f.a.Fragment,null,f.a.createElement("h4",{className:"py-2"},"Generate Release Notes"),f.a.createElement(Ai,{initialValues:Lw,onSubmit:function(e){s(e),p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:i.ReleaseNotes.GENERATOR})},validationSchema:Tw},f.a.createElement(gw,{getMilestones:function(e){n([]),oe.fetch(u,Ow(e,n))},milestones:t,getBranchNames:function(e){o([]),oe.fetch(u,Cw(e,o))},branchNames:a})))}var Pw=n(213),xw=/#*/;function Nw(e){return e=e.replace("-"," "),e="## "+(e=(e=Ll(e)).replace(xw,"").trim())}function Dw(e){var t=e.toLowerCase();return"## notes"===t||"## dependencies"===t}function Rw(e){return e=e.replace("-"," "),e=Ll(e)}function Mw(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Uw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uw(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fw=["# online","# curator","# library editor","# lite","# styles","# tooling","# analytics","# common","# shared","# player"];function Vw(e){for(var t={name:"",changes:""},n=0;t.name||n<e.length;n++){var r=e[n];if(!r)break;if("#"===r){var i=e.indexOf("\n",n),a=e.slice(n,i);Fw.includes(a.toLowerCase().trim())&&(t.name=Ll(a.replace("#","").trim()),e=e.slice(i),n=-1)}}for(var o=0;!t.changes&&o<e.length;o++){if(o+1===e.length){t.changes=e,e="";break}if("#"===e[o]&&"#"!==e[o+1]){var c=e.indexOf("\n",o),s=e.slice(o,c);Fw.includes(s.toLowerCase().trim())&&(t.changes=e.slice(0,o),e=e.slice(o),o=-1)}}return{section:t,remainingDescription:e}}function Bw(e){var t,n={},r=Mw(e);try{for(r.s();!(t=r.n()).done;)for(var i=t.value;i;){var a=Vw(i),o=a.section;if(i=a.remainingDescription,!o.name)break;n[o.name]||(n[o.name]=[]),n[o.name].push(o.changes)}}catch(e){r.e(e)}finally{r.f()}var c={};return Object.keys(n).forEach((function(e){var t,r;c[e]=(t=n[e],r={},t.forEach((function(e){for(var t=e.split("");t&&t.length;){for(var n=0;n<t.length&&t.length!==n+1;n++)if("#"===t[n]&&"#"===t[n+1]){var i=t.indexOf("\n",n),a=Rw(t.slice(n,i).join(""));r[a]||(r[a]="");for(var o=i;o<t.length;o++){if(t.length===o+1){var c=t.slice(i+1).join("");r[a]+=c,t=[];break}if("#"===t[o]&&"#"===t[o+1]){var s=t.slice(i+1,o).join("");if(!s.length){t=t.slice(o),n=-1;break}r[a]+=s,t=t.slice(o),n=-1;break}}r[a]+="\n"}break}})),Object.keys(r).reduce((function(e,t){return e+=t+"\n",e+=r[t]+"\n"}),""))})),Object.keys(c).reduce((function(e,t){return e+="\n",e+="\n# ".concat(t),e+="\n".concat(c[t])}),"")}var Hw=n(214),zw=n.n(Hw);function qw(e){return function(e){if(Array.isArray(e))return Kw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||$w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}(e,t)||$w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $w(e,t){if(e){if("string"==typeof e)return Kw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kw(e,t):void 0}}function Kw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ww(){var e=Jw(f.a.useState(!0),2),t=e[0],n=e[1],r=Jw(f.a.useState(1),2),a=r[0],o=r[1],s=Jw(f.a.useState([]),2),u=s[0],l=s[1],d=Jw(f.a.useState([]),2),m=d[0],h=d[1],y=Jw(f.a.useState(!0),2),b=y[0],g=y[1],S=Jw(f.a.useState(""),2),E=S[0],O=S[1],C=Jw(f.a.useState("Copy"),2),w=C[0],A=C[1],j=Jw(yw(vw),1)[0],T=j&&"798"===j.project,k=Object(v.useDispatch)();return f.a.useEffect((function(){if(j){var e=j.project,t=j.milestone;oe.fetch(k,ww(e,t,a,(function(e){l([].concat(qw(u),qw(e))),50===e.length?o(a+1):n(!1)})))}}),[a]),f.a.useEffect((function(){if(!(t||T&&b)){var e=u.map((function(e){return e.description.replace("\r\n","\n").replace("\r","")})),n=T?function(e,t){var n=function(e){var t="# Final Package Versions\n\n| Package | Version |\n| ------------------------- | ------------------------ |\n| @clickview/analytics | <analytics-version> |\n| @clickview/styles | <styles-version> |\n| @clickview/tooling | <tooling-version> |\n| @clickview/curator | <curator-version> |\n| @clickview/library-editor | <library-editor-version> |\n| @clickview/lite | <lite-version> |\n| @clickview/online | <online-version> |\n| @clickview/player | <player-version> |\n";return e.forEach((function(e){var n=e.name,r=e.version;r&&(t=t.replace("<".concat(n.replace("@clickview/",""),"-version>"),r))})),t}(t),r=Bw(e);return"".concat(n,"\n").concat(r)}(e,m):function(e){var t={};return e.forEach((function(e){for(var n=e.split("");;){var r=!1;if(!n||!n.length)break;for(var i=0;i<n.length&&n.length!==i+1;i++)if("#"===n[i]){var a=n.indexOf("\n",i),o=Nw(n.slice(i,a).join(""));t[o]||(Dw(o)?r=!0:t[o]="");for(var c=a;c<n.length;c++){if(n.length===c+1){if(r){r=!1,n=[];break}var s=n.slice(a+1).join("");t[o]+=s,n=[];break}if("#"===n[c]){if(r){r=!1,n=n.slice(c),i=-1;break}var u=n.slice(a+1,c).join("");if(!u.length){n=n.slice(c),i=-1;break}t[o]+=u,n=n.slice(c),i=-1;break}}t[o]?t[o]+="\n":delete t[o]}break}})),Object.keys(t).reduce((function(e,n){return t[n]?(e+=n+"\n",e+=t[n]+"\n"):e}),"")}(e);O(n)}}),[t,b]),f.a.useEffect((function(){if(j&&T){var e=[];oe.fetch(k,Aw(j.project,"package.json",(function(t){var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=$w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;oe.fetch(k,jw(j.project,i.path,j.branchName,(function(n){e.push(n),e.length===t.length&&(h(e),g(!1))})))}}catch(e){r.e(e)}finally{r.f()}})))}}),[]),j?f.a.createElement(f.a.Fragment,null,E?f.a.createElement("div",{className:"position-relative border rounded p-3"},f.a.createElement(Pw,{onCopy:function(){return A("Copied")},text:E},f.a.createElement("button",{className:"btn btn-outline-dark ".concat(zw.a.copyBtn)},w)),f.a.createElement("div",{dangerouslySetInnerHTML:{__html:lC()(E)}})):t?"Fetching merge requests..":"Merging descriptions.."):(p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:i.ReleaseNotes.FORM}),f.a.createElement(f.a.Fragment,null))}function Yw(e){return(Yw="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 Gw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(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 Qw(e,t,n){return t&&Zw(e.prototype,t),n&&Zw(e,n),e}function Xw(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&&eA(e,t)}function eA(e,t){return(eA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rA(e);if(t){var i=rA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nA(this,n)}}function nA(e,t){return!t||"object"!==Yw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rA(e){return(rA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var iA,aA=function(e){Xw(n,e);var t=tA(n);function n(){return Gw(this,n),t.apply(this,arguments)}return Qw(n,[{key:"channelName",get:function(){return c.RELEASE_NOTES}},{key:"appRoutes",get:function(){return{"developer/release-notes(/)":"index","developer/release-notes/generate(/)":"form","developer/release-notes/generator(/)":"generator"}}}]),n}(p.AppRouter),oA=function(e){Xw(n,e);var t=tA(n);function n(){return Gw(this,n),t.apply(this,arguments)}return Qw(n,[{key:"name",get:function(){return"Release Notes Application"}},{key:"channelName",get:function(){return c.RELEASE_NOTES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"index",value:function(){p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:i.ReleaseNotes.GENERATOR},{replace:!0})}},{key:"form",value:function(){this.layout.showChildView(k,l.createElement(_w,null))}},{key:"generator",value:function(){this.layout.showChildView(k,l.createElement(Ww,null))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return uu.Radio.channel(Y.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Sd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return aA}}]),n}(p.Application);function cA(e){return(cA="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 sA(e){return function(e){if(Array.isArray(e))return uA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return uA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lA(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 fA(e,t){return(fA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mA(e);if(t){var i=mA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dA(this,n)}}function dA(e,t){return!t||"object"!==cA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mA(e){return(mA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Fifo="FifoMemoryCache"}(iA||(iA={}));var hA,yA=function(e){!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&&fA(e,t)}(a,e);var t,n,r,i=pA(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=a,(n=[{key:"name",get:function(){return iA.Fifo}},{key:"removeCacheKey",value:function(e){this.cachedkeys=d.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||es.c.throw(new rs.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=d.object(this.cachedkeys,this.cachedkeys),i=[];d.each(e,(function(e){var t;r[e]&&i.push(e);var n=new RegExp(e,"i"),a=d.filter(r,(function(e){return n.test(e)}));(t=i).push.apply(t,sA(a))})),i.length&&(i=d.uniq(i),d.each(i,(function(e){delete n.cache[e],d.isFunction(t)&&t(e)})),this.cachedkeys=d.without.apply(d,[this.cachedkeys].concat(sA(i))))}}])&&lA(t.prototype,n),r&&lA(t,r),a}(Xc.a),vA=n(17);!function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(hA||(hA={}));var bA,gA={type:hA.Unknown,message:"",code:0};!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(bA||(bA={}));var SA=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function EA(e){return(EA="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 OA(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 CA(e,t){return(CA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jA(e);if(t){var i=jA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return AA(this,n)}}function AA(e,t){return!t||"object"!==EA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jA(e){return(jA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var TA=function(e){!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&&CA(e,t)}(a,e);var t,n,r,i=wA(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=a,(n=[{key:"name",get:function(){return bA.Ajax}},{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=ce.a.GET);var i=d.defaults(r,{forceHttps:!1}),a={url:e,method:n,type:n};t&&(a.data=n===ce.a.POST||n===ce.a.PUT?JSON.stringify(t):t),i.forceHttps&&(a.url=this.makeHttps(a.url)),i.traditional&&(a.traditional=i.traditional);var o=$.ajax(a);return d.keys(this.successMiddleware).length&&o.done(d.values(this.successMiddleware)),d.keys(this.errorMiddleware).length&&o.fail(d.values(this.errorMiddleware)),o}},{key:"create",value:function(e,t,n){var r=n.channel,i=n.successEvent,a=n.errorEvent;this.base(e,t,ce.a.POST).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(a,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,ce.a.GET).done((function(e,t,i){n.trigger(r,e,t,i)})).fail((function(e,t,r){n.trigger(i,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,i=n.successEvent,a=n.errorEvent;this.base(e,t,ce.a.PUT).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(a,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,ce.a.DELETE).done((function(e,t,i){return n.trigger(r,e,t,i)})).fail((function(e,t,r){return n.trigger(i,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e){var t=e.responseJSON,n=gA;switch(n.code=e.status,n.message=SA(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=hA.BadRequest;break;case 401:n.type=hA.Unauthorized;break;case 403:n.type=hA.Forbidden;break;case 404:n.type=hA.NotFound;break;case 500:n.type=hA.InternalServer}return n}}])&&OA(t.prototype,n),r&&OA(t,r),a}(vA.Object);function kA(e){return(kA="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 IA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LA(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),IA({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),IA({},t.payload.dataOrKey,t.payload.keyData)))):("object"===kA(t.payload.dataOrKey)&&Array.isArray(t.payload.dataOrKey),Object.assign(Object.assign({},e),IA({},t.payload.viewModelKey,t.payload.dataOrKey)))}function _A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case QC.UPDATE:return LA(e,t)}return e}var PA="LanguageDataService",xA="locale",NA="phrases",DA="language:data:service";function RA(e){return(RA="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 MA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UA(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 FA(e,t){return(FA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function VA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HA(e);if(t){var i=HA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return BA(this,n)}}function BA(e,t){return!t||"object"!==RA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function HA(e){return(HA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zA=function(e){!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&&FA(e,t)}(a,e);var t,n,r,i=VA(a);function a(){return MA(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return PA}},{key:"channelName",get:function(){return DA}},{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:xA,expiryTime:Xh.STANDARD,bootstrapName:Ep,callback:function(n){t.locale=n,t.phrases&&d.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:NA,expiryTime:Xh.STANDARD,bootstrapName:Op,callback:function(n){t.phrases=n,t.locale&&d.isFunction(e)&&e(t)}})}}])&&UA(t.prototype,n),r&&UA(t,r),a}(Zh);n.d(t,"Layouts",(function(){return o})),n.d(t,"AppChannels",(function(){return c})),n.d(t,"DataChannels",(function(){return s})),n.d(t,"Actions",(function(){return i})),n.d(t,"DataPrefixes",(function(){return a})),n.d(t,"DataServices",(function(){return u})),n.d(t,"CuratorLayoutView",(function(){return H})),n.d(t,"LayoutComponent",(function(){return W})),n.d(t,"CuratorAppNavService",(function(){return ae})),n.d(t,"CompaniesApplication",(function(){return Rf})),n.d(t,"CustomersApplication",(function(){return fd})),n.d(t,"DomainOptionsApplication",(function(){return sm})),n.d(t,"PeopleApplication",(function(){return Vm})),n.d(t,"PlaylistsApplication",(function(){return ME})),n.d(t,"SeriesApplication",(function(){return fO})),n.d(t,"SubjectDataService",(function(){return yv})),n.d(t,"SubjectDataServiceHelper",(function(){return bv})),n.d(t,"SubjectsApplication",(function(){return jO})),n.d(t,"ThemesApplication",(function(){return nC})),n.d(t,"VideosApplication",(function(){return tw})),n.d(t,"DomainOptionsApplication",(function(){return sm})),n.d(t,"ReleaseNotesApplication",(function(){return oA})),n.d(t,"Core",(function(){return p})),n.d(t,"InstanceManager",(function(){return Zf})),n.d(t,"FifoMemoryCache",(function(){return yA})),n.d(t,"AjaxDataProvider",(function(){return TA})),n.d(t,"AlertList",(function(){return Sd})),n.d(t,"AlertType",(function(){return Xf})),n.d(t,"BaseAlertService",(function(){return up})),n.d(t,"LanguageService",(function(){return ds})),n.d(t,"Flight",(function(){return oe})),n.d(t,"CacheDurations",(function(){return Xh})),n.d(t,"ViewModelReducer",(function(){return _A})),n.d(t,"LanguageDataService",(function(){return zA}))}])}));
17
+ */var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case f:case p:case o:case u:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case y:case s:return e;default:return t}}case i:return t}}}function O(e){return C(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=a,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return O(e)||C(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return C(e)===l},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===y},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===u},t.isStrictMode=function(e){return C(e)===c},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===u||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===S||e.$$typeof===E||e.$$typeof===b)},t.typeOf=C},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},a=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(0),o=f(i),c=f(n(34)),u=f(n(228)),s=f(n(229)),l=n(237);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return m.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r.pressedSuggestion=null,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),a(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,u.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,a=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,u.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(a){var o=this.getHighlightedSuggestion();o!=t.highlightedSuggestion&&a({suggestion:o})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(a){var i=a.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,a=n.multiSection,i=n.getSectionSuggestions;return a?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,a=r.value,i=r.onChange;t!==a&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,a=n.value;return t.length>0&&r(a)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,a=t.renderInputComponent,i=t.onSuggestionsFetchRequested,c=t.renderSuggestion,u=t.inputProps,f=t.multiSection,d=t.renderSectionTitle,m=t.id,h=t.getSectionSuggestions,y=t.theme,v=t.getSuggestionValue,b=t.alwaysRenderSuggestions,g=t.highlightFirstSuggestion,S=this.state,E=S.isFocused,C=S.isCollapsed,O=S.highlightedSectionIndex,w=S.highlightedSuggestionIndex,A=S.valueBeforeUpDown,T=b?p:this.props.shouldRenderSuggestions,k=u.value,j=u.onFocus,I=u.onKeyDown,L=this.willRenderSuggestions(this.props),_=b||E&&!C&&L,P=_?n:[],x=r({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=T(k);e.setState({isFocused:!0,isCollapsed:!n}),j&&j(t),n&&i({value:k,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,a=T(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},g?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!a})),a?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var a=t.keyCode;switch(a){case 40:case 38:if(C)T(k)&&(i({value:k,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var o=r.newHighlightedSectionIndex,c=r.newHighlightedItemIndex,u=void 0;u=null===c?null===A?k:A:e.getSuggestionValueByIndex(o,c),e.updateHighlightedSuggestion(o,c,k),e.maybeCallOnChange(t,u,40===a?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var s=e.getHighlightedSuggestion();if(_&&!b&&e.closeSuggestions(),null!=s){var l=v(s);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:l,suggestionIndex:w,sectionIndex:O,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:_&&t.preventDefault();var f=_&&!b;if(null===A){if(!f){e.maybeCallOnChange(t,"","escape"),T("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,A,"escape");f?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}I&&I(t)}}),N={query:this.getQuery()};return o.default.createElement(s.default,{multiSection:f,items:P,renderInputComponent:a,renderItemsContainer:this.renderSuggestionsContainer,renderItem:c,renderItemData:N,renderSectionTitle:d,getSectionItems:h,highlightedSectionIndex:O,highlightedItemIndex:w,inputProps:x,itemProps:this.itemProps,theme:(0,l.mapToAutowhateverTheme)(y),id:m,ref:this.storeAutowhateverRef})}}]),t}(i.Component);d.propTypes={suggestions:c.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:c.default.func,onSuggestionHighlighted:c.default.func,renderInputComponent:c.default.func,renderSuggestionsContainer:c.default.func,getSuggestionValue:c.default.func.isRequired,renderSuggestion:c.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:c.default.func,alwaysRenderSuggestions:c.default.bool,multiSection:c.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:c.default.bool,highlightFirstSuggestion:c.default.bool,theme:c.default.object,id:c.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:l.defaultTheme,id:"1"};var m=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,a=n.itemIndex;e.updateHighlightedSuggestion(r,a),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,a=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,o=r.onSuggestionsFetchRequested;i&&i(t,n),a?o({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,a=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),o=i.sectionIndex,c=i.suggestionIndex,u=e.getSuggestion(o,c),s=e.props.getSuggestionValue(u);e.maybeCallOnChange(t,s,"click"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:s,suggestionIndex:c,sectionIndex:o,method:"click"}),r||e.closeSuggestions(),!0===a?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,a=n.value,i=n.onBlur,o=e.getHighlightedSuggestion(),c=r(a);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),i&&i(e.blurEvent,{highlightedSuggestion:o})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=d},function(e,t,n){"use strict";var r=n(227);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var c=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 c.name="Invariant Violation",c}}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:a};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){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},function(e,t,n){"use strict";e.exports=n(230).default},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},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},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}}(),o=n(0),c=d(o),u=d(n(34)),s=d(n(231)),l=d(n(232)),f=d(n(234)),p=d(n(235));function d(e){return e&&e.__esModule?e:{default:e}}var m={},h=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.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,r=t.inputProps,i=t.highlightedSectionIndex,o=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var c="ArrowDown"===e.key?"next":"prev",u=n.sectionIterator[c]([i,o]),s=a(u,2),l=s[0],f=s[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:f});break;default:r.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:o})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),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),i(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,s.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,l.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,a=n.items,i=n.renderItem,o=n.renderItemData,u=n.renderSectionTitle,s=n.highlightedSectionIndex,l=n.highlightedItemIndex,d=n.itemProps;return a.map((function(n,a){var m="react-autowhatever-"+r+"-",h=m+"section-"+a+"-",y=0===a;return c.default.createElement("div",t(h+"container","sectionContainer",y&&"sectionContainerFirst"),c.default.createElement(f.default,{section:n,renderSectionTitle:u,theme:t,sectionKeyPrefix:h}),c.default.createElement(p.default,{items:e.sectionsItems[a],itemProps:d,renderItem:i,renderItemData:o,sectionIndex:a,highlightedItemIndex:s===a?l:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:m,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,a=n.renderItem,i=n.renderItemData,o=n.highlightedSectionIndex,u=n.highlightedItemIndex,s=n.itemProps;return c.default.createElement(p.default,{items:e,itemProps:s,renderItem:a,renderItemData:i,highlightedItemIndex:null===o?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,a=t.multiSection,i=t.renderInputComponent,o=t.renderItemsContainer,u=t.highlightedSectionIndex,s=t.highlightedItemIndex,l=this.state.isInputFocused,f=a?this.renderSections():this.renderItems(),p=null!==f,d=this.getItemId(u,s),m="react-autowhatever-"+n,h=r({role:"combobox","aria-haspopup":"listbox","aria-owns":m,"aria-expanded":p},e("react-autowhatever-"+n+"-container","container",p&&"containerOpen"),this.props.containerProps),y=i(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":m,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",p&&"inputOpen",l&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=o({containerProps:r({id:m,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:f});return c.default.createElement("div",h,y,v)}}]),t}(o.Component);h.propTypes={id:u.default.string,multiSection:u.default.bool,renderInputComponent:u.default.func,renderItemsContainer:u.default.func,items:u.default.array.isRequired,renderItem:u.default.func,renderItemData:u.default.object,renderSectionTitle:u.default.func,getSectionItems:u.default.func,containerProps:u.default.object,inputProps:u.default.object,itemProps:u.default.oneOfType([u.default.object,u.default.func]),highlightedSectionIndex:u.default.number,highlightedItemIndex:u.default.number,theme:u.default.oneOfType([u.default.object,u.default.array])},h.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return c.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return c.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:m,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:m,inputProps:m,itemProps:m,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=h},function(e,t,n){"use strict";var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function a(e){var a=r(e,2),i=a[0],o=a[1];return n?null===o||o===t[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(i))?[null,null]:[i,0]:[i,o+1]:0===t||o===t-1?[null,null]:null===o?[null,0]:[null,o+1]}return{next:a,prev:function(e){var a=r(e,2),i=a[0],o=a[1];return n?null===o||0===o?null===(i=function(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,t[i]-1]:[i,o-1]:0===t||0===o?[null,null]:null===o?[null,t-1]:[null,o-1]},isLast:function(e){return null===a(e)[1]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function a(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)}var i,o=n(233),c=(i=o)&&i.__esModule?i:{default:i},u=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),i=n[0],o=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=n.map((function(e){return i[e]})).filter(u);return"string"==typeof s[0]||"function"==typeof o?{key:e,className:o?o.apply(void 0,a(s)):s.join(" ")}:{key:e,style:c.default.apply(void 0,[{}].concat(a(s)))}}},e.exports=t.default},function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter((function(t){return r.call(e,t)}))}e.exports=Object.assign||function(e,t){for(var n,r,o=a(e),c=1;c<arguments.length;c++){n=arguments[c],r=i(Object(n));for(var u=0;u<r.length;u++)o[r[u]]=n[r[u]]}return o}},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}}(),a=n(0),i=u(a),o=u(n(34)),c=u(n(58));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f=function(e){function t(){return s(this,t),l(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,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,c.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,a=e.sectionKeyPrefix,o=n(t);return o?i.default.createElement("div",r(a+"title","sectionTitle"),o):null}}]),t}(a.Component);f.propTypes={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},t.default=f},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},a=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(0),o=l(i),c=l(n(34)),u=l(n(236)),s=l(n(58));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 d=function(e){function t(){var e,n,r;f(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeHighlightedItemReference=function(e){r.props.onHighlightedItemChange(null===e?null:e.item)},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),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,a=t.itemProps,i=t.renderItem,c=t.renderItemData,s=t.sectionIndex,l=t.highlightedItemIndex,f=t.getItemId,p=t.theme,d=t.keyPrefix,m=null===s?d:d+"section-"+s+"-",h="function"==typeof a;return o.default.createElement("ul",r({role:"listbox"},p(m+"items-list","itemsList")),n.map((function(t,n){var d=0===n,y=n===l,v=m+"item-"+n,b=h?a({sectionIndex:s,itemIndex:n}):a,g=r({id:f(s,n),"aria-selected":y},p(v,"item",d&&"itemFirst",y&&"itemHighlighted"),b);return y&&(g.ref=e.storeHighlightedItemReference),o.default.createElement(u.default,r({},g,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:i,renderItemData:c}))})))}}]),t}(i.Component);d.propTypes={items:c.default.array.isRequired,itemProps:c.default.oneOfType([c.default.object,c.default.func]),renderItem:c.default.func.isRequired,renderItemData:c.default.object.isRequired,sectionIndex:c.default.number,highlightedItemIndex:c.default.number,onHighlightedItemChange:c.default.func.isRequired,getItemId:c.default.func.isRequired,theme:c.default.func.isRequired,keyPrefix:c.default.string.isRequired},d.defaultProps={sectionIndex:null},t.default=d},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},a=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(0),o=s(i),c=s(n(34)),u=s(n(58));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 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 p=function(e){function t(){var e,n,r;l(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeItemReference=function(e){null!==e&&(r.item=e)},r.onMouseEnter=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onMouseEnter(e,{sectionIndex:n,itemIndex:a})},r.onMouseLeave=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onMouseLeave(e,{sectionIndex:n,itemIndex:a})},r.onMouseDown=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onMouseDown(e,{sectionIndex:n,itemIndex:a})},r.onClick=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onClick(e,{sectionIndex:n,itemIndex:a})},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),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,a=e.renderItem,i=e.renderItemData,c=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,["isHighlighted","item","renderItem","renderItemData"]);return delete c.sectionIndex,delete c.itemIndex,"function"==typeof c.onMouseEnter&&(c.onMouseEnter=this.onMouseEnter),"function"==typeof c.onMouseLeave&&(c.onMouseLeave=this.onMouseLeave),"function"==typeof c.onMouseDown&&(c.onMouseDown=this.onMouseDown),"function"==typeof c.onClick&&(c.onClick=this.onClick),o.default.createElement("li",r({role:"option"},c,{ref:this.storeItemReference}),a(n,r({isHighlighted:t},i)))}}]),t}(i.Component);p.propTypes={sectionIndex:c.default.number,isHighlighted:c.default.bool.isRequired,itemIndex:c.default.number.isRequired,item:c.default.any.isRequired,renderItem:c.default.func.isRequired,renderItemData:c.default.object.isRequired,onMouseEnter:c.default.func,onMouseLeave:c.default.func,onMouseDown:c.default.func,onClick:c.default.func},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},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},a=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(239),o=v(i),c=v(n(179)),u=n(0),s=v(n(34)),l=v(n(247)),f=v(n(248)),p=v(n(249)),d=v(n(250)),m=v(n(251)),h=n(252),y=n(253);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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(e){var n;b(this,t);for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var o=g(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(a)));return o.getScrollLeft=o.getScrollLeft.bind(o),o.getScrollTop=o.getScrollTop.bind(o),o.getScrollWidth=o.getScrollWidth.bind(o),o.getScrollHeight=o.getScrollHeight.bind(o),o.getClientWidth=o.getClientWidth.bind(o),o.getClientHeight=o.getClientHeight.bind(o),o.getValues=o.getValues.bind(o),o.getThumbHorizontalWidth=o.getThumbHorizontalWidth.bind(o),o.getThumbVerticalHeight=o.getThumbVerticalHeight.bind(o),o.getScrollLeftForOffset=o.getScrollLeftForOffset.bind(o),o.getScrollTopForOffset=o.getScrollTopForOffset.bind(o),o.scrollLeft=o.scrollLeft.bind(o),o.scrollTop=o.scrollTop.bind(o),o.scrollToLeft=o.scrollToLeft.bind(o),o.scrollToTop=o.scrollToTop.bind(o),o.scrollToRight=o.scrollToRight.bind(o),o.scrollToBottom=o.scrollToBottom.bind(o),o.handleTrackMouseEnter=o.handleTrackMouseEnter.bind(o),o.handleTrackMouseLeave=o.handleTrackMouseLeave.bind(o),o.handleHorizontalTrackMouseDown=o.handleHorizontalTrackMouseDown.bind(o),o.handleVerticalTrackMouseDown=o.handleVerticalTrackMouseDown.bind(o),o.handleHorizontalThumbMouseDown=o.handleHorizontalThumbMouseDown.bind(o),o.handleVerticalThumbMouseDown=o.handleVerticalThumbMouseDown.bind(o),o.handleWindowResize=o.handleWindowResize.bind(o),o.handleScroll=o.handleScroll.bind(o),o.handleDrag=o.handleDrag.bind(o),o.handleDragEnd=o.handleDragEnd.bind(o),o.state={didMountUniversal:!1},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),a(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,a=void 0===r?0:r,i=e.scrollWidth,o=void 0===i?0:i,c=e.scrollHeight,u=void 0===c?0:c,s=e.clientWidth,l=void 0===s?0:s,f=e.clientHeight,p=void 0===f?0:f;return{left:n/(o-l)||0,top:a/(u-p)||0,scrollLeft:n,scrollTop:a,scrollWidth:o,scrollHeight:u,clientWidth:l,clientHeight:p}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,a=r.scrollWidth,i=r.clientWidth,o=(0,d.default)(this.trackHorizontal),c=Math.ceil(i/a*o);return o===c?0:t||Math.max(c,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,a=r.scrollHeight,i=r.clientHeight,o=(0,m.default)(this.trackVertical),c=Math.ceil(i/a*o);return o===c?0:t||Math.max(c,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,d.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,m.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,a=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,f.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),a.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,a=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,f.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),a.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,a=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,a&&a(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,a=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-a/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,a=this.getThumbVerticalHeight(),i=Math.abs(r-n)-a/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,a=t.getBoundingClientRect().left;this.prevPageX=r-(n-a)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,a=t.getBoundingClientRect().top;this.prevPageY=r-(n-a)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,h.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=p.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,h.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,a=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(a)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,c.default)(e.trackHorizontal,{opacity:0}),(0,c.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,a=this.getValues();if((0,f.default)()){var i=a.scrollLeft,o=a.clientWidth,u=a.scrollWidth,s=(0,d.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),p={width:l,transform:"translateX("+i/(u-o)*(s-l)+"px)"},h=a.scrollTop,y=a.clientHeight,v=a.scrollHeight,b=(0,m.default)(this.trackVertical),g=this.getThumbVerticalHeight(),S={height:g,transform:"translateY("+h/(v-y)*(b-g)+"px)"};if(r){var E={visibility:u>o?"visible":"hidden"},C={visibility:v>y?"visible":"hidden"};(0,c.default)(this.trackHorizontal,E),(0,c.default)(this.trackVertical,C)}(0,c.default)(this.thumbHorizontal,p),(0,c.default)(this.thumbVertical,S)}n&&n(a),"function"==typeof e&&e(a)}},{key:"render",value:function(){var e=this,t=(0,f.default)(),n=this.props,a=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,o=n.renderTrackVertical,c=n.renderThumbHorizontal,s=n.renderThumbVertical,p=n.tagName,d=(n.hideTracksWhenNotNeeded,n.autoHide),m=(n.autoHideTimeout,n.autoHideDuration),y=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,b=n.autoHeightMin,g=n.autoHeightMax,S=n.style,E=n.children,C=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}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),O=this.state.didMountUniversal,w=r({},h.containerStyleDefault,v&&r({},h.containerStyleAutoHeight,{minHeight:b,maxHeight:g}),S),A=r({},h.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&r({},h.viewStyleAutoHeight,{minHeight:(0,l.default)(b)?"calc("+b+" + "+t+"px)":b+t,maxHeight:(0,l.default)(g)?"calc("+g+" + "+t+"px)":g+t}),v&&y&&!O&&{minHeight:b,maxHeight:g},y&&!O&&h.viewStyleUniversalInitial),T={transition:"opacity "+m+"ms",opacity:0},k=r({},h.trackHorizontalStyleDefault,d&&T,(!t||y&&!O)&&{display:"none"}),j=r({},h.trackVerticalStyleDefault,d&&T,(!t||y&&!O)&&{display:"none"});return(0,u.createElement)(p,r({},C,{style:w,ref:function(t){e.container=t}}),[(0,u.cloneElement)(a({style:A}),{key:"view",ref:function(t){e.view=t}},E),(0,u.cloneElement)(i({style:k}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(c({style:h.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(o({style:j}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(s({style:h.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=S,S.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},S.defaultProps={renderView:y.renderViewDefault,renderTrackHorizontal:y.renderTrackHorizontalDefault,renderTrackVertical:y.renderTrackVerticalDefault,renderThumbHorizontal:y.renderThumbHorizontalDefault,renderThumbVertical:y.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){(function(t){for(var r=n(240),a="undefined"==typeof window?t:window,i=["moz","webkit"],o="AnimationFrame",c=a["request"+o],u=a["cancel"+o]||a["cancelRequest"+o],s=0;!c&&s<i.length;s++)c=a[i[s]+"Request"+o],u=a[i[s]+"Cancel"+o]||a[i[s]+"CancelRequest"+o];if(!c||!u){var l=0,f=0,p=[];c=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(a,e)},e.exports.cancel=function(){u.apply(a,arguments)},e.exports.polyfill=function(e){e||(e=a),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}}).call(this,n(84))},function(e,t,n){(function(t){(function(){var n,r,a,i,o,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,i=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),c=1e9*t.uptime(),o=i-c):Date.now?(e.exports=function(){return Date.now()-a},a=Date.now()):(e.exports=function(){return(new Date).getTime()-a},a=(new Date).getTime())}).call(this)}).call(this,n(241))},function(e,t){var n,r,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(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:o}catch(e){r=o}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!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 m(e,t){this.fun=e,this.array=t}function h(){}a.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];s.push(new m(e,t)),1!==s.length||l||c(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var a=e.charAt(0).toUpperCase()+e.slice(1),i=r.length;i>=0;i--){var o=r[i]+a;if(o in t)return o}return!1}},function(e,t,n){var r=n(244);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){var r=n(245);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},function(e,t){e.exports=function(e){return n.test(e)?e.toLowerCase():r.test(e)?(function(e){return e.replace(i,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():a.test(e)?function(e){return e.replace(o,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var n=/\s/,r=/(_|-|\.|:)/,a=/([a-z][A-Z]|[A-Z][a-z])/;var i=/[\W_]+(.|$)/g;var o=/(.)([A-Z]+)/g},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==o)return o;if("undefined"!=typeof document){var e=document.createElement("div");(0,i.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else o=0;return o||0};var r,a=n(179),i=(r=a)&&r.__esModule?r:{default:r};var o=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,a=n.paddingRight;return t-parseFloat(r)-parseFloat(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,a=n.paddingBottom;return t-parseFloat(r)-parseFloat(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},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};t.renderViewDefault=function(e){return o.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=c(e,["style"]),a=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return o.default.createElement("div",r({style:a},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=c(e,["style"]),a=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return o.default.createElement("div",r({style:a},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=c(e,["style"]),a=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",r({style:a},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=c(e,["style"]),a=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return o.default.createElement("div",r({style:a},n))};var a,i=n(0),o=(a=i)&&a.__esModule?a:{default:a};function c(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(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(255));var a=r.tokenize,i=r.options.Options;function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(e){return e.replace(/"/g,"&quot;")}function u(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+c(r)+'"')}return t.join(" ")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=a(e),r=[],s=0;s<n.length;s++){var l=n[s];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,m=f.tagName,h=f.className,y=f.target,v=f.attributes,b="<"+m+' href="'+c(d)+'"';h&&(b+=' class="'+c(h)+'"'),y&&(b+=' target="'+c(y)+'"'),v&&(b+=" "+u(v)),b+=">"+o(p)+"</"+m+">",r.push(b)}else r.push(o(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return s(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return s(this,e)})}t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(43),a=c(n(256)),i=c(n(257)),o=c(n(258));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}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var u=function(e){return o.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e),r=[],a=0;a<n.length;a++){var i=n[a];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=a,t.parser=o,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=u},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},a={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:a.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:a.events,this.format=e.hasOwnProperty("format")?e.format:a.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:a.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:a.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:a.tagName,this.target=e.hasOwnProperty("target")?e.target:a.target,this.validate=e.hasOwnProperty("validate")?e.validate:a.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||a.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||a.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:a.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function o(e){return e}t.defaults=a,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,o=this[e];if(!o)return o;switch(void 0===o?"undefined":r(o)){case"function":return o(t,n.type);case"object":return"function"==typeof(i=o.hasOwnProperty(n.type)?o[n.type]:a[e])?i(t,n.type):i}return o},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(195),a=n(59),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}(a);var o="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),s=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(a.NUM),m=f(a.DOMAIN),h=f(),y=f(a.WS);p.on("@",f(a.AT)).on(".",f(a.DOT)).on("+",f(a.PLUS)).on("#",f(a.POUND)).on("?",f(a.QUERY)).on("/",f(a.SLASH)).on("_",f(a.UNDERSCORE)).on(":",f(a.COLON)).on("{",f(a.OPENBRACE)).on("[",f(a.OPENBRACKET)).on("<",f(a.OPENANGLEBRACKET)).on("(",f(a.OPENPAREN)).on("}",f(a.CLOSEBRACE)).on("]",f(a.CLOSEBRACKET)).on(">",f(a.CLOSEANGLEBRACKET)).on(")",f(a.CLOSEPAREN)).on("&",f(a.AMPERSAND)).on([",",";","!",'"',"'"],f(a.PUNCTUATION)),p.on("\n",f(a.NL)).on(s,y),y.on(s,y);for(var v=0;v<o.length;v++){var b=(0,r.stateify)(o[v],p,a.TLD,a.DOMAIN);l.push.apply(l,b)}var g=(0,r.stateify)("file",p,a.DOMAIN,a.DOMAIN),S=(0,r.stateify)("ftp",p,a.DOMAIN,a.DOMAIN),E=(0,r.stateify)("http",p,a.DOMAIN,a.DOMAIN),C=(0,r.stateify)("mailto",p,a.DOMAIN,a.DOMAIN);l.push.apply(l,g),l.push.apply(l,S),l.push.apply(l,E),l.push.apply(l,C);var O=g.pop(),w=S.pop(),A=E.pop(),T=C.pop(),k=f(a.DOMAIN),j=f(a.PROTOCOL),I=f(a.MAILTO);w.on("s",k).on(":",j),A.on("s",k).on(":",j),l.push(k),O.on(":",j),k.on(":",j),T.on(":",I);var L=(0,r.stateify)("localhost",p,a.LOCALHOST,a.DOMAIN);l.push.apply(l,L),p.on(c,d),d.on("-",h).on(c,d).on(u,m),m.on("-",h).on(u,m);for(var _=0;_<l.length;_++)l[_].on("-",h).on(u,m);h.on("-",h).on(c,m).on(u,m),p.defaultTransition=f(a.SYM);var P=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],a=0;a<n;){for(var i=p,o=null,c=0,u=null,s=-1;a<n&&(o=i.next(t[a]));)(i=o).accepts()?(s=0,u=i):s>=0&&s++,c++,a++;if(!(s<0)){a-=s,c-=s;var l=u.emit();r.push(new l(e.substr(a-c,c)))}}return r},t.start=P},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(195),a=n(259),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}(a),o=n(59);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),d=c(),m=c(),h=c(a.URL),y=c(),v=c(a.URL),b=c(a.URL),g=c(),S=c(),E=c(),C=c(),O=c(),w=c(a.URL),A=c(a.URL),T=c(a.URL),k=c(a.URL),j=c(),I=c(),L=c(),_=c(),P=c(),x=c(),N=c(a.EMAIL),R=c(),D=c(a.EMAIL),M=c(a.MAILTOEMAIL),U=c(),F=c(),V=c(),B=c(),H=c(a.NL);u.on(o.NL,H).on(o.PROTOCOL,s).on(o.MAILTO,l).on(o.SLASH,f),s.on(o.SLASH,f),f.on(o.SLASH,p),u.on(o.TLD,d).on(o.DOMAIN,d).on(o.LOCALHOST,h).on(o.NUM,d),p.on(o.TLD,b).on(o.DOMAIN,b).on(o.NUM,b).on(o.LOCALHOST,b),d.on(o.DOT,m),P.on(o.DOT,x),m.on(o.TLD,h).on(o.DOMAIN,d).on(o.NUM,d).on(o.LOCALHOST,d),x.on(o.TLD,N).on(o.DOMAIN,P).on(o.NUM,P).on(o.LOCALHOST,P),h.on(o.DOT,m),N.on(o.DOT,x),h.on(o.COLON,y).on(o.SLASH,b),y.on(o.NUM,v),v.on(o.SLASH,b),N.on(o.COLON,R),R.on(o.NUM,D);var z=[o.DOMAIN,o.AT,o.LOCALHOST,o.NUM,o.PLUS,o.POUND,o.PROTOCOL,o.SLASH,o.TLD,o.UNDERSCORE,o.SYM,o.AMPERSAND],q=[o.COLON,o.DOT,o.QUERY,o.PUNCTUATION,o.CLOSEBRACE,o.CLOSEBRACKET,o.CLOSEANGLEBRACKET,o.CLOSEPAREN,o.OPENBRACE,o.OPENBRACKET,o.OPENANGLEBRACKET,o.OPENPAREN];b.on(o.OPENBRACE,S).on(o.OPENBRACKET,E).on(o.OPENANGLEBRACKET,C).on(o.OPENPAREN,O),g.on(o.OPENBRACE,S).on(o.OPENBRACKET,E).on(o.OPENANGLEBRACKET,C).on(o.OPENPAREN,O),S.on(o.CLOSEBRACE,b),E.on(o.CLOSEBRACKET,b),C.on(o.CLOSEANGLEBRACKET,b),O.on(o.CLOSEPAREN,b),w.on(o.CLOSEBRACE,b),A.on(o.CLOSEBRACKET,b),T.on(o.CLOSEANGLEBRACKET,b),k.on(o.CLOSEPAREN,b),j.on(o.CLOSEBRACE,b),I.on(o.CLOSEBRACKET,b),L.on(o.CLOSEANGLEBRACKET,b),_.on(o.CLOSEPAREN,b),S.on(z,w),E.on(z,A),C.on(z,T),O.on(z,k),S.on(q,j),E.on(q,I),C.on(q,L),O.on(q,_),w.on(z,w),A.on(z,A),T.on(z,T),k.on(z,k),w.on(q,w),A.on(q,A),T.on(q,T),k.on(q,k),j.on(z,w),I.on(z,A),L.on(z,T),_.on(z,k),j.on(q,j),I.on(q,I),L.on(q,L),_.on(q,_),b.on(z,b),g.on(z,b),b.on(q,g),g.on(q,g),l.on(o.TLD,M).on(o.DOMAIN,M).on(o.NUM,M).on(o.LOCALHOST,M),M.on(z,M).on(q,U),U.on(z,M).on(q,U);var J=[o.DOMAIN,o.NUM,o.PLUS,o.POUND,o.QUERY,o.UNDERSCORE,o.SYM,o.AMPERSAND,o.TLD];d.on(J,F).on(o.AT,V),h.on(J,F).on(o.AT,V),m.on(J,F),F.on(J,F).on(o.AT,V).on(o.DOT,B),B.on(J,F),V.on(o.TLD,P).on(o.DOMAIN,P).on(o.LOCALHOST,N);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var o=u,c=null,s=null,l=0,f=null,p=-1;n<t&&!(c=o.next(e[n]));)i.push(e[n++]);for(;n<t&&(s=c||o.next(e[n]));)c=null,(o=s).accepts()?(p=0,f=o):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)i.push(e[d]);else{i.length>0&&(r.push(new a.TEXT(i)),i=[]),n-=p,l-=p;var m=f.emit();r.push(new m(e.slice(n-l,n)))}}return i.length>0&&r.push(new a.TEXT(i)),r},t.start=u},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(196),a=n(43),i=n(59);function o(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var u=(0,a.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,a.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,a.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,a.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,a.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,a=[],c=0;r[c]instanceof i.PROTOCOL;)t=!0,a.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,a.push(r[c].toString()),c++;for(;o(r[c]);)a.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)a.push(r[c].toString());return a=a.join(""),t||n||(a=e+"://"+a),a},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=c,t.MAILTOEMAIL=u,t.EMAIL=s,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){const{defaults:r}=n(40),{block:a}=n(199),{rtrim:i,splitCells:o,escape:c}=n(35);e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.rules=a.normal,this.options.pedantic?this.rules=a.pedantic:this.options.gfm&&(this.rules=a.gfm)}static get rules(){return a}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let n,r,u,s,l,f,p,d,m,h,y,v,b,g,S,E;for(e=e.replace(/^ +$/gm,"");e;)if((u=this.rules.newline.exec(e))&&(e=e.substring(u[0].length),u[0].length>1&&this.tokens.push({type:"space"})),u=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(u[0].length),t&&"paragraph"===t.type?t.text+="\n"+u[0].trimRight():(u=u[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?u:i(u,"\n")}))}else if(u=this.rules.fences.exec(e))e=e.substring(u[0].length),this.tokens.push({type:"code",lang:u[2]?u[2].trim():u[2],text:u[3]||""});else if(u=this.rules.heading.exec(e))e=e.substring(u[0].length),this.tokens.push({type:"heading",depth:u[1].length,text:u[2]});else if((u=this.rules.nptable.exec(e))&&(f={type:"table",header:o(u[1].replace(/^ *| *\| *$/g,"")),align:u[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:u[3]?u[3].replace(/\n$/,"").split("\n"):[]},f.header.length===f.align.length)){for(e=e.substring(u[0].length),y=0;y<f.align.length;y++)/^ *-+: *$/.test(f.align[y])?f.align[y]="right":/^ *:-+: *$/.test(f.align[y])?f.align[y]="center":/^ *:-+ *$/.test(f.align[y])?f.align[y]="left":f.align[y]=null;for(y=0;y<f.cells.length;y++)f.cells[y]=o(f.cells[y],f.header.length);this.tokens.push(f)}else if(u=this.rules.hr.exec(e))e=e.substring(u[0].length),this.tokens.push({type:"hr"});else if(u=this.rules.blockquote.exec(e))e=e.substring(u[0].length),this.tokens.push({type:"blockquote_start"}),u=u[0].replace(/^ *> ?/gm,""),this.token(u,t),this.tokens.push({type:"blockquote_end"});else if(u=this.rules.list.exec(e)){for(e=e.substring(u[0].length),s=u[2],g=s.length>1,p={type:"list_start",ordered:g,start:g?+s:"",loose:!1},this.tokens.push(p),u=u[0].match(this.rules.item),d=[],n=!1,b=u.length,y=0;y<b;y++)f=u[y],h=f.length,f=f.replace(/^ *([*+-]|\d+\.) */,""),~f.indexOf("\n ")&&(h-=f.length,f=this.options.pedantic?f.replace(/^ {1,4}/gm,""):f.replace(new RegExp("^ {1,"+h+"}","gm"),"")),y!==b-1&&(l=a.bullet.exec(u[y+1])[0],(s.length>1?1===l.length:l.length>1||this.options.smartLists&&l!==s)&&(e=u.slice(y+1).join("\n")+e,y=b-1)),r=n||/\n\n(?!\s*$)/.test(f),y!==b-1&&(n="\n"===f.charAt(f.length-1),r||(r=n)),r&&(p.loose=!0),S=/^\[[ xX]\] /.test(f),E=void 0,S&&(E=" "!==f[1],f=f.replace(/^\[[ xX]\] +/,"")),m={type:"list_item_start",task:S,checked:E,loose:r},d.push(m),this.tokens.push(m),this.token(f,!1),this.tokens.push({type:"list_item_end"});if(p.loose)for(b=d.length,y=0;y<b;y++)d[y].loose=!0;this.tokens.push({type:"list_end"})}else if(u=this.rules.html.exec(e))e=e.substring(u[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===u[1]||"script"===u[1]||"style"===u[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):c(u[0]):u[0]});else if(t&&(u=this.rules.def.exec(e)))e=e.substring(u[0].length),u[3]&&(u[3]=u[3].substring(1,u[3].length-1)),v=u[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[v]||(this.tokens.links[v]={href:u[2],title:u[3]});else if((u=this.rules.table.exec(e))&&(f={type:"table",header:o(u[1].replace(/^ *| *\| *$/g,"")),align:u[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:u[3]?u[3].replace(/\n$/,"").split("\n"):[]},f.header.length===f.align.length)){for(e=e.substring(u[0].length),y=0;y<f.align.length;y++)/^ *-+: *$/.test(f.align[y])?f.align[y]="right":/^ *:-+: *$/.test(f.align[y])?f.align[y]="center":/^ *:-+ *$/.test(f.align[y])?f.align[y]="left":f.align[y]=null;for(y=0;y<f.cells.length;y++)f.cells[y]=o(f.cells[y].replace(/^ *\| *| *\| *$/g,""),f.header.length);this.tokens.push(f)}else if(u=this.rules.lheading.exec(e))e=e.substring(u[0].length),this.tokens.push({type:"heading",depth:"="===u[2].charAt(0)?1:2,text:u[1]});else if(t&&(u=this.rules.paragraph.exec(e)))e=e.substring(u[0].length),this.tokens.push({type:"paragraph",text:"\n"===u[1].charAt(u[1].length-1)?u[1].slice(0,-1):u[1]});else if(u=this.rules.text.exec(e))e=e.substring(u[0].length),this.tokens.push({type:"text",text:u[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}}},function(e,t,n){const r=n(60),a=n(200),i=n(201),o=n(202),{defaults:c}=n(40),{merge:u,unescape:s}=n(35);e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||c,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new a}static parse(t,n){return new e(n).parse(t)}parse(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,u({},this.options,{renderer:new o})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,s(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,n,r,a,i="";for(r="",t=0;t<this.token.header.length;t++)r+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(i+=this.renderer.tablerow(r),t=0;t<this.token.cells.length;t++){for(n=this.token.cells[t],r="",a=0;a<n.length;a++)r+=this.renderer.tablecell(this.inline.output(n[a]),{header:!1,align:this.token.align[a]});e+=this.renderer.tablerow(r)}return this.renderer.table(i,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,n=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,n)}case"list_item_start":{e="";const t=this.token.loose,n=this.token.checked,r=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(n)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(n)});else e+=this.renderer.checkbox(n);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,r,n)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(0)),a=i(n(263));function i(e){return e&&e.__esModule?e:{default:e}}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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?d(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){var e,n;s(this,t);for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];return h(d(n=f(this,(e=p(t)).call.apply(e,[this].concat(o)))),"onClick",(function(e){var t=n.props,i=t.text,o=t.onCopy,c=t.children,u=t.options,s=r.default.Children.only(c),l=(0,a.default)(i,u);o&&o(i,l),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e)})),n}var n,i,o;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&&m(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,["text","onCopy","options","children"]),a=r.default.Children.only(t);return r.default.cloneElement(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&l(n.prototype,i),o&&l(n,o),t}(r.default.PureComponent);t.CopyToClipboard=y,h(y,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(264),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,o,c,u,s,l=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),c=document.createRange(),u=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=a[t.format]||a.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),c.selectNodeContents(s),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";n.r(t);var r={UPLOAD_IMAGE:"upload:image"},a={Subjects:Object.assign({SUBJECTS:"subjects",NEW_SUBJECT:"new:subject",EDIT_SUBJECT:"edit:subject",EDIT_SUBJECT_PLAYLISTS:"edit:subject:playlists",EDIT_SUBJECT_SERIES:"edit:subject:series",EDIT_SUBJECT_VIDEOS:"edit:subject:videos",SUBJECT_CLASSIFICATIONS:"subject:classifications",DELETE_SUBJECT:"delete:subject",ADD_SUBJECT_MEMBERS:"add:subject:members",REMOVE_SUBJECT_MEMBER:"remove:subject:member",CLASSIFICATIONS:"classifications",PRESENTATION_CLASSIFICATIONS:"presentation:classifications",NEW_CLASSIFICATION:"new:classification",EDIT_CLASSIFICATION:"edit:classification",EDIT_CLASSIFICATION_PLAYLISTS:"edit:classification:playlists",EDIT_CLASSIFICATION_SERIES:"edit:classification:series",EDIT_CLASSIFICATION_VIDEOS:"edit:classification:videos",DELETE_CLASSIFICATION:"delete:classification",REMOVE_CLASSIFICATION_MEMBER:"remove:classification:member",LEVELS:"levels",NEW_LEVEL:"new:level",EDIT_LEVEL:"edit:level",LEVEL_AUDIENCES:"level:audiences",EDIT_LEVEL_PLAYLISTS:"edit:level:playlists",EDIT_LEVEL_SERIES:"edit:level:series",EDIT_LEVEL_VIDEOS:"edit:level:videos",REMOVE_LEVEL_MEMBER:"remove:level:member",AUDIENCES:"audiences",PRESENTATION_AUDIENCES:"presentation:audiences",NEW_AUDIENCE:"new:audience",EDIT_AUDIENCE:"edit:audience",EDIT_AUDIENCE_PLAYLISTS:"edit:audience:playlists",EDIT_AUDIENCE_SERIES:"edit:audience:series",EDIT_AUDIENCE_VIDEOS:"edit:audience:videos",DELETE_AUDIENCE:"delete:audience",REMOVE_AUDIENCE_MEMBER:"remove:audience:member",PRESENTATIONS:"presentations",NEW_PRESENTATION:"new:presentation",EDIT_PRESENTATION:"edit:presentation"},r),Playlists:Object.assign({PLAYLISTS:"index",SEARCH_PLAYLISTS:"search:playlists",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",EDIT_PLAYLIST_VIDEOS:"edit:playlist:videos",EDIT_PLAYLIST_DASHBOARDS:"edit:playlist:dashboards",EDIT_PLAYLIST_SUBJECTS:"edit:playlist:subjects",EDIT_PLAYLIST_AUDIENCES:"edit:playlist:audiences",DELETE_PLAYLIST:"delete:playlist",REMOVE_VIDEO:"remove:video",REMOVE_FROM_SUBJECT:"remove:from:subject",DASHBOARD:"dashboard",DELETE_DASHBOARD_WIDGET:"delete:dashboard:widget"},r),Series:Object.assign({EDIT_SERIES:"edit:series",EDIT_SERIES_VIDEOS:"edit:series:videos",EDIT_SERIES_SUBJECTS:"edit:series:subjects",EDIT_SERIES_AUDIENCES:"edit:series:audiences",LEGACY_EDIT_SERIES:"legacy:edit:series"},r),Videos:Object.assign({EDIT_VIDEO:"edit:video",EDIT_VIDEO_AUDIENCES:"edit:video:audiences",EDIT_VIDEO_SUBJECTS:"edit:video:subjects",EDIT_VIDEO_ALIASES:"edit:video:aliases",LEGACY_EDIT_VIDEO:"legacy:edit:video"},r),DomainOptions:{DOMAIN_OPTIONS:"domain:options",NEW_DOMAIN_OPTION:"new:domain:option",EDIT_DOMAIN_OPTION:"edit:domain:option",DELETE_DOMAIN_OPTION:"delete:domain:option"},People:{PEOPLE:"people",NEW_PERSON:"new:person",EDIT_PERSON:"edit:person"},Companies:{COMPANIES:"companies",NEW_COMPANY:"new:company",EDIT_COMPANY:"edit:company"},Themes:Object.assign({THEMES:"themes",NEW_THEME:"new:theme",EDIT_THEME:"edit:theme",DELETE_THEME:"delete:theme"},r),ReleaseNotes:{FORM:"form",GENERATOR:"generator"},Customers:{MANAGE_CUSTOMER:"manage:customer",MANAGE_CUSTOMER_TOPICS:"manage:customer:topics"}},i={SUBJECT:"subject",SUBJECTS:"subjects",UPDATE_SUBJECT:"update:subject",DELETE_SUBJECT:"delete:subject",UPDATE_OBJECT_SUBJECTS:"update:object:subjects",ADD_TO_SUBJECT:"add:to:subject",REMOVE_FROM_SUBJECT:"remove:from:subject",CLASSIFICATION:"classification",CLASSIFICATIONS:"classifications",UPDATE_CLASSIFICATION:"update:classification",DELETE_CLASSIFICATION:"delete:classification",UPDATE_OBJECT_CLASSIFICATIONS:"update:object:classifications",ADD_TO_CLASSIFICATION:"add:to:classification",REMOVE_FROM_CLASSIFICATION:"remove:from:classification",PRESENTATION:"presentation",PRESENTATIONS:"presentations",UPDATE_PRESENTATION:"update:presentation",LEVEL:"level",LEVELS:"levels",UPDATE_LEVEL:"update:level",ADD_TO_LEVEL:"add:to:level",REMOVE_FROM_LEVEL:"remove:from:level",UPDATE_OBJECT_LEVELS:"update:object:levels",AUDIENCE:"audience",AUDIENCES:"audiences",UPDATE_AUDIENCE:"update:audience",DELETE_AUDIENCE:"delete:audience",UPDATE_OBJECT_AUDIENCES:"update:object:audiences",ADD_TO_AUDIENCE:"add:to:audience",REMOVE_FROM_AUDIENCE:"remove:from:audience",PLAYLIST:"playlist",PLAYLISTS:"playlists",UPDATE_PLAYLIST:"update:playlist",DELETE_PLAYLIST:"delete:playlist",PLAYLIST_VIDEOS:"playlist:videos",REORDER_PLAYLIST_VIDEOS:"reorder:playlist:videos",REMOVE_PLAYLIST_VIDEO:"remove:playlist:video",VIDEO:"video",SERIES:"series",SERIES_BY_ID:"series:by:id",UPDATE_SERIES:"update:series",CURRENT_USER:"current:user",UPLOAD_IMAGE:"upload:image",LOCALE:"locale",PHRASES:"PHRASES"},o={CURATOR_LAYOUT:"CuratorLayout"},c={COMPANIES:"companies:application",CUSTOMERS:"customers:application",DOMAIN_OPTIONS:"domain:options:application",PEOPLE:"people:application",PLAYLISTS:"playlists:application",SERIES:"series:application",SUBJECTS:"subjects:application",THEMES:"themes:application",VIDEOS:"videos:application",RELEASE_NOTES:"release:notes:application"},u={IMAGE_UPLOAD:"image:upload:data:service",SUBJECT:"subject:data:service",LANGUAGE:"language:data:service"},s={SUBJECT:"SubjectDataService",LANGUAGE:"LanguageDataService"},l=n(0),f=n.n(l),p=n(24),d=n(1),m=function(e,t,n){return d.debounce(e,t,n)},h=function(e){return d.isFunction(e)},y=function(){return d.identity},v=n(54),b=n(6);function g(e){return(g="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 S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a 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)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var a=A(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!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)}(i,e);var t,n,r,a=O(i);function i(){return S(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"isReactComponent",value:function(e){return l&&l.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),v.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return v.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return v.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return l.createElement(b.Provider,{store:this.options.store},e)}}])&&E(t.prototype,n),r&&E(t,r),i}(n(46).a),k="top:nav",j="left:nav",I="content",L="popup",_="alert",P=n(206),x=n.n(P),N=n(55),R=n.n(N);function D(e){return(D="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 M(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 U(e,t,n){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=H(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!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&&F(e,t)}(i,e);var t,n,r,a=V(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).childComponents={},t}return t=i,r=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=[];return Object.keys(e).forEach((function(t){n.push("".concat(t,":").concat(e[t]))})),n.length&&(n.sort(),t+=":".concat(n.join(":"))),t}}],(n=[{key:"title",get:function(){return!1}},{key:"name",get:function(){return"CuratorLayoutView"}},{key:"template",get:function(){return x.a}},{key:"className",get:function(){return"container-fluid ".concat(R.a.curatorLayout)}},{key:"regions",value:function(){return{layout:".layout-region"}}},{key:"getChildComponents",value:function(){return{topNav:{component:this.childComponents[k],className:R.a.topNavRegion},leftNav:{component:this.childComponents[j],className:"py-3 ".concat(R.a.leftNavRegion)},content:{component:this.childComponents[I],className:"position-relative container py-3"},popup:{component:this.childComponents[L]},alert:{component:this.childComponents[_]}}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"renderTopNav",value:function(){h(this.options.getTopNavView)&&(this.childComponents[k]=this.options.getTopNavView(p.AppLinkHelper.getCurrentAppLink()))}},{key:"hideLeftNav",value:function(){this.unsetRegion(j)}},{key:"closePopup",value:function(){this.unsetRegion(L)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderTopNav(),this.renderLayout()}},{key:"renderLayout",value:function(){var e=Object.assign({provider:this.options.provider},this.getChildComponents());U(H(i.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(l.createElement(Y,Object.assign({},e))))}}])&&M(t.prototype,n),r&&M(t,r),i}(T),q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},J=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)},K=function(e,t){return"".concat(e).concat(t?" ".concat(t):"")},W=function(e){var t=e.topNav,n=e.leftNav,r=e.content,a=e.popup,i=e.alert;return l.createElement(l.Fragment,null,l.createElement("div",{className:"position-relative"},!!t.component&&l.createElement(J,{className:K("top-nav-region",t.className)},t.component),!!n.component&&l.createElement(J,{className:K("left-nav-region",n.className)},n.component),!!r.component&&l.createElement("div",{className:"content-container"},l.createElement(J,{className:K("content-region",r.className)},r.component))),!!a.component&&l.createElement(J,{className:K("popup-region",a.className)},a.component),!!i.component&&l.createElement(J,{className:K("alert-region",i.className)},i.component))},Y=function(e){var t=e.provider,n=q(e,["provider"]);return t?l.createElement(t,null,l.createElement(W,Object.assign({},n))):l.createElement(W,Object.assign({},n))},G=n(9);function Z(e){return(Z="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 Q(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(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 ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var a=ie(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!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&&ne(e,t)}(i,e);var t,n,r,a=re(i);function i(){return ee(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(G.a.SHELL,p.EventNames.ROUTING_END,this.updateNav)}},{key:"name",get:function(){return"CuratorAppNavService"}},{key:"updateNav",value:function(){var e=this,t=p.AppLinkHelper.getCurrentAppLink().application;if(t!==this.currentApplication){this.currentApplication=t;var n=this.options.navItemMappings[t];if(n){var r=document.querySelector(this.options.navSelector);r&&r.children&&Q(r.children).forEach((function(t){var r=t.querySelector("a");r&&(r.classList.remove(e.options.currentItemClassName),r.text===n&&r.classList.add(e.options.currentItemClassName))}))}}}}])&&te(t.prototype,n),r&&te(t,r),i}(p.Service),ce=n(70),ue=n(8),se=function(e){var t="/api/master/v2/companies";return e?"".concat(t,"?cursor=").concat(e):t},le=function(e){return"/api/master/v2/objects/".concat(e)},fe=function(){return"/api/master/v2/companies"},pe=function(e){return"/api/master/v2/objects/".concat(e)},de="companies",me="company",he="update:company",ye=function(e){return{key:"".concat(de).concat(e?":".concat(e):""),url:se(e)}},ve=function(e){return{key:"".concat(me,":").concat(e),url:le(e)}},be=function(e,t,n){return{key:me,url:fe(),data:e,type:ue.a.POST,success:t,error:n,invalidationKeys:[de]}},ge=function(e,t,n){return{key:"".concat(he,":").concat(e),url:pe(e),data:t,type:ue.a.PUT,always:n}},Se=n(33),Ee=n.n(Se),Ce=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Oe}(e)}(e)};var Oe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function we(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Te((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ae(e,t,n){return e.concat(t).map((function(e){return we(e,n)}))}function Te(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ae,n.isMergeableObject=n.isMergeableObject||Ce;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=we(e[t],n)})),Object.keys(t).forEach((function(a){n.isMergeableObject(t[a])&&e[a]?r[a]=Te(e[a],t[a],n):r[a]=we(t[a],n)})),r}(e,t,n):we(t,n)}Te.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Te(e,n,t)}),{})};var ke=Te,je=n(15),Ie=je.a.Symbol,Le=Object.prototype,_e=Le.hasOwnProperty,Pe=Le.toString,xe=Ie?Ie.toStringTag:void 0;var Ne=function(e){var t=_e.call(e,xe),n=e[xe];try{e[xe]=void 0;var r=!0}catch(e){}var a=Pe.call(e);return r&&(t?e[xe]=n:delete e[xe]),a},Re=Object.prototype.toString;var De=function(e){return Re.call(e)},Me=Ie?Ie.toStringTag:void 0;var Ue=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Me&&Me in Object(e)?Ne(e):De(e)};var Fe=function(e,t){return function(n){return e(t(n))}},Ve=Fe(Object.getPrototypeOf,Object);var Be=function(e){return null!=e&&"object"==typeof e},He=Function.prototype,ze=Object.prototype,qe=He.toString,Je=ze.hasOwnProperty,$e=qe.call(Object);var Ke=function(e){if(!Be(e)||"[object Object]"!=Ue(e))return!1;var t=Ve(e);if(null===t)return!0;var n=Je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qe.call(n)==$e};var We=function(){this.__data__=[],this.size=0};var Ye=function(e,t){return e===t||e!=e&&t!=t};var Ge=function(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1},Ze=Array.prototype.splice;var Qe=function(e){var t=this.__data__,n=Ge(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)};var Xe=function(e){var t=this.__data__,n=Ge(t,e);return n<0?void 0:t[n][1]};var et=function(e){return Ge(this.__data__,e)>-1};var tt=function(e,t){var n=this.__data__,r=Ge(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function nt(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])}}nt.prototype.clear=We,nt.prototype.delete=Qe,nt.prototype.get=Xe,nt.prototype.has=et,nt.prototype.set=tt;var rt=nt;var at=function(){this.__data__=new rt,this.size=0};var it=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var ot=function(e){return this.__data__.get(e)};var ct=function(e){return this.__data__.has(e)};var ut=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var st,lt=function(e){if(!ut(e))return!1;var t=Ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ft=je.a["__core-js_shared__"],pt=(st=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+st:"";var dt=function(e){return!!pt&&pt in e},mt=Function.prototype.toString;var ht=function(e){if(null!=e){try{return mt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},yt=/^\[object .+?Constructor\]$/,vt=Function.prototype,bt=Object.prototype,gt=vt.toString,St=bt.hasOwnProperty,Et=RegExp("^"+gt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=function(e){return!(!ut(e)||dt(e))&&(lt(e)?Et:yt).test(ht(e))};var Ot=function(e,t){return null==e?void 0:e[t]};var wt=function(e,t){var n=Ot(e,t);return Ct(n)?n:void 0},At=wt(je.a,"Map"),Tt=wt(Object,"create");var kt=function(){this.__data__=Tt?Tt(null):{},this.size=0};var jt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},It=Object.prototype.hasOwnProperty;var Lt=function(e){var t=this.__data__;if(Tt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return It.call(t,e)?t[e]:void 0},_t=Object.prototype.hasOwnProperty;var Pt=function(e){var t=this.__data__;return Tt?void 0!==t[e]:_t.call(t,e)};var xt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tt&&void 0===t?"__lodash_hash_undefined__":t,this};function Nt(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])}}Nt.prototype.clear=kt,Nt.prototype.delete=jt,Nt.prototype.get=Lt,Nt.prototype.has=Pt,Nt.prototype.set=xt;var Rt=Nt;var Dt=function(){this.size=0,this.__data__={hash:new Rt,map:new(At||rt),string:new Rt}};var Mt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ut=function(e,t){var n=e.__data__;return Mt(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ft=function(e){var t=Ut(this,e).delete(e);return this.size-=t?1:0,t};var Vt=function(e){return Ut(this,e).get(e)};var Bt=function(e){return Ut(this,e).has(e)};var Ht=function(e,t){var n=Ut(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function zt(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])}}zt.prototype.clear=Dt,zt.prototype.delete=Ft,zt.prototype.get=Vt,zt.prototype.has=Bt,zt.prototype.set=Ht;var qt=zt;var Jt=function(e,t){var n=this.__data__;if(n instanceof rt){var r=n.__data__;if(!At||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qt(r)}return n.set(e,t),this.size=n.size,this};function $t(e){var t=this.__data__=new rt(e);this.size=t.size}$t.prototype.clear=at,$t.prototype.delete=it,$t.prototype.get=ot,$t.prototype.has=ct,$t.prototype.set=Jt;var Kt=$t;var Wt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Yt=function(){try{var e=wt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Gt=function(e,t,n){"__proto__"==t&&Yt?Yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Zt=Object.prototype.hasOwnProperty;var Qt=function(e,t,n){var r=e[t];Zt.call(e,t)&&Ye(r,n)&&(void 0!==n||t in e)||Gt(e,t,n)};var Xt=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?Gt(n,c,u):Qt(n,c,u)}return n};var en=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var tn=function(e){return Be(e)&&"[object Arguments]"==Ue(e)},nn=Object.prototype,rn=nn.hasOwnProperty,an=nn.propertyIsEnumerable,on=tn(function(){return arguments}())?tn:function(e){return Be(e)&&rn.call(e,"callee")&&!an.call(e,"callee")},cn=Array.isArray,un=n(49),sn=/^(?:0|[1-9]\d*)$/;var ln=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&sn.test(e))&&e>-1&&e%1==0&&e<t};var fn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},pn={};pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Arguments]"]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object Boolean]"]=pn["[object DataView]"]=pn["[object Date]"]=pn["[object Error]"]=pn["[object Function]"]=pn["[object Map]"]=pn["[object Number]"]=pn["[object Object]"]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object WeakMap]"]=!1;var dn=function(e){return Be(e)&&fn(e.length)&&!!pn[Ue(e)]};var mn=function(e){return function(t){return e(t)}},hn=n(29),yn=hn.a&&hn.a.isTypedArray,vn=yn?mn(yn):dn,bn=Object.prototype.hasOwnProperty;var gn=function(e,t){var n=cn(e),r=!n&&on(e),a=!n&&!r&&Object(un.a)(e),i=!n&&!r&&!a&&vn(e),o=n||r||a||i,c=o?en(e.length,String):[],u=c.length;for(var s in e)!t&&!bn.call(e,s)||o&&("length"==s||a&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ln(s,u))||c.push(s);return c},Sn=Object.prototype;var En=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Sn)},Cn=Fe(Object.keys,Object),On=Object.prototype.hasOwnProperty;var wn=function(e){if(!En(e))return Cn(e);var t=[];for(var n in Object(e))On.call(e,n)&&"constructor"!=n&&t.push(n);return t};var An=function(e){return null!=e&&fn(e.length)&&!lt(e)};var Tn=function(e){return An(e)?gn(e):wn(e)};var kn=function(e,t){return e&&Xt(t,Tn(t),e)};var jn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},In=Object.prototype.hasOwnProperty;var Ln=function(e){if(!ut(e))return jn(e);var t=En(e),n=[];for(var r in e)("constructor"!=r||!t&&In.call(e,r))&&n.push(r);return n};var _n=function(e){return An(e)?gn(e,!0):Ln(e)};var Pn=function(e,t){return e&&Xt(t,_n(t),e)},xn=n(208);var Nn=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Rn=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i};var Dn=function(){return[]},Mn=Object.prototype.propertyIsEnumerable,Un=Object.getOwnPropertySymbols,Fn=Un?function(e){return null==e?[]:(e=Object(e),Rn(Un(e),(function(t){return Mn.call(e,t)})))}:Dn;var Vn=function(e,t){return Xt(e,Fn(e),t)};var Bn=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e},Hn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Bn(t,Fn(e)),e=Ve(e);return t}:Dn;var zn=function(e,t){return Xt(e,Hn(e),t)};var qn=function(e,t,n){var r=t(e);return cn(e)?r:Bn(r,n(e))};var Jn=function(e){return qn(e,Tn,Fn)};var $n=function(e){return qn(e,_n,Hn)},Kn=wt(je.a,"DataView"),Wn=wt(je.a,"Promise"),Yn=wt(je.a,"Set"),Gn=wt(je.a,"WeakMap"),Zn=ht(Kn),Qn=ht(At),Xn=ht(Wn),er=ht(Yn),tr=ht(Gn),nr=Ue;(Kn&&"[object DataView]"!=nr(new Kn(new ArrayBuffer(1)))||At&&"[object Map]"!=nr(new At)||Wn&&"[object Promise]"!=nr(Wn.resolve())||Yn&&"[object Set]"!=nr(new Yn)||Gn&&"[object WeakMap]"!=nr(new Gn))&&(nr=function(e){var t=Ue(e),n="[object Object]"==t?e.constructor:void 0,r=n?ht(n):"";if(r)switch(r){case Zn:return"[object DataView]";case Qn:return"[object Map]";case Xn:return"[object Promise]";case er:return"[object Set]";case tr:return"[object WeakMap]"}return t});var rr=nr,ar=Object.prototype.hasOwnProperty;var ir=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ar.call(e,"index")&&(n.index=e.index,n.input=e.input),n},or=je.a.Uint8Array;var cr=function(e){var t=new e.constructor(e.byteLength);return new or(t).set(new or(e)),t};var ur=function(e,t){var n=t?cr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},sr=/\w*$/;var lr=function(e){var t=new e.constructor(e.source,sr.exec(e));return t.lastIndex=e.lastIndex,t},fr=Ie?Ie.prototype:void 0,pr=fr?fr.valueOf:void 0;var dr=function(e){return pr?Object(pr.call(e)):{}};var mr=function(e,t){var n=t?cr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var hr=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return cr(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return ur(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return mr(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return lr(e);case"[object Set]":return new r;case"[object Symbol]":return dr(e)}},yr=Object.create,vr=function(){function e(){}return function(t){if(!ut(t))return{};if(yr)return yr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var br=function(e){return"function"!=typeof e.constructor||En(e)?{}:vr(Ve(e))};var gr=function(e){return Be(e)&&"[object Map]"==rr(e)},Sr=hn.a&&hn.a.isMap,Er=Sr?mn(Sr):gr;var Cr=function(e){return Be(e)&&"[object Set]"==rr(e)},Or=hn.a&&hn.a.isSet,wr=Or?mn(Or):Cr,Ar={};Ar["[object Arguments]"]=Ar["[object Array]"]=Ar["[object ArrayBuffer]"]=Ar["[object DataView]"]=Ar["[object Boolean]"]=Ar["[object Date]"]=Ar["[object Float32Array]"]=Ar["[object Float64Array]"]=Ar["[object Int8Array]"]=Ar["[object Int16Array]"]=Ar["[object Int32Array]"]=Ar["[object Map]"]=Ar["[object Number]"]=Ar["[object Object]"]=Ar["[object RegExp]"]=Ar["[object Set]"]=Ar["[object String]"]=Ar["[object Symbol]"]=Ar["[object Uint8Array]"]=Ar["[object Uint8ClampedArray]"]=Ar["[object Uint16Array]"]=Ar["[object Uint32Array]"]=!0,Ar["[object Error]"]=Ar["[object Function]"]=Ar["[object WeakMap]"]=!1;var Tr=function e(t,n,r,a,i,o){var c,u=1&n,s=2&n,l=4&n;if(r&&(c=i?r(t,a,i,o):r(t)),void 0!==c)return c;if(!ut(t))return t;var f=cn(t);if(f){if(c=ir(t),!u)return Nn(t,c)}else{var p=rr(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(un.a)(t))return Object(xn.a)(t,u);if("[object Object]"==p||"[object Arguments]"==p||d&&!i){if(c=s||d?{}:br(t),!u)return s?zn(t,Pn(c,t)):Vn(t,kn(c,t))}else{if(!Ar[p])return i?t:{};c=hr(t,p,u)}}o||(o=new Kt);var m=o.get(t);if(m)return m;o.set(t,c),wr(t)?t.forEach((function(a){c.add(e(a,n,r,a,t,o))})):Er(t)&&t.forEach((function(a,i){c.set(i,e(a,n,r,i,t,o))}));var h=f?void 0:(l?s?$n:Jn:s?_n:Tn)(t);return Wt(h||t,(function(a,i){h&&(a=t[i=a]),Qt(c,i,e(a,n,r,i,t,o))})),c};var kr=function(e){return Tr(e,4)};var jr=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a};var Ir=function(e){return"symbol"==typeof e||Be(e)&&"[object Symbol]"==Ue(e)};function Lr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Lr.Cache||qt),n}Lr.Cache=qt;var _r=Lr;var Pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/\\(\\)?/g,Nr=function(e){var t=_r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Pr,(function(e,n,r,a){t.push(r?a.replace(xr,"$1"):n||e)})),t}));var Rr=function(e){if("string"==typeof e||Ir(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Dr=Ie?Ie.prototype:void 0,Mr=Dr?Dr.toString:void 0;var Ur=function e(t){if("string"==typeof t)return t;if(cn(t))return jr(t,e)+"";if(Ir(t))return Mr?Mr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Fr=function(e){return null==e?"":Ur(e)};var Vr=function(e){return cn(e)?jr(e,Rr):Ir(e)?[e]:Nn(Nr(Fr(e)))};var Br=function(e,t){},Hr=n(61),zr=n(62),qr=n.n(zr);var Jr=function(e){return Tr(e,5)};function $r(){return($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}).apply(this,arguments)}function Kr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wr(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function Yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Gr=function(e){return"function"==typeof e},Zr=function(e){return null!==e&&"object"==typeof e},Qr=function(e){return String(Math.floor(Number(e)))===e},Xr=function(e){return"[object String]"===Object.prototype.toString.call(e)},ea=function(e){return 0===l.Children.count(e)},ta=function(e){return Zr(e)&&Gr(e.then)};function na(e,t,n,r){void 0===r&&(r=0);for(var a=Vr(t);e&&r<a.length;)e=e[a[r++]];return void 0===e?n:e}function ra(e,t,n){for(var r=kr(e),a=r,i=0,o=Vr(t);i<o.length-1;i++){var c=o[i],u=na(e,o.slice(0,i+1));if(u&&(Zr(u)||Array.isArray(u)))a=a[c]=kr(u);else{var s=o[i+1];a=a[c]=Qr(s)&&Number(s)>=0?[]:{}}}return(0===i?e:a)[o[i]]===n?e:(void 0===n?delete a[o[i]]:a[o[i]]=n,0===i&&void 0===n&&delete r[o[i]],r)}function aa(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],c=e[o];Zr(c)?n.get(c)||(n.set(c,!0),r[o]=Array.isArray(c)?[]:{},aa(c,t,n,r[o])):r[o]=t}return r}var ia=Object(l.createContext)(void 0),oa=ia.Provider,ca=ia.Consumer;function ua(){var e=Object(l.useContext)(ia);return e||Br(!1),e}function sa(e,t){switch(t.type){case"SET_VALUES":return $r({},e,{values:t.payload});case"SET_TOUCHED":return $r({},e,{touched:t.payload});case"SET_ERRORS":return $r({},e,{errors:t.payload});case"SET_STATUS":return $r({},e,{status:t.payload});case"SET_ISSUBMITTING":return $r({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return $r({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return $r({},e,{values:ra(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return $r({},e,{touched:ra(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return $r({},e,{errors:ra(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return $r({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return $r({},e,{touched:aa(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return $r({},e,{isSubmitting:!1});default:return e}}var la={},fa={};function pa(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,a=void 0===r||r,i=e.validateOnMount,o=void 0!==i&&i,c=e.isInitialValid,u=e.enableReinitialize,s=void 0!==u&&u,f=e.onSubmit,p=Wr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=$r({validateOnChange:n,validateOnBlur:a,validateOnMount:o,onSubmit:f},p),m=Object(l.useRef)(d.initialValues),h=Object(l.useRef)(d.initialErrors||la),y=Object(l.useRef)(d.initialTouched||fa),v=Object(l.useRef)(d.initialStatus),b=Object(l.useRef)(!1),g=Object(l.useRef)({});Object(l.useEffect)((function(){0}),[]),Object(l.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]);var S=Object(l.useReducer)(sa,{values:d.initialValues,errors:d.initialErrors||la,touched:d.initialTouched||fa,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],C=S[1],O=Object(l.useCallback)((function(e,t){return new Promise((function(n,r){var a=d.validate(e,t);null==a?n(la):ta(a)?a.then((function(e){n(e||la)}),(function(e){r(e)})):n(a)}))}),[d.validate]),w=Object(l.useCallback)((function(e,t){var n=d.validationSchema,r=Gr(n)?n(t):n,a=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var a=function e(t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var a=String(r);!0===Array.isArray(t[a])?n[a]=t[a].map((function(t){return!0===Array.isArray(t)||Ke(t)?e(t):""!==t?t:void 0})):Ke(t[a])?n[a]=e(t[a]):n[a]=""!==t[a]?t[a]:void 0}return n}(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){a.then((function(){e(la)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ra(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}var o=i;na(t,o.path)||(t=ra(t,o.path,o.message))}}return t}(n)):t(n)}))}))}),[d.validationSchema]),A=Object(l.useCallback)((function(e,t){return new Promise((function(n){return n(g.current[e].validate(t))}))}),[]),T=Object(l.useCallback)((function(e){var t=Object.keys(g.current).filter((function(e){return Gr(g.current[e].validate)})),n=t.length>0?t.map((function(t){return A(t,na(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=ra(e,t[r],n)),e}),{})}))}),[A]),k=Object(l.useCallback)((function(e){return Promise.all([T(e),d.validationSchema?w(e):{},d.validate?O(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return ke.all([t,n,r],{arrayMerge:ma})}))}),[d.validate,d.validationSchema,T,O,w]),j=ya((function(e){return void 0===e&&(e=E.values),Object(Hr.unstable_runWithPriority)(Hr.LowPriority,(function(){return k(e).then((function(e){return b.current&&C({type:"SET_ERRORS",payload:e}),e}))}))})),I=ya((function(e){return void 0===e&&(e=E.values),C({type:"SET_ISVALIDATING",payload:!0}),k(e).then((function(e){return b.current&&(C({type:"SET_ISVALIDATING",payload:!1}),Ee()(E.errors,e)||C({type:"SET_ERRORS",payload:e})),e}))}));Object(l.useEffect)((function(){o&&!0===b.current&&j(d.initialValues)}),[d.initialValues,o,j]);var L=Object(l.useCallback)((function(e){var t=e&&e.values?e.values:m.current,n=e&&e.errors?e.errors:h.current?h.current:d.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:d.initialTouched||{},a=e&&e.status?e.status:v.current?v.current:d.initialStatus;m.current=t,h.current=n,y.current=r,v.current=a,C({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[d.initialErrors,d.initialStatus,d.initialTouched]);Object(l.useEffect)((function(){s&&!0===b.current&&!Ee()(m.current,d.initialValues)&&(m.current=d.initialValues,L())}),[s,d.initialValues,L]),Object(l.useEffect)((function(){s&&!0===b.current&&!Ee()(h.current,d.initialErrors)&&(h.current=d.initialErrors||la,C({type:"SET_ERRORS",payload:d.initialErrors||la}))}),[s,d.initialErrors]),Object(l.useEffect)((function(){s&&!0===b.current&&!Ee()(y.current,d.initialTouched)&&(y.current=d.initialTouched||fa,C({type:"SET_TOUCHED",payload:d.initialTouched||fa}))}),[s,d.initialTouched]),Object(l.useEffect)((function(){s&&!0===b.current&&!Ee()(v.current,d.initialStatus)&&(v.current=d.initialStatus,C({type:"SET_STATUS",payload:d.initialStatus}))}),[s,d.initialStatus,d.initialTouched]);var _=ya((function(e){if(Gr(g.current[e].validate)){var t=na(E.values,e),n=g.current[e].validate(t);return ta(n)?(C({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),C({type:"SET_ISVALIDATING",payload:!1})}))):(C({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()})),P=Object(l.useCallback)((function(e,t){var n=t.validate;g.current[e]={validate:n}}),[]),x=Object(l.useCallback)((function(e){delete g.current[e]}),[]),N=ya((function(e){return C({type:"SET_TOUCHED",payload:e}),a?j(E.values):Promise.resolve()})),R=Object(l.useCallback)((function(e){C({type:"SET_ERRORS",payload:e})}),[]),D=ya((function(e){return C({type:"SET_VALUES",payload:e}),n?j(e):Promise.resolve()})),M=Object(l.useCallback)((function(e,t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),U=ya((function(e,t,r){return void 0===r&&(r=!0),C({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?j(ra(E.values,e,t)):Promise.resolve()})),F=Object(l.useCallback)((function(e,t){var n,r=t,a=e;if(!Xr(e)){e.persist&&e.persist();var i=e.target,o=i.type,c=i.name,u=i.id,s=i.value,l=i.checked,f=(i.outerHTML,i.options),p=i.multiple;r=t||(c||u),a=/number|range/.test(o)?(n=parseFloat(s),isNaN(n)?"":n):/checkbox/.test(o)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(na(E.values,r),l,s):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):s}r&&U(r,a)}),[U,E.values]),V=Object(l.useCallback)((function(e){if(Xr(e))return function(t){return F(t,e)};F(e)}),[F]),B=ya((function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),a&&n?j(E.values):Promise.resolve()})),H=Object(l.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,a=n.id,i=(n.outerHTML,t||(r||a));B(i,!0)}),[B]),z=Object(l.useCallback)((function(e){if(Xr(e))return function(t){return H(t,e)};H(e)}),[H]),q=Object(l.useCallback)((function(e){Gr(e)?C({type:"SET_FORMIK_STATE",payload:e}):C({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),J=Object(l.useCallback)((function(e){C({type:"SET_STATUS",payload:e})}),[]),$=Object(l.useCallback)((function(e){C({type:"SET_ISSUBMITTING",payload:e})}),[]),K={resetForm:L,validateForm:I,validateField:_,setErrors:R,setFieldError:M,setFieldTouched:B,setFieldValue:U,setStatus:J,setSubmitting:$,setTouched:N,setValues:D,setFormikState:q},W=ya((function(){return f(E.values,K)})),Y=ya((function(){return C({type:"SUBMIT_ATTEMPT"}),I().then((function(e){if(0===Object.keys(e).length){var t=W();if(void 0===t)return;return Promise.resolve(t).then((function(){b.current&&C({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(b.current)throw C({type:"SUBMIT_FAILURE"}),e}))}b.current&&C({type:"SUBMIT_FAILURE"})}))})),G=ya((function(e){e&&e.preventDefault&&Gr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Gr(e.stopPropagation)&&e.stopPropagation(),Y()})),Z=ya((function(e){if(e&&e.preventDefault&&Gr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Gr(e.stopPropagation)&&e.stopPropagation(),d.onReset){var t=d.onReset(E.values,K);ta(t)?t.then(L):L()}else L()})),Q=Object(l.useCallback)((function(e){return{value:na(E.values,e),error:na(E.errors,e),touched:!!na(E.touched,e),initialValue:na(m.current,e),initialTouched:!!na(y.current,e),initialError:na(h.current,e)}}),[E.errors,E.touched,E.values]),X=Object(l.useCallback)((function(e){var t=Zr(e),n=t?e.name:e,r=na(E.values,n),a={name:n,value:r,onChange:V,onBlur:z};if(t){var i=e.type,o=e.value,c=e.as,u=e.multiple;"checkbox"===i?void 0===o?a.checked=!!r:(a.checked=!(!Array.isArray(r)||!~r.indexOf(o)),a.value=o):"radio"===i?(a.checked=r===o,a.value=o):"select"===c&&u&&(a.value=a.value||[],a.multiple=!0)}return a}),[z,V,E.values]),ee=Object(l.useMemo)((function(){return!Ee()(m.current,E.values)}),[E.values]),te=Object(l.useMemo)((function(){return void 0!==c?ee?E.errors&&0===Object.keys(E.errors).length:!1!==c&&Gr(c)?c(d):c:E.errors&&0===Object.keys(E.errors).length}),[c,ee,E.errors,d]);return $r({},E,{initialValues:m.current,initialErrors:h.current,initialTouched:y.current,initialStatus:v.current,handleBlur:z,handleChange:V,handleReset:Z,handleSubmit:G,resetForm:L,setErrors:R,setFormikState:q,setFieldTouched:B,setFieldValue:U,setFieldError:M,setStatus:J,setSubmitting:$,setTouched:N,setValues:D,submitForm:Y,validateForm:I,validateField:_,isValid:te,dirty:ee,unregisterField:x,registerField:P,getFieldProps:X,getFieldMeta:Q,validateOnBlur:a,validateOnChange:n,validateOnMount:o})}function da(e){var t=pa(e),n=e.component,r=e.children,a=e.render;return Object(l.useEffect)((function(){0}),[]),Object(l.createElement)(oa,{value:t},n?Object(l.createElement)(n,t):a?a(t):r?Gr(r)?r(t):ea(r)?null:l.Children.only(r):null)}function ma(e,t,n){var r=e.slice();return t.forEach((function(t,a){if(void 0===r[a]){var i=!1!==n.clone&&n.isMergeableObject(t);r[a]=i?ke(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[a]=ke(e[a],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var ha="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function ya(e){var t=Object(l.useRef)(e);return ha((function(){t.current=e})),Object(l.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function va(e){var t=e.validate,n=e.name,r=e.render,a=e.children,i=e.as,o=e.component,c=Wr(e,["validate","name","render","children","as","component"]),u=ua(),s=(u.validate,u.validationSchema,Wr(u,["validate","validationSchema"]));Object(l.useEffect)((function(){0}),[]);var f=s.registerField,p=s.unregisterField;Object(l.useEffect)((function(){return f(n,{validate:t}),function(){p(n)}}),[f,p,n,t]);var d=s.getFieldProps($r({name:n},c)),m=s.getFieldMeta(n),h={field:d,form:s};if(r)return r($r({},h,{meta:m}));if(Gr(a))return a($r({},h,{meta:m}));if(o){if("string"==typeof o){var y=c.innerRef,v=Wr(c,["innerRef"]);return Object(l.createElement)(o,$r({ref:y},d,v),a)}return Object(l.createElement)(o,$r({field:d,form:s},c),a)}var b=i||"input";if("string"==typeof b){var g=c.innerRef,S=Wr(c,["innerRef"]);return Object(l.createElement)(b,$r({ref:g},d,S),a)}return Object(l.createElement)(b,$r({},d,c),a)}var ba=Object(l.forwardRef)((function(e,t){var n=e.action,r=Wr(e,["action"]),a=n||"#",i=ua(),o=i.handleReset,c=i.handleSubmit;return Object(l.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:o,action:a},r))}));function ga(e){var t=function(t){return Object(l.createElement)(ca,null,(function(n){return n||Br(!1),Object(l.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",qr()(t,e)}ba.displayName="Form";var Sa=function(e,t,n){var r=Ea(e);return r.splice(t,0,n),r},Ea=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from($r({},e,{length:t+1}))}return[]},Ca=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var a=n.props,i=a.name,o=a.validateOnChange,c=a.formik,u=c.setFormikState,s=c.validateForm;u((function(n){var a="function"==typeof r?r:e,o="function"==typeof t?t:e;return $r({},n,{values:ra(n.values,i,e(na(n.values,i))),errors:r?ra(n.errors,i,a(na(n.errors,i))):n.errors,touched:t?ra(n.touched,i,o(na(n.touched,i))):n.touched})}),(function(){o&&s()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(Ea(t),[Jr(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Ea(e),a=r[t];return r[t]=r[n],r[n]=a,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Ea(e),a=r[t];return r.splice(t,1),r.splice(n,0,a),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return Sa(n,e,t)}),(function(t){return Sa(t,e,null)}),(function(t){return Sa(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Ea(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Yr(n)),n.pop=n.pop.bind(Yr(n)),n}Kr(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?Ea(n):[];return t||(t=r[e]),Gr(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,a=t.children,i=t.name,o=t.formik,c=(o.validate,o.validationSchema,$r({},e,{form:Wr(o,["validate","validationSchema"]),name:i}));return n?Object(l.createElement)(n,c):r?r(c):a?"function"==typeof a?a(c):ea(a)?null:l.Children.only(a):null},t}(l.Component);Ca.defaultProps={validateOnChange:!0};var Oa=ga(function(e){function t(){return e.apply(this,arguments)||this}Kr(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return na(this.props.formik.errors,this.props.name)!==na(e.formik.errors,this.props.name)||na(this.props.formik.touched,this.props.name)!==na(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,a=e.children,i=e.name,o=Wr(e,["component","formik","render","children","name"]),c=na(n.touched,i),u=na(n.errors,i);return c&&u?r?Gr(r)?r(u):null:a?Gr(a)?a(u):null:t?Object(l.createElement)(t,o,u):u:null},t}(l.Component));(function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.render,a=t.children,i=t.component,o=t.as;t.name;return r&&Br(!1),i&&r&&Br(!1),o&&a&&Gr(a)&&Br(!1),i&&a&&Gr(a)&&Br(!1),r&&a&&!ea(a)&&Br(!1),n}Kr(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):na(this.context.values,this.props.name)!==na(n.values,this.props.name)||na(this.context.errors,this.props.name)!==na(n.errors,this.props.name)||na(this.context.touched,this.props.name)!==na(n.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==n.isSubmitting},n.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},n.render=function(){var e=this.props,t=(e.validate,e.name),n=e.render,r=e.as,a=e.children,i=e.component,o=(e.shouldUpdate,Wr(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,u=(c.validate,c.validationSchema,Wr(c,["validate","validationSchema"])),s={value:"radio"===o.type||"checkbox"===o.type?o.value:na(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},f={field:s,meta:{value:na(c.values,t),error:na(c.errors,t),touched:!!na(c.touched,t),initialValue:na(c.initialValues,t),initialTouched:!!na(c.initialTouched,t),initialError:na(c.initialErrors,t)},form:u};if(n)return n(f);if(Gr(a))return a(f);if(i){if("string"==typeof i){var p=o.innerRef,d=Wr(o,["innerRef"]);return Object(l.createElement)(i,$r({ref:p},s,d),a)}return Object(l.createElement)(i,$r({field:s,form:c},o),a)}var m=r||"input";if("string"==typeof m){var h=o.innerRef,y=Wr(o,["innerRef"]);return Object(l.createElement)(m,$r({ref:h},s,y),a)}return Object(l.createElement)(m,$r({},s,o),a)},t}(l.Component)).contextType=ia;var wa=n(7),Aa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Ta(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,r=e.initialValues,a=e.onSubmit,i=Aa(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),o=t&&e.validationSchema?e.validationSchema.cast(function e(t){var n=wa.a.deepClone(t);return Object.keys(n).forEach((function(t){n.hasOwnProperty(t)&&(wa.a.isObject(n[t])?n[t]=e(n[t]):null===n[t]&&delete n[t])})),n}(r)):r,c={allowInitialSubmit:e.allowInitialSubmit};return l.createElement(da,Object.assign({enableReinitialize:!0},i,{initialValues:o,onSubmit:function(t,r){var i=r.setSubmitting,o=r.resetForm,c=n&&e.validationSchema?e.validationSchema.cast(t):t;a(c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&o(),i(!1)}))},initialStatus:c}),h(e.children)?function(t){return e.children(t)}:l.Children.count(e.children)?e.children:null)}Ta.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0};var ka=n(2),ja=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),Ia=n(3),La=function(e,t,n,r,a){var i="form-control";return"sm"===r&&(i+=" form-control-sm"),"lg"===r&&(i+=" form-control-lg"),na(t,n)&&na(e,n)&&(i+=" is-invalid"),a&&(i+=" ".concat(a)),i},_a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Pa(e){var t=e.label,n=e.checkboxLabelClassName,r=_a(e,["label","checkboxLabelClassName"]);return l.createElement(Ia.Form.Group,null,l.createElement("div",{className:"custom-control custom-checkbox"},l.createElement(iu,Object.assign({className:"custom-control-input"},r)),l.createElement(Ia.Form.Label,{className:"custom-control-label cursor-pointer ".concat(n),htmlFor:r.id},t)))}var xa,Na,Ra=n(38),Da=n(85),Ma=n.n(Da),Ua=n(86),Fa=n.n(Ua),Va=n(87),Ba=n.n(Va),Ha=n(88),za=n.n(Ha),qa=(n(89),n(90)),Ja=n.n(qa),$a=n(91),Ka=n.n($a),Wa=n(92),Ya=n.n(Wa),Ga=n(93),Za=n.n(Ga),Qa=n(94),Xa=n.n(Qa),ei=n(95),ti=n.n(ei),ni=n(96),ri=n.n(ni),ai=n(97),ii=n.n(ai),oi=n(98),ci=n.n(oi),ui=n(99),si=n.n(ui),li=n(100),fi=n.n(li),pi=n(101),di=n.n(pi),mi=n(102),hi=n.n(mi),yi=n(103),vi=n.n(yi),bi=n(104),gi=n.n(bi),Si=n(105),Ei=n.n(Si),Ci=n(106),Oi=n.n(Ci),wi=n(107),Ai=n.n(wi),Ti=n(108),ki=n.n(Ti),ji=n(109),Ii=n.n(ji),Li=n(110),_i=n.n(Li),Pi=n(111),xi=n.n(Pi),Ni=n(112),Ri=n.n(Ni),Di=n(113),Mi=n.n(Di),Ui=n(114),Fi=n.n(Ui),Vi=n(115),Bi=n.n(Vi),Hi=n(116),zi=n.n(Hi),qi=n(117),Ji=n.n(qi),$i=n(118),Ki=n.n($i),Wi=n(119),Yi=n.n(Wi),Gi=n(120),Zi=n.n(Gi),Qi=n(121),Xi=n.n(Qi),eo=(n(122),n(123),n(124)),to=n.n(eo),no=n(125),ro=n.n(no),ao=n(126),io=n.n(ao),oo=n(127),co=n.n(oo),uo=n(128),so=n.n(uo),lo=n(129),fo=n.n(lo),po=n(130),mo=n.n(po),ho=n(131),yo=n.n(ho),vo=n(132),bo=n.n(vo),go=(n(133),n(134)),So=n.n(go),Eo=n(135),Co=n.n(Eo),Oo=n(136),wo=n.n(Oo),Ao=n(137),To=n.n(Ao),ko=n(138),jo=n.n(ko),Io=n(139),Lo=n.n(Io),_o=n(140),Po=n.n(_o),xo=(n(141),n(142)),No=n.n(xo),Ro=n(143),Do=n.n(Ro),Mo=n(144),Uo=n.n(Mo),Fo=n(145),Vo=n.n(Fo),Bo=n(146),Ho=n.n(Bo),zo=n(147),qo=n.n(zo),Jo=n(148),$o=n.n(Jo),Ko=n(149),Wo=n.n(Ko),Yo=n(150),Go=n.n(Yo),Zo=n(151),Qo=n.n(Zo),Xo=n(152),ec=n.n(Xo),tc=n(153),nc=n.n(tc),rc=n(154),ac=n.n(rc),ic=n(155),oc=n.n(ic),cc=n(156),uc=n.n(cc),sc=n(157),lc=n.n(sc),fc=n(158),pc=n.n(fc),dc=n(159),mc=n.n(dc),hc=n(160),yc=n.n(hc),vc=n(161),bc=n.n(vc),gc=n(162),Sc=n.n(gc),Ec=n(163),Cc=n.n(Ec),Oc=n(164),wc=n.n(Oc),Ac=n(165),Tc=n.n(Ac),kc=n(166),jc=n.n(kc),Ic=n(167),Lc=n.n(Ic),_c=n(168),Pc=n.n(_c),xc=n(169),Nc=n.n(xc),Rc=n(170),Dc=n.n(Rc),Mc=n(171),Uc=n.n(Mc),Fc=n(172),Vc=n.n(Fc),Bc=n(173),Hc=n.n(Bc),zc=(n(174),n(175),n(176),n(177)),qc=n.n(zc),Jc=n(178),$c=n.n(Jc),Kc=[Ma.a,Ba.a,za.a,Ka.a,Xa.a,ti.a,ri.a,ii.a,Za.a,Ja.a,Fa.a,ci.a,si.a,fi.a,di.a,hi.a,Ya.a,vi.a,gi.a,Ei.a,Oi.a,Ai.a,ki.a,Ii.a,_i.a,Ri.a,Ji.a,Ki.a,Mi.a,Fi.a,Bi.a,zi.a,Yi.a,xi.a,so.a,lc.a,mc.a,pc.a,Cc.a,yc.a,bc.a,Sc.a,To.a,Lo.a,jo.a,Zi.a,Xi.a,Co.a,wo.a,So.a,to.a,fo.a,Do.a,Uo.a,mo.a,yo.a,bo.a,Vo.a,ro.a,No.a,Ho.a,qo.a,ac.a,Po.a,$o.a,Go.a,Wo.a,wc.a,Tc.a,Qo.a,ec.a,io.a,co.a,nc.a,oc.a,uc.a,Pc.a,Lc.a,jc.a,Nc.a,Uc.a,Dc.a,Vc.a,Hc.a,$c.a,qc.a];function Wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Minus="minus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Image="image",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects",e.Download="download",e.Print="print",e.CreateInteractive="create-interactive",e.Play="play",e.PlayCircle="play-circle",e.Twitter="twitter",e.Facebook="facebook",e.Classrooms="classrooms",e.Group="group",e.Timer="timer",e.CrossCircle="cross-circle",e.CrossCircleFilled="cross-circle-filled",e.Hamburger="hamburger",e.Library="library",e.InteractiveResults="interactive-results",e.House="house",e.MonitorPlay="monitor-play"}(xa||(xa={}));var Yc;function Gc(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)}}d.extend(Ra.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(Na=Ra.library).add.apply(Na,function(e){if(Array.isArray(e))return Wc(e)}(Yc=Kc)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Yc)||function(e,t){if(e){if("string"==typeof e)return Wc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wc(e,t):void 0}}(Yc)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var Zc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(e,t){return Ra.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return Ra.findIconDefinition({prefix:r,iconName:e})}}])&&Gc(t.prototype,n),r&&Gc(t,r),e}().Instance,Qc=xa,Xc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function eu(e){var t,n=e.title,r=e.placement,a=e.trigger,i=e.spanHack,o=e.children;return i?l.createElement(Ia.OverlayTrigger,{placement:r,overlay:l.createElement(Ia.Tooltip,{id:"".concat(n,"-").concat(Xc())},n),trigger:a},l.createElement("span",{className:"d-flex justify-content-center align-items-center ".concat(null!==(t=e.spanHackClassName)&&void 0!==t?t:"")},o)):l.createElement(Ia.OverlayTrigger,{placement:r,overlay:l.createElement(Ia.Tooltip,{id:"".concat(n,"-").concat(Xc())},n),trigger:a},l.createElement(l.Fragment,null,o))}eu.defaultProps={trigger:["hover","click","focus"],placement:"top"};var tu;function nu(e){var t=e.svgName,n=e.className,r=void 0===n?"d-inline-block svg-container":n,a=e.tagName,i=void 0===a?"span":a,o=e.size,c=void 0===o?tu.Standard:o,u=e.onClick,s=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,d=e.tooltipSpanHack,m=void 0!==d&&d,y=i,v={dangerouslySetInnerHTML:{__html:Zc.getSvg(t)},className:"".concat(r," ").concat(c),onClick:h(u)?u:null};return s?l.createElement(eu,{title:s,placement:p,spanHack:m},l.createElement(y,Object.assign({},v))):l.createElement(y,Object.assign({},v))}function ru(e){var t=ua().values[e.fieldName];return"string"!=typeof t?l.createElement(l.Fragment,null):l.createElement("div",{className:"float-right text-muted"},t.length,"/",e.limit)}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(tu||(tu={}));var au=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function iu(e){var t=e.children,n=au(e,["children"]);return l.createElement(va,Object.assign({},wa.a.omit(n,["formSize"])),h(t)?function(e){return t(e)}:l.Children.count(t)?t:null)}function ou(e){var t=e.label,n=e.className,r=e.showCharacterCounter,a=e.showRequiredStar,i=e.infoTooltip,o=e.formSize,c=au(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","formSize"]),u=ua(),s=u.errors,f=u.touched,p=function(){};if("checkbox"===c.type){var d=wa.a.omit(e,["formSize"]);return e.disabled&&(d.onChange=p),l.createElement(Pa,Object.assign({},d))}var m=Object.assign(Object.assign({},c),{className:La(s,f,c.name,o,n)});return e.disabled&&(m.onChange=p),l.createElement(Ia.Form.Group,null,!!t&&l.createElement(Ia.Form.Label,{htmlFor:c.id,className:"d-flex align-items-center"},t,a&&l.createElement("span",{className:"text-danger"},"*"),i&&l.createElement(nu,{svgName:Qc.Info,title:i,tooltipPlacement:"top",tooltipSpanHack:!0})),l.createElement(iu,Object.assign({},m)),!!r&&!!c.maxLength&&l.createElement(ru,{fieldName:c.name,limit:c.maxLength}),l.createElement(Oa,{name:c.name},(function(e){return l.createElement(Ia.Form.Control.Feedback,{type:"invalid"},e)})))}function cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function su(e){var t,n=cu(l.useState(!1),2),r=n[0],a=n[1];return l.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?a(!0):a(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),l.useEffect((function(){e.isSubmitting&&a(!1)}),[e.isSubmitting]),r}var lu=n(209),fu=n(50),pu=n(22),du=n(4),mu="AlertService",hu="LanguageService",yu=n(11),vu=n(37);function bu(e){return(bu="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 gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Su(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 Eu(e,t){return(Eu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wu(e);if(t){var a=wu(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ou(this,n)}}function Ou(e,t){return!t||"object"!==bu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wu(e){return(wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Au(e){return fu.sanitize(e).replace("&amp;","&")}var Tu=function(e){!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&&Eu(e,t)}(i,e);var t,n,r,a=Cu(i);function i(){return gu(this,i),a.apply(this,arguments)}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return hu}},{key:"setConfig",value:function(e){this.polyglot=new lu({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||du.c.throw(new yu.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!vu.a.isDevelopment){var a=window.trackJs;return a&&a.console.error("No phrase set for ".concat(r," in language config")),""}du.c.throw(new yu.a("No phrase set for ".concat(r," in language config.")))}if(!n||d.isEmpty(n)){var i=this.cache[r];if(i)return i;var o=this.polyglot.t(r);return this.cache[r]=o,o}var c=d.omit(n,"smartCount"),u={};for(var s in c){var l=c[s];"number"==typeof l&&(l=l.toString()),u[s]=Au(l)}d.isNumber(n.smartCount)&&(u.smart_count=n.smartCount);var f="".concat(r,":").concat(d.values(Object.assign({},u)).join(":")),p=this.cache[f];if(p)return p;var m=this.polyglot.t(r,u);return this.cache[f]=m,m}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}}])&&Su(t.prototype,n),r&&Su(t,r),i}(pu.a).Instance,ku=l.createContext(""),ju=l.memo((function(e){var t=e.phrase,n=e.namespace,r=e.options,a=l.useContext(ku),i=n||a,o=Tu.getPhrase(i,t,r);return l.createElement("span",{dangerouslySetInnerHTML:{__html:o}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&wa.a.isEqual(e.options,t.options)}));function Iu(e){var t=ua(),n=su(t);return l.createElement(Ia.Button,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:""},t.isSubmitting?l.createElement(Ia.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?l.createElement(l.Fragment,null,e.submitText):l.createElement(ju,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}function Lu(e){var t=ua();return l.createElement(ba,null,l.createElement(ou,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this company",autoFocus:!0}),l.createElement(Iu,{isNew:e.isNew}))}function _u(e){return l.createElement(Ta,{initialValues:e.company,validationSchema:ja,onSubmit:e.saveCompany},l.createElement(Lu,{isNew:!(e.company&&e.company.id)}))}function Pu(e){var t=Object(b.useDispatch)(),n=ce.useBasicFetch(ve(e.id));return l.createElement(l.Fragment,null,!!n.data&&l.createElement(_u,{company:n.data,saveCompany:function(n,r){return ce.fetch(t,ge(e.id,n,r))}}))}function xu(){var e=Object(b.useDispatch)();return l.createElement(_u,{saveCompany:function(t,n){ce.fetch(e,be(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.PEOPLE,action:a.Companies.EDIT_COMPANY,args:[e.id]})}),n))}})}var Nu,Ru=n(210),Du=n(211),Mu=n.n(Du);function Uu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vu(e){return(Vu="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(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(Nu||(Nu={}));var Bu={isNumber:function(e){return Bu.isType(e,"number")},isString:function(e){return Bu.isType(e,"string")},isType:function(e,t){return Vu(e)===t}},Hu=n(21),zu=n.n(Hu);function qu(e){return function(e){if(Array.isArray(e))return Ju(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ju(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ju(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ku,Wu=[{empty:!0}];function Yu(e,t){return wa.a.isObject(e)&&e.hasOwnProperty(t)&&Bu.isString(e[t])}function Gu(e,t,n){return function(r){var a=r.value;if(a.length||n(),!(a.length<e.activationLength)){if(e.local){var i=h(e.getLocalSuggestions)?e.getLocalSuggestions(a,e.local):(c=a,u=e.local,s=e.valueKey,(l=c.trim().toLowerCase()).length?u.filter((function(e){return!(!Yu(e,s)||!Bu.isString(e[s]))&&e[s].trim().toLowerCase().includes(l)})):[]),o=!i.length&&e.getEmptyStateComponent;t((function(e){var t;return Object.assign(Object.assign({},e),($u(t={},Ku.Local,i),$u(t,Ku.Empty,o?Wu:[]),t))}))}var c,u,s,l;e.getRemoteUrl&&function(e,t,n,r){var a=h(e)&&e(t);a&&ce.ajaxRequest({resource:a,type:ue.a.GET,success:n,error:function(){},headers:r})}(e.getRemoteUrl,a,(function(n){var r=h(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n,a=!r.length&&e.getEmptyStateComponent;t((function(e){var t;return Object.assign(Object.assign({},e),($u(t={},Ku.Remote,r),$u(t,Ku.Empty,a?Wu:[]),t))}))}),e.requestHeaders)}}}function Zu(e,t,n,r,a,i,o){var c=function(t){return e[t]||[]},u=t?c(Ku.Recent):[],s=c(Ku.Local),l=c(Ku.Remote),f=c(Ku.Empty);if(f.length&&n)return[{data:f}];var p=[];u.length&&p.push({title:r,data:u});var d=[].concat(qu(s),qu(l));return d.length?(Number.isInteger(o)&&d.length>o&&(d=d.slice(0,o)),h(i)?p.push.apply(p,qu(i(d))):p.push({title:a,data:d}),p):p}function Qu(e){return e.data}function Xu(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(zu.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":zu.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(zu.a.sectionContainer)}}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=Xu(t),r=Object.assign(n,e);return r}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Empty="empty"}(Ku||(Ku={}));var ts=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function ns(e,t,n,r,a){var i="form-control";return n||(i+=" ".concat(zu.a.inputWithoutHighlight)),"left"===e&&(i+=" ".concat(zu.a.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t)&&(i+=" ".concat(zu.a.inputWithRightIcon)),"right"===e&&t&&(i+=" ".concat(zu.a.inputWithTwoRightIcons)),"lg"===a&&(i+=" form-control-lg"),"sm"===a&&(i+=" form-control-sm"),r&&(i+="".concat(r)),i}function rs(e){var t="d-inline-block svg-container";return h(e)?t+" cursor-pointer":t}function as(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.showClearInputIcon,a=e.onClickClearInput,i=e.highlightOnFocus,o=e.className,c=e.formSize,u=ts(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),s=function(){return l.createElement("div",{className:"d-inline-block"},l.createElement(nu,{svgName:Qc.Search,size:tu.Standard,onClick:t,className:rs(t)}))};return l.createElement("div",{className:"position-relative ".concat(zu.a.inputContainer)},"left"===n&&l.createElement("div",{className:"".concat(zu.a.iconContainer," ").concat(zu.a.leftIconContainer)},l.createElement(s,null)),l.createElement("input",Object.assign({className:ns(n,r,i,o,c)},u)),("right"===n||!!r)&&l.createElement("div",{className:"".concat(zu.a.iconContainer," ").concat(zu.a.rightIconContainer)},!!r&&l.createElement((function(){return l.createElement("div",{className:"d-inline-block text-muted ".concat(zu.a.clearButton)},l.createElement(nu,{svgName:Qc.Close,size:tu.Standard,onClick:a,className:rs(a)}))}),null),"right"===n&&l.createElement(s,null)))}function is(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return os(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},us=h;function ss(e){return e.renderAsForm?l.createElement("form",{onSubmit:e.onSubmit},e.children):l.createElement(l.Fragment,null,e.children)}function ls(e){var t,n,r,a=(t=e.initialSuggestions,n=e.recentSearches,$u(r={},Ku.Recent,n),$u(r,Ku.Local,t),$u(r,Ku.Remote,[]),$u(r,Ku.Empty,[]),r),i=is(l.useState(e.initialQuery||""),2),o=i[0],c=i[1],u=is(l.useState(a),2),s=u[0],f=u[1],p=function(e){var t=Uu(Object(l.useState)(window.matchMedia(e).matches),2),n=t[0],r=t[1];return Object(l.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&r(t.matches);var a=function(){return r(t.matches)};return t.addListener(a),function(){return t.removeListener(a)}}),[e]),n}(Nu.XS);l.useEffect((function(){var t=e.initialQuery||"";o!==t&&c(t)}),[e.initialQuery]);var d=function(){f(a)},y=function(t){t.preventDefault(),us(e.onSubmit)&&e.onSubmit(o)},v=l.useMemo((function(){return e.debounceTime?m(Gu(e,f,d),e.debounceTime):Gu(e,f,d)}),[e.debounceTime]);return l.createElement(ss,{onSubmit:y,renderAsForm:!!e.renderAsForm},l.createElement(Ru,Object.assign({suggestions:Zu(s,!o,!!e.getEmptyStateComponent,e.recentSearchHeading||Tu.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:v,onSuggestionsClearRequested:function(){e.alwaysRenderSuggestions||d()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.empty||(e.clearQueryOnSelect&&c(""),e.onSuggestionSelected(r))},getSuggestionValue:function(t){return e.updateQueryOnSelection?function(e,t){return Yu(t,e)?t[e]:""}(e.valueKey,t):o},renderSuggestion:function(t){return t&&t.empty?o.length>=e.activationLength&&h(e.getEmptyStateComponent)?e.getEmptyStateComponent(o):l.createElement(l.Fragment,null):us(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return Yu(t,e)?l.createElement(l.Fragment,null,t[e]):l.createElement(l.Fragment,null)}(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,r=n.ref,a=cs(n,["ref"]);return e.customScrollbarProps?l.createElement(Mu.a,Object.assign({ref:r},e.customScrollbarProps,a),t.children):l.createElement("div",Object.assign({ref:r},a),t.children)},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!p,inputProps:{placeholder:e.placeholder||Tu.getPhrase("shared.searchBar","placeholder"),value:o,onChange:function(t,n){var r=n.newValue;c(r),us(e.onQueryChange)&&e.onQueryChange(r)},onKeyDown:function(t){8===t.keyCode&&e.onBackspace&&!o&&e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&y,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!o.length,onClickClearInput:function(){c(""),us(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size},renderInputComponent:as,theme:es(e.theme,!!s.empty.find((function(e){return e.empty}))),multiSection:!0,renderSectionTitle:function(t){return function(e,t){if(e.title)return l.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},l.createElement("strong",null,e.title))}(t,e.sectionTitleClassName)},getSectionSuggestions:Qu},e.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}ls.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0};var fs,ps=n(13);function ds(e){return(ds="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 ms(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hs(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 ys(e,t){return(ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gs(e);if(t){var a=gs(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return bs(this,n)}}function bs(e,t){return!t||"object"!==ds(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gs(e){return(gs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(fs||(fs={}));var Ss,Es=new(function(e){!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&&ys(e,t)}(i,e);var t,n,r,a=vs(i);function i(){var e;return ms(this,i),(e=a.apply(this,arguments)).contextHistory=[],e}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return fs.Context}},{key:"initialize",value:function(){this.listenTo(G.a.SHELL,p.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}}])&&hs(t.prototype,n),r&&hs(t,r),i}(p.Service)),Cs=n(5);!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(Ss||(Ss={}));var Os="global:analytics";function ws(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)}}var As=ps.EventVersion.V1,Ts=function(){function e(t,n,r,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.data=n,this.actionContext=r,this.eventVersion=a||As}var t,n,r;return t=e,(n=[{key:"isType",value:function(e){return e===this.type}},{key:"enrich",value:function(e,t){this.validateKey(e),this[e]=t}},{key:"get",value:function(e){if(e&&this[e])return this[e]}},{key:"validateKey",value:function(e){"type"!==e&&"data"!==e||p.ErrorHelper.throw(new yu.a("".concat(e," is not a valid key"))),this[e]&&p.ErrorHelper.throw(new yu.a("Event already contains an enrichment named ".concat(e)))}}])&&ws(t.prototype,n),r&&ws(t,r),e}(),ks=function(e,t,n,r){Cs.Radio.channel(Os).trigger(Ss.Inlet,new Ts(e,t,n,r))};function js(){var e=Es.getCurrentContext().appLink;return d.isObject(e)||p.ErrorHelper.throw(new yu.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function Is(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,r=e.workflowPhase,a=void 0===r?null:r,i=e.descriptor,o=void 0===i?null:i;return t||p.ErrorHelper.throw(new yu.a("location must be set.")),n||p.ErrorHelper.throw(new yu.a("entity must be set.")),{productArea:js(),location:t,entity:n,descriptor:o,workflowPhase:a}}function Ls(){return p.LocationUtils.GetCurrentPath()+p.LocationUtils.GetCurrentQueryString()}var _s={logUserAction:function(e,t){if(function(e){return!(!d.isArray(e)||!d.every(e,(function(e){return d.isObject(e)})))||!!d.isObject(e)}(e)&&d.isObject(t)){var n=_s.buildUserActionEvent(t),r=n.userAction,a=n.action,i=n.eventVersion;ks(r,e,a,i)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:Ls(),appLink:e},t);ks(ps.UserAction.Navigate,n)},mergeOptions:function(e,t){return d.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Is(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,a=Is(e);return{userAction:r,action:a,eventVersion:n}},buildCurrentLocation:function(){return Ls()},buildSearchEvent:function(e,t){return{data:{query:e},action:Is({entity:ps.EntityType.Video,location:ps.LocationContext.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===ps.SearchQueryType.Series&&(r=ps.EntityType.Series),n===ps.SearchQueryType.Folder&&(r=ps.EntityType.Folder),n===ps.SearchQueryType.Tags&&(r=ps.EntityType.Tag),n===ps.SearchQueryType.Video&&(r=ps.EntityType.Video),n===ps.SearchQueryType.Subjects&&(r=ps.EntityType.Classification);var a={instant:{},query:e};return t.id&&(a.instant.selectedId=t.id),t.name&&(a.instant.selectedName=t.name),{data:a,action:Is({entity:r,location:ps.LocationContext.SearchBar})}},mapInteractionType:function(e){switch(e){case ps.InteractionType.DragDrop:return ps.InteractionTypeDescriptor.DragDrop;case ps.InteractionType.FileSelect:return ps.InteractionTypeDescriptor.FileSelect;default:return}}};function Ps(e){var t=e.appLink,n=e.appLinkOptions,r=e.className,a=e.style,i=e.children,o=e.tag,c=void 0===o?"a":o;if(!t)return l.createElement("span",{className:r||""},i);var u=p.AppLinkHelper.getHref(t),s={onClick:function(r){var a;r.preventDefault(),null===(a=e.onClick)||void 0===a||a.call(e,r),e.analyticsData&&e.analyticsOptions&&_s.logUserAction(Object.assign({href:u},e.analyticsData),e.analyticsOptions),e.openInNewTab?p.LocationUtils.PageLoad(u,!0):p.AppLinkHelper.trigger(t,n)},href:u,className:r,style:a};return e.title&&(s.title=e.title),l.createElement(c,Object.assign({},s),i)}function xs(e){var t=e.backToName,n=e.appLink;return l.createElement(Ps,{appLink:n,className:"d-inline-flex align-items-center"},l.createElement(nu,{svgName:Qc.ArrowLeft,size:tu.Small}),l.createElement("span",{className:"ml-1"},"Back to ".concat(t)))}function Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rs(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ps.defaultProps={appLinkOptions:{}};var Ds,Ms,Us,Fs,Vs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Bs(e){var t=e.selected,n=e.onToggle,r=Vs(e,["selected","onToggle"]),a=Ns(l.useState(t),2),i=a[0],o=a[1];l.useEffect((function(){return o(t)}),[t]);return l.createElement(Ia.Form.Check,Object.assign({type:"checkbox",id:"checkbox-".concat(Xc()),checked:i,onChange:function(){o(!i),n(!i)}},r))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(Ds||(Ds={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners",e[e.None=99999]="None"}(Ms||(Ms={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(Us||(Us={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(Fs||(Fs={}));var Hs,zs,qs=function(e,t){var n=d.map(t,(function(e,t){return t&&Array.isArray(e)?e.map((function(e){return"".concat(t,"=").concat(encodeURIComponent(e))})).join("&"):t&&void 0!==e?"".concat(t,"=").concat(encodeURIComponent(e)):""})),r=d.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return r?"".concat(e,"?").concat(r):e},Js=function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}};function $s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(zs||(zs={}));var Ks,Ws=($s(Hs={},Ms.Banners,zs.Banner),$s(Hs,Ms.Thumbnails,zs.Thumbnail),Hs),Ys=function(e){return"/v1/category-map/".concat(e)},Gs={createUrl:function(e,t){return Gs._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?Gs._createUrl(e.url,n):Gs._createCategoryMappedUrl(t,n)},createResourceImage:function(e,t,n){return Gs._createUrl(e,Object.assign({url:t},n))},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,a=e.type,i=Js(n,"".concat(Ys(Ws[a]))),o=Object.assign({name:Gs.Rfc3986EncodeURIComponent(r)},t);return Gs._createUrl(i,o)},_createUrl:function(e,t){if(e){if(wa.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&",a=e;return a.endsWith("/")&&(a=a.slice(0,-1)),a+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof p.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:Ds.Small,bgColor:"000"},t);return Gs._createUrl(n,r)}},getDisplayImageFromObject:function(e){var t,n,r,a,i;return"tallPoster"in e&&(null===(t=e.tallPoster)||void 0===t?void 0:t.url)?e.tallPoster:"cover"in e&&(null===(n=e.cover)||void 0===n?void 0:n.url)?e.cover:"thumbnail"in e&&(null===(r=e.thumbnail)||void 0===r?void 0:r.url)?e.thumbnail:"video"in e&&(null===(i=null===(a=e.video)||void 0===a?void 0:a.thumbnail)||void 0===i?void 0:i.url)?e.video.thumbnail:null}};function Zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs=(Zs(Ks={},Ms.Thumbnails,{width:1280,height:720}),Zs(Ks,Ms.Banners,{width:1200,height:222}),Zs(Ks,Ms.Covers,{width:512,height:512}),Zs(Ks,Ms.Posters,{width:1e3,height:1500}),Zs(Ks,Ms.TallPosters,{width:1080,height:1920}),Zs(Ks,Ms.HeroBanners,{width:1920,height:640}),Zs(Ks,Ms.None,{width:1,height:1}),Zs(Ks,Ms.Avatars,{width:256,height:256}),Ks);function Xs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return el(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return el(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tl,nl=l.createContext(void 0),rl=function(e){var t=e.children,n=Xs(l.useState(),2),r=n[0],a=n[1],i=Xs(l.useState(!1),2),o=i[0],c=i[1],u=Xs(l.useState(),2),s=u[0],f=u[1],p={getDataUrl:function(){var e=r;return a(null),e},setDataUrl:a,imageUploaded:o,getImage:function(){var e=s;return f(null),c(!1),e},setImage:function(e){f(e),c(!0)}};return l.createElement(nl.Provider,{value:p},t)},al={onFileSelect:function(e,t,n){if(t&&t.length){var r=new FileReader;r.addEventListener("load",(function(){return al.onReaderLoad(r,e,n)})),r.readAsDataURL(t[0])}},onReaderLoad:function(e,t,n){var r=new Image;r.src=e.result;var a=Qs[t].width,i=Qs[t].height;r.addEventListener("load",(function(){al.isImageValid(t,r)&&h(n)?n(r):alert("Image too small: minimum dimensions are ".concat(a," x ").concat(i))}))},isImageValid:function(e,t){var n=Qs[e].width,r=Qs[e].height;return!(n&&t.width<n)&&!(r&&t.height<r)},mapImageTypeToString:function(e){switch(e){case Ms.Avatars:return"avatars";case Ms.Thumbnails:return"thumbnails";case Ms.Logos:return"logos";case Ms.Covers:return"covers";case Ms.Posters:return"posters";case Ms.TallPosters:return"tallposters";case Ms.HeroBanners:return"herobanners";case Ms.None:default:return""}}},il=["pdf"],ol=["doc","docx","dotx","dot","rtf","docm","odt"],cl=["csv","txt"],ul=["xls","xlt","xlsx"],sl=["jpg","tif","png","bmp","gif","jpeg"],ll=["zip","rar"],fl=["ppt","pot","pps","pptx"],pl=["srt"],dl={IMAGES:".".concat(sl.join(",.")),RESOURCES:".".concat([].concat(ol,ul,fl,il,cl,sl,ll).join(",.")),SUBTITLES:".".concat(pl.join(",."))},ml=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function hl(e){var t=e.onFileSelect,n=e.acceptMultiple,r=e.mimeType,a=e.label,i=e.error,o=e.touched,c=ml(e,["onFileSelect","acceptMultiple","mimeType","label","error","touched"]),u="custom-file-input cursor-pointer";i&&o&&(u+=" is-invalid");var s=Object.assign({type:"file",className:u,onChange:function(e){var n=e.currentTarget.files;n&&n.length&&h(t)&&t(n)},autoComplete:"off",value:"",multiple:!!n},r?{accept:r}:{});return l.createElement("div",{className:"form-group"},l.createElement("div",{className:"custom-file"},l.createElement(va,Object.assign({},s,c),e.children),l.createElement(Ia.Form.Label,{className:"custom-file-label",htmlFor:c.id},a)))}function yl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gl=(bl(tl={},Ms.Thumbnails,"Thumbnail"),bl(tl,Ms.Banners,"Banner"),bl(tl,Ms.Avatars,"Avatar"),bl(tl,Ms.Logos,"Logo"),bl(tl,Ms.Covers,"Cover"),bl(tl,Ms.Posters,"Poster"),bl(tl,Ms.TallPosters,"Tall Poster"),bl(tl,Ms.HeroBanners,"Hero Banner"),bl(tl,Ms.None,"Image"),tl);function Sl(e){var t=ua(),n=na(null==t?void 0:t.values,e.fieldName),r=l.useContext(nl),a=r.setDataUrl,i=r.getImage,o=r.imageUploaded,c=yl(l.useState(!1),2),u=c[0],s=c[1],f=yl(l.useState(n),2),d=f[0],m=f[1],y=yl(l.useState(!1),2),v=y[0],b=y[1];function g(t){s(!0),a(t.src),p.AppLinkHelper.trigger({application:e.application,action:e.uploadAction,args:[e.imageType]})}l.useEffect((function(){if(u){var n,r=i();if(r)s(!1),m(r),n=r,h(e.setSelectedImage)?e.setSelectedImage(n):t&&t.setFieldValue(e.fieldName,{fileId:n.id,fileIdType:Fs.ImageAPIv2})}}),[o]);var S=e.label||gl[e.imageType]||"Image";return l.createElement("div",{className:"form-group"},l.createElement("div",{className:"form-control h-auto py-2"},l.createElement("label",null,S),l.createElement("em",{className:"ml-1 text-muted"},"(Minimum dimensions are ".concat(Qs[e.imageType].width,"px")+" x ".concat(Qs[e.imageType].height,"px)")),l.createElement(hl,{label:"Choose a ".concat(S.toLowerCase()),name:"image",mimeType:dl.IMAGES,onFileSelect:function(t){return al.onFileSelect(e.imageType,t,g)}}),!!d&&!!d.url&&l.createElement(l.Fragment,null,!v&&l.createElement("div",{className:"pb-2 ".concat(e.imageType===Ms.Banners?"w-100":"w-50")},l.createElement("img",{src:Gs.createUrl(d.url),className:"img img-fluid"})),l.createElement("div",{className:"d-flex justify-content-center"},l.createElement(nu,{svgName:v?Qc.ChevronDown:Qc.ChevronUp,size:tu.Large,className:"svg-container cursor-pointer",onClick:function(){return b(!v)},title:v?"Show image":"Hide image",tooltipPlacement:"top"})))))}var El=function(){Cs.Radio.channel(G.a.SHELL).trigger("prevent:scroll:top")};function Cl(e,t){return t?{application:e.application,action:e.action,args:e.args,params:Object.assign({},e.params,{cursor:t})}:null}function Ol(e){var t=e.appLink,n=e.cursors,r=e.className,a=e.buttonVariant;function i(e){El(),_s.logUserAction({page:e},{location:ps.LocationContext.Pagination,entity:ps.EntityType.Pagination,actionType:ps.UserAction.Navigate})}return l.createElement(ku.Provider,{value:"shared.pagination"},l.createElement("div",{className:r},l.createElement(Ps,{appLink:Cl(t,n.previous),className:"btn btn-".concat(a," mr-1 ").concat(n.previous?"":"disabled"),onClick:function(){return i("previous")}},l.createElement(ju,{phrase:"previous"})),l.createElement(Ps,{appLink:Cl(t,n.next),className:"btn btn-".concat(a," ").concat(n.next?"":"disabled"),onClick:function(){return i("next")}},l.createElement(ju,{phrase:"next"}))))}function wl(e){return l.createElement("tr",null,e.columns.map((function(t,n){var r=function(){return l.createElement(l.Fragment,null,h(t.accessor)?t.accessor(e.object):e.object[t.accessor])},a=h(t.appLink)?t.appLink(e.object):t.appLink;return l.createElement("td",{key:n},a?l.createElement(Ps,{appLink:a},l.createElement(r,null)):l.createElement(r,null))})),!!e.addNewObjectColumn&&l.createElement("td",null))}function Al(e){return l.createElement(Ia.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,e.columns.map((function(e,t){return l.createElement("th",{key:t},e.header)})),!!e.newObjectAppLink&&l.createElement("th",null,l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Ps,{appLink:e.newObjectAppLink},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New ".concat(e.objectName))))))),l.createElement("tbody",null,e.objects.map((function(t){return l.createElement(wl,{key:t.id,object:t,columns:e.columns,addNewObjectColumn:!!e.newObjectAppLink})}))))}function Tl(e){if(!e.collection)return l.createElement(l.Fragment,null);var t=e.collection,n=t.data,r=t.pagination;return l.createElement(l.Fragment,null,!!n&&l.createElement(Al,{objects:n,columns:e.columns,newObjectAppLink:e.newObjectAppLink,objectName:e.objectName}),!!r&&!!r.cursors&&l.createElement(Ol,{cursors:r.cursors,appLink:e.collectionAppLink}))}Ol.defaultProps={className:"py-2",buttonVariant:"secondary"};var kl=n(42),jl=n.n(kl);function Il(e){var t="".concat(e.className," ").concat(jl.a.iconButton);e.children?t+=" ".concat(jl.a.iconWithText):t+=" ".concat(jl.a.iconOnly);var n=l.createElement(nu,{svgName:e.svgName,className:"svg-container ".concat(jl.a.svg),size:e.svgSize});return e.appLink?l.createElement(Ps,{appLink:e.appLink,className:t,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n,e.children):l.createElement("button",{className:t,onClick:function(t){e.analyticsData&&e.analyticsOptions&&_s.logUserAction(e.analyticsData,e.analyticsOptions),h(e.onClick)&&e.onClick(t)}},n,e.children)}var Ll=n(212),_l=n.n(Ll);function Pl(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function xl(e){var t=h(e.action.label)?e.action.label:function(){return e.action.label};if(e.action.appLink)return l.createElement(Ps,{appLink:e.action.appLink,onClick:e.action.onClick,className:Pl(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions},t());function n(){e.action.analyticsData&&e.action.analyticsOptions&&_s.logUserAction(e.action.analyticsData,e.action.analyticsOptions),h(e.action.onClick)&&e.action.onClick()}return l.createElement("span",{className:"cursor-pointer ".concat(Pl(e.action.className)),onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n()}},t())}function Nl(e){if(!e.actions||!e.actions.length)return l.createElement(l.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var n="actions-dropdown-".concat(Xc()),r="dropdown-toggle px-0 ".concat(_l.a.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),l.createElement("div",{className:t},l.createElement("button",{className:r,type:"button",id:n,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},l.createElement(nu,{svgName:Qc.More,size:tu.Small})),l.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":n},e.actions.map((function(e,t){return e.tooltip?l.createElement(eu,{key:t,title:e.tooltip,spanHack:!0},l.createElement(xl,{action:e})):l.createElement(xl,{key:t,action:e})}))))}function Rl(e){var t=e.showSpinner?l.createElement(Ia.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip)return l.createElement(eu,{title:e.tooltip},l.createElement("span",null,l.createElement(Il,{appLink:e.appLink,svgName:e.svgName,svgSize:e.svgSize,onClick:e.onClick,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t)));if(e.svgName)return l.createElement(Il,{onClick:e.onClick,appLink:e.appLink,svgName:e.svgName,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t);if(e.appLink)return l.createElement(Ps,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t);return l.createElement("button",{onClick:function(t){e.analyticsData&&e.analyticsOptions&&_s.logUserAction(e.analyticsData,e.analyticsOptions),h(e.onClick)&&e.onClick(t)},className:e.className},t)}function Dl(e){var t=l.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),n=[],r=[];t.forEach((function(e){e.button?n.push(e):r.push(e)}));var a="d-flex";return e.className&&(a+=" ".concat(e.className)),n.length||r.length?l.createElement("div",{className:a},l.createElement(l.Fragment,null,l.createElement("span",{className:"d-flex align-items-center"},n.length?n.map((function(e,t){return l.createElement(l.Fragment,{key:t},function(){if(e.label){var t=h(e.label)?e.label:function(){return e.label};return l.createElement(Rl,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},t())}var n=l.createElement(Il,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return e.tooltip?l.createElement(eu,{title:e.tooltip,spanHack:!0},n):n}())})):l.createElement(l.Fragment,null),e.sortComponent&&e.sortComponent,r.length?l.createElement(Nl,{actions:r,dropdownToggleClassName:e.actionsDropdownClassName}):l.createElement(l.Fragment,null)))):l.createElement(l.Fragment,null)}function Ml(e){var t=e.object,n=e.actions;return l.createElement("div",{className:"d-flex justify-content-between py-2"},!!t&&l.createElement("h5",null,t.name),!!n&&l.createElement("span",null,l.createElement(Dl,{actions:n})))}function Ul(e){var t=e.objects,n=e.getAppLink,r=e.emptyMessage;return t?t.length?l.createElement("ul",{className:"list-unstyled"},t.map((function(e,t){return l.createElement("li",{key:t,className:"border rounded mb-3"},l.createElement(Ps,{appLink:n(e),className:"d-block p-3"},e.name))}))):l.createElement("div",{className:"py-3"},l.createElement("p",null,r)):l.createElement(l.Fragment,null)}Nl.defaultProps={dropdownToggleClassName:"btn btn-light"},Ul.defaultProps={emptyMessage:"There is nothing here."};function Fl(e){var t=ua();return l.createElement(ou,{as:"select",label:"Rating",name:"rating",id:"rating",value:t.values.rating&&t.values.rating.id,onChange:function(e){return t.setFieldValue("rating",e.target.value?{id:e.target.value}:{})},disabled:e.disabled},l.createElement(l.Fragment,null,l.createElement("option",{value:""},"Please select a rating"),e.ratings.map((function(e,t){return l.createElement("option",{key:t,value:e.id},function(e){return"".concat(e.name).concat(e.code?" (".concat(e.code,")"):"")}(e))}))))}var Vl={isItemActive:function(e,t){return t||(t=p.AppLinkHelper.getCurrentAppLink()),t.application===e.appLink.application&&(Array.isArray(e.activeActions)?e.activeActions.includes(t.action):t.action===e.appLink.action)}},Bl=function(e){return Object.values(e).every((function(e){return!!e}))},Hl=(n(213),function(e,t){return!!e&&!!t&&e.toString()===t.toString()}),zl=function(e){return e.split(" ").map((function(e){return(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")})).join(" ")};function ql(e){return function(e){if(Array.isArray(e))return Jl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Jl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $l={find:function(e,t){if(e&&e.children&&e.children.length)for(var n=function e(n){if(Hl(n.id,t))return n;var r=n.children;if(r&&r.length)for(var a=0;a<r.length;a++){var i=e(r[a]);if(i)return i}},r=0;r<e.children.length;r++){var a=n(e.children[r]);if(a)return a}},getPath:function(e,t){for(var n=[t],r=function(e){return e.hasOwnProperty("parentIds")&&Array.isArray(e.parentIds)&&e.parentIds.length?e.parentIds[0]:e.hasOwnProperty("parentId")?e.parentId:null},a=r(t);a;){var i=$l.find(e,a);i&&(n=[i].concat(ql(n))),a=i?r(i):null}return n}},Kl=function(e){return e&&e.groups?e.groups.map((function(e){return e.name})):[]};function Wl(e){var t=e.tabs,n=e.isItemActive;return l.createElement(Ia.Nav,{fill:!0,variant:"tabs"},t.map((function(e,t){return l.createElement(Ia.Nav.Item,{key:t},l.createElement(Ps,{appLink:e.appLink,className:(r=n(e),r?"nav-link active":"nav-link")},e.label));var r})))}Wl.defaultProps={isItemActive:Vl.isItemActive};var Yl=n(23),Gl=n.n(Yl);function Zl(e){var t=e.name,n=e.appLink,r=e.onSelect,a=e.isDisabled,i=e.className,o=e.actions,c=Gl.a.text;return i&&(c+=" ".concat(i)),a?l.createElement("a",{className:"".concat(c," text-muted ").concat(Gl.a.disabled)},t):l.createElement(l.Fragment,null,n?l.createElement(Ps,{appLink:n,className:c},t):l.createElement("a",{onClick:r,className:c},t),!!o&&l.createElement(Dl,{className:Gl.a.actions,actions:o}))}function Ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ef(e){var t=e.tree,n=e.selectedIds,r=e.getAppLink,a=e.onSelect,i=e.isDisabled,o=e.actions,c=Array.isArray(n)&&n.some((function(e){return Hl(t.id,e)})),u=l.useMemo((function(){return Array.isArray(n)&&n.some((function(e){return $l.find(t,e)}))}),[t,n]),s=Ql(l.useState(u),2),f=s[0],p=s[1],d=!!t.children&&!!t.children.length,m={name:t.name,appLink:h(r)?r(t):null,onSelect:h(a)?function(){return a(t)}:null,isDisabled:!!h(i)&&i(t),className:c&&Gl.a.selected||u&&Gl.a.parentOfSelected,actions:!!o&&o.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(t)})}))};return l.createElement("li",{className:"position-relative".concat(f?"":" ".concat(Gl.a.collapsed))},l.createElement("div",{className:"position-relative"},l.createElement("span",{className:Gl.a.node},d&&l.createElement(nu,{svgName:Qc.ChevronDown,size:tu.Small,className:"svg-container ".concat(Gl.a.chevron),onClick:function(){return p(!f)}}),l.createElement(Zl,Object.assign({},m))),f&&l.createElement(nf,Object.assign({},e))))}var tf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function nf(e){var t=e.tree,n=tf(e,["tree"]);return t&&t.children?l.createElement("ul",{className:"m-0 p-0 ".concat(Gl.a.tree)},t.children.map((function(e){return l.createElement(ef,Object.assign({key:e.id,tree:e},n))}))):l.createElement(l.Fragment,null)}var rf={getChord:function(e,t){return $l.getPath(e,t).map((function(e){return e.name})).join(" -> ")},getState:function(e,t){var n={};return Array.isArray(e)&&e.forEach((function(e){var r,a,i,o=$l.find(t,e);o&&(n=Object.assign((r={},a=e,i=rf.getChord(t,o),a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),n))})),n}};function af(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return of(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return of(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function of(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function uf(e){var t=e.onSelect,n=e.label,r=e.hideCollapseBtn,a=e.collapse,i=e.noSelectionMessage,o=e.isNodeDisabled,c=e.getSelectedItemAppLink,u=cf(e,["onSelect","label","hideCollapseBtn","collapse","noSelectionMessage","isNodeDisabled","getSelectedItemAppLink"]),s=u.tree,f=u.selectedIds,p=af(l.useState(rf.getState(f,s)),2),d=p[0],m=p[1];l.useEffect((function(){return m(rf.getState(f,s))}),[f,s]);var y=af(l.useState(!!a),2),v=y[0],b=y[1];l.useEffect((function(){return b(!!a)}),[a]);var g=!r||!!n;return l.createElement(l.Fragment,null,g&&l.createElement("div",{className:"pb-2"},!!n&&l.createElement("label",{className:"m-0"},n),!r&&l.createElement("a",{className:"float-right cursor-pointer",onClick:function(){return b(!v)}},v?"Expand":"Collapse")),!v&&l.createElement("div",{className:"py-2 border-top"},l.createElement(nf,Object.assign({onSelect:function(e){return h(t)&&t(e)},isDisabled:o},u))),(!wa.a.isEmpty(d)||!!i)&&l.createElement("div",{className:"py-2 border-top"},l.createElement("label",null,"Selected:"),l.createElement("ul",{className:"m-0"},wa.a.isEmpty(d)?l.createElement("li",null,i):Object.keys(d).map((function(e,t){return l.createElement("li",{key:t},h(c)?l.createElement(Ps,{appLink:c(e)},d[e]):d[e])})))))}var sf=n(51);var lf=function(e){return e&&!(e.data&&e.data.length)},ff=function(e){return e&&e.data&&e.data.length},pf=function(e){var t="bg-white";return e&&(t+=" ".concat(e)),t};function df(e){var t=e.video,n=e.getVideoAppLink,r=e.getVideoActions,a=e.className,i=void 0===a?"":a,o=e.itemNumber,c=h(n)&&n(t);return l.createElement("tr",{className:pf(i)},!!o&&l.createElement("td",null,l.createElement("span",null,o)),l.createElement("td",null,c?l.createElement(Ps,{appLink:c},t.name):t.name),h(r)&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Dl,{actions:r(t)}))))}var mf=Object(sf.SortableElement)((function(e){return l.createElement(df,Object.assign({sortable:!0},e))})),hf=n(32),yf=n.n(hf),vf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},bf=function(e){var t=e.sortable,n=e.getVideoActions;return l.createElement("thead",null,l.createElement("tr",null,!!t&&l.createElement("th",null,"#"),l.createElement("th",null,"Name"),!!n&&l.createElement("th",null)))},gf=l.forwardRef((function(e,t){var n=e.videos,r=e.sortable,a=vf(e,["videos","sortable"]);return l.createElement("tbody",{ref:t},!lf(n)&&n.data.map((function(e,t){return r?l.createElement(mf,Object.assign({key:e.id,index:t,itemNumber:t+1,video:e,className:yf.a.draggableVideoItem},a)):l.createElement(df,Object.assign({video:e},a))})))}));var Sf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Ef=Object(sf.SortableContainer)((function(e){var t=e.forwardedRef,n=Sf(e,["forwardedRef"]);return l.createElement(gf,Object.assign({sortable:!0,ref:t},n))})),Cf=function(e){return function(t){var n=t.node,r=e.current;if(r){r.classList.add(yf.a.sortingContainer);var a=r.querySelector(".".concat(yf.a.draggedVideoItem));n.childNodes.forEach((function(e,t){return a.childNodes[t].style.width="".concat(e.offsetWidth,"px")}))}}},Of=function(e,t){return function(n){var r=e.current;r&&r.classList.remove(yf.a.sortingContainer),t(n.oldIndex,n.newIndex)}};function wf(e){var t=e.onSortEnd,n=e.emptyMessage,r=Sf(e,["onSortEnd","emptyMessage"]),a=l.useRef();return lf(e.videos)?l.createElement("div",null,n):l.createElement(Ia.Table,{responsive:!0},l.createElement(bf,Object.assign({sortable:!0},e)),l.createElement(Ef,Object.assign({forwardedRef:a,onSortStart:Cf(a),onSortEnd:Of(a,t),lockAxis:"y",lockToContainerEdges:!0,distance:1,helperClass:yf.a.draggedVideoItem,helperContainer:function(){return a.current}},r)))}function Af(e){var t=e.alias,n=e.onDelete;return l.createElement("li",{className:"list-group-item d-flex justify-content-between"},t.name,l.createElement(nu,{svgName:Qc.Delete,onClick:function(){return n(t.id)}}))}function Tf(e){var t=e.aliases,n=e.onDelete;return l.createElement("ul",{className:"list-group mb-3"},t?t.map((function(e){return l.createElement(Af,{key:e.id,alias:e,onDelete:n})})):l.createElement("span",null,"Currently there are no aliases for this object."))}function kf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}wf.defaultProps={emptyMessage:"There are no videos in this list."};var If=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Lf(e){var t=e.showSpinner,n=e.children,r=If(e,["showSpinner","children"]),a=l.useRef(),i=kf(l.useState({}),2),o=i[0],c=i[1];return l.useEffect((function(){var e=o.width,t=o.height;if(!e||!t){var n=a.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&c({width:i,height:r})}})),l.useEffect((function(){var e=o.width,t=o.height;if(e&&t){var n=a.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[o]),l.createElement(Ia.Button,Object.assign({ref:a,disabled:t},r),t?l.createElement(Ia.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var _f=Object(ka.object)().shape({name:Object(ka.string)().trim().max(255,"Name is too long").required("Name is required").default("")});function Pf(){var e=ua(),t=su(e);return l.createElement(ba,null,l.createElement(ou,{label:"Create an alias",name:"name",id:"name",value:e.values.name,placeholder:"Add an alias"}),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Lf,{showSpinner:e.isSubmitting,type:"submit",disabled:!t},"Add")))}function xf(e){var t=e.onSave;return l.createElement(Ta,{initialValues:{name:""},validationSchema:_f,onSubmit:function(e,n){t(e,(function(){return n({reset:!0})}))}},l.createElement(Pf,null))}function Nf(e){var t=e.onSave,n=e.aliases,r=e.onDelete;return l.createElement("div",{className:"w-50"},l.createElement("h1",null,"Aliases"),l.createElement(Tf,{aliases:n,onDelete:r}),l.createElement(xf,{onSave:t}))}var Rf=c.COMPANIES,Df=function(e){return{application:Rf,action:a.Companies.EDIT_COMPANY,args:[e.id]}},Mf=function(e){return p.AppLinkHelper.trigger(Df(e))};function Uf(e){var t=ce.useBasicFetch(ye(e.cursor));return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 w-50"},l.createElement(ls,{placeholder:"Search for a company",onSuggestionSelected:Mf,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/companies/instant/raw","?q=").concat(e)},activationLength:2})),l.createElement(Tl,{collection:t&&t.data,columns:[{accessor:"name",header:"Name",appLink:Df}],collectionAppLink:{application:Rf,action:a.Companies.COMPANIES},newObjectAppLink:{application:Rf,action:a.Companies.NEW_COMPANY},objectName:"Company"}))}function Ff(e){return(Ff="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 Vf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bf(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 Hf(e,t,n){return t&&Bf(e.prototype,t),n&&Bf(e,n),e}function zf(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&&qf(e,t)}function qf(e,t){return(qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kf(e);if(t){var a=Kf(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return $f(this,n)}}function $f(e,t){return!t||"object"!==Ff(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kf(e){return(Kf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wf=function(e){zf(n,e);var t=Jf(n);function n(){return Vf(this,n),t.apply(this,arguments)}return Hf(n,[{key:"channelName",get:function(){return c.COMPANIES}},{key:"appRoutes",get:function(){return{"manage/companies(/)":"companies","manage/companies/new(/)":"newCompany","manage/companies/:id(/)":"editCompany"}}}]),n}(p.AppRouter),Yf=function(e){zf(n,e);var t=Jf(n);function n(){return Vf(this,n),t.apply(this,arguments)}return Hf(n,[{key:"name",get:function(){return"Companies Application"}},{key:"channelName",get:function(){return c.COMPANIES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"companies",value:function(e){var t=e.cursor;this.layout.showChildView(I,l.createElement(Uf,{cursor:t}))}},{key:"newCompany",value:function(){this.layout.showChildView(I,l.createElement(xu,null))}},{key:"editCompany",value:function(e){this.layout.showChildView(I,l.createElement(Pu,{id:e}))}}],[{key:"router",get:function(){return Wf}}]),n}(p.Application);function Gf(e){return(Gf="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 Zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qf(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 Xf(e,t){return(Xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ep(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=np(e);if(t){var a=np(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return tp(this,n)}}function tp(e,t){return!t||"object"!==Gf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function np(e){return(np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rp=function(e){!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&&Xf(e,t)}(i,e);var t,n,r,a=ep(i);function i(){return Zf(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,l.createElement(t,{alerts:r,removeAlert:function(e){return Cs.Radio.channel(G.a.ALERT).trigger("remove:alert",e)}}))}}}])&&Qf(t.prototype,n),r&&Qf(t,r),i}(n(44).a),ap=function(e,t){return e.toLowerCase()===t};function ip(e){return(ip="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 op(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 cp(e,t){return(cp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function up(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lp(e);if(t){var a=lp(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return sp(this,n)}}function sp(e,t){return!t||"object"!==ip(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lp(e){return(lp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fp=function(e){!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&&cp(e,t)}(i,e);var t,n,r,a=up(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"InstanceManager"}},{key:"registerDataService",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e({dataProvider:n.getInstance(t.dataProvider),cache:n.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService})},this.destructors[r]=function(){n.instances[r]?n.instances[r].destroy():du.c.throw(new yu.a("Trying to destroy a ".concat(r," instance that has already been destroyed"))),n.releaseInstance(t.dataProvider),n.releaseInstance(t.cache)},this}},{key:"registerInstance",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e(t)},this.destructors[r]=function(){return d.isFunction(n.instances[r].destroy)&&n.instances[r].destroy()},this}},{key:"registerSingleton",value:function(e){var t=e.name;return this.singletonInstances[t]=e,this}},{key:"getInstance",value:function(e,t){var n=this;return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||du.c.throw(new yu.a("".concat(e," was not registered with ").concat(this.name))),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",(function(){return n.releaseInstance(e)})),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}},{key:"releaseInstance",value:function(e){var t=this;if(this.instances[e])return window.setTimeout((function(){t.referenceCounts[e]--,t.referenceCounts[e]<1&&(t.destructors[e](),delete t.instances[e])}),0),this}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||du.c.throw(new yu.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&du.c.throw(new yu.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}}])&&op(t.prototype,n),r&&op(t,r),i}(pu.a).Instance;function pp(e){var t,n;return t=e,n=fp.getInstance(t),l.useEffect((function(){return function(){fp.releaseInstance(t)}})),n}var dp,mp,hp=n(36),yp=n(30);function vp(e){return(vp="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 bp(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 gp(e,t){return(gp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cp(e);if(t){var a=Cp(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ep(this,n)}}function Ep(e,t){return!t||"object"!==vp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cp(e){return(Cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(dp||(dp={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(mp||(mp={}));var Op=function(e){!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&&gp(e,t)}(i,e);var t,n,r,a=Sp(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.alertCollection=new hp.a,this.listenTo(G.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"name",get:function(){return mu}},{key:"defaults",get:function(){return{maxAlerts:3}}},{key:"showAlerts",value:function(){var e=Cs.Radio.channel(G.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=d.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}},{key:"removeAlert",value:function(e){this.alertCollection.remove(e),this.showAlerts()}},{key:"createAlert",value:function(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=d.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new yp.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?d.bind((function(){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?d.bind((function(e,n){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):d.bind((function(){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?d.bind((function(){return t.createAlert(d.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?d.bind((function(e){return t.createAlert(d.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):d.bind((function(){return t.createAlert(d.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return d.uniqueId("alert_")}}])&&bp(t.prototype,n),r&&bp(t,r),i}(pu.a);function wp(){var e=pp(mu);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:dp.Warning,heading:mp.Warning,message:t})}}}function Ap(){return l.createElement("div",{className:"text-center p-5"},l.createElement(Ia.Spinner,{as:"div",animation:"border",role:"status"}))}function Tp(e){var t,n=(null===(t=e.headerButtons)||void 0===t?void 0:t.length)?e.headerButtons.map((function(e,t){return l.createElement(Rl,Object.assign({key:t},e))})):l.createElement(l.Fragment,null);return l.createElement(Ia.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size,dialogClassName:e.dialogClassName,centered:e.centered},!!e.title&&l.createElement(Ia.Modal.Header,{className:"d-flex align-items-center",closeButton:e.closeButton},l.createElement(Ia.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),n),e.showLoadingSpinner?l.createElement(Ap,null):l.createElement(Ia.Modal.Body,{className:e.bodyClassName},e.children))}Tp.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:""};var kp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function jp(e){var t=e.buttons;return l.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3 undo-changes-btn"},t.map((function(e,t){return function(e,t){var n=e.buttonText,r=e.type,a=void 0===r?"button":r,i=e.isSpinnerButton,o=e.showSpinner,c=void 0!==o&&o,u=e.className,s=kp(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),f=Object.assign({key:t,type:a,className:"ml-2".concat(u?" ".concat(u):"")},s);return i?l.createElement(Lf,Object.assign({showSpinner:c},f),n):l.createElement(Ia.Button,Object.assign({},f),n)}(e,t)})))}function Ip(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _p=Tu.encloseNamespace("shared.confirmationPopup");function Pp(e){var t=Ip(l.useState(!1),2),n=t[0],r=t[1],a=[{variant:e.cancelButtonVariant,onClick:e.closePopup,buttonText:e.cancelButtonText||_p("cancel")},{variant:e.confirmButtonVariant,onClick:function(){r(!0),e.onClickConfirm()},buttonText:e.confirmButtonText||_p("confirm"),isSpinnerButton:!0,showSpinner:n}];return l.createElement(Tp,{title:e.title,closePopup:e.closePopup},l.createElement(l.Fragment,null,e.children,l.createElement(jp,{buttons:a})))}Pp.defaultProps={confirmButtonVariant:"primary",cancelButtonVariant:"link"};var xp,Np,Rp,Dp="locale",Mp="phrases",Up="currentuser",Fp=function(e,t){return{url:"/api/currentuser",key:"currentuser",normalizeOptions:{namespace:"currentuser"},bootstrapName:Up,formatData:function(e){return e.id?e:null},success:e,error:t,expiryTime:1/0}},Vp=n(10),Bp=function(e,t,n,r){return{key:"settings:".concat(e,":").concat(t),url:"/api/domain/v3/settings/".concat(e,"?type=").concat(t),normalize:!1,formatData:function(e){return Vp.a.first(e)},success:n,error:r}},Hp=function(e,t,n,r){return{key:"update:settings:".concat(e,":bulk"),url:"/api/domain/v3/settings/".concat(e,"/bulk"),data:t,type:ue.a.PUT,invalidationKeys:t.map((function(t){return"settings:".concat(e,":").concat(t.name)})),success:n,error:r}};function zp(e){var t=l.useRef(null);return l.useEffect((function(){t.current&&(e.checked?t.current.indeterminate&&(t.current.indeterminate=!1):!e.indeterminate||t.current.indeterminate?!e.indeterminate&&t.current.indeterminate&&(t.current.indeterminate=!1):t.current.indeterminate=!0)}),[t.current,e.indeterminate,e.checked]),l.createElement("div",{className:"custom-control custom-checkbox ".concat(e.className)},l.createElement("input",{ref:t,type:"checkbox",className:"custom-control-input",id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled}),l.createElement("label",{className:"custom-control-label cursor-pointer",htmlFor:e.id},e.label))}function qp(e,t){return t?"".concat(e,":").concat(t):e}zp.defaultProps={checked:!1,label:"",className:""},function(e){e.MustCompleteOnboarding="must_complete_onboarding",e.StudentWorkspaceSharing="student_ws_sharing",e.StudentToStudentMessaging="student_to_student_messaging",e.HideResourcesForStudents="hide_resources_for_students",e.LibraryReview="library_review",e.SchoolMessaging="school_messaging",e.LegacyTvNaming="legacy_tv_naming",e.LegacyAlbertCustomer="legacy_albert_customer",e.HideHostedLibraries="hide_hosted_libraries",e.StaffRequest="staff_request",e.MaxCustomLibraries="max_custom_libraries",e.CustomLibrariesBetaAccess="custom_libraries_beta_access",e.AutoCaptioning="auto_captioning",e.Topics="subjects",e.NewDashboards="new_dashboards",e.LiteAccess="lite_access",e.HasCompletedOnboarding="has_completed_onboarding",e.BulkOnboardingPreferencesState="bulk_onboarding_preferences_state"}(xp||(xp={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Np||(Np={})),function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(Rp||(Rp={}));var Jp,$p=function(e){return{key:qp("presentations",e),url:qs("/api/subjects/v1/presentations",{type:e})}},Kp=function(e,t){return{key:qp("customers:".concat(e,":presentations"),t),url:qs("/api/subjects/v1/customers/".concat(e,"/presentations"),{type:t})}},Wp=function(e,t,n,r,a){return{key:"customers:".concat(e,":presentations:").concat(t,":add"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ue.a.POST,invalidationKeys:"customers:".concat(e,":presentation"),success:n,error:r,always:a}},Yp=function(e,t,n,r,a){return{key:"customers:".concat(e,":presentations:").concat(t,":remove"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ue.a.DELETE,invalidationKeys:"customers:".concat(e,":presentations"),success:n,error:r,always:a}};!function(e){e.Developer="Curator Devs",e.Content="Content",e.Curator="Curators",e.Support="Support",e.SalesSupport="Sales Support"}(Jp||(Jp={}));var Gp,Zp,Qp=function(){return[{value:"protected",access:"r"}]},Xp=function(e){return Kl(e).includes(Jp.Developer)},ed=function(e){return[Jp.Developer,Jp.Content].some((function(t){return Kl(e).includes(t)}))},td=function(e,t,n,r,a){var i="settings:entity:".concat(e),o="/api/cache?keys=".concat(i);return{url:"/ajax/online/".concat(t,"?endpoint=").concat(encodeURIComponent(o)),key:"settings:cache:".concat(e),type:ue.a.DELETE,success:n,error:r,always:a}},nd=function(e){return{key:"customers:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=country,contentregion")}};function rd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ad(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ad(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ad(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function id(e){var t,n=rd(l.useState(),2),r=n[0],a=n[1],i=e.availablePresentations.filter((function(t){return!e.currentPresentations.find((function(e){return e.id===t.id}))}));return l.createElement("div",null,!!e.canAdd&&!!i.length&&l.createElement(l.Fragment,null,l.createElement(Ia.Form.Label,null,"Select a presentation to add"),l.createElement(Ia.Form.Control,{as:"select",value:null!==(t=null==r?void 0:r.id)&&void 0!==t?t:"",onChange:function(t){var n=function(e,t){return Vp.a.first(t.filter((function(t){return t.id.toString()===e.toString()})))}(t.target.value,i);n&&(a(n),e.onSelectPresentation(n))},className:"cursor-pointer"},l.createElement("option",{value:""},"Select a presentation"),i.map((function(e){return l.createElement("option",{value:e.id,key:e.id},e.name)})))),!!e.currentPresentations.length&&l.createElement(l.Fragment,null,l.createElement("ul",{className:"list-unstyled mt-2"},e.currentPresentations.map((function(t){return l.createElement("li",null,t.name,!!e.canRemove&&l.createElement("span",{className:"text-danger cursor-pointer ml-2",onClick:function(){return e.removePresentation(t)}},l.createElement("em",null,"remove")))})))))}!function(e){e.Draft="Draft",e.Published="Published"}(Gp||(Gp={})),function(e){e.Subject="subject",e.Curriculum="curriculum"}(Zp||(Zp={}));var od="9",cd="13",ud="14",sd="15";function ld(e,t){return Xp(t)?e:function(e){return e.filter((function(e){return e.status===Gp.Published}))}(e)}function fd(e,t,n){return Xp(t)?e:ld(e,t).filter((function(e){return n.contentRegion.systemName===Rp.US?e.id.toString()===cd||e.id.toString()===sd||e.id.toString()===ud:n.contentRegion.systemName===Rp.AU?e.id.toString()===od:void 0}))}function pd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function md(e){var t,n,r,i=wp(),o=Object(b.useDispatch)(),u=pd(l.useState(!!e.newCustomer),2),s=u[0],f=u[1],d=pd(l.useState(),2),m=d[0],h=d[1],y=pd(l.useState(),2),v=y[0],g=y[1],S=pd(l.useState(),2),E=S[0],C=S[1],O=pd(l.useState(!1),2),w=O[0],A=O[1],T=ce.useBasicFetch(nd(e.customerId)),k=ce.useBasicFetch(Fp()),j=ce.useBasicFetch(Bp(e.customerId,xp.Topics)),I=(r=e.customerId,{availableTopicPresentations:ce.useBasicFetch($p(Zp.Subject)),availableCurriculumPresentations:ce.useBasicFetch($p(Zp.Curriculum)),customerTopicPresentations:ce.useBasicFetch(Kp(r,Zp.Subject)),customerCurriculumPresentations:ce.useBasicFetch(Kp(r,Zp.Curriculum))}),L=I.availableTopicPresentations,_=I.availableCurriculumPresentations,P=I.customerTopicPresentations,x=I.customerCurriculumPresentations;function N(){if(e.newCustomer)return alert("Successfully set up Topics for this customer."),void p.LocationUtils.PageLoad(p.AppLinkHelper.getHref({application:c.CUSTOMERS,action:a.Customers.MANAGE_CUSTOMER_TOPICS,args:[e.customerId]}));A(!1),i.success("Successfully saved customer presentations.")}if(l.useEffect((function(){var e;(null===(e=j.data)||void 0===e?void 0:e.value)&&f(!0)}),[null===(t=j.data)||void 0===t?void 0:t.value]),l.useEffect((function(){s||(h(null),g(null))}),[s]),l.useEffect((function(){if(!Xp(k.data)&&m){var e=_.data.find((function(e){return"Default Curriculum"===e.name}));g(e)}}),[m]),!!!(k.data&&j.data&&T.data&&L.data&&_.data&&P.data&&x.data))return l.createElement(l.Fragment,null);var R=ap(null===(n=T.data.contentRegion)||void 0===n?void 0:n.systemName,Rp.US),D=Xp(k.data),M=D?m||v:s&&m&&v;return l.createElement(l.Fragment,null,l.createElement("h1",{className:"h6 mb-3"},T.data.name," - ",T.data.crmId),l.createElement("div",{className:"alert alert-danger",role:"alert"},"After enabling Topics, please ensure that ",l.createElement("strong",null,"Dashboard")," is enabled for this customer and that they have the correct library for the ",l.createElement("strong",null,"Topics Presentation")," you choose."),l.createElement(zp,{id:"enableTopics",checked:s,onChange:function(){return f(!s)},label:"Enable Topics",disabled:j.data.value}),s&&l.createElement(l.Fragment,null,l.createElement("p",{className:"mt-3"},l.createElement("strong",null,"Topic Presentations")),l.createElement(id,{availablePresentations:fd(L.data,k.data,T.data),currentPresentations:P.data,onSelectPresentation:function(e){return h(e)},removePresentation:function(e){return C(e)},canRemove:D,canAdd:!0}),D&&l.createElement(l.Fragment,null,l.createElement("p",{className:"mt-3"},l.createElement("strong",null,"Curriculum Presentations")),l.createElement(id,{availablePresentations:ld(_.data,k.data),currentPresentations:x.data,onSelectPresentation:function(e){return g(e)},removePresentation:function(e){return C(e)},canRemove:D,canAdd:!0}))),l.createElement("div",{className:"d-flex justify-content-end align-items-center pt-3"},!j.data.value&&!R&&l.createElement(Ps,{className:"info-link mr-3",appLink:{application:c.CUSTOMERS,action:a.Customers.MANAGE_CUSTOMER,args:[e.customerId]}},"Skip for now"),l.createElement("button",{className:"btn btn-primary",onClick:function(){return A(!0)},disabled:!M},"Save")),w&&l.createElement(Pp,{title:"Confirmation needed",onClickConfirm:function(){var t=function(){var e=[];return m&&e.push(m),v&&e.push(v),e}();if(t.length){var n=function(){var t=j.data.value?[]:[xp.Topics,xp.NewDashboards];return e.newCustomer&&t.push(xp.MustCompleteOnboarding),t}(),r=0,a=0,i=t.length+(n.length?1:0),c=t.map((function(t){return Wp(e.customerId,t.id,u,s)}));n.length&&c.push(Hp(e.customerId,n.map((function(e){return{name:e,value:!0,kind:Np.Temporary}})),u,s)),c.forEach((function(e){return ce.fetch(o,e)}))}function u(){a++,s()}function s(){var t;if(++r===i){if(a<r||!(null===(t=T.data.country)||void 0===t?void 0:t.code))return A(!1),void alert("Something went wrong while setting up Topics for this customer. Please contact to the Product Team so that they look into the issue.");if(!n.length)return N(),h(null),void g(null);var c=td(e.customerId,T.data.country.code,N,(function(){A(!1),alert("Successfully set up Topics but failed to clear Online cache. Please contact to the Product Team so that they look into the issue.")}));ce.fetch(o,c)}}},closePopup:function(){return A(!1)}},j.data.value?l.createElement("p",null,"Are you sure you want to add this customer to:"):l.createElement("p",null,"Are you sure you want enable Topics for this customer and add it to the following presentations:"),l.createElement("ul",null,!!m&&l.createElement("li",null,l.createElement("strong",null,"Topic Presentation:")," ",m.name),!!D&&!!v&&l.createElement("li",null,l.createElement("strong",null,"Curriculum Presentation:")," ",v.name)),!D&&l.createElement("p",{className:"text-danger"},l.createElement("strong",null,"You will be able to come back and add more presentations."))),!!E&&l.createElement(Pp,{title:"Confirmation needed",onClickConfirm:function(){if(E){var t=Yp(e.customerId,E.id,(function(){return i.success("Successfully removed customer from presentation.")}),(function(e){var t;return i.error((null===(t=e.responseJSON)||void 0===t?void 0:t.message)||"Failed to remove presentation.")}),(function(){return C(null)}));ce.fetch(o,t)}},closePopup:function(){return C(null)}},l.createElement("p",null,"Are you sure you want to remove this customer from ",l.createElement("strong",null,E.name),"?")))}function hd(e){return(hd="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 yd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vd(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 bd(e,t,n){return t&&vd(e.prototype,t),n&&vd(e,n),e}function gd(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&&Sd(e,t)}function Sd(e,t){return(Sd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Od(e);if(t){var a=Od(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Cd(this,n)}}function Cd(e,t){return!t||"object"!==hd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Od(e){return(Od=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wd=function(e){gd(n,e);var t=Ed(n);function n(){return yd(this,n),t.apply(this,arguments)}return bd(n,[{key:"channelName",get:function(){return c.CUSTOMERS}},{key:"appRoutes",get:function(){return{"customers/:id/topics(/)":"manageCustomerTopics"}}},{key:"externalRoutes",get:function(){return{"customers/:id(/)":"manageCustomer"}}}]),n}(p.AppRouter),Ad=function(e){gd(n,e);var t=Ed(n);function n(){return yd(this,n),t.apply(this,arguments)}return bd(n,[{key:"name",get:function(){return"Customers Application"}},{key:"channelName",get:function(){return c.CUSTOMERS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{alertRegion:_}}}},{key:"manageCustomerTopics",value:function(e,t){this.layout.showChildView(I,l.createElement(md,{customerId:e,newCustomer:t.newCustomer}))}}],[{key:"router",get:function(){return wd}}]),n}(rp),Td=n(63),kd=n(26),jd=n.n(kd);function Id(e){var t=e.alert,n=e.svgName,r=e.svgClassName,a=e.closeAlert,i=t.message,o=t.heading,c=t.appLink,u=t.appLinkText,s=t.appLinkClassName,f=void 0===s?"":s,p=Object(fu.sanitize)(i);return l.createElement(l.Fragment,null,l.createElement("div",{className:"d-inline-block ".concat(jd.a.icon)},l.createElement(nu,{svgName:n,className:"svg-container ".concat(r)})),l.createElement("div",{className:"pl-2 d-inline-block ".concat(jd.a.alertContent)},l.createElement("p",{className:"p-0 m-0 pb-1 ".concat(jd.a.heading)},o),l.createElement("p",{className:"p-0 text-break clamp-4 ".concat(jd.a.message),dangerouslySetInnerHTML:{__html:p}}),!!c&&l.createElement(Ps,{className:f,appLink:c},u)),l.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:a},"×"))}function Ld(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pd=function(e){switch(e.type){case dp.Success:return Qc.CheckCircleOutline;case dp.Fail:case dp.Warning:return Qc.Warning;case dp.Info:default:return Qc.Info}};function xd(e){var t=e.alert,n=e.closeAlert,r=Ld(l.useState(!0),2),a=r[0],i=r[1],o=l.useRef();l.useEffect((function(){a?o.current=window.setTimeout(n,3e3):clearTimeout(o.current)}),[a]);var c="text-".concat(t.type.toLowerCase());return l.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(jd.a.alertItem),onMouseEnter:function(){return i(!1)},onMouseLeave:function(){return i(!0)}},l.createElement(Id,{alert:t,svgName:Pd(t),svgClassName:c,closeAlert:n}))}function Nd(e){var t=e.alerts,n=e.removeAlert;return l.createElement("div",{className:jd.a.alertBox},l.createElement(Td.TransitionGroup,{component:"ul",className:"".concat(jd.a.alertList," list-unstyled")},t&&t.map((function(e,t){return l.createElement(Td.CSSTransition,{key:t,timeout:200,classNames:"alert"},l.createElement(xd,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var Rd=n(20),Dd={namespace:"domain_options"},Md=function(){return"/api/domain/v3/settings/types"},Ud=function(e){return"/api/domain/v3/settings/types/".concat(e)},Fd=function(){return"/api/domain/v3/settings/types"},Vd=function(e){return"/api/domain/v3/settings/types/".concat(e)},Bd=function(e){return"/api/domain/v3/settings/types/".concat(e)},Hd="domain:options",zd="domain:option",qd="update:domain:option",Jd="delete:domain:option",$d=function(){return{key:Hd,url:Md(),normalizeOptions:Dd}},Kd=function(e){return{key:"".concat(zd,":").concat(e),url:Ud(e),normalizeOptions:Dd}},Wd=function(e,t,n){return e.type===Rd.DomainOptionType.String&&(e=Zd(e)),{key:zd,url:Fd(),data:e,type:ue.a.POST,success:t,error:n,invalidationKeys:[Hd],normalizeOptions:Dd}},Yd=function(e,t){return e.type===Rd.DomainOptionType.String&&(e=Zd(e)),{key:"".concat(qd,":").concat(e.id),url:Vd(e.id),data:e,type:ue.a.PUT,always:t,formatData:function(){return e},normalizeOptions:Dd}},Gd=function(e,t){return{key:"".concat(Jd,":").concat(e),url:Bd(e),type:ue.a.DELETE,invalidationKeys:[Hd],normalizeOptions:Dd,success:t}};function Zd(e){var t=e.defaultValue;if('"'===t)return Object.assign(Object.assign({},e),{defaultValue:'"'.concat(t,'"')});var n=t.charAt(0),r=t.charAt(t.length-1);return'"'!==n&&(t='"'.concat(t)),'"'!==r&&(t="".concat(t,'"')),Object.assign(Object.assign({},e),{defaultValue:t})}function Qd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function em(e){var t=Qd(l.useState(!1),2),n=t[0],r=t[1],i=ce.useBasicFetch(Kd(e.optionId)),o=Object(b.useDispatch)(),u=function(){e.closePopup(),p.AppLinkHelper.trigger({application:c.DOMAIN_OPTIONS,action:a.DomainOptions.DOMAIN_OPTIONS})};return l.createElement(Tp,{title:"Delete Domain Option",closePopup:e.closePopup,showLoadingSpinner:!i.data},i.data&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,i.data.name),"?")),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){r(!0),ce.fetch(o,Gd(e.optionId,u))},buttonText:"Yes, delete this domain option",isSpinnerButton:!0,showSpinner:n}]})))}var tm,nm=function(e){return{application:c.DOMAIN_OPTIONS,action:a.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]}},rm={application:c.DOMAIN_OPTIONS,action:a.DomainOptions.NEW_DOMAIN_OPTION};function am(){var e=ce.useBasicFetch($d());if(!e.data)return l.createElement(l.Fragment,null);var t=e.data.map((function(e){return e.displayName&&(e.name=e.displayName),e}));return l.createElement(l.Fragment,null,l.createElement("div",{className:"d-flex justify-content-between mb-2"},l.createElement("h5",{className:"d-inline-block m-0"},"Select a domain option type to edit:"),l.createElement(Ps,{appLink:rm,className:"d-block"},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New Domain Option"))),l.createElement(Ul,{objects:t,getAppLink:nm}))}!function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup"}(tm||(tm={}));var im=ka.object().shape({id:ka.string(),name:ka.string().trim().max(64,"Name is too long").required("Name is required").default(""),displayName:ka.string().trim().max(255,"Display name is too long").required("Display name is required").default(""),type:ka.mixed().required("Type is required").default(Rd.DomainOptionType.Boolean),entityType:ka.mixed().required("Entity type is required").default(tm.Customer),kind:ka.mixed().required("Kind is required").default(Rd.DomainOptionKind.Temporary),defaultValue:ka.mixed().required("Default value is required").default("false")}).noUnknown();function om(e){var t=e.type,n=e.defaultValue;if(!t)return l.createElement(l.Fragment,null);var r={label:"Default Value",name:"defaultValue",id:"defaultValue",value:n};return t===Rd.DomainOptionType.Boolean?l.createElement(ou,Object.assign({as:"select"},r),l.createElement("option",{value:"true"},"True"),l.createElement("option",{value:"false"},"False")):t===Rd.DomainOptionType.Long||t===Rd.DomainOptionType.StaffRequest?l.createElement(ou,Object.assign({as:"input",type:"number"},r)):t===Rd.DomainOptionType.String?l.createElement(ou,Object.assign({as:"input"},r)):void 0}var cm=[tm.Customer,tm.User];function um(e){var t=null===e.id||void 0===e.id,n=ua(),r=su(n);return l.createElement(ba,null,l.createElement(ou,{label:"Name (snake_case)",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this domain option",autoFocus:!0}),l.createElement(ou,{label:"Display Name",type:"text",name:"displayName",id:"displayName",value:n.values.displayName,placeholder:"Enter a display name for this domain option"}),l.createElement(ou,{as:"select",label:"Kind",name:"kind",id:"kind",value:n.values.kind},wa.a.getEnumKeys(Rd.DomainOptionKind).map((function(e){return l.createElement("option",{key:e,value:Rd.DomainOptionKind[e]},e)}))),l.createElement(ou,{as:"select",label:"Entity",name:"entityType",id:"entityType",value:n.values.entityType},wa.a.getEnumKeys(tm).filter((function(e){return cm.includes(tm[e])})).map((function(e){return l.createElement("option",{key:e,value:tm[e]},e)}))),l.createElement(ou,{as:"select",label:"Type",name:"type",id:"type",value:n.values.type},wa.a.getEnumKeys(Rd.DomainOptionType).map((function(e){return l.createElement("option",{key:e,value:Rd.DomainOptionType[e]},e)}))),l.createElement(om,{type:n.values.type,defaultValue:n.values.defaultValue}),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Lf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(Ia.Button,{as:Ps,variant:"danger",appLink:{application:c.DOMAIN_OPTIONS,action:a.DomainOptions.DELETE_DOMAIN_OPTION,args:[e.id]}},"Delete")))}function sm(e){return l.createElement(Ta,{initialValues:e.domainOption,validationSchema:im,onSubmit:e.saveDomainOption},l.createElement(um,{id:e.domainOption&&e.domainOption.id}))}function lm(){var e=Object(b.useDispatch)();return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Domain Option"),l.createElement(sm,{saveDomainOption:function(t,n){ce.fetch(e,Wd(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.DOMAIN_OPTIONS,action:a.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]})}),n))}}))}function fm(e){var t=e.optionId,n=ce.useBasicFetch(Kd(t)),r=Object(b.useDispatch)();return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Edit Domain Option"),n.data&&l.createElement(sm,{domainOption:n.data,saveDomainOption:function(e,t){return ce.fetch(r,Yd(e,t))}}))}function pm(e){return(pm="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 dm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mm(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 hm(e,t,n){return t&&mm(e.prototype,t),n&&mm(e,n),e}function ym(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&&vm(e,t)}function vm(e,t){return(vm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sm(e);if(t){var a=Sm(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return gm(this,n)}}function gm(e,t){return!t||"object"!==pm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sm(e){return(Sm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Em=function(e){ym(n,e);var t=bm(n);function n(){return dm(this,n),t.apply(this,arguments)}return hm(n,[{key:"channelName",get:function(){return c.DOMAIN_OPTIONS}},{key:"appRoutes",get:function(){return{"developer/options(/)":"domainOptions","developer/options/new(/)":"newDomainOption","developer/options/:id(/)":"editDomainOption"}}},{key:"appLinks",get:function(){return["deleteDomainOption"]}}]),n}(p.AppRouter),Cm=function(e){ym(n,e);var t=bm(n);function n(){return dm(this,n),t.apply(this,arguments)}return hm(n,[{key:"name",get:function(){return"Domain Options Application"}},{key:"channelName",get:function(){return c.DOMAIN_OPTIONS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"domainOptions",value:function(){this.layout.showChildView(I,l.createElement(am,null))}},{key:"newDomainOption",value:function(){this.layout.showChildView(I,l.createElement(lm,null))}},{key:"editDomainOption",value:function(e){this.layout.showChildView(I,l.createElement(fm,{optionId:e}))}},{key:"deleteDomainOption",value:function(e){this.layout.showChildView(L,l.createElement(em,Object.assign({optionId:e},this.getPopupProps())))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Cs.Radio.channel(G.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(_,l.createElement(Nd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return Em}}]),n}(p.Application),Om=function(e){return e?"".concat("/api/master/v2/people","?cursor=").concat(e):"/api/master/v2/people"},wm=function(e){return"/api/master/v2/objects/".concat(e)},Am=function(){return"/api/master/v2/people"},Tm=function(e){return"/api/master/v2/objects/".concat(e)},km="people",jm="person",Im="update:person",Lm=function(e){return{key:"".concat(km).concat(e?":".concat(e):""),url:Om(e)}},_m=function(e){return{key:"".concat(jm,":").concat(e),url:wm(e)}},Pm=function(e,t,n){return{key:jm,url:Am(),data:e,type:ue.a.POST,success:t,error:n,invalidationKeys:[km]}},xm=function(e,t,n){return{key:"".concat(Im,":").concat(e),url:Tm(e),data:t,type:ue.a.PUT,always:n}},Nm=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown();function Rm(e){var t=ua();return l.createElement(ba,null,l.createElement(ou,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this person",autoFocus:!0}),l.createElement(Iu,{isNew:e.isNew}))}function Dm(e){return l.createElement(Ta,{initialValues:e.person,validationSchema:Nm,onSubmit:e.savePerson},l.createElement(Rm,{isNew:!(e.person&&e.person.id)}))}function Mm(e){var t=Object(b.useDispatch)(),n=ce.useBasicFetch(_m(e.id));return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Dm,{person:n.data,savePerson:function(n,r){return ce.fetch(t,xm(e.id,n,r))}}))}function Um(){var e=Object(b.useDispatch)();return l.createElement(Dm,{savePerson:function(t,n){ce.fetch(e,Pm(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.PEOPLE,action:a.People.EDIT_PERSON,args:[e.id]})}),n))}})}var Fm=c.PEOPLE,Vm=function(e){return{application:Fm,action:a.People.EDIT_PERSON,args:[e.id]}},Bm=function(e){return p.AppLinkHelper.trigger(Vm(e))};function Hm(e){var t=ce.useBasicFetch(Lm(e.cursor));return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 w-50"},l.createElement(ls,{placeholder:"Search for a person",onSuggestionSelected:Bm,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/people/instant/raw","?q=").concat(e)},activationLength:2})),l.createElement(Tl,{collection:t&&t.data,columns:[{accessor:"name",header:"Name",appLink:Vm}],collectionAppLink:{application:Fm,action:a.People.PEOPLE},newObjectAppLink:{application:Fm,action:a.People.NEW_PERSON},objectName:"Person"}))}function zm(e){return(zm="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 qm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jm(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 $m(e,t,n){return t&&Jm(e.prototype,t),n&&Jm(e,n),e}function Km(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&&Wm(e,t)}function Wm(e,t){return(Wm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ym(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zm(e);if(t){var a=Zm(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Gm(this,n)}}function Gm(e,t){return!t||"object"!==zm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zm(e){return(Zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qm,Xm=function(e){Km(n,e);var t=Ym(n);function n(){return qm(this,n),t.apply(this,arguments)}return $m(n,[{key:"channelName",get:function(){return c.PEOPLE}},{key:"appRoutes",get:function(){return{"manage/people(/)":"people","manage/people/new(/)":"newPerson","manage/people/:id(/)":"editPerson"}}}]),n}(p.AppRouter),eh=function(e){Km(n,e);var t=Ym(n);function n(){return qm(this,n),t.apply(this,arguments)}return $m(n,[{key:"name",get:function(){return"People Application"}},{key:"channelName",get:function(){return c.PEOPLE}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"people",value:function(e){var t=e.cursor;this.layout.showChildView(I,l.createElement(Hm,{cursor:t}))}},{key:"newPerson",value:function(){this.layout.showChildView(I,l.createElement(Um,null))}},{key:"editPerson",value:function(e){this.layout.showChildView(I,l.createElement(Mm,{id:e}))}}],[{key:"router",get:function(){return Xm}}]),n}(p.Application),th=function(e,t,n,r,a){return{url:"/api/image/upload?type=".concat(t),key:"upload:image",data:e,type:ue.a.POST,success:n,error:r,always:a}},nh=n(214),rh=n.n(nh);function ah(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ih(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ih(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e[e.NoRestrictions=0]="NoRestrictions",e[e.RestrictToCanvas=1]="RestrictToCanvas"}(Qm||(Qm={}));var oh=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function ch(e){var t=e.dataUrl,n=e.minHeight,r=e.minWidth,a=e.onCrop,i=e.onCancel,o=l.useRef(),c=l.useRef(),u=ah(l.useState(!1),2),s=u[0],f=u[1],p=ah(l.useState(!1),2),d=p[0],m=p[1];return l.useEffect((function(){var e=new Image;e.src=t;var a=o.current.offsetWidth/e.width;return c.current=new rh.a(o.current,{viewMode:Qm.RestrictToCanvas,autoCropArea:1,aspectRatio:r/n,minCropBoxWidth:r*a,minCropBoxHeight:n*a,ready:function(){return f(!0)}}),function(){c.current.destroy()}}),[]),l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 cropper-img-padding"},l.createElement("img",{ref:o,src:t,className:"img img-fluid"})),l.createElement("div",{className:"d-flex justify-content-end border-top pt-3 btn-padding"},l.createElement(Ia.Button,{variant:"link",onClick:i},"Cancel"),l.createElement(Lf,{onClick:function(){if(s){m(!0);var e=c.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(oh);if(t)return t[1]}(t));h(a)&&a(e)}},disabled:!s,showSpinner:d},"Crop")))}function uh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lh(e){var t=Object(b.useDispatch)(),n=l.useContext(nl),r=n.getDataUrl,a=n.setImage,i=uh(l.useState(r()),1)[0],o=uh(l.useState(!1),2),c=o[0],u=o[1];return l.createElement(Tp,{title:"Crop Image",size:e.popupSize,closePopup:e.closePopup,onEntered:function(){return u(!0)}},c&&l.createElement(ch,{dataUrl:i,minWidth:Qs[e.imageType].width,minHeight:Qs[e.imageType].height,onCrop:function(n){ce.fetch(t,th(n,e.imageType,(function(e){return a(e)}),null,e.closePopup))},onCancel:e.closePopup}))}var fh=function(e){var t=e.children;return l.createElement(rl,null,t)};function ph(e){var t=e.page,n=e.totalPages,r=Bu.isNumber(t)&&t>0&&t<n&&t+1,a=Bu.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),a&&(i.previous=a.toString()),!wa.a.isEmpty(i))return i}var dh={convertLegacyPaginatedCollection:function(e){if(e)return{data:e.data,pagination:{cursors:ph(e.pagination),limit:e.pagination.pageSize}}}},mh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1";return{key:"playlists:".concat(e),url:"/ajax/playlists/curators?page=".concat(e),formatData:dh.convertLegacyPaginatedCollection}},hh=function(e,t){var n="/api/domain/v1/search/playlists?query=".concat(e);return t&&(n+="&filter={page:".concat(t,"}")),{key:"playlists:search:".concat(e).concat(t?":".concat(t):""),url:n,formatData:dh.convertLegacyPaginatedCollection}},yh=function(e){return{key:"playlist:".concat(e),url:"/ajax/playlists/".concat(e,"?query=cover,banner")}},vh=function(e){var t=e.slice().sort();return{key:"playlists:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},bh=function(e,t,n,r){return{url:"/ajax/playlists",key:"playlist",data:e,type:ue.a.POST,invalidationKeys:"playlists",success:t,error:n,always:r}},gh=function(e,t,n,r,a){return{url:"/ajax/v2/playlists//".concat(e),key:"update:playlist:".concat(e),data:t,type:ue.a.PUT,success:n,error:r,always:a}},Sh=function(e,t,n,r){return{url:"/ajax/playlists/".concat(e),key:"delete:playlist:".concat(e),type:ue.a.DELETE,invalidationKeys:"playlists",success:t,error:n,always:r}},Eh=function(e){return{key:"playlist:".concat(e,":videos"),url:"/api/master/v2/objects/".concat(e,"/videos?query={orderBy:orderindex,limit:100}")}},Ch=function(e,t,n,r){return{key:"reorder:playlist",url:"/api/master/v1/objects/".concat(e,"/videos/reorder"),data:t,type:ue.a.PUT,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r}},Oh=function(e,t,n,r,a){return{key:"remove:playlist:video",url:"/api/master/v1/playlists/".concat(e,"/dissociate/").concat(t),type:ue.a.DELETE,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r,always:a}},wh=function(e,t,n,r){return{key:"playlist:metadata:".concat(e.join(",")),url:qs("/ajax/playlists/metadata",{ids:e}),success:t,error:n,always:r}},Ah=function(e,t,n,r){return{key:"dashboards:".concat(e),url:"/ajax/dashboards/".concat(e),success:t,error:n,always:r}},Th=function(e,t,n,r,a){return{key:"dashboard:".concat(e,":widget:").concat(t),url:"/ajax/dashboards/".concat(e,"/widgets/").concat(t),success:n,error:r,always:a}},kh=function(e,t,n,r){return{key:"playlist:".concat(e,":widgets"),url:"/ajax/playlists/".concat(e,"/widgets"),success:t,error:n,always:r}},jh=function(e,t,n,r,a,i){return{key:"dashboard:".concat(e,":widget:").concat(t),url:"/ajax/dashboards/".concat(e,"/widgets/").concat(t),type:ue.a.DELETE,invalidationKeys:"playlist:".concat(n,":widgets"),formatData:function(){return null},success:r,error:a,always:i}};function Ih(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _h(e){var t=Object(b.useDispatch)(),n=wp(),r=Ih(l.useState(!1),2),i=r[0],o=r[1],u=ce.useBasicFetch(yh(e.playlistId));var s=[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),ce.fetch(t,Sh(e.playlistId,(function(){n.success("Successfully deleted playlist."),p.AppLinkHelper.trigger({application:c.PLAYLISTS,action:a.Playlists.PLAYLISTS})}),(function(){o(!1),n.error("Failed to delete playlist.")}),e.closePopup))},buttonText:"Yes, delete playlist",isSpinnerButton:!0,showSpinner:i}],f=!!u.data;return l.createElement(Tp,{title:"Delete Playlist",closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,u.data.name),"?"),l.createElement("p",null,"Please ensure it is not being used in any widgets.")),l.createElement(jp,{buttons:s})))}var Ph=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ka.string().trim().max(65535,"Description is too long").default(""),cover:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),banner:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),metadata:ka.object().shape({playlistId:ka.string(),internalDescription:ka.string().trim().max(255,"Description is too long").default("")}).default({}).noUnknown()}).noUnknown(),xh=function(e,t){var n=c.PLAYLISTS,r=a.Playlists,i=[{label:"Edit Playlist Details",appLink:{application:n,action:r.EDIT_PLAYLIST,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_PLAYLIST_VIDEOS,args:[t]}},{label:"Dashboards",appLink:{application:n,action:r.EDIT_PLAYLIST_DASHBOARDS,args:[t]}}];return ed(e)&&i.push.apply(i,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_PLAYLIST_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_PLAYLIST_AUDIENCES,args:[t]}}]),i};function Nh(e){var t,n=ua(),r=su(n);return l.createElement(ba,null,l.createElement(ou,{label:"Name",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this playlist",autoFocus:!0}),l.createElement(ou,{label:"Description",as:"textarea",name:"description",id:"description",value:n.values.description,placeholder:"Describe this playlist here"}),l.createElement(ou,{label:"Internal Description",as:"textarea",name:"metadata.internalDescription",id:"metadata.internalDescription",value:null===(t=n.values.metadata)||void 0===t?void 0:t.internalDescription,placeholder:"This description will only be displayed in Curator"}),l.createElement(Sl,{imageType:Ms.Covers,fieldName:"cover",application:c.PLAYLISTS,uploadAction:a.Playlists.UPLOAD_IMAGE}),l.createElement(Sl,{imageType:Ms.Banners,fieldName:"banner",application:c.PLAYLISTS,uploadAction:a.Playlists.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(Lf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},e.id?"Save":"Create"),!!e.actions&&l.createElement(Dl,{actions:e.actions})))}function Rh(e){var t,n=e.playlist&&e.playlist.id;return l.createElement(Ta,{initialValues:e.playlist,validationSchema:Ph,onSubmit:e.savePlaylist},l.createElement(Nh,{id:n,actions:!!n&&(t=n,[{label:"Delete playlist",appLink:{application:c.PLAYLISTS,action:a.Playlists.DELETE_PLAYLIST,args:[t]},className:"text-danger"}])}))}function Dh(e){return l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:xh(e.currentUser,e.playlistId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function Mh(e){var t=Object(b.useDispatch)(),n=wp(),r=ce.useBasicFetch(yh(e.playlistId)),i=ce.useBasicFetch(Fp());return l.createElement(l.Fragment,null,!!i.data&&l.createElement(Dh,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST,currentUser:i.data}),!!r.data&&l.createElement(Rh,{playlist:r.data,savePlaylist:function(r,a){ce.fetch(t,gh(e.playlistId,r,(function(){n.success("Successfully updated playlist.")}),(function(){n.error("Failed to update playlist.")}),a))}}))}var Uh=function(e,t){var n=e.dataServiceName,r=e.eventPrefix,a=e.fetchData,i=e.setData,o=e.onError,c=e.deleteEventPrefix;if(h(a)){if(h(i)){var u=o&&h(o),s=fp.getInstance(n),l=Cs.Radio.channel(s.channelName),f="".concat(r,":request"),d="".concat(r,":sync"),m="".concat(r,":error"),y="".concat(r,":invalidate"),v=c&&"".concat(c,":sync"),b=function(){return t(!1)},g=function(){return t(!0)},S=function(){return t(!1)},E=function(){return l.off(y,S)};l.once(f,b),l.once(d,g),l.once(y,S),u&&l.once(m,o),v&&l.once(v,E);var C=a(s);return C&&(t(!0),e.setData(C)),function(){fp.releaseInstance(n),l.off(f,b),l.off(d,g),l.off(y,S),u&&l.off(m,o),v&&l.off(v,E)}}p.ErrorHelper.throw(new yu.a("A setData function must be passed to fetch"))}else p.ErrorHelper.throw(new yu.a("A fetchData function must be passed to fetch"))};function Fh(e){return function(e){if(Array.isArray(e))return Hh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||Bh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bh(e,t){if(e){if("string"==typeof e)return Hh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hh(e,t):void 0}}function Hh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zh=function(e){return Array(Array.isArray(e)?e.length:0).fill(!1)};function qh(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l.useState(zh(e)),a=Vh(r,2),i=a[0],o=a[1];l.useEffect((function(){o(zh(e))}),Fh(t)),l.useEffect((function(){if(n){var t=[];return e&&e.forEach((function(e,n){t.push(Uh(e,(function(e){e!==i[n]&&o(Vp.a.cloneAndReplaceAtIdx(i,n,e))})))})),function(){return t.forEach((function(e){return e()}))}}}),[i,n])}function Jh(e){return function(e){if(Array.isArray(e))return Wh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||Kh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kh(e,t){if(e){if("string"==typeof e)return Wh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wh(e,t):void 0}}function Wh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yh(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l.useState(!1),a=$h(r,2),i=a[0],o=a[1];l.useEffect((function(){o(!1)}),Jh(t)),l.useEffect((function(){if(n)return Uh(e,o)}),[i,n])}var Gh=function(e,t,n){return function(r){return e((function(e){var a=h(n)?n:y();return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,a(r,e)))}))}};function Zh(e){return(Zh="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 Qh(e){return function(e){if(Array.isArray(e))return Xh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ey(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 ty(e,t){return(ty=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ny(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iy(e);if(t){var a=iy(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ry(this,n)}}function ry(e,t){return!t||"object"!==Zh(t)&&"function"!=typeof t?ay(e):t}function ay(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iy(e){return(iy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oy,cy,uy,sy,ly,fy=function(e){!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&&ty(e,t)}(i,e);var t,n,r,a=ny(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),d.result(ay(t),"name")||du.c.throw(new yu.a("Must provide a name when extending BaseDataService")),d.result(ay(t),"channelName")||du.c.throw(new yu.a("Must provide a channelName for ".concat(d.result(ay(t),"name"))));var n=[].concat(Qh(t.defaultProps),Qh(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=i,(n=[{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}},{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,r=e.errorCallback,a=e.eventPrefix,i=this.getEventNames(a),o=i.syncEvent,c=i.errorEvent,u=this.cache.get(a);if(u&&u.openRequest)return this.listenToOnce(this.getChannel(),o,(function(e){d.isFunction(r)&&t.stopListening(t.getChannel(),c,r),d.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),c,(function(){d.isFunction(n)&&t.stopListening(t.getChannel(),o,n),d.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,a=e.eventPrefix,i=e.resource,o=e.formatData,c=e.expiryTime,u=e.successHandler,s=e.errorHandler,l=e.bootstrapName,f=this.getEventNames(a),p=f.syncEvent,m=f.requestEvent,h=f.successEvent,y=f.errorEvent,v=this.getChannel(),b=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(a,this.bootstrapData[l],o,{openRequest:!1,timestamp:b}),delete this.bootstrapData[l]);var g,S=this.cache.get(a);S&&(g=S.data);var E=S&&S.openRequest,C=this.isExpired(a,c);if(E&&(this.listenToOnce(v,p,(function(e){d.isFunction(r)&&t.stopListening(t.getChannel(),y,r),d.isFunction(n)&&n(e)})),this.listenToOnce(v,y,(function(){d.isFunction(n)&&t.stopListening(t.getChannel(),p,n),d.isFunction(r)&&r()}))),this.cache.has(a)&&!C||(v.trigger(m),this.listenToResponse({eventPrefix:a,formatData:o,cacheOptions:{timestamp:b},callback:n,errorCallback:r,successHandler:u,errorHandler:s}),this.cacheData(a,null,null,{openRequest:!0,timestamp:b}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:h,errorEvent:y})),g&&d.isFunction(n)&&!C&&n(g),g)return g}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,a=e.formatData,i=e.callback,o=e.errorCallback,c=e.invalidationKeys,u=e.successHandler,s=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,m=this.getChannel(),h=this.getTransportChannel();m.trigger(f),this.listenToResponse({eventPrefix:t,formatData:a,invalidationKeys:c,callback:i,errorCallback:o,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:h,successEvent:p,errorEvent:d})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,a=e.resource,i=e.formatData,o=e.eventPrefix,c=e.invalidationKeys,u=e.errorHandler,s=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,m=this.getChannel(),h=this.getTransportChannel();m.trigger(f),this.listenToResponse({eventPrefix:o,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(a,t,{channel:h,successEvent:p,errorEvent:d})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,a=e.errorCallback,i=e.invalidationKeys,o=e.successHandler,c=e.errorHandler,u=this.getEventNames(t),s=u.successEvent,l=u.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:i,callback:r,errorCallback:a,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:o,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:s,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,r=e.formatData,a=e.callback,i=e.errorCallback,o=e.successHandler,c=e.errorHandler,u=e.invalidationKeys,s=e.cacheOptions,l=void 0===s?{}:s,f=this.getEventNames(n),p=f.syncEvent,m=f.successEvent,h=f.errorEvent,y=f.successAlertEvent,v=f.errorAlertEvent,b=this.getChannel(),g=this.getTransportChannel(),S=this.getAlertChannel();d.isFunction(a)&&this.listenToOnce(b,p,a),d.isFunction(i)&&this.listenToOnce(b,h,i),this.stopListening(S,y),this.stopListening(S,v),d.isFunction(o)&&this.listenToOnce(S,y,o),d.isFunction(c)&&this.listenToOnce(S,v,c),!d.isFunction(c)&&!1!==c&&d.isFunction(this.defaultErrorHandler)&&this.listenToOnce(S,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,m,(function(e){t.stopListening(b,h,i);for(var a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];S.trigger.apply(S,[y,e].concat(o));var s=l.noCache?t.formatData(e,r):t.cacheData(n,e,r);l.clearCacheKey&&t.cache.remove(n),b.trigger(p,s),u&&u.length&&t.cache.invalidate(u,(function(e){return b.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,h,(function(){var e;t.stopListening(b,p,a);var r=(e=t.dataProvider).parseError.apply(e,arguments);S.trigger(v,r),b.trigger(h,r),l.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.openRequest,i=void 0!==a&&a,o=r.timestamp;o||(o=this.currentTimestamp());var c=this.processPagination(t),u=this.formatData(t,n);return this.cache.set(e,{data:u,timestamp:o,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:d.isUndefined(t.offset)||d.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return d.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){d.isFunction(e)&&e(t)},r=function(r,i){return t.push((function(){var a=r.callback;r.callback=function(e){n(a,e),n(t.shift())},e[i](r)})),a},a={func:function(e){return t.push((function(){e(t.shift()||function(){})})),a},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return a}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return Cs.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return Cs.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,r=e.totalItems,a=r>0&&t<r&&t+n,i=r>0&&t>0&&Math.max(t-n,0),o={};if(a&&a<r&&(o.next=a.toString()),d.isNumber(i)&&(o.previous=i.toString()),!d.isEmpty(o))return o}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=d.isNumber(t)&&t>0&&t<n&&t+1,a=d.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),a&&(i.previous=a.toString()),!d.isEmpty(i))return i}}])&&ey(t.prototype,n),r&&ey(t,r),i}(pu.a),py=n(47),dy={SHORT:120,STANDARD:600};!function(e){e[e.Subject=0]="Subject",e[e.Classification=1]="Classification",e[e.Level=2]="Level",e[e.Audience=3]="Audience"}(oy||(oy={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(cy||(cy={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(uy||(uy={})),function(e){e.Root="0"}(sy||(sy={})),function(e){e.Root="root"}(ly||(ly={}));var my,hy,yy=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),backboneAudienceIds:ka.array().of(ka.string()).required("A level is required").default([])}).noUnknown();!function(e){e.Subject="Subject",e.Topic="Topic"}(my||(my={})),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(hy||(hy={}));var vy=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentIds:ka.array().of(ka.string()).default([ly.Root]),backboneClassificationIds:ka.array().of(ka.string()).min(1,"A classification must be mapped to at least one subject").required("A classification must be mapped to at least one subject").default([]),type:ka.mixed().required("Type is required").default(my.Subject),status:ka.mixed().required("Status is required").default(hy.Draft),emphasize:ka.boolean().default(!1),canBePreferred:ka.boolean().default(!1),cover:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),banner:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),tallPoster:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown()}).noUnknown(),by=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),gy=ka.object().shape({name:ka.string().max(255,"Name is too long").required("Name is required"),description:ka.string().max(65535,"Description is too long").required("Description is required"),status:ka.mixed().required("Status is required").default(Gp.Draft)}),Sy=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentId:ka.string().default(sy.Root)}).noUnknown(),Ey={singularizeMemberType:function(e){switch(e){case cy.Playlists:return"playlist";case cy.Series:return"series";case cy.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case cy.Playlists:return{application:c.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:n};case cy.Series:return{application:c.SERIES,action:a.Series.EDIT_SERIES,args:n};case cy.Videos:return{application:c.VIDEOS,action:a.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(Ey.singularizeMemberType(n)),appLink:{application:c.SUBJECTS,action:t===oy.Subject?a.Subjects.REMOVE_SUBJECT_MEMBER:a.Subjects.REMOVE_CLASSIFICATION_MEMBER,args:[e,r,n]},className:"text-danger"}]}},Cy=function(){var e=c.SUBJECTS,t=a.Subjects;return[{label:"Classifications",appLink:{application:e,action:t.CLASSIFICATIONS},activeActions:[t.CLASSIFICATIONS,t.PRESENTATION_CLASSIFICATIONS,t.NEW_CLASSIFICATION,t.EDIT_CLASSIFICATION,t.EDIT_CLASSIFICATION_PLAYLISTS,t.EDIT_CLASSIFICATION_SERIES,t.EDIT_CLASSIFICATION_VIDEOS,t.DELETE_CLASSIFICATION,t.REMOVE_CLASSIFICATION_MEMBER]},{label:"Backbone Classifications",appLink:{application:e,action:t.SUBJECTS},activeActions:[t.SUBJECTS,t.NEW_SUBJECT,t.EDIT_SUBJECT,t.EDIT_SUBJECT_PLAYLISTS,t.EDIT_SUBJECT_SERIES,t.EDIT_SUBJECT_VIDEOS,t.SUBJECT_CLASSIFICATIONS,t.DELETE_SUBJECT,t.ADD_SUBJECT_MEMBERS,t.REMOVE_SUBJECT_MEMBER]},{label:"Audiences",appLink:{application:e,action:t.AUDIENCES},activeActions:[t.AUDIENCES,t.PRESENTATION_AUDIENCES,t.NEW_AUDIENCE,t.EDIT_AUDIENCE,t.EDIT_AUDIENCE_PLAYLISTS,t.EDIT_AUDIENCE_SERIES,t.EDIT_AUDIENCE_VIDEOS,t.REMOVE_AUDIENCE_MEMBER]},{label:"Backbone Audiences",appLink:{application:e,action:t.LEVELS},activeActions:[t.LEVELS,t.NEW_LEVEL,t.EDIT_LEVEL,t.LEVEL_AUDIENCES,t.EDIT_LEVEL_PLAYLISTS,t.EDIT_LEVEL_SERIES,t.EDIT_LEVEL_VIDEOS]},{label:"Presentations",appLink:{application:e,action:t.PRESENTATIONS},activeActions:[t.PRESENTATIONS,t.NEW_PRESENTATION,t.EDIT_PRESENTATION]}]},Oy=function(e,t){var n=c.SUBJECTS,r=a.Subjects,i=[e];return[{label:"Edit Backbone Classification Details",appLink:{action:r.EDIT_SUBJECT}},{label:"Classifications",appLink:{action:r.SUBJECT_CLASSIFICATIONS}},{label:"Playlists",appLink:{action:r.EDIT_SUBJECT_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_SUBJECT_SERIES}},{label:"Videos",appLink:{action:r.EDIT_SUBJECT_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:i});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},wy=function(e,t){var n=c.SUBJECTS,r=a.Subjects;return[{label:"Edit Classification Details",appLink:{application:n,action:r.EDIT_CLASSIFICATION,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_CLASSIFICATION_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_CLASSIFICATION_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_CLASSIFICATION_VIDEOS,args:[e,t]}}]},Ay=function(e,t){var n=c.SUBJECTS,r=a.Subjects,i=[e];return[{label:"Edit Level Details",appLink:{action:r.EDIT_LEVEL}},{label:"Audiences",appLink:{action:r.LEVEL_AUDIENCES}},{label:"Playlists",appLink:{action:r.EDIT_LEVEL_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_LEVEL_SERIES}},{label:"Videos",appLink:{action:r.EDIT_LEVEL_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:i});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},Ty=function(e,t){var n=c.SUBJECTS,r=a.Subjects;return[{label:"Edit Audience Details",appLink:{application:n,action:r.EDIT_AUDIENCE,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_AUDIENCE_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_AUDIENCE_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_AUDIENCE_VIDEOS,args:[e,t]}}]},ky={singularizeMemberType:function(e){switch(e){case uy.Playlists:return"playlist";case uy.Series:return"series";case uy.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case uy.Playlists:return{application:c.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:n};case uy.Series:return{application:c.SERIES,action:a.Series.EDIT_SERIES,args:n};case uy.Videos:return{application:c.VIDEOS,action:a.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(ky.singularizeMemberType(n)),appLink:{application:c.SUBJECTS,action:t===oy.Level?a.Subjects.REMOVE_LEVEL_MEMBER:a.Subjects.REMOVE_AUDIENCE_MEMBER,args:[e,r,n]},className:"text-danger"}]}};function jy(e){return(jy="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 Iy(e){return function(e){if(Array.isArray(e))return Ly(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ly(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ly(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ly(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Py(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 xy(e,t){return(xy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ny(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dy(e);if(t){var a=Dy(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ry(this,n)}}function Ry(e,t){return!t||"object"!==jy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dy(e){return(Dy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var My=function(){return"/api/subjects/v1/backbone-classifications/tree"},Uy=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},Fy=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/").concat(t,"?query={limit:100}")},Vy=function(e,t,n){var r="/api/subjects/v1/backbone-classifications/".concat(e,"/classifications"),a=[];return t&&a.push("presentationId=".concat(t)),n&&a.push("query=".concat(n,"{limit:100}")),a.length?"".concat(r,"?").concat(a.join("&")):r},By=function(){return"/api/subjects/v1/backbone-classifications"},Hy=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},zy=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},qy=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications")},Jy=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications?addToClassifications=").concat(!!t)},$y=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?addToClassifications=").concat(!!t)},Ky=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Wy=function(){return"/api/subjects/v1/presentations"},Yy=function(e){return"/api/subjects/v1/presentations/".concat(e)},Gy=function(){return"/api/subjects/v1/presentations"},Zy=function(e){return"/api/subjects/v1/presentations/".concat(e)},Qy=function(e){return"/api/subjects/v1/presentations/".concat(e,"/classifications/tree")},Xy=function(e){return"/api/subjects/v1/classifications/".concat(e,"?query=cover,banner,followers[count()]{limit:0}")},ev=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/").concat(t,"?query={limit:100}")},tv=function(){return"/api/subjects/v1/classifications"},nv=function(e){return"/api/subjects/v1/classifications/".concat(e)},rv=function(e){return"/api/subjects/v1/classifications/".concat(e)},av=function(e){return"/api/subjects/v1/objects/".concat(e,"/classifications")},iv=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/classifications?presentationId=").concat(t)},ov=function(e){return"/api/subjects/v1/classifications/".concat(e,"/objects")},cv=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},uv=function(){return"/api/subjects/v1/backbone-audiences"},sv=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},lv=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/").concat(t,"?query={limit:100}")},fv=function(e,t,n){var r="/api/subjects/v1/backbone-audiences/".concat(e,"/audiences"),a=[];return t&&a.push("presentationId=".concat(t)),n&&a.push("query=".concat(n,"{limit:100}")),a.length?"".concat(r,"?").concat(a.join("&")):r},pv=function(){return"/api/subjects/v1/backbone-audiences"},dv=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},mv=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences")},hv=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences?addToAudiences=").concat(!!t)},yv=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?addToAudiences=").concat(!!t)},vv=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},bv=function(e){return"/api/subjects/v1/presentations/".concat(e,"/audiences")},gv=function(e){return"/api/subjects/v1/audiences/".concat(e)},Sv=function(e,t){return"/api/master/v2/objects/".concat(e,"/").concat(t,"?query={limit:100}")},Ev=function(){return"/api/subjects/v1/audiences"},Cv=function(e){return"/api/subjects/v1/audiences/".concat(e)},Ov=function(e){return"/api/subjects/v1/audiences/".concat(e)},wv=function(e){return"/api/subjects/v1/objects/".concat(e,"/audiences")},Av=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/audiences?presentationId=").concat(t)},Tv=function(e){return"/api/subjects/v1/audiences/".concat(e,"/objects")},kv=function(e,t){return"/api/subjects/v1/audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},jv=function(e,t,n){var r="".concat(i.SUBJECT,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(i.CLASSIFICATIONS),n&&(r+=":".concat(n)),r},Iv=function(e,t,n){var r="".concat(i.LEVEL,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(i.AUDIENCES),n&&(r+=":".concat(n)),r},Lv=function(e){!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&&xy(e,t)}(o,e);var t,n,r,a=Ny(o);function o(){return _y(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return s.SUBJECT}},{key:"channelName",get:function(){return u.SUBJECT}},{key:"getPresentations",value:function(e,t){return this.get({resource:Wy(),eventPrefix:i.PRESENTATIONS,expiryTime:dy.STANDARD,callback:e,errorCallback:t})}},{key:"getPresentation",value:function(e,t,n){return this.get({resource:Yy(e),eventPrefix:"".concat(i.PRESENTATION,":").concat(e),expiryTime:dy.STANDARD,callback:t,errorCallback:n})}},{key:"createPresentation",value:function(e,t,n){return this.create({resource:Gy(),data:e,callback:t,errorCallback:n,eventPrefix:i.PRESENTATION,invalidationKeys:[i.PRESENTATIONS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully created presentation."),errorHandler:this.alertService.error("Failed to create presentation.")})}},{key:"updatePresentation",value:function(e,t,n,r){return this.update({resource:Zy(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_PRESENTATION,":").concat(e),invalidationKeys:["".concat(i.PRESENTATION,":").concat(e),i.PRESENTATIONS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully updated presentation."),errorHandler:this.alertService.error("Failed to update presentation.")})}},{key:"getSubjectTree",value:function(e,t){return this.get({resource:My(),formatData:function(e){return{children:e,name:sy.Root,id:null}},eventPrefix:i.SUBJECTS,expiryTime:dy.STANDARD,callback:e,errorCallback:t})}},{key:"getSubject",value:function(e,t,n){return this.get({resource:Uy(e),eventPrefix:"".concat(i.SUBJECT,":").concat(e),expiryTime:dy.STANDARD,callback:t,errorCallback:n})}},{key:"getSubjectMemberIds",value:function(e,t,n,r){return this.get({resource:Fy(e,t),eventPrefix:"".concat(i.SUBJECT,":").concat(e,":").concat(t),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"getSubjectClassifications",value:function(e,t,n,r,a){return this.get({resource:Vy(e,t,n),eventPrefix:jv(e,t,n),expiryTime:dy.STANDARD,callback:r,errorCallback:a})}},{key:"createSubject",value:function(e,t,n){return this.create({resource:By(),data:e,callback:t,errorCallback:n,eventPrefix:i.SUBJECT,invalidationKeys:[i.SUBJECTS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully created subject."),errorHandler:this.alertService.error("Failed to create subject.")})}},{key:"updateSubject",value:function(e,t,n,r){return this.update({resource:Hy(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_SUBJECT,":").concat(e),invalidationKeys:["".concat(i.SUBJECT,":").concat(e),i.SUBJECTS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully updated subject."),errorHandler:this.alertService.error("Failed to save subject.")})}},{key:"deleteSubject",value:function(e,t,n){var r=this;return this.delete({resource:zy(e),callback:t,errorCallback:n,eventPrefix:i.DELETE_SUBJECT,invalidationKeys:["".concat(i.SUBJECT,":").concat(e),i.SUBJECTS],successHandler:this.alertService.success("Successfully deleted subject."),errorHandler:function(e){var t=(null==e?void 0:e.code)===py.a.Conflict?"Cannot delete a subject with child subjects and/or classifications.":"Failed to delete subject.";r.alertService.error(t)()}})}},{key:"getObjectSubjects",value:function(e,t,n,r){return this.get({resource:qy(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.SUBJECTS),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectSubjects",value:function(e,t,n,r,a,o){var c=Ey.singularizeMemberType(n),u=["".concat(n,":").concat(e,":").concat(i.SUBJECTS)];return r&&u.push("".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)),u.push.apply(u,Iy(t.map((function(e){return"".concat(i.SUBJECTS,":").concat(e,":").concat(n)})))),this.update({resource:Jy(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_SUBJECTS,":").concat(e),invalidationKeys:u,successHandler:this.alertService.success("Successfully updated ".concat(c," subjects.")),errorHandler:this.alertService.error("Failed to update ".concat(c," subjects."))})}},{key:"addObjectsToSubject",value:function(e,t,n,r,a,o){var c=1===t.length?Ey.singularizeMemberType(n):n,u=["".concat(i.SUBJECT,":").concat(e,":").concat(n)].concat(Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.SUBJECTS)}))),Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)}))));return this.create({resource:$y(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.ADD_TO_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to subject.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to subject."))})}},{key:"removeObjectsFromSubject",value:function(e,t,n,r,a){var o=1===t.length?Ey.singularizeMemberType(n):n,c=["".concat(i.SUBJECT,":").concat(e,":").concat(n)].concat(Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.SUBJECTS)}))));return this.delete({resource:Ky(e,t),callback:r,errorCallback:a,eventPrefix:"".concat(i.REMOVE_FROM_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(o," from subject.")),errorHandler:this.alertService.error("Failed to remove ".concat(o," from subject."))})}},{key:"getClassificationTree",value:function(e,t,n){return this.get({resource:Qy(e),formatData:function(e){return{children:e,name:ly.Root,id:null}},eventPrefix:"".concat(i.CLASSIFICATIONS,":").concat(e),expiryTime:dy.STANDARD,callback:t,errorCallback:n})}},{key:"getClassification",value:function(e,t,n){return this.get({resource:Xy(e),eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e),expiryTime:dy.STANDARD,callback:t,errorCallback:n})}},{key:"getClassificationMembers",value:function(e,t,n,r){return this.get({resource:ev(e,t),eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e,":").concat(t),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"createClassification",value:function(e,t,n){return this.create({resource:tv(),data:e,callback:t,errorCallback:n,eventPrefix:i.CLASSIFICATION,invalidationKeys:[i.CLASSIFICATIONS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully created classification."),errorHandler:this.alertService.error("Failed to create classification.")})}},{key:"updateClassification",value:function(e,t,n,r){return this.update({resource:nv(e),data:wa.a.omit(t,["followers"]),callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_CLASSIFICATION,":").concat(e),invalidationKeys:["".concat(i.CLASSIFICATION,":").concat(e),i.CLASSIFICATIONS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully updated classification."),errorHandler:this.alertService.error("Failed to save classification.")})}},{key:"deleteClassification",value:function(e,t,n){return this.delete({resource:rv(e),callback:t,errorCallback:n,eventPrefix:i.DELETE_CLASSIFICATION,invalidationKeys:["".concat(i.CLASSIFICATION,":").concat(e),i.CLASSIFICATIONS],successHandler:this.alertService.success("Successfully deleted classification"),errorHandler:this.alertService.error("Failed to delete classification")})}},{key:"getObjectClassifications",value:function(e,t,n,r){return this.get({resource:av(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.CLASSIFICATIONS),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectClassifications",value:function(e,t,n,r,a,o){var c=Ey.singularizeMemberType(r),u=["".concat(r,":").concat(e,":").concat(i.CLASSIFICATIONS)];return u.push.apply(u,Iy(n.map((function(e){return"".concat(i.CLASSIFICATION,":").concat(e,":").concat(r)})))),this.update({resource:iv(e,t),data:n,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_CLASSIFICATIONS,":").concat(e),invalidationKeys:u,successHandler:this.alertService.success("Successfully updated ".concat(c," classifications.")),errorHandler:this.alertService.error("Failed to update ".concat(c," classifications."))})}},{key:"addObjectsToClassification",value:function(e,t,n,r,a,o,c){var u=1===t.length?Ey.singularizeMemberType(n):n,s=["".concat(i.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&s.push(jv(r,a,n)),s.push.apply(s,Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)})))),this.create({resource:ov(e),data:t,callback:o,errorCallback:c,eventPrefix:"".concat(i.ADD_TO_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(u," to classification.")),errorHandler:this.alertService.error("Failed to add ".concat(u," to classification."))})}},{key:"removeObjectsFromClassification",value:function(e,t,n,r,a,o,c){var u=1===t.length?Ey.singularizeMemberType(n):n,s=["".concat(i.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&s.push(jv(r,a,n)),s.push.apply(s,Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)})))),this.delete({resource:cv(e,t),callback:o,errorCallback:c,eventPrefix:"".concat(i.REMOVE_FROM_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(u," from classification.")),errorHandler:this.alertService.error("Failed to remove ".concat(u," from classification."))})}},{key:"getLevels",value:function(e,t){return this.get({resource:uv(),eventPrefix:i.LEVELS,expiryTime:dy.STANDARD,callback:e,errorCallback:t})}},{key:"getLevel",value:function(e,t,n){return this.get({resource:sv(e),eventPrefix:"".concat(i.LEVEL,":").concat(e),expiryTime:dy.STANDARD,callback:t,errorCallback:n})}},{key:"getLevelMemberIds",value:function(e,t,n,r){return this.get({resource:lv(e,t),eventPrefix:"".concat(i.LEVEL,":").concat(e,":").concat(t),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"getLevelAudiences",value:function(e,t,n,r,a){return this.get({resource:fv(e,t,n),eventPrefix:Iv(e,t,n),expiryTime:dy.STANDARD,callback:r,errorCallback:a})}},{key:"createLevel",value:function(e,t,n){return this.create({resource:pv(),data:e,callback:t,errorCallback:n,eventPrefix:i.LEVEL,invalidationKeys:[i.LEVELS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully created level."),errorHandler:this.alertService.error("Failed to create level.")})}},{key:"updateLevel",value:function(e,t,n,r){return this.update({resource:dv(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_LEVEL,":").concat(e),invalidationKeys:["".concat(i.LEVEL,":").concat(e),i.LEVELS],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully updated level."),errorHandler:this.alertService.error("Failed to save level.")})}},{key:"getObjectLevels",value:function(e,t,n,r){return this.get({resource:mv(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.LEVELS),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectLevels",value:function(e,t,n,r,a,o){var c=Ey.singularizeMemberType(n),u=["".concat(n,":").concat(e,":").concat(i.LEVELS)];return r&&u.push("".concat(n,":").concat(e,":").concat(i.AUDIENCES)),this.update({resource:hv(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_LEVELS,":").concat(e),invalidationKeys:u,successHandler:this.alertService.success("Successfully updated ".concat(c," levels.")),errorHandler:this.alertService.error("Failed to update ".concat(c," levels."))})}},{key:"addObjectsToLevel",value:function(e,t,n,r,a,o){var c=1===t.length?ky.singularizeMemberType(n):n,u=["".concat(i.LEVEL,":").concat(e,":").concat(n)].concat(Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.LEVELS)}))),Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.AUDIENCES)}))));return this.create({resource:yv(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.ADD_TO_LEVEL,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to level.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to level."))})}},{key:"removeObjectsFromLevel",value:function(e,t,n,r,a){var o=1===t.length?ky.singularizeMemberType(n):n,c=["".concat(i.LEVEL,":").concat(e,":").concat(n)].concat(Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.LEVELS)}))));return this.delete({resource:vv(e,t),callback:r,errorCallback:a,eventPrefix:"".concat(i.REMOVE_FROM_LEVEL,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(o," from level.")),errorHandler:this.alertService.error("Failed to remove ".concat(o," from level."))})}},{key:"getAudiences",value:function(e,t,n){return this.get({resource:bv(e),callback:t,errorCallback:n,eventPrefix:"".concat(i.AUDIENCES,":").concat(e),expiryTime:dy.STANDARD})}},{key:"getAudience",value:function(e,t,n){return this.get({resource:gv(e),callback:t,errorCallback:n,eventPrefix:"".concat(i.AUDIENCE,":").concat(e),expiryTime:dy.STANDARD})}},{key:"getAudienceMembers",value:function(e,t,n,r){return this.get({resource:Sv(e,t),eventPrefix:"".concat(i.AUDIENCE,":").concat(e,":").concat(t),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"createAudience",value:function(e,t,n){return this.create({resource:Ev(),data:e,callback:t,errorCallback:n,eventPrefix:i.AUDIENCE,invalidationKeys:[i.AUDIENCES],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully created audience."),errorHandler:this.alertService.error("Failed to create audience.")})}},{key:"updateAudience",value:function(e,t,n,r){return this.update({resource:Cv(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_AUDIENCE,":").concat(e),invalidationKeys:["".concat(i.AUDIENCE,":").concat(e),i.AUDIENCES],expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully updated audience."),errorHandler:this.alertService.error("Failed to update audience.")})}},{key:"deleteAudience",value:function(e,t,n){return this.delete({resource:Ov(e),callback:t,errorCallback:n,eventPrefix:i.DELETE_AUDIENCE,invalidationKeys:["".concat(i.AUDIENCE,":").concat(e),i.AUDIENCES],successHandler:this.alertService.success("Successfully deleted audience"),errorHandler:this.alertService.error("Failed to delete audience")})}},{key:"getObjectAudiences",value:function(e,t,n,r){return this.get({resource:wv(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.AUDIENCES),expiryTime:dy.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectAudiences",value:function(e,t,n,r,a,o){var c=Ey.singularizeMemberType(r);return this.update({resource:Av(e,t),data:n,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_AUDIENCES,":").concat(e),invalidationKeys:["".concat(r,":").concat(e,":").concat(i.AUDIENCES)],successHandler:this.alertService.success("Successfully updated ".concat(c," audiences.")),errorHandler:this.alertService.error("Failed to update ".concat(c," audiences."))})}},{key:"addObjectsToAudience",value:function(e,t,n,r,a,o,c){var u=1===t.length?ky.singularizeMemberType(n):n,s=["".concat(i.AUDIENCE,":").concat(e,":").concat(n)];return r&&s.push(Iv(r,a,n)),s.push.apply(s,Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.AUDIENCES)})))),this.create({resource:Tv(e),data:t,callback:o,errorCallback:c,eventPrefix:"".concat(i.ADD_TO_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(u," to audience.")),errorHandler:this.alertService.error("Failed to add ".concat(u," to audience."))})}},{key:"removeObjectsFromAudience",value:function(e,t,n,r,a,o,c){var u=1===t.length?ky.singularizeMemberType(n):n,s=["".concat(i.AUDIENCE,":").concat(e,":").concat(n)];return r&&s.push(Iv(r,a,n)),s.push.apply(s,Iy(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.AUDIENCES)})))),this.delete({resource:kv(e,t),callback:o,errorCallback:c,eventPrefix:"".concat(i.REMOVE_FROM_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:dy.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(u," from audience.")),errorHandler:this.alertService.error("Failed to remove ".concat(u," from audience."))})}}])&&Py(t.prototype,n),r&&Py(t,r),o}(fy),_v={dataServiceName:s.SUBJECT,dataChannelName:u.SUBJECT},Pv={getSubjectTreeFetchOptions:function(e,t){return Object.assign(Object.assign({},_v),{eventPrefix:i.SUBJECTS,fetchData:function(e){return e.getSubjectTree()},setData:e,onError:t})},getSubjectFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.SUBJECT,":").concat(e),fetchData:function(t){return t.getSubject(e)},setData:t,onError:n,deleteEventPrefix:i.DELETE_SUBJECT})},getSubjectMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.SUBJECT,":").concat(e,":").concat(t),fetchData:function(n){return n.getSubjectMemberIds(e,t)},setData:n,onError:r})},getSubjectClassificationFetchOptions:function(e,t,n,r,a){return Object.assign(Object.assign({},_v),{eventPrefix:jv(e,n,r),fetchData:function(t){return t.getSubjectClassifications(e,n,r)},setData:t,onError:a})},getObjectSubjectsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.SUBJECTS),fetchData:function(n){return n.getObjectSubjects(e,t)},setData:n,onError:r})},getPresentationsFetchOptions:function(e,t){return Object.assign(Object.assign({},_v),{eventPrefix:i.PRESENTATIONS,fetchData:function(e){return e.getPresentations()},setData:e,onError:t})},getPresentationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.PRESENTATION,":").concat(e),fetchData:function(t){return t.getPresentation(e)},setData:t,onError:n})},getClassificationTreeFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.CLASSIFICATIONS,":").concat(e),fetchData:function(t){return t.getClassificationTree(e)},setData:t,onError:n})},getClassificationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e),fetchData:function(t){return t.getClassification(e)},setData:t,onError:n,deleteEventPrefix:i.DELETE_CLASSIFICATION})},getClassificationMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e,":").concat(t),fetchData:function(n){return n.getClassificationMembers(e,t)},setData:n,onError:r})},getObjectClassificationsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.CLASSIFICATIONS),fetchData:function(n){return n.getObjectClassifications(e,t)},setData:n,onError:r})},getLevelsFetchOptions:function(e,t){return Object.assign(Object.assign({},_v),{eventPrefix:i.LEVELS,fetchData:function(e){return e.getLevels()},setData:e,onError:t})},getLevelFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.LEVEL,":").concat(e),fetchData:function(t){return t.getLevel(e)},setData:t,onError:n})},getLevelMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.LEVEL,":").concat(e,":").concat(t),fetchData:function(n){return n.getLevelMemberIds(e,t)},setData:n,onError:r})},getLevelAudiencesFetchOptions:function(e,t,n,r,a){return Object.assign(Object.assign({},_v),{eventPrefix:Iv(e,n,r),fetchData:function(t){return t.getLevelAudiences(e,n,r)},setData:t,onError:a})},getObjectLevelsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.LEVELS),fetchData:function(n){return n.getObjectLevels(e,t)},setData:n,onError:r})},getAudiencesFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.AUDIENCES,":").concat(e),fetchData:function(t){return t.getAudiences(e)},setData:t,onError:n})},getAudienceFetchOptions:function(e,t,n){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.AUDIENCE,":").concat(e),fetchData:function(t){return t.getAudience(e)},setData:t,onError:n})},getAudienceMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(i.AUDIENCE,":").concat(e,":").concat(t),fetchData:function(n){return n.getAudienceMembers(e,t)},setData:n,onError:r})},getObjectAudiencesFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},_v),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.AUDIENCES),fetchData:function(n){return n.getObjectAudiences(e,t)},setData:n,onError:r})}},xv=function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[e.id]}},Nv=function(e,t){var n=e.backboneAudienceIds;return t.filter((function(e){return n.includes(e.id)}))};function Rv(e){var t=e.showLevels;return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,"Audiences"),!!t&&l.createElement("th",null,"Mapped Backbone Audience(s)")))}function Dv(e){var t,n=e.audience,r=e.levels;return l.createElement("tr",null,l.createElement("td",null,l.createElement(Ps,{appLink:(t=n,{application:c.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[t.presentationId,t.masterId]})},n.name)),l.createElement("td",null,r.map((function(e){return l.createElement(Ps,{key:e.id,appLink:xv(e),className:"mr-2"},e.name)}))))}function Mv(e){var t=e.audiences,n=e.levels;return l.createElement(Ia.Table,{responsive:!0,bordered:!0},l.createElement(Rv,{showLevels:!!t.length}),l.createElement("tbody",null,t.length?t.map((function(e){return l.createElement(Dv,{key:e.masterId,audience:e,levels:Nv(e,n)})})):l.createElement("tr",null,l.createElement("td",null,"This presentation has no audiences."))))}function Uv(e){var t=null===e.masterId||void 0===e.masterId,n=ua(),r=su(n);return l.createElement(ba,null,l.createElement(ou,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this audience",autoFocus:!0}),l.createElement(ou,{label:"Mapped Level(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return l.createElement("option",{key:e.id,value:e.id},e.name)}))),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Lf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(Ia.Button,{as:Ps,variant:"danger",appLink:{application:c.SUBJECTS,action:a.Subjects.DELETE_AUDIENCE,args:[e.presentationId,e.masterId]}},"Delete")))}function Fv(e){return l.createElement(Ta,{initialValues:e.audience,validationSchema:yy,onSubmit:e.saveAudience},l.createElement(Uv,{masterId:e.audience&&e.audience.masterId,presentationId:e.presentationId,levels:e.levels}))}function Vv(e){var t=e.objectAudiences,n=e.presentationAudiences;return t.filter((function(e){return n.some((function(t){return t.masterId===e.masterId}))}))}function Bv(e){var t,n,r,a,i,o=Ey.singularizeMemberType(e.memberType),c=(n=(t=e).presentationAudiences,r=t.objectLevels,a=t.objectAudiences,i=r.map((function(e){return e.id})),n.filter((function(e){return Vp.a.intersection(e.backboneAudienceIds,i).length||a.some((function(t){return t.masterId===e.masterId}))})));return l.createElement(l.Fragment,null,l.createElement("div",{className:"border-bottom pb-3 mb-3"},l.createElement("h6",null,"Backbone Audiences"),l.createElement("p",null,"Select which backbone audiences this ".concat(o," is mapped to.")),l.createElement("p",null,"To see how backbone audiences correspond to audiences, scroll down to the audience-backbone audience mappings table."),l.createElement(pb,{initialValues:{backboneAudienceIds:e.objectLevels.map((function(e){return e.id}))},saveLevels:e.saveLevels,levels:e.levels,memberType:e.memberType})),l.createElement("h6",null,"Audiences"),l.createElement("p",null,"Select a presentation to view its audiences and map them to this ".concat(o,".")),l.createElement("div",{className:"w-50 pb-3"},l.createElement(wb,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),l.createElement("p",null,"Audience to backbone audience mappings for this presentation are displayed below."),l.createElement(Mv,{levels:e.levels,audiences:e.presentationAudiences}),l.createElement("p",null,"Only the audiences which are mapped to a backbone audience that this"+" ".concat(o," is mapped to are displayed below.")),!!c.length&&l.createElement(zv,{initialValues:{audienceIds:Vv(e).map((function(e){return e.masterId}))},saveAudiences:e.saveAudiences,audiences:c}))}function Hv(e){var t=ua(),n=su(t);return l.createElement(ba,null,l.createElement(ou,{label:"Audience(s)",as:"select",name:"audienceIds",id:"audience-ids",multiple:!0,size:e.audiences.length,value:t.values.audienceIds},e.audiences.map((function(e){return l.createElement("option",{key:e.masterId,value:e.masterId},e.name)}))),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Lf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Audiences")))}function zv(e){return l.createElement(Ta,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.audienceIds;return e.saveAudiences(r,n)},enableReinitialize:!0},l.createElement(Hv,{audiences:e.audiences}))}var qv=function(e){return function(t){if(!e)return t.appLink.action===a.Subjects.EDIT_AUDIENCE;switch(e){case uy.Playlists:return t.appLink.action===a.Subjects.EDIT_AUDIENCE_PLAYLISTS;case uy.Series:return t.appLink.action===a.Subjects.EDIT_AUDIENCE_SERIES;case uy.Videos:return t.appLink.action===a.Subjects.EDIT_AUDIENCE_VIDEOS}}};function Jv(e){var t=e.presentation,n=e.audienceId,r=e.memberType;return t?l.createElement(l.Fragment,null,l.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:Ty(t.id,n),isItemActive:qv(r)}))):l.createElement(l.Fragment,null)}function $v(e){var t=e.item,n=e.getItemAppLink,r=e.actions;return l.createElement("tr",null,l.createElement("td",null,l.createElement(Ps,{appLink:n(t)},t.name)),r&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Dl,{actions:r}))))}function Kv(e){var t=e.items,n=e.memberType,r=e.getItemAppLink,a=e.getActions;if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this audience."));var i="".concat(zl(ky.singularizeMemberType(n))," Name");return l.createElement(Ia.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,i),h(a)&&l.createElement("th",null))),l.createElement("tbody",null,t.map((function(e){return l.createElement($v,{item:e,key:e.id,getItemAppLink:r,actions:h(a)&&a(e)})}))))}function Wv(e){var t=e.item,n=e.getItemAppLink,r=e.actions,a=e.pinState;return l.createElement("tr",null,l.createElement("td",null,l.createElement(Ps,{appLink:n(t)},t.name)),a.isPinnable&&l.createElement("td",null,l.createElement(Bs,{selected:parseInt(t.id)===parseInt(a.currentPinnedVideo),onToggle:function(e){return a.onChange(e,t.id)},id:t.id})),r&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Dl,{actions:r}))))}function Yv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xv(e){var t=e.items,n=e.memberType,r=e.classification,a=e.getItemAppLink,i=e.getActions,o=e.updatePinnedVideo,c=Zv(l.useState(!1),2),u=c[0],s=c[1],f=function(e,t){var n=e.pinnedVideoMasterId||null,r=Yv(l.useState(n),2),a=r[0],i=r[1];return{currentPinnedVideo:a,onChange:function(e,t){i(e?t:null)},canSubmit:n!==a,isPinnable:t===cy.Videos}}(r,n);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this classification."));var p="".concat(zl(Ey.singularizeMemberType(n))," Name");return l.createElement(l.Fragment,null,l.createElement(Ia.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,p),f.isPinnable&&l.createElement("th",null,"Pinned"),h(i)&&l.createElement("th",null))),l.createElement("tbody",null,t.map((function(e){return l.createElement(Wv,{item:e,key:e.id,getItemAppLink:a,actions:h(i)&&i(e),pinState:f})})))),f.isPinnable&&l.createElement(Lf,{showSpinner:u,onClick:function(){s(!0),o(f.currentPinnedVideo,(function(){return s(!1)}))},disabled:!f.canSubmit||u},"Save"))}function eb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nb=function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[e]}};function rb(e){var t,n,r,i,o,u=ua(),s=su(u),f=null===(null===(t=e.classification)||void 0===t?void 0:t.id)||void 0===(null===(n=e.classification)||void 0===n?void 0:n.id),p=!f||!(!u.values.parentIds||!u.values.parentIds.length),d=eb(l.useState(p),2),m=d[0],h=d[1];l.useEffect((function(){return h(p)}),[null===(r=e.classification)||void 0===r?void 0:r.id,u.values.parentIds]),l.useEffect((function(){u.values.backboneClassificationIds.length&&!u.touched.backboneClassificationIds&&u.setFieldTouched("backboneClassificationIds",!0)}),[u.values.backboneClassificationIds]);var y=function(e){return u.setFieldValue("parentIds",Vp.a.addOrRemove(u.values.parentIds.map((function(e){return e.toString()})),e.id.toString()))},v=function(e){return u.setFieldValue("backboneClassificationIds",Vp.a.addOrRemove(u.values.backboneClassificationIds.map((function(e){return e.toString()})),e.id.toString()))},b=function(e){return"".concat(La(u.errors,u.touched,e)," h-auto py-2")};return l.createElement(ba,null,l.createElement(ou,{label:"Name",name:"name",id:"name",value:u.values.name,placeholder:"Enter a name for this classification",autoFocus:!0}),l.createElement(ou,{as:"select",label:"Type",name:"type",id:"type",value:u.values.type},wa.a.getEnumKeys(my).map((function(e){return l.createElement("option",{key:e,value:my[e]},e)}))),l.createElement(ou,{as:"select",label:"Status",name:"status",id:"status",value:u.values.status,disabled:f},wa.a.getEnumKeys(hy).map((function(e){return l.createElement("option",{key:e,value:hy[e]},e)}))),l.createElement(ou,{label:"Emphasize",name:"emphasize",id:"emphasize",type:"checkbox",checked:u.values.emphasize}),l.createElement(ou,{label:"Can Be Preferred",name:"canBePreferred",id:"canBePreferred",type:"checkbox",checked:u.values.canBePreferred}),!f&&l.createElement(l.Fragment,null,l.createElement("label",null,"Total Followers:")," ",null===(i=e.classification.followers)||void 0===i?void 0:i.count),l.createElement(ou,{name:"parentIds"},(function(){var t,n,r;return l.createElement("div",{className:b("parentIds")},l.createElement(uf,{label:"Parent Classification(s)",tree:e.classificationTree,selectedIds:u.values.parentIds,onSelect:y,collapse:m,noSelectionMessage:"No parent selected, this will be a root classification.",isNodeDisabled:(n=e.classificationTree,r=null===(t=e.classification)||void 0===t?void 0:t.id,function(e){if(e.id===r)return!0;var t=$l.find(n,r);return!!$l.find(t,e.id)})}))})),l.createElement(ou,{name:"backboneClassificationIds"},(function(){return l.createElement("div",{className:b("backboneClassificationIds")},l.createElement(uf,{label:"Mapped Subject(s)",tree:e.subjectTree,selectedIds:u.values.backboneClassificationIds,onSelect:v,collapse:!f,getSelectedItemAppLink:nb}))})),l.createElement(Sl,{imageType:Ms.Covers,fieldName:"cover",application:c.SUBJECTS,uploadAction:a.Subjects.UPLOAD_IMAGE}),l.createElement(Sl,{imageType:Ms.Banners,fieldName:"banner",application:c.SUBJECTS,uploadAction:a.Subjects.UPLOAD_IMAGE}),l.createElement(Sl,{imageType:Ms.TallPosters,fieldName:"tallPoster",application:c.SUBJECTS,uploadAction:a.Subjects.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Lf,{showSpinner:u.isSubmitting,type:"submit",disabled:!s},f?"Create":"Save"),!f&&l.createElement(Ia.Button,{as:Ps,variant:"danger",appLink:{application:c.SUBJECTS,action:a.Subjects.DELETE_CLASSIFICATION,args:[e.presentationId,null===(o=e.classification)||void 0===o?void 0:o.id]}},"Delete")))}function ab(e){return l.createElement(Ta,{initialValues:e.classification,validationSchema:vy,onSubmit:e.saveClassification},l.createElement(rb,{presentationId:e.presentationId,classificationTree:e.classificationTree,subjectTree:e.subjectTree,classification:e.classification}))}var ib=function(e){return function(t){if(!e)return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION;switch(e){case cy.Playlists:return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;case cy.Series:return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION_SERIES;case cy.Videos:return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION_VIDEOS}}};function ob(e){var t=e.presentation,n=e.classificationId,r=e.memberType;return t?l.createElement(l.Fragment,null,l.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:wy(t.id,n),isItemActive:ib(r)}))):l.createElement(l.Fragment,null)}function cb(e){var t=ua(),n=su(t),r=function(e){return t.setFieldValue("classificationIds",Vp.a.addOrRemove(t.values.classificationIds.map((function(e){return e.toString()})),e.id.toString()))},i="".concat(La(t.errors,t.touched,"classificationIds")," h-auto py-2");return l.createElement(ba,null,l.createElement(ou,{name:"classificationIds"},(function(){return l.createElement("div",{className:i},l.createElement(uf,{label:"Mapped Classification(s)",tree:e.classificationTree,selectedIds:t.values.classificationIds,onSelect:r,getSelectedItemAppLink:(n=e.presentationId,function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[n,e]}}),isNodeDisabled:e.isClassificationDisabled}));var n})),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Lf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Classifications")))}function ub(e){return l.createElement(Ta,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.classificationIds;return e.saveClassifications(r,n)},enableReinitialize:!0},l.createElement(cb,{presentationId:e.presentationId,classificationTree:e.classificationTree,isClassificationDisabled:e.isClassificationDisabled}))}function sb(e){var t=null===e.id||void 0===e.id,n=ua(),r=su(n);return l.createElement(ba,null,l.createElement(ou,{label:"Name",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this level",autoFocus:!0}),l.createElement(Lf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"))}function lb(e){return l.createElement(Ta,{initialValues:e.level,validationSchema:by,onSubmit:e.saveLevel},l.createElement(sb,{id:e.level&&e.level.id}))}function fb(e){var t=Ey.singularizeMemberType(e.memberType),n=ua(),r=su(n);return l.createElement(ba,null,l.createElement(ou,{label:"Backbone Audience(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return l.createElement("option",{key:e.id,value:e.id},e.name)}))),l.createElement("p",null,l.createElement("strong",null,"Note:")," When removing a ".concat(t," from a backbone audience, that backbone audience's mapped audiences "),l.createElement("strong",null,"will not")," be automatically removed from."),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Lf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},"Save Backbone Audience")))}function pb(e){return l.createElement(Ta,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.backboneAudienceIds;return e.saveLevels(r,!1,n)}},l.createElement(fb,{levels:e.levels,memberType:e.memberType}))}var db=function(e){return function(t){return t.appLink.action===e}};function mb(e){var t=e.levelId,n=e.activeAction,r=e.presentationId;return l.createElement(l.Fragment,null,l.createElement(Ia.Alert,{variant:"danger"},"Warning: You are editing the backbone audiences."),l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:Ay(t,r),isItemActive:db(n)})))}var hb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function yb(e){return l.createElement(l.Fragment,null,e.audiences.map((function(t){return l.createElement("th",{key:t.masterId},l.createElement("span",{className:"d-inline-block"},l.createElement(Bs,{selected:e.getIsAudienceSelected(t),onToggle:function(n){return e.onToggleAudience(t.masterId,n)}})),l.createElement(Ps,{appLink:e.getAudienceAppLink(t.masterId)},function(e,t){return t?e.name:"Audience: ".concat(e.name)}(t,e.showAudienceSubHeader)))})))}function vb(e){var t=e.memberType,n=e.hasActions,r=e.audiences,a=hb(e,["memberType","hasActions","audiences"]),i="".concat(zl(ky.singularizeMemberType(t))," Name"),o=!!r&&!!r.length,c=o&&r.length>1,u=o?2:1,s=Object.assign({audiences:r,showAudienceSubHeader:c},a);return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",{rowSpan:u},i),o&&(c?l.createElement("th",{colSpan:r.length,className:"text-center"},"Audiences"):l.createElement(yb,Object.assign({},s))),n&&l.createElement("th",{rowSpan:u})),o&&c&&l.createElement("tr",null,l.createElement(yb,Object.assign({},s))))}function bb(e){var t=e.member,n=t.id,r=t.name,a=t.audiences,i=void 0===a?[]:a,o=e.getMemberAppLink,c=e.onToggleAudience,u=e.actions,s=h(o)&&o(n);return i.length&&!h(c)&&p.ErrorHelper.throw(new yu.a("onToggleAudience must be passed to LevelMemberItem")),l.createElement("tr",null,l.createElement("td",null,s?l.createElement(Ps,{appLink:o(n)},r):r),!!i.length&&i.map((function(e){return l.createElement("td",{key:e.id},l.createElement(Bs,{selected:e.selected,onToggle:function(t){return c(e.id,t,n)}}))})),u&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Dl,{actions:u}))))}var gb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Sb(e,t){return function(n){var r=n[e],a=ff(r);return!!a&&a===t.length}}function Eb(e){var t=e.members,n=e.memberType,r=e.getActions,a=e.audiences,i=e.getAudienceAppLink,o=e.onToggleAudience,c=gb(e,["members","memberType","getActions","audiences","getAudienceAppLink","onToggleAudience"]);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this level."));var u=h(r),s={memberType:n,audiences:a,getAudienceAppLink:i,getIsAudienceSelected:Sb(n,t),onToggleAudience:o,hasActions:u};return l.createElement(Ia.Table,{responsive:!0,bordered:!0},l.createElement(vb,Object.assign({},s)),l.createElement("tbody",null,t.map((function(e,t){return l.createElement(bb,Object.assign({key:t,member:e,actions:u&&r(e.id),onToggleAudience:o},c))}))))}function Cb(e){var t=ua();return l.createElement(ba,null,l.createElement(ou,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this presentation",autoFocus:!0}),l.createElement(ou,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this presentation here"}),l.createElement(ou,{as:"select",label:"Status",name:"status",id:"status",value:t.values.status,disabled:e.isNew},wa.a.getEnumKeys(Gp).map((function(e){return l.createElement("option",{key:e,value:Gp[e]},e)}))),l.createElement("div",{className:"btn-container d-flex justify-content-end"},l.createElement(Iu,{isNew:e.isNew})))}function Ob(e){var t;return l.createElement(Ta,{initialValues:e.presentation,validationSchema:gy,onSubmit:e.savePresentation},l.createElement(Cb,{isNew:!(null===(t=e.presentation)||void 0===t?void 0:t.id)}))}function wb(e){var t=e.presentations,n=e.currentPresentationId,r=e.setCurrentPresentation,a=e.label,i=function(e){var n=function(e,t){return Vp.a.first(t.filter((function(t){return t.id.toString()===e.toString()})))}(e,t);r(n)};return l.useEffect((function(){t&&!n&&r(Vp.a.first(t))}),[t]),l.createElement(l.Fragment,null,!!n&&l.createElement(l.Fragment,null,l.createElement(Ia.Form.Label,null,a),l.createElement(Ia.Form.Control,{as:"select",value:n,onChange:function(e){return i(e.target.value)},className:"cursor-pointer"},t.map((function(e){return l.createElement("option",{value:e.id,key:e.id},e.name)})))))}function Ab(e){return l.createElement(l.Fragment,null,l.createElement("h4",null,"".concat(zl(e.memberType))),l.createElement(Ia.Table,{responsive:!0},l.createElement("tbody",null,e.objects&&e.objects.map((function(t){return l.createElement("tr",{key:t.id},l.createElement("td",null,l.createElement(Ps,{appLink:Ey.getMemberAppLink(e.memberType,t.id)},t.name)))})))),l.createElement(Mb,{initialValues:{backboneClassificationIds:[]},subjectTree:e.subjectTree,saveSubjects:e.onClickAddToSubject,memberType:e.memberType,saveBtnText:"Add to backbone classification",subjectRequired:!0}))}function Tb(e){return function(e){if(Array.isArray(e))return kb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kb(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jb(e){var t=Ey.singularizeMemberType(e.memberType),n=[].concat(Tb(e.objectClassifications),Tb(e.objectSubjectClassifications)).map((function(e){return e.id}));return l.createElement(l.Fragment,null,l.createElement("div",{className:"border-bottom pb-3 mb-3"},l.createElement("h6",null,"Backbone Classifications"),l.createElement("p",null,"Select which backbone classifications this ".concat(t," is mapped to.")),l.createElement(Mb,{initialValues:{backboneClassificationIds:e.objectSubjects.map((function(e){return e.id}))},subjectTree:e.subjectTree,saveSubjects:e.saveSubjects,memberType:e.memberType,saveBtnText:"Save Backbone Classifications",allowMultiple:!0})),l.createElement("h6",null,"Classifications"),l.createElement("p",null,"Select a presentation to view its classifications and map them to this ".concat(t,".")),l.createElement("div",{className:"w-50 pb-3"},l.createElement(wb,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),e.currentPresentation&&e.classificationTree&&e.classificationTree.children.length?l.createElement(l.Fragment,null,l.createElement("p",null,"Only classifications which are mapped to one of the backbone classifications selected above can be selected."),l.createElement(ub,{initialValues:{classificationIds:e.objectClassifications.map((function(e){return e.id}))},presentationId:e.currentPresentation.id,classificationTree:e.classificationTree,saveClassifications:e.saveClassifications,isClassificationDisabled:function(e){return!n.includes(e.id)}})):l.createElement("p",null,"This presentation has no classifications."))}function Ib(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}wb.defaultProps={label:"Presentation"};function _b(e){var t=!e.id,n=ua(),r=su(n),i=!t||!!n.values.parentId,o=Ib(l.useState(i),2),u=o[0],s=o[1];l.useEffect((function(){return s(i)}),[e.id,n.values.parentId]);var f=function(e){var t=e.id===n.values.parentId?null:e.id;n.setFieldValue("parentId",t)},p="".concat(La(n.errors,n.touched,"parentId")," h-auto py-2");return l.createElement(ba,null,l.createElement(ou,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this backbone classification",autoFocus:!0}),l.createElement(ou,{name:"parentId"},(function(){return l.createElement("div",{className:p},l.createElement(uf,{label:"Parent Backbone Classification",tree:e.subjectTree,selectedIds:[n.values.parentId],onSelect:f,collapse:u,noSelectionMessage:"No parent selected, this will be a root backbone classification.",isNodeDisabled:(t=e.subjectTree,r=e.id,function(e){if(e.id===r)return!0;var n=$l.find(t,r);return!!$l.find(n,e.id)})}));var t,r})),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Lf,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(Ia.Button,{as:Ps,variant:"danger",appLink:{application:c.SUBJECTS,action:a.Subjects.DELETE_SUBJECT,args:[e.id]}},"Delete")))}function Pb(e){return l.createElement(Ta,{initialValues:e.subject,validationSchema:Sy,onSubmit:e.saveSubject},l.createElement(_b,{id:e.subject&&e.subject.id,subjectTree:e.subjectTree}))}var xb=function(e){return function(t){return t.appLink.action===e}};function Nb(e){var t=e.subjectId,n=e.activeAction,r=e.presentationId;return l.createElement(l.Fragment,null,l.createElement(Ia.Alert,{variant:"danger"},"Warning: You are editing the backbone classifications."),l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:Oy(t,r),isItemActive:xb(n)})))}var Rb=function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[e]}};function Db(e){var t=ua(),n=su(t),r=function(n){var r=e.allowMultiple?Vp.a.addOrRemove(t.values.backboneClassificationIds.map((function(e){return e.toString()})),n.id.toString()):[n.id];t.setFieldValue("backboneClassificationIds",r)},a="".concat(La(t.errors,t.touched,"backboneClassificationIds")," h-auto py-2");return l.createElement(ba,null,l.createElement(ou,{name:"backboneClassificationIds"},(function(){return l.createElement("div",{className:a},l.createElement(uf,{label:"Mapped Backbone Classification".concat(e.allowMultiple?"(s)":""),tree:e.subjectTree,selectedIds:t.values.backboneClassificationIds,onSelect:r,collapse:!!t.initialValues.backboneClassificationIds.length,getSelectedItemAppLink:Rb}))})),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Lf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.saveBtnText)))}function Mb(e){var t;return l.createElement(Ta,{initialValues:e.initialValues,validationSchema:(t=e.subjectRequired,ka.object().shape({backboneClassificationIds:t?ka.array().of(ka.string()).min(1,"A subject is required").required("A subject is required"):ka.array().of(ka.string())}).noUnknown()),onSubmit:function(t,n){var r=t.backboneClassificationIds;return e.saveSubjects(r,!1,n)}},l.createElement(Db,{subjectTree:e.subjectTree,memberType:e.memberType,allowMultiple:e.allowMultiple,saveBtnText:e.saveBtnText}))}Db.defaultProps={saveBtnText:"Save"};var Ub=function(e){return l.createElement("div",{className:"border rounded p-2 mb-3"},l.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.classifications&&e.classifications.length?l.createElement("ul",{className:"list-unstyled mb-0"},e.classifications.map((function(t){return l.createElement("li",{key:t.id,className:"py-1"},l.createElement(Ps,{appLink:(n=e.presentation.id,r=t.id,{application:c.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[n,r]})},t.name));var n,r}))):l.createElement("p",null,l.createElement("em",null,"There are no classifications mapped to this backbone classification in this presentation.")))},Fb=function(e){return l.createElement(l.Fragment,null,!!e.presentations&&!!e.classificationDictionary&&e.presentations.map((function(t){return l.createElement(Ub,{key:t.id,presentation:t,classifications:e.classificationDictionary[t.id]})})))},Vb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Bb(e){return l.createElement(l.Fragment,null,e.classifications.map((function(t){return l.createElement("th",{key:t.id},l.createElement("span",{className:"d-inline-block"},l.createElement(Bs,{selected:e.getIsClassificationSelected(t),onToggle:function(n){return e.onToggleClassification(t.id,n)}})),l.createElement(Ps,{appLink:e.getClassificationAppLink(t.id)},function(e,t){return t?e.name:"Classification: ".concat(e.name)}(t,e.showClassificationSubHeader)))})))}function Hb(e){var t=e.memberType,n=e.hasActions,r=e.classifications,a=Vb(e,["memberType","hasActions","classifications"]),i="".concat(zl(Ey.singularizeMemberType(t))," Name"),o=!!r&&!!r.length,c=o&&r.length>1,u=o?2:1,s=Object.assign({classifications:r,showClassificationSubHeader:c},a);return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",{rowSpan:u},i),o&&(c?l.createElement("th",{colSpan:r.length,className:"text-center"},"Classifications"):l.createElement(Bb,Object.assign({},s))),n&&l.createElement("th",{rowSpan:u})),o&&c&&l.createElement("tr",null,l.createElement(Bb,Object.assign({},s))))}function zb(e){var t=e.member,n=t.id,r=t.name,a=t.classifications,i=void 0===a?[]:a,o=e.getMemberAppLink,c=e.onToggleClassification,u=e.actions,s=h(o)&&o(n);return i.length&&!h(c)&&p.ErrorHelper.throw(new yu.a("onToggleClassification must be passed to SubjectMemberItem")),l.createElement("tr",null,l.createElement("td",null,s?l.createElement(Ps,{appLink:o(n)},r):r),!!i.length&&i.map((function(e){return l.createElement("td",{key:e.id},l.createElement(Bs,{selected:e.selected,onToggle:function(t){return c(e.id,t,n)}}))})),u&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Dl,{actions:u}))))}var qb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Jb(e,t){return function(n){var r=n[e],a=ff(r);return!!a&&a===t.length}}function $b(e){var t=e.members,n=e.memberType,r=e.getActions,a=e.classifications,i=e.getClassificationAppLink,o=e.onToggleClassification,c=qb(e,["members","memberType","getActions","classifications","getClassificationAppLink","onToggleClassification"]);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this backbone classification."));var u=h(r),s={memberType:n,classifications:a,getClassificationAppLink:i,getIsClassificationSelected:Jb(n,t),onToggleClassification:o,hasActions:u};return l.createElement(Ia.Table,{responsive:!0,bordered:!0},l.createElement(Hb,Object.assign({},s)),l.createElement("tbody",null,t.map((function(e,t){return l.createElement(zb,Object.assign({key:t,member:e,actions:u&&r(e.id),onToggleClassification:o},c))}))))}function Kb(e){var t=e.navItems,n=e.currentAppLink;return l.createElement(Ia.Container,null,l.createElement(Ia.Navbar,{className:"justify-content-between align-items-center"},l.createElement(Ia.Nav,null,!!t&&t.map((function(e,t){return l.createElement(Ia.Nav.Item,{key:t},l.createElement(Ps,{appLink:e.appLink,className:"nav-link".concat(Vl.isItemActive(e,n)?" text-primary":"")},e.label))})))))}function Wb(e,t){l.useEffect((function(){e.presentations&&!e.currentPresentation&&Gh(t,"currentPresentation")(Vp.a.first(e.presentations))}),[e.presentations])}function Yb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zb(e){var t=ce.useBasicFetch(yh(e.playlistId)),n=ce.useBasicFetch(Fp()),r=Yb(l.useState({}),2),i=r[0],o=r[1],c=pp(s.SUBJECT);!function(e,t,n){var r=function(e){return Gh(n,e)};qh([Pv.getObjectLevelsFetchOptions(e,cy.Playlists,r("playlistLevels"))],[e]),Yh(Pv.getObjectAudiencesFetchOptions(e,cy.Playlists,r("playlistAudiences")),[e,t.playlistLevels]),qh([Pv.getPresentationsFetchOptions(r("presentations")),Pv.getLevelsFetchOptions(r("levels"))],[]),Yh(!!t.currentPresentation&&Pv.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.playlistId,i,o),Wb(i,o);var u=!!(i.presentations&&i.levels&&i.presentationAudiences&&i.playlistLevels&&i.playlistAudiences);return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Dh,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_AUDIENCES,currentUser:n.data}),l.createElement(Ml,{object:t.data}),!!u&&l.createElement(Bv,{objectLevels:i.playlistLevels,objectAudiences:i.playlistAudiences,presentations:i.presentations,currentPresentation:i.currentPresentation,setCurrentPresentation:Gh(o,"currentPresentation"),levels:i.levels,presentationAudiences:i.presentationAudiences,memberType:cy.Playlists,saveLevels:function(t,n,r){return c.updateObjectLevels(e.playlistId,t,cy.Playlists,n,r,r)},saveAudiences:function(t,n){return c.updateObjectAudiences(e.playlistId,i.currentPresentation.id,t,cy.Playlists,n,n)}}))}function Qb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||eg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xb(e){return function(e){if(Array.isArray(e))return tg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){if(e){if("string"==typeof e)return tg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tg(e,t):void 0}}function tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ng(e){var t=ce.useBasicFetch(yh(e.playlistId)),n=ce.useBasicFetch(Fp()),r=Qb(l.useState({}),2),i=r[0],o=r[1],c=pp(s.SUBJECT);!function(e,t,n){var r=function(e){return Gh(n,e)};qh([Pv.getSubjectTreeFetchOptions(r("subjectTree")),Pv.getPresentationsFetchOptions(r("presentations"))],[]),qh([Pv.getObjectSubjectsFetchOptions(e,cy.Playlists,r("playlistSubjects"))],[e]),Yh(!!t.currentPresentation&&Pv.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.playlistSubjects]);var a=function(e,t){return[].concat(Xb(t.subjectClassifications||[]),Xb(e))},i=t.playlistSubjects&&t.playlistSubjects.map((function(e){return Pv.getSubjectClassificationFetchOptions(e.id,Gh(n,"subjectClassifications",a))}));qh(i,[t.playlistSubjects],!!i),Yh(Pv.getObjectClassificationsFetchOptions(e,cy.Playlists,r("playlistClassifications")),[e,t.playlistSubjects])}(e.playlistId,i,o),Wb(i,o);var u=!!(i.playlistSubjects&&i.subjectTree&&i.presentations&&i.classificationTree&&i.playlistClassifications&&i.subjectClassifications);return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Dh,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_SUBJECTS,currentUser:n.data}),l.createElement(Ml,{object:t.data}),u&&l.createElement(jb,{objectSubjects:i.playlistSubjects,subjectTree:i.subjectTree,memberType:cy.Playlists,presentations:i.presentations,currentPresentation:i.currentPresentation,setCurrentPresentation:Gh(o,"currentPresentation"),objectClassifications:i.playlistClassifications,objectSubjectClassifications:i.subjectClassifications,classificationTree:i.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.playlistId,t,cy.Playlists,n,r,r)},saveClassifications:function(t,n){return c.updateObjectClassifications(e.playlistId,i.currentPresentation.id,t,cy.Playlists,n,n)}}))}var rg=function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var r=Vp.a.moveItem(e,t,n),a=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:a}}};function ag(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ig(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ig(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ig(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ug=function(e){return{application:c.VIDEOS,action:a.Videos.EDIT_VIDEO,args:[e.id]}};function sg(e){var t,n,r,i,o,u,s=Object(b.useDispatch)(),f=wp(),p=ce.useBasicFetch(yh(e.playlistId)),d=ce.useBasicFetch(Eh(e.playlistId)),m=ce.useBasicFetch(Fp()),h=og((n=null===(t=d.data)||void 0===t?void 0:t.data,r=ag(Object(l.useState)(),2),i=r[0],o=r[1],Object(l.useEffect)((function(){i&&(n.length!==i.length||function(e,t){var n=!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(n,i))&&o(null)}),[n]),[i,o]),2),y=h[0],v=h[1],g=y?{data:y,pagination:null}:d.data;return l.createElement(l.Fragment,null,!!m.data&&l.createElement(Dh,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_VIDEOS,currentUser:m.data}),l.createElement(Ml,{object:p.data}),!!g&&l.createElement(wf,{onSortEnd:function(t,n){if(t!==n){var r=rg(d.data.data,t,n),a=r.reorderRequest,i=r.reorderedItems;v(i);ce.fetch(s,Ch(e.playlistId,a,null,(function(){f.error("Failed to update playlist order."),v(null)})))}},videos:g,getVideoAppLink:ug,getVideoActions:(u=e.playlistId,function(e){return[{label:"Remove video",appLink:{application:c.PLAYLISTS,action:a.Playlists.REMOVE_VIDEO,args:[u.toString(),e.id.toString()]},className:"text-danger"}]}),emptyMessage:"There are no videos in this playlist."}))}function lg(){var e=Object(b.useDispatch)(),t=wp();return l.createElement(Rh,{savePlaylist:function(n,r){ce.fetch(e,bh(n,(function(e){t.success("Successfully created playlist."),function(e){e&&e.id&&p.AppLinkHelper.trigger({application:c.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]})}(e)}),(function(){t.error("Failed to create playlist.")}),r))}})}var fg="rating,thumbnail,glance,herobanner,tags",pg=function(e){return{url:"/api/master/v2/objects/".concat(e,"?query=").concat(fg),key:"videos:".concat(e)}},dg=function(e){var t=e.slice().sort();return{key:"videos:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},mg=function(e){return{url:"/ajax/hostedlibraries/rightsline/programs/".concat(e),key:"rightsline:videos:".concat(e),normalizeOptions:{namespace:"rightsline"}}},hg=function(e,t,n,r,a){return{key:"videos:".concat(e),url:"/api/master/v2/objects/".concat(e),data:t,type:ue.a.PUT,success:n,error:r,always:a}};function yg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bg(e){var t=Object(b.useDispatch)(),n=wp(),r=ce.useBasicFetch(yh(e.playlistId)),a=ce.useBasicFetch(pg(e.videoId)),i=yg(l.useState(!1),2),o=i[0],c=i[1];var u=!!r.data&&!!a.data;return l.createElement(Tp,{title:"Remove Video",closePopup:e.closePopup,showLoadingSpinner:!u},!!u&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,a.data.name)," from ",l.createElement("strong",null,r.data.name),"?")),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){c(!0),ce.fetch(t,Oh(e.playlistId,e.videoId,(function(){n.success("Successfully removed video from playlist")}),(function(){n.error("Failed to remove video from playlist")}),e.closePopup))},buttonText:"Yes, remove video",isSpinnerButton:!0,showSpinner:o}]})))}function gg(e){return p.AppLinkHelper.trigger(function(e){return{application:c.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]}}(e))}function Sg(e){var t=e?{application:c.PLAYLISTS,action:a.Playlists.SEARCH_PLAYLISTS,params:{query:e}}:{application:c.PLAYLISTS,action:a.Playlists.PLAYLISTS};p.AppLinkHelper.trigger(t)}function Eg(e){return l.createElement("div",{className:"pb-3 w-50"},l.createElement(ls,{initialQuery:e.query,placeholder:"Search for a playlist",onSuggestionSelected:gg,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/playlists/instant/raw","?query=").concat(e)},activationLength:2,onSubmit:Sg}))}var Cg=c.PLAYLISTS,Og=function(e){return{application:Cg,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]}};function wg(e){var t=ce.useBasicFetch(mh(e.cursor));return l.createElement(l.Fragment,null,l.createElement(Eg,null),l.createElement(Tl,{collection:t.data,columns:[{header:"Name",accessor:"name",appLink:Og},{header:"Internal Description",accessor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.internalDescription}}],collectionAppLink:{application:Cg,action:a.Playlists.PLAYLISTS},newObjectAppLink:{application:Cg,action:a.Playlists.NEW_PLAYLIST},objectName:"Playlist"}))}var Ag=c.PLAYLISTS,Tg=function(e){return{application:Ag,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]}};function kg(e){var t,n,r=ce.useBasicFetch(hh(e.query,e.cursor)),i=ce.useBasicFetch(!!(null===(n=null===(t=r.data)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)&&wh(r.data.data.map((function(e){return e.id})))),o=i.isComplete&&function(e,t){var n,r;return(null==t?void 0:t.length)?Object.assign(Object.assign({},e),{data:null!==(r=null===(n=e.data)||void 0===n?void 0:n.map((function(e){return Object.assign(Object.assign({},e),{metadata:t.find((function(t){return t.playlistId.toString()===e.id.toString()}))})})))&&void 0!==r?r:[]}):e}(r.data,i.data);return l.createElement(l.Fragment,null,l.createElement(Eg,{query:e.query}),!!r.data&&(r.data.data.length?l.createElement(Tl,{collection:o,columns:[{header:"Name",accessor:"name",appLink:Tg},{header:"Internal Description",accessor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.internalDescription}}],collectionAppLink:{application:Ag,action:a.Playlists.SEARCH_PLAYLISTS,params:{query:e.query}},newObjectAppLink:{application:Ag,action:a.Playlists.NEW_PLAYLIST},objectName:"Playlist"}):l.createElement("p",null,"No playlists found, please try a different search query.")))}function jg(e){return{application:c.PLAYLISTS,action:a.Playlists.DASHBOARD,args:[e.dashboardId]}}function Ig(e){return[{label:"Remove playlist from dashboard",appLink:{application:c.PLAYLISTS,action:a.Playlists.DELETE_DASHBOARD_WIDGET,args:[e.dashboardId,e.id]},className:"text-danger"}]}function Lg(e){var t=ce.useBasicFetch(yh(e.playlistId)),n=ce.useBasicFetch(kh(e.playlistId)),r=ce.useBasicFetch(Fp());return f.a.createElement(f.a.Fragment,null,!!r.data&&f.a.createElement(Dh,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_DASHBOARDS,currentUser:r.data}),f.a.createElement(Ml,{object:t.data}),!!n.data&&(n.data.length?f.a.createElement(Al,{objects:n.data,columns:[{header:"Dashboard",accessor:function(e){var t;return null===(t=e.dashboard)||void 0===t?void 0:t.name},appLink:jg},{accessor:function(e){return f.a.createElement("span",{className:"d-flex justify-content-end"},f.a.createElement(Dl,{actions:Ig(e)}))}}]}):f.a.createElement("p",null,"This playlist isn't in any dashboards.")))}function _g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xg(e){var t=_g(f.a.useState(!1),2),n=t[0],r=t[1],a=Object(b.useDispatch)(),i=wp(),o=ce.useBasicFetch(Th(e.dashboardId,e.widgetId)),c=ce.useBasicFetch(Ah(e.dashboardId)),u=ce.useBasicFetch(!!o.data&&yh(o.data.collectionId)),s=!!o.data&&!!c.data&&!!u.data;return f.a.createElement(Tp,{title:"Remove playlist from dashboard",closePopup:e.closePopup,showLoadingSpinner:!s},!!s&&f.a.createElement(f.a.Fragment,null,f.a.createElement("div",null,f.a.createElement("p",null,"Are you sure you want to remove ",f.a.createElement("strong",null,u.data.name)," from ",f.a.createElement("strong",null,c.data.name),"?"),f.a.createElement("p",null,f.a.createElement("em",null,"Note: This is the same as deleting the widget from the dashboard."))),f.a.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){r(!0),ce.fetch(a,jh(c.data.id,o.data.id,u.data.id,(function(){i.success("Successfully removed playlist from dashboard")}),(function(){i.error("Failed to remove playlist from dashboard")}),e.closePopup))},buttonText:"Yes, remove playlist",isSpinnerButton:!0,showSpinner:n}]})))}function Ng(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dg=function(e,t,n){return[{variant:"link",onClick:t,buttonText:"Cancel"},{variant:"danger",onClick:e,buttonText:"Yes, delete this audience",isSpinnerButton:!0,showSpinner:n}]};function Mg(e){var t=e.id,n=e.routeToOnDelete,r=e.closePopup,a=Ng(l.useState(),2),i=a[0],o=a[1],c=Ng(l.useState(!1),2),u=c[0],f=c[1],d=pp(s.SUBJECT);Yh(Pv.getAudienceFetchOptions(t,o),[t]);return l.createElement(Tp,{title:"Delete Audience",closePopup:r,showLoadingSpinner:!i},!!i&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,i.name),"?")),l.createElement(jp,{buttons:Dg((function(){f(!0);d.deleteAudience(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)}),r,u)})))}function Ug(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vg(e){var t=e.presentationId,n=e.audienceId,r=Ug(l.useState(),2),a=r[0],i=r[1],o=Ug(l.useState(),2),c=o[0],u=o[1],f=Ug(l.useState(),2),p=f[0],d=f[1],m=pp(s.SUBJECT);Yh(Pv.getAudienceFetchOptions(n,i),[n]),Yh(Pv.getLevelsFetchOptions(u),[]),Yh(Pv.getPresentationFetchOptions(t,d),[t]);return l.createElement(l.Fragment,null,l.createElement(Jv,{presentation:p,audienceId:n}),!!p&&l.createElement("h6",null,"Presentation: ".concat(p.name)),!!a&&!!c&&l.createElement(Fv,{audience:a,levels:c,saveAudience:function(e,r){return m.updateAudience(n,Object.assign(Object.assign({},e),{presentationId:t}),r,r)},presentationId:t}))}function Bg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zg=function(e){return{application:c.SUBJECTS,action:a.Subjects.PRESENTATION_AUDIENCES,args:[e]}};function qg(e){var t=e.presentationId,n=Bg(l.useState(),2),r=n[0],i=n[1],o=Bg(l.useState(),2),u=o[0],f=o[1],d=pp(s.SUBJECT);Yh(Pv.getLevelsFetchOptions(i),[]),Yh(Pv.getPresentationFetchOptions(t,f),[t]);return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-2"},l.createElement(xs,{appLink:zg(t),backToName:"audiences"})),!!u&&l.createElement("h6",null,"Presentation: ".concat(u.name)),!!r&&l.createElement(Fv,{levels:r,presentationId:t,saveAudience:function(e,n){return d.createAudience(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]})}}(t,n),n)}}))}var Jg=n(215),$g=n.n(Jg);function Kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yg(e){var t=e.presentationId,n=e.selectedAudienceId,r=Kg(l.useState(),2),i=r[0],o=r[1];Yh(Pv.getAudiencesFetchOptions(t,o),[]);var u=function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[t,e.masterId]}},s={application:c.SUBJECTS,action:a.Subjects.NEW_AUDIENCE,args:[t]};return l.createElement("div",{className:"".concat($g.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Audiences"),l.createElement(Ps,{appLink:s,className:"d-inline-block pb-2"},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New Audience")),l.createElement("div",{className:"border-top pt-1"},l.createElement("ul",{className:"list-unstyled"},i&&i.map((function(e){return l.createElement("li",{className:"position-relative py-1"},l.createElement(Ps,{className:(null==n?void 0:n.toString())===e.masterId.toString()?"text-primary font-weight-500":"",appLink:u(e)},e.name))})))))}function Gg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Zg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qg(e){var t=e.presentationId,n=e.audienceId,r=e.memberType,a=Gg(l.useState(),2),i=a[0],o=a[1],c=Gg(l.useState(),2)[1],u=Gg(l.useState(),2),s=u[0],f=u[1];Yh(Pv.getPresentationFetchOptions(t,o),[]),Yh(Pv.getAudienceFetchOptions(n,c),[n]),Yh(Pv.getAudienceMembersFetchOptions(n,r,f),[n,r]);var p={items:s&&s.data,memberType:r,getItemAppLink:function(e){return ky.getMemberAppLink(r,e.id)},getActions:function(e){return ky.getMemberActions(n,oy.Audience,r,e.id)}},d={presentation:i,audienceId:n},m=Bl(p);return l.createElement(l.Fragment,null,l.createElement(Jv,Object.assign({},d,{memberType:r})),m&&l.createElement(Kv,Object.assign({},p)))}function Xg(e){return{application:c.SUBJECTS,action:a.Subjects.NEW_CLASSIFICATION,args:[e]}}function eS(e){return[{label:"Add child",getAppLink:function(t){return Object.assign(Object.assign({},Xg(e)),{args:[e],params:{parentId:t.id}})}},{label:"Delete classification",getAppLink:function(t){return{application:c.SUBJECTS,action:a.Subjects.DELETE_CLASSIFICATION,args:[e,t.id]}},className:"text-danger"}]}var tS=n(216),nS=n.n(tS);function rS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iS(e){var t=e.presentationId,n=e.selectedClassificationId,r=rS(l.useState(),2),i=r[0],o=r[1],u=rS(l.useState(),2),s=u[0],f=u[1];return function(e,t,n){qh([Pv.getClassificationTreeFetchOptions(e,t),Pv.getPresentationFetchOptions(e,n)],[e])}(t,o,f),l.createElement("div",{className:"".concat(nS.a.navContainer," h-auto pr-2 border-right")},!!s&&l.createElement("h6",{className:"border-bottom pb-2"},"Classifications (".concat(s.name,")")),l.createElement(Ps,{appLink:Xg(t),className:"d-inline-block pb-2"},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New Classification")),!!i&&l.createElement("div",{className:"border-top pt-1"},l.createElement(nf,{tree:i,getAppLink:function(e){return function(e,t){return{application:c.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[e,t.id]}}(t,e)},selectedIds:[n],actions:eS(t)})))}function oS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uS(e){var t=e.classificationId,n=e.routeToOnDelete,r=e.closePopup,a=oS(l.useState(),2),i=a[0],o=a[1],c=oS(l.useState(!1),2),u=c[0],f=c[1];Yh(Pv.getClassificationFetchOptions(t,o),[]);var d=pp(s.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){f(!0);d.deleteClassification(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this classification",isSpinnerButton:!0,showSpinner:u}];return l.createElement(Tp,{title:"Delete Classification",closePopup:r,showLoadingSpinner:!i},!!i&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,i.name),"?")),l.createElement(jp,{buttons:m})))}function sS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fS(e){var t=e.presentationId,n=e.classificationId,r=sS(l.useState(),2),a=r[0],i=r[1],o=sS(l.useState(),2),c=o[0],u=o[1],f=sS(l.useState(),2),p=f[0],d=f[1],m=sS(l.useState(),2),h=m[0],y=m[1],v=pp(s.SUBJECT),b=Pv.getClassificationFetchOptions(n,i),g=Pv.getPresentationFetchOptions(t,u),S=Pv.getClassificationTreeFetchOptions(t,d);Yh(Pv.getSubjectTreeFetchOptions(y),[]),Yh(b,[n]),qh([g,S],[t]);return l.createElement("div",null,l.createElement(ob,{presentation:c,classificationId:n}),!!a&&!!p&&!!h&&l.createElement(ab,{classification:a,presentationId:t,subjectTree:h,classificationTree:p,saveClassification:function(e,t){var r=Object.assign({pinnedVideoMasterId:(null==a?void 0:a.pinnedVideoMasterId)||null},e);return v.updateClassification(n,r,t,t)}}))}function pS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mS(e){var t=e.presentationId,n=e.classificationId,r=e.memberType,a=pS(l.useState(),2),i=a[0],o=a[1],c=pS(l.useState(),2),u=c[0],f=c[1],p=pS(l.useState(),2),d=p[0],m=p[1];Yh(Pv.getPresentationFetchOptions(t,o),[]),Yh(Pv.getClassificationFetchOptions(n,f),[n]),Yh(Pv.getClassificationMembersFetchOptions(n,r,m),[n,r]);var h=pp(s.SUBJECT),y={items:d&&d.data,memberType:r,classification:u,updatePinnedVideo:function(e,t){var r=Object.assign(Object.assign({},u),{pinnedVideoMasterId:e});h.updateClassification(n,r,t)},getItemAppLink:function(e){return Ey.getMemberAppLink(r,e.id)},getActions:function(e){return Ey.getMemberActions(n,oy.Classification,r,e.id)}},v={presentation:i,classificationId:n},b=Bl(y);return l.createElement(l.Fragment,null,l.createElement(ob,Object.assign({},v,{memberType:r})),b&&l.createElement(Xv,Object.assign({},y)))}function hS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vS(e){var t=e.presentationId,n=e.parentId,r=hS(l.useState(),2),i=r[0],o=r[1],u=hS(l.useState(),2),f=u[0],d=u[1],m=pp(s.SUBJECT),h=Pv.getClassificationTreeFetchOptions(t,o);Yh(Pv.getSubjectTreeFetchOptions(d),[]),Yh(h,[t]);return l.createElement("div",null,l.createElement("h4",{className:"py-2"},"Create New Classification"),!!f&&!!i&&l.createElement(ab,{classification:n?{parentIds:[n]}:{},presentationId:t,subjectTree:f,classificationTree:i,saveClassification:function(e,n){return m.createClassification(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),n&&n.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]})}}(t,n),n)}}))}var bS=function(e){return{key:"series:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=thumbnail,tallPoster,banner,rating")}},gS=function(e){var t=e.slice().sort();return{key:"series:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},SS=function(e,t,n,r){return{url:"/api/master/v2/series",key:"series",data:e,type:ue.a.POST,success:t,error:n,always:r}},ES=function(e,t,n,r,a){return{url:"/api/master/v2/objects/".concat(e),key:"update:series:".concat(e),data:t,type:ue.a.PUT,success:n,error:r,always:a}};function CS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wS(e){var t=CS(l.useState(),2),n=t[0],r=t[1],a=CS(l.useState(!1),2),i=a[0],o=a[1],c=ce.useBasicFetch(function(e,t){switch(e){case cy.Playlists:return yh(t);case cy.Series:return bS(t);case cy.Videos:return pg(t)}}(e.memberType,e.memberId)),u=pp(s.SUBJECT);Yh(Pv.getClassificationFetchOptions(e.classificationId,r),[e.classificationId]);var f=!!n&&!!c.data,p="Remove ".concat(zl(Ey.singularizeMemberType(e.memberType)));return l.createElement(Tp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"This will not remove it from the backbone subject.")),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),u.removeObjectsFromClassification(e.classificationId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup),n.pinnedVideoMasterId===e.memberId&&u.updateClassification(e.classificationId,Object.assign(Object.assign({},n),{pinnedVideoMasterId:null}))},buttonText:"Yes, remove this ".concat(Ey.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function AS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return TS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kS(e){var t=e.id,n=AS(l.useState(),2),r=n[0],i=n[1],o=pp(s.SUBJECT);Yh(Pv.getLevelFetchOptions(t,i),[t]);return l.createElement(l.Fragment,null,l.createElement(mb,{levelId:t,activeAction:a.Subjects.EDIT_LEVEL}),l.createElement("h4",{className:"py-2"},"Edit Level"),!!r&&l.createElement(lb,{level:r,saveLevel:function(e,n){return o.updateLevel(t,e,n,n)}}))}function jS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return IS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LS(){var e=jS(l.useState(),2),t=e[0],n=e[1];return Yh(Pv.getLevelsFetchOptions(n),[]),l.useEffect((function(){t&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[Vp.a.first(t).id]},{replace:!0})}),[t]),l.createElement(l.Fragment,null)}function _S(){var e=pp(s.SUBJECT);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Level"),l.createElement(lb,{saveLevel:function(t,n){return e.createLevel(t,function(e){return function(t){e(),t&&t.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[t.id]})}}(n),n)}}))}var PS=n(217),xS=n.n(PS);function NS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DS(e){var t=e.selectedLevelId,n=NS(l.useState(),2),r=n[0],i=n[1];Yh(Pv.getLevelsFetchOptions(i),[]);var o=function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[e.id]}},u={application:c.SUBJECTS,action:a.Subjects.NEW_LEVEL};return l.createElement("div",{className:"".concat(xS.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Backbone Audiences"),l.createElement(Ps,{appLink:u,className:"d-inline-block pb-2"},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New Backbone Audience")),l.createElement("div",{className:"border-top pt-1"},l.createElement("ul",{className:"list-unstyled"},r&&r.map((function(e){return l.createElement("li",{className:"position-relative py-1"},l.createElement(Ps,{className:(null==t?void 0:t.toString())===e.id.toString()?"text-primary font-weight-500":"",appLink:o(e)},e.name))})))))}var MS=function(e){return l.createElement("div",{className:"border rounded p-2 mb-3"},l.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.audiences&&e.audiences.length?l.createElement("ul",{className:"list-unstyled mb-0"},e.audiences.map((function(t){return l.createElement("li",{key:t.masterId,className:"py-1"},l.createElement(Ps,{appLink:(n=e.presentation.id,r=t.masterId,{application:c.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[n,r]})},t.name));var n,r}))):l.createElement("p",null,l.createElement("em",null,"There are no audiences mapped to this level in this presentation.")))},US=function(e){return l.createElement(l.Fragment,null,!!e.presentations&&!!e.audienceDictionary&&e.presentations.map((function(t){return l.createElement(MS,{key:t.id,presentation:t,audiences:e.audienceDictionary[t.id]})})))};function FS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BS(e){var t=e.levelId,n=FS(l.useState({}),2),r=n[0];return function(e,t){var n=function(e){return Gh(t,e)};Yh(Pv.getLevelAudiencesFetchOptions(e,n("audiences")),[e]),Yh(Pv.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),l.createElement(l.Fragment,null,l.createElement(mb,{levelId:t,activeAction:a.Subjects.LEVEL_AUDIENCES}),l.createElement(US,{presentations:r.presentations,audienceDictionary:Vp.a.groupBy(r.audiences,"presentationId")}))}function HS(e,t){return Gh(e,t)}function zS(e){switch(e){case uy.Playlists:return a.Subjects.EDIT_LEVEL_PLAYLISTS;case uy.Series:return a.Subjects.EDIT_LEVEL_SERIES;case uy.Videos:return a.Subjects.EDIT_LEVEL_VIDEOS}}function qS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return JS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $S(e){var t=qS(l.useState({}),2),n=t[0],r=t[1],i=n.presentations,o=n.audiences,u=n.memberIds,f=n.membersWithAudiences,d=ce.useBasicFetch(Array.isArray(u)&&u.length?function(e,t){switch(e){case uy.Playlists:return vh(t);case uy.Series:return gS(t);case uy.Videos:return dg(t)}}(e.memberType,u):null),m=pp(s.SUBJECT);function h(t){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:e.action,args:[e.levelId],params:{presentationId:t}})}!function(e,t,n){var r=e.presentationId,a=e.levelId,i=e.memberType;Yh(Pv.getPresentationsFetchOptions(HS(n,"presentations")),[]),Yh(Pv.getLevelMemberIdsFetchOptions(a,i,HS(n,"memberIds")),[a,i]),Yh(!!r&&Pv.getLevelAudiencesFetchOptions(a,HS(n,"audiences"),r,i),[a,i,r],!!r)}(e,0,r),function(e,t,n,r){var a=n.audiences;l.useEffect((function(){HS(r,"membersWithAudiences")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,audiences:n.map((function(n){return{id:n.masterId,selected:(r=t,a=n,!!a[e]&&!!a[e].data.filter((function(e){return e.id===r.id})).length)};var r,a}))}}))}(t.memberType,e,a))}),[e,a])}(d.data,e,n,r),l.useEffect((function(){!e.presentationId&&(null==i?void 0:i.length)&&h(Vp.a.first(i).id)}),[e.presentationId]);var y,v,b=!!e.presentationId&&!!o;return l.createElement(l.Fragment,null,l.createElement(mb,{levelId:e.levelId,presentationId:e.presentationId,activeAction:zS(e.memberType)}),l.createElement(Ia.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each audience in this level.")+" Change the selected presentation to view different audiences."),l.createElement("div",{className:"w-50 py-2"},!!i&&l.createElement(wb,{presentations:i,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),b&&l.createElement(Eb,{members:f||[],memberType:e.memberType,getMemberAppLink:function(t){return ky.getMemberAppLink(e.memberType,t)},getActions:function(t){return ky.getMemberActions(e.levelId,oy.Level,e.memberType,t)},audiences:o,getAudienceAppLink:e.presentationId&&(y=e.memberType,v=e.presentationId,function(e){var t,n=c.SUBJECTS,r=[v,e];switch(y){case uy.Playlists:t=a.Subjects.EDIT_AUDIENCE_PLAYLISTS;break;case uy.Series:t=a.Subjects.EDIT_AUDIENCE_SERIES;break;case uy.Videos:t=a.Subjects.EDIT_AUDIENCE_VIDEOS}return{application:n,action:t,args:r}}),onToggleAudience:function(t,n,r){return function(e,t,n,r,a,i,o){(o?e.addObjectsToAudience.bind(e):e.removeObjectsFromAudience.bind(e))(i,n,t,r,a)}(m,e.memberType,r?[r]:u,e.levelId,e.presentationId,t,n)}}))}function KS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return WS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YS(e){var t=KS(l.useState(),2),n=t[0],r=t[1],a=KS(l.useState(!1),2),i=a[0],o=a[1],c=ce.useBasicFetch(function(e,t){switch(e){case uy.Playlists:return yh(t);case uy.Series:return bS(t);case uy.Videos:return pg(t)}}(e.memberType,e.memberId)),u=pp(s.SUBJECT);Yh(Pv.getLevelFetchOptions(e.levelId,r),[e.levelId]);var f=!!n&&!!c.data,p="Remove ".concat(zl(ky.singularizeMemberType(e.memberType)));return l.createElement(Tp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"Please ensure that it is not in any audiences before removing.")),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),u.removeObjectsFromLevel(e.levelId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(ky.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function GS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ZS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QS(e){var t=e.id,n=GS(l.useState(),2),r=n[0],a=n[1],i=pp(s.SUBJECT);Yh(Pv.getPresentationFetchOptions(t,a),[t]);var o={presentation:r,savePresentation:function(e,n){i.updatePresentation(t,e,n,n)}},c=Bl(o);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Edit Presentation"),!!c&&l.createElement(Ob,Object.assign({},o)))}function XS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tE=function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_PRESENTATION,args:[e.id]}},nE={application:c.SUBJECTS,action:a.Subjects.NEW_PRESENTATION};function rE(){var e=XS(l.useState(),2),t=e[0],n=e[1];return Yh(Pv.getPresentationsFetchOptions(n),[]),l.createElement("div",null,l.createElement("div",{className:"d-flex justify-content-between mb-2"},l.createElement("h5",{className:"d-inline-block m-0"},"Select a presentation to edit:"),l.createElement(Ps,{appLink:nE,className:"d-block"},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New Presentation"))),l.createElement(Ul,{objects:t,getAppLink:tE}))}function aE(){var e=pp(s.SUBJECT);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Presentation"),l.createElement(Ob,{savePresentation:function(t,n){e.createPresentation(t,(function(e){n(),e&&e.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_PRESENTATION,args:[e.id]})}),n)}}))}function iE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cE(e){var t=e.objectType,n=e.getAppLink,r=iE(l.useState(),2),a=r[0],i=r[1];return Yh(Pv.getPresentationsFetchOptions(i),[]),l.createElement("div",null,l.createElement("h5",null,l.createElement(ju,{namespace:"subjects.selectPresentation",phrase:"heading",options:{objectType:t}})),l.createElement(Ul,{objects:a,getAppLink:n}))}function uE(e,t){return Gh(e,t)}function sE(e,t,n,r,i){var o=r.selectedSubject,u=function(){return uE(i,"showConfirmationPopup")(!1)};t.addObjectsToSubject(o.id,e.map((function(e){return e.id})),n.memberType,r.addToClassifications,(function(){u(),p.AppLinkHelper.trigger(function(e,t){var n={application:c.SUBJECTS,args:[e]};switch(t){case cy.Playlists:return Object.assign(Object.assign({},n),{action:a.Subjects.EDIT_SUBJECT_PLAYLISTS});case cy.Series:return Object.assign(Object.assign({},n),{action:a.Subjects.EDIT_SUBJECT_SERIES});case cy.Videos:return Object.assign(Object.assign({},n),{action:a.Subjects.EDIT_SUBJECT_VIDEOS})}}(o.id,n.memberType))}),u)}function lE(e,t,n){if(t&&n){var r=1===t.length?"this ".concat(Ey.singularizeMemberType(e)):"these ".concat(e);return"Add ".concat(r," to ").concat(n.name)}}function fE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dE(e,t){return function(n,r,a){a(),uE(t,"selectedSubject")($l.find(e.subjectTree,Vp.a.first(n))),uE(t,"addToClassifications")(r),uE(t,"showConfirmationPopup")(!0)}}function mE(e){var t=fE(l.useState({}),2),n=t[0],r=t[1],a=ce.useBasicFetch(function(e,t){switch(e){case cy.Playlists:return vh(t);case cy.Series:return gS(t);case cy.Videos:return dg(t)}}(e.memberType,e.objectIds)),i=pp(s.SUBJECT);!function(e,t){Yh(Pv.getSubjectTreeFetchOptions(uE(t,"subjectTree")),[])}(0,r);var o;return l.createElement(l.Fragment,null,!!a.data&&!!n.subjectTree&&l.createElement(Ab,{memberType:e.memberType,objects:a.data,subjectTree:n.subjectTree,onClickAddToSubject:dE(n,r)}),n.showConfirmationPopup&&l.createElement(Pp,{title:lE(e.memberType,a.data,n.selectedSubject),onClickConfirm:function(){return sE(a.data,i,e,n,r)},closePopup:function(){return e=!1,uE(r,"showConfirmationPopup")(e);var e}},l.createElement("p",null,"The following ".concat(e.memberType," will be added to "),l.createElement("strong",null,n.selectedSubject.name),n.addToClassifications?" and its mapped classifications:":":"),l.createElement("ul",null,a.data.map((function(e){return l.createElement("li",{key:e.id},e.name)}))),!n.addToClassifications&&l.createElement("p",null,"".concat(1===a.data.length?"It":"They"," will not be added to its mapped classifications.")),l.createElement("p",null,"".concat((o=e.memberType,zl(Ey.singularizeMemberType(o)))," to classification mappings can be managed from the "),l.createElement("strong",null,"Edit Subject ".concat(zl(e.memberType)," ")),"page.")))}function hE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vE(e){var t=e.subjectId,n=e.routeToOnDelete,r=e.closePopup,a=hE(l.useState(),2),i=a[0],o=a[1],c=hE(l.useState(!1),2),u=c[0],f=c[1];Yh(Pv.getSubjectFetchOptions(t,o),[]);var d=pp(s.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){f(!0);d.deleteSubject(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this backbone classification",isSpinnerButton:!0,showSpinner:u}];return l.createElement(Tp,{title:"Delete Subject",closePopup:r,showLoadingSpinner:!i},!!i&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,i.name),"?"),l.createElement("p",null,"Subjects that have mapped classifications cannot be deleted.")),l.createElement(jp,{buttons:m})))}function bE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SE(e){var t=e.subjectId,n=bE(l.useState(),2),r=n[0],i=n[1],o=bE(l.useState(),2),c=o[0],u=o[1],f=pp(s.SUBJECT),p=Pv.getSubjectFetchOptions(t,i);Yh(Pv.getSubjectTreeFetchOptions(u),[]),Yh(p,[t]);return l.createElement(l.Fragment,null,l.createElement(Nb,{subjectId:t,activeAction:a.Subjects.EDIT_SUBJECT}),!!r&&!!c&&l.createElement(Pb,{subject:r,subjectTree:c,saveSubject:function(e,n){return f.updateSubject(t,e,n,n)}}))}function EE(e,t){return Gh(e,t)}function CE(e){switch(e){case cy.Playlists:return a.Subjects.EDIT_SUBJECT_PLAYLISTS;case cy.Series:return a.Subjects.EDIT_SUBJECT_SERIES;case cy.Videos:return a.Subjects.EDIT_SUBJECT_VIDEOS}}function OE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AE(e){var t=OE(l.useState({}),2),n=t[0],r=t[1],i=n.presentations,o=n.classifications,u=n.memberIds,f=n.membersWithClassifications,d=ce.useBasicFetch(Array.isArray(u)&&function(e,t){switch(e){case cy.Playlists:return vh(t);case cy.Series:return gS(t);case cy.Videos:return dg(t)}}(e.memberType,u)),m=pp(s.SUBJECT);function h(t){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:e.action,args:[e.subjectId],params:{presentationId:t}})}!function(e,t,n){var r=e.subjectId,a=e.memberType,i=e.presentationId;Yh(Pv.getPresentationsFetchOptions(EE(n,"presentations")),[]),Yh(Pv.getSubjectMemberIdsFetchOptions(r,a,EE(n,"memberIds")),[r,a]),Yh(!!i&&Pv.getSubjectClassificationFetchOptions(r,EE(n,"classifications"),i,a),[r,a,i],!!i)}(e,0,r),function(e,t,n,r){var a=n.classifications;l.useEffect((function(){EE(r,"membersWithClassifications")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,classifications:n.map((function(n){return{id:n.id,selected:(r=t,a=n,!!a[e]&&!!a[e].data.filter((function(e){return e.id===r.id})).length)};var r,a}))}}))}(t.memberType,e,a))}),[e,a])}(d.data,e,n,r),l.useEffect((function(){!e.presentationId&&(null==i?void 0:i.length)&&h(Vp.a.first(i).id)}),[e.presentationId]);var y,v,b=!!e.presentationId&&!!o;return l.createElement(l.Fragment,null,l.createElement(Nb,{subjectId:e.subjectId,presentationId:e.presentationId,activeAction:CE(e.memberType)}),l.createElement(Ia.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each classification in this backbone classification.")+" Change the selected presentation to view different classifications."),l.createElement("div",{className:"w-50 py-2"},!!i&&l.createElement(wb,{presentations:i,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),b&&l.createElement($b,{members:f||[],memberType:e.memberType,getMemberAppLink:function(t){return Ey.getMemberAppLink(e.memberType,t)},getActions:function(t){return Ey.getMemberActions(e.subjectId,oy.Subject,e.memberType,t)},classifications:o,getClassificationAppLink:e.presentationId&&(y=e.memberType,v=e.presentationId,function(e){var t,n=c.SUBJECTS,r=[v,e];switch(y){case cy.Playlists:t=a.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;break;case cy.Series:t=a.Subjects.EDIT_CLASSIFICATION_SERIES;break;case cy.Videos:t=a.Subjects.EDIT_CLASSIFICATION_VIDEOS}return{application:n,action:t,args:r}}),onToggleClassification:function(t,n,r){return function(e,t,n,r,a,i,o){(o?e.addObjectsToClassification.bind(e):e.removeObjectsFromClassification.bind(e))(i,n,t,r,a)}(m,e.memberType,r?[r]:u,e.subjectId,e.presentationId,t,n)}}))}function TE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jE(e){var t=e.parentId,n=TE(l.useState(),2),r=n[0],i=n[1],o=pp(s.SUBJECT);Yh(Pv.getSubjectTreeFetchOptions(i),[]);var u={application:c.SUBJECTS,action:a.Subjects.PRESENTATIONS};return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-2 border-bottom"},l.createElement(xs,{backToName:"Presentations",appLink:u})),l.createElement("h4",{className:"py-2"},"Create New Subject"),!!r&&l.createElement(Pb,{subject:{parentId:t},subjectTree:r,saveSubject:function(e,t){return o.createSubject(e,function(e){return function(t){e(),t&&t.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[t.id]})}}(t),t)}}))}function IE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return LE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _E(e){var t=IE(l.useState(),2),n=t[0],r=t[1],a=IE(l.useState(!1),2),i=a[0],o=a[1],c=ce.useBasicFetch(function(e,t){switch(e){case cy.Playlists:return yh(t);case cy.Series:return bS(t);case cy.Videos:return pg(t)}}(e.memberType,e.memberId)),u=pp(s.SUBJECT);Yh(Pv.getSubjectFetchOptions(e.subjectId,r),[e.subjectId]);var f=!!n&&!!c.data,p="Remove ".concat(zl(Ey.singularizeMemberType(e.memberType)));return l.createElement(Tp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"Please ensure that it is not in any classifications before removing.")),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),u.removeObjectsFromSubject(e.subjectId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(Ey.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function PE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NE(e){var t=e.subjectId,n=PE(l.useState({}),2),r=n[0];return function(e,t){var n=function(e){return Gh(t,e)};Yh(Pv.getSubjectClassificationFetchOptions(e,n("classifications")),[e]),Yh(Pv.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),l.createElement(l.Fragment,null,l.createElement(Nb,{subjectId:t,activeAction:a.Subjects.SUBJECT_CLASSIFICATIONS}),l.createElement(Fb,{presentations:r.presentations,classificationDictionary:Vp.a.groupBy(r.classifications,"presentationId")}))}var RE=n(218),DE=n.n(RE);function ME(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return UE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FE(e){var t=e.selectedSubjectId,n=ME(l.useState(),2),r=n[0],i=n[1];Yh(Pv.getSubjectTreeFetchOptions(i),[]);var o=l.useCallback((function(e){return{application:c.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[e.id]}}),[]),u={application:c.SUBJECTS,action:a.Subjects.NEW_SUBJECT},s=[{label:"Add child",getAppLink:function(e){return Object.assign(Object.assign({},u),{params:{parentId:e.id}})}},{label:"Delete backbone classification",getAppLink:function(e){return{application:c.SUBJECTS,action:a.Subjects.DELETE_SUBJECT,args:[e.id]}},className:"text-danger"}];return l.createElement("div",{className:"".concat(DE.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Backbone Classifications"),l.createElement(Ps,{appLink:u,className:"d-inline-block pb-2"},l.createElement(nu,{svgName:Qc.Plus,size:tu.Small}),l.createElement("span",null,"New Backbone Classification")),!!r&&l.createElement("div",{className:"border-top pt-1"},l.createElement(nf,{tree:r,getAppLink:o,selectedIds:[t],actions:s})))}function VE(e){var t=e.currentAppLink;return l.createElement(Kb,{navItems:Cy(),currentAppLink:t})}function BE(e){return(BE="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 HE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zE(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 qE(e,t,n){return t&&zE(e.prototype,t),n&&zE(e,n),e}function JE(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&&$E(e,t)}function $E(e,t){return($E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function KE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=YE(e);if(t){var a=YE(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return WE(this,n)}}function WE(e,t){return!t||"object"!==BE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function YE(e){return(YE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GE=function(e){JE(n,e);var t=KE(n);function n(){return HE(this,n),t.apply(this,arguments)}return qE(n,[{key:"channelName",get:function(){return c.PLAYLISTS}},{key:"appRoutes",get:function(){return{"manage/playlists(/)":"index","manage/playlists/new(/)":"newPlaylist","manage/playlists/search(/)":"searchPlaylists","manage/playlists/:id(/)":"editPlaylist","manage/playlists/:id/videos(/)":"editPlaylistVideos","manage/playlists/:id/dashboards(/)":"editPlaylistDashboards","manage/playlists/:id/classifications(/)":"editPlaylistSubjects","manage/playlists/:id/audiences(/)":"editPlaylistAudiences"}}},{key:"appLinks",get:function(){return["deletePlaylist","removeVideo","uploadImage","removeFromSubject","deleteDashboardWidget"]}},{key:"externalRoutes",get:function(){return{"dashboards/:id(/)":"dashboard"}}}]),n}(p.AppRouter),ZE=function(e){JE(n,e);var t=KE(n);function n(){return HE(this,n),t.apply(this,arguments)}return qE(n,[{key:"initialize",value:function(){var e=this;wa.a.values(s).forEach((function(t){return fp.getInstance(t,e)}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"channelName",get:function(){return c.PLAYLISTS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:fh}}}},{key:"index",value:function(e){this.layout.showChildView(I,l.createElement(wg,{cursor:null==e?void 0:e.cursor}))}},{key:"searchPlaylists",value:function(e){this.layout.showChildView(I,l.createElement(kg,{query:null==e?void 0:e.query,cursor:null==e?void 0:e.cursor}))}},{key:"newPlaylist",value:function(){this.layout.showChildView(I,l.createElement(lg,null))}},{key:"editPlaylist",value:function(e){this.layout.showChildView(I,l.createElement(Mh,{key:e,playlistId:e}))}},{key:"editPlaylistVideos",value:function(e){this.layout.showChildView(I,l.createElement(sg,{key:e,playlistId:e}))}},{key:"editPlaylistDashboards",value:function(e){this.layout.showChildView(I,l.createElement(Lg,{key:e,playlistId:e}))}},{key:"editPlaylistSubjects",value:function(e){this.layout.showChildView(I,l.createElement(ng,{key:e,playlistId:e}))}},{key:"editPlaylistAudiences",value:function(e){this.layout.showChildView(I,l.createElement(Zb,{key:e,playlistId:e}))}},{key:"deletePlaylist",value:function(e){var t=Object.assign({playlistId:e},this.getPopupProps());this.layout.showChildView(L,l.createElement(_h,Object.assign({},t)))}},{key:"removeVideo",value:function(e,t){var n=Object.assign({playlistId:e,videoId:t},this.getPopupProps());this.layout.showChildView(L,l.createElement(bg,Object.assign({},n)))}},{key:"removeFromSubject",value:function(e,t){var n=Object.assign({subjectId:t,memberId:e,memberType:cy.Playlists},this.getPopupProps());this.layout.showChildView(L,l.createElement(_E,Object.assign({},n)))}},{key:"deleteDashboardWidget",value:function(e,t){var n=this;this.layout.showChildView(L,l.createElement(xg,{dashboardId:e,widgetId:t,closePopup:function(){return n.layout.closePopup()}}))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(L,l.createElement(lh,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Cs.Radio.channel(G.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(_,l.createElement(Nd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return GE}}]),n}(p.Application),QE=function(e){var t=e.children;return l.createElement(rl,null,t)},XE=function(){return{url:"/api/domain/v2/me/ratings",key:"ratings"}},eC=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ka.string().trim().max(350,"Description is too long").default(""),rating:ka.object().shape({id:ka.string()}).default({}).noUnknown(),tallPoster:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),banner:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown()}).noUnknown(),tC=function(e,t){var n=c.SERIES,r=a.Series,i=[{label:"Edit Series Details",appLink:{application:n,action:r.EDIT_SERIES,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_SERIES_VIDEOS,args:[t]}}];return ed(e)&&i.push.apply(i,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_SERIES_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_SERIES_AUDIENCES,args:[t]}}]),i};function nC(e){var t=ua(),n=su(t);return l.createElement(ba,null,l.createElement(ou,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this series",autoFocus:!0}),l.createElement(ou,{label:"Description",as:"textarea",name:"description",id:"description",maxLength:350,value:t.values.description,placeholder:"Describe this series here",showCharacterCounter:!0}),l.createElement(Fl,{ratings:e.ratings}),l.createElement(Sl,{imageType:Ms.TallPosters,fieldName:"tallPoster",application:c.SERIES,uploadAction:a.Series.UPLOAD_IMAGE}),l.createElement(Sl,{imageType:Ms.Banners,fieldName:"banner",application:c.SERIES,uploadAction:a.Playlists.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(Lf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.id?"Save":"Create"),!!e.actions&&l.createElement(Dl,{actions:e.actions})))}function rC(e){return l.createElement(Ta,{initialValues:e.series,validationSchema:eC,onSubmit:e.saveSeries},l.createElement(nC,{id:e.series&&e.series.id,ratings:e.ratings}))}function aC(e){return l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:tC(e.currentUser,e.seriesId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function iC(e){var t,n=Object(b.useDispatch)(),r=wp(),i=ce.useBasicFetch(bS(e.seriesId)),o=ce.useBasicFetch(XE()),u=ce.useBasicFetch(Fp());return l.createElement(l.Fragment,null,!!u.data&&l.createElement(aC,{seriesId:e.seriesId,activeAction:a.Series.EDIT_SERIES,currentUser:u.data}),!!i.data&&!!o.data&&l.createElement(rC,{series:i.data,saveSeries:function(t,a){ce.fetch(n,ES(e.seriesId,t,(function(){r.success("Successfully updated series.")}),(function(){r.error("Failed to update series.")}),a))},ratings:o.data}),l.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit series page ",l.createElement(Ps,{className:"info-link",appLink:(t=e.seriesId,{application:c.SERIES,action:a.Series.LEGACY_EDIT_SERIES,args:[t]})},"here"),"."))}function oC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uC(e){var t=oC(l.useState({}),2),n=t[0],r=t[1],i=ce.useBasicFetch(bS(e.seriesId)),o=ce.useBasicFetch(Fp()),c=pp(s.SUBJECT);!function(e,t,n){var r=function(e){return Gh(n,e)};Yh(Pv.getObjectLevelsFetchOptions(e,cy.Series,r("seriesLevels")),[e]),Yh(Pv.getObjectAudiencesFetchOptions(e,cy.Series,r("seriesAudiences")),[e,t.seriesLevels]),qh([Pv.getPresentationsFetchOptions(r("presentations")),Pv.getLevelsFetchOptions(r("levels"))],[]),Yh(!!t.currentPresentation&&Pv.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.seriesId,n,r),Wb(n,r);var u=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.seriesLevels&&n.seriesAudiences);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(aC,{seriesId:e.seriesId,activeAction:a.Series.EDIT_SERIES_AUDIENCES,currentUser:o.data}),l.createElement(Ml,{object:i.data}),!!u&&l.createElement(Bv,{objectLevels:n.seriesLevels,objectAudiences:n.seriesAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Gh(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:cy.Series,saveLevels:function(t,n,r){return c.updateObjectLevels(e.seriesId,t,cy.Series,n,r,r)},saveAudiences:function(t,r){return c.updateObjectAudiences(e.seriesId,n.currentPresentation.id,t,cy.Series,r,r)}}))}function sC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||fC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lC(e){return function(e){if(Array.isArray(e))return pC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fC(e,t){if(e){if("string"==typeof e)return pC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pC(e,t):void 0}}function pC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dC(e){var t=sC(l.useState({}),2),n=t[0],r=t[1],i=ce.useBasicFetch(bS(e.seriesId)),o=ce.useBasicFetch(Fp()),c=pp(s.SUBJECT);!function(e,t,n){var r=function(e){return Gh(n,e)};qh([Pv.getSubjectTreeFetchOptions(r("subjectTree")),Pv.getPresentationsFetchOptions(r("presentations"))],[]),Yh(Pv.getObjectSubjectsFetchOptions(e,cy.Series,r("seriesSubjects")),[e]),Yh(!!t.currentPresentation&&Pv.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.seriesSubjects]);var a=function(e,t){return[].concat(lC(t.subjectClassifications||[]),lC(e))},i=t.seriesSubjects&&t.seriesSubjects.map((function(e){return Pv.getSubjectClassificationFetchOptions(e.id,Gh(n,"subjectClassifications",a))}));qh(i,[t.seriesSubjects],!!i),Yh(Pv.getObjectClassificationsFetchOptions(e,cy.Series,r("seriesClassifications")),[e,t.seriesSubjects])}(e.seriesId,n,r),Wb(n,r);var u=!!(n.seriesSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.seriesClassifications&&n.subjectClassifications);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(aC,{seriesId:e.seriesId,activeAction:a.Series.EDIT_SERIES_SUBJECTS,currentUser:o.data}),l.createElement(Ml,{object:i.data}),u&&l.createElement(jb,{objectSubjects:n.seriesSubjects,subjectTree:n.subjectTree,memberType:cy.Series,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Gh(r,"currentPresentation"),objectClassifications:n.seriesClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.seriesId,t,cy.Series,n,r,r)},saveClassifications:function(t,r){return c.updateObjectClassifications(e.seriesId,n.currentPresentation.id,t,cy.Series,r,r)}}))}function mC(){var e=Object(b.useDispatch)(),t=wp(),n=ce.useBasicFetch(XE());return l.createElement(l.Fragment,null,!!n.data&&l.createElement(rC,{saveSeries:function(n,r){var i=function(){t.error("Failed to create series.")},o=function(e){t.success("Successfully created series."),function(e){p.AppLinkHelper.trigger({application:c.SERIES,action:a.Series.EDIT_SERIES,args:[e.id]})}(e)};ce.fetch(e,SS(n,(function(t){var n={permissions:Qp()};ce.fetch(e,ES(t.id,n,o,i,r))}),i))},ratings:n.data}))}function hC(e){return(hC="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 yC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vC(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 bC(e,t,n){return t&&vC(e.prototype,t),n&&vC(e,n),e}function gC(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&&SC(e,t)}function SC(e,t){return(SC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function EC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=OC(e);if(t){var a=OC(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return CC(this,n)}}function CC(e,t){return!t||"object"!==hC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function OC(e){return(OC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wC=function(e){gC(n,e);var t=EC(n);function n(){return yC(this,n),t.apply(this,arguments)}return bC(n,[{key:"channelName",get:function(){return c.SERIES}},{key:"appRoutes",get:function(){return{"manage/series/new(/)":"newSeries","manage/series/:id(/)":"editSeries","manage/series/:id/videos(/)":"editSeriesVideos","manage/series/:id/classifications(/)":"editSeriesSubjects","manage/series/:id/audiences(/)":"editSeriesAudiences","manage/legacy/series/:id(/)":"legacyEditSeries"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(p.AppRouter),AC=function(e){gC(n,e);var t=EC(n);function n(){return yC(this,n),t.apply(this,arguments)}return bC(n,[{key:"initialize",value:function(){var e=this;wa.a.values(s).forEach((function(t){return fp.getInstance(t,e)}))}},{key:"name",get:function(){return"Series Application"}},{key:"channelName",get:function(){return c.SERIES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:QE}}}},{key:"newSeries",value:function(){this.layout.showChildView(I,l.createElement(mC,null))}},{key:"editSeries",value:function(e){this.layout.showChildView(I,l.createElement(iC,{seriesId:e}))}},{key:"editSeriesVideos",value:function(e){this.legacyEditSeries(e)}},{key:"editSeriesSubjects",value:function(e){this.layout.showChildView(I,l.createElement(dC,{seriesId:e}))}},{key:"editSeriesAudiences",value:function(e){this.layout.showChildView(I,l.createElement(uC,{seriesId:e}))}},{key:"legacyEditSeries",value:function(e){p.LocationUtils.Redirect("/manage/legacy/series/".concat(e),!0)}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(L,l.createElement(lh,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Cs.Radio.channel(G.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(_,l.createElement(Nd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return wC}}]),n}(p.Application);function TC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jC(e){var t=TC(l.useState(),2),n=t[0],r=t[1],a=TC(l.useState(!1),2),i=a[0],o=a[1],c=ce.useBasicFetch(function(e,t){switch(e){case uy.Playlists:return yh(t);case uy.Series:return bS(t);case uy.Videos:return pg(t)}}(e.memberType,e.memberId)),u=pp(s.SUBJECT);Yh(Pv.getAudienceFetchOptions(e.audienceId,r),[e.audienceId]);var f=!!n&&!!c.data,p="Remove ".concat(zl(ky.singularizeMemberType(e.memberType)));return l.createElement(Tp,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"This will not remove it from the backbone level.")),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),u.removeObjectsFromAudience(e.audienceId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(ky.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function IC(e){return(IC="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 LC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _C(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 PC(e,t,n){return t&&_C(e.prototype,t),n&&_C(e,n),e}function xC(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&&NC(e,t)}function NC(e,t){return(NC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function RC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MC(e);if(t){var a=MC(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return DC(this,n)}}function DC(e,t){return!t||"object"!==IC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function MC(e){return(MC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var UC,FC=function(e){xC(n,e);var t=RC(n);function n(){return LC(this,n),t.apply(this,arguments)}return PC(n,[{key:"channelName",get:function(){return c.SUBJECTS}},{key:"appRoutes",get:function(){return{"manage/subjects(/)":"subjects","manage/subjects/add-objects(/)":"addSubjectMembers","manage/subjects/new(/)":"newSubject","manage/subjects/:id/edit(/)":"editSubject","manage/subjects/:id/edit/playlists(/)":"editSubjectPlaylists","manage/subjects/:id/edit/series(/)":"editSubjectSeries","manage/subjects/:id/edit/videos(/)":"editSubjectVideos","manage/subjects/:id/classifications(/)":"subjectClassifications","manage/subjects/classifications(/)":"classifications","manage/subjects/presentations/:id/classifications(/)":"presentationClassifications","manage/subjects/presentations/:id/classifications/new(/)":"newClassification","manage/subjects/presentations/:id/classifications/:id/edit(/)":"editClassification","manage/subjects/presentations/:id/classifications/:id/edit/playlists(/)":"editClassificationPlaylists","manage/subjects/presentations/:id/classifications/:id/edit/series(/)":"editClassificationSeries","manage/subjects/presentations/:id/classifications/:id/edit/videos(/)":"editClassificationVideos","manage/subjects/levels(/)":"levels","manage/subjects/levels/new(/)":"newLevel","manage/subjects/levels/:id(/)":"level","manage/subjects/levels/:id/edit(/)":"editLevel","manage/subjects/levels/:id/edit/playlists(/)":"editLevelPlaylists","manage/subjects/levels/:id/edit/series(/)":"editLevelSeries","manage/subjects/levels/:id/edit/videos(/)":"editLevelVideos","manage/subjects/levels/:id/audiences(/)":"levelAudiences","manage/subjects/audiences(/)":"audiences","manage/subjects/presentations/:id/audiences(/)":"presentationAudiences","manage/subjects/presentations/:id/audiences/new(/)":"newAudience","manage/subjects/presentations/:id/audiences/:id/edit(/)":"editAudience","manage/subjects/presentations/:id/audiences/:id/edit/playlists(/)":"editAudiencePlaylists","manage/subjects/presentations/:id/audiences/:id/edit/series(/)":"editAudienceSeries","manage/subjects/presentations/:id/audiences/:id/edit/videos(/)":"editAudienceVideos","manage/subjects/presentations(/)":"presentations","manage/subjects/presentations/new":"newPresentation","manage/subjects/presentations/:id(/)":"editPresentation"}}},{key:"appLinks",get:function(){return["deleteClassification","removeClassificationMember","deleteSubject","removeSubjectMember","deleteAudience","removeLevelMember","removeAudienceMember","uploadImage"]}}]),n}(p.AppRouter),VC=function(e){xC(n,e);var t=RC(n);function n(){return LC(this,n),t.apply(this,arguments)}return PC(n,[{key:"initialize",value:function(){var e=this;this.subjectDataService=fp.getInstance(s.SUBJECT,this),wa.a.values(s).forEach((function(t){return fp.getInstance(t,e)}))}},{key:"name",get:function(){return"Subjects Application"}},{key:"channelName",get:function(){return c.SUBJECTS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:rl,getTopNavView:this.getTopNav}}}},{key:"subjects",value:function(){this.subjectDataService.getSubjectTree((function(e){var t=!!e.children&&e.children[0];t?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[t.id]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.NEW_SUBJECT},{replace:!0})}))}},{key:"newSubject",value:function(e){var t={parentId:e.parentId};this.layout.showChildView(I,l.createElement(jE,Object.assign({key:e.parentId},t))),this.renderSubjectsLeftNav()}},{key:"editSubject",value:function(e){this.layout.showChildView(I,l.createElement(SE,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"editSubjectPlaylists",value:function(e,t){var n={subjectId:e,memberType:cy.Playlists,action:a.Subjects.EDIT_SUBJECT_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(I,l.createElement(AE,Object.assign({key:"".concat(e,":playlists")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectSeries",value:function(e,t){var n={subjectId:e,memberType:cy.Series,action:a.Subjects.EDIT_SUBJECT_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(I,l.createElement(AE,Object.assign({key:"".concat(e,":series")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectVideos",value:function(e,t){var n={subjectId:e,memberType:cy.Videos,action:a.Subjects.EDIT_SUBJECT_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(I,l.createElement(AE,Object.assign({key:"".concat(e,":videos")},n))),this.renderSubjectsLeftNav(e)}},{key:"subjectClassifications",value:function(e){this.layout.showChildView(I,l.createElement(NE,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"addSubjectMembers",value:function(e){var t=e.memberType,n=e.objectIds;if(t&&n){var r={memberType:t,objectIds:Array.isArray(n)?n:[n]};this.layout.showChildView(I,l.createElement(mE,Object.assign({},r))),this.hideLeftNav()}}},{key:"removeSubjectMember",value:function(e,t,n){var r=Object.assign({subjectId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(L,l.createElement(_E,Object.assign({},r)))}},{key:"deleteSubject",value:function(e){var t=e.toString()===this.currentLeftNavId.toString()?{application:c.SUBJECTS,action:a.Subjects.NEW_SUBJECT}:null,n=Object.assign({subjectId:e,routeToOnDelete:t||null},this.getPopupProps());this.layout.showChildView(L,l.createElement(vE,Object.assign({},n)))}},{key:"classifications",value:function(){var e={objectType:"classifications",getAppLink:function(e){return{application:c.SUBJECTS,action:a.Subjects.PRESENTATION_CLASSIFICATIONS,args:[e.id]}}};this.layout.showChildView(I,l.createElement(cE,Object.assign({},e))),this.hideLeftNav()}},{key:"presentationClassifications",value:function(e){this.subjectDataService.getClassificationTree(e,(function(t){var n=!!t.children&&t.children[0];n?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.NEW_CLASSIFICATION,args:[e]},{replace:!0})}))}},{key:"newClassification",value:function(e,t){var n={presentationId:e,parentId:t.parentId};this.layout.showChildView(I,l.createElement(vS,Object.assign({key:t.parentId},n))),this.renderClassificationLeftNav(e)}},{key:"editClassification",value:function(e,t){var n={presentationId:e,classificationId:t};this.layout.showChildView(I,l.createElement(fS,Object.assign({key:t},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationPlaylists",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:cy.Playlists};this.layout.showChildView(I,l.createElement(mS,Object.assign({key:"".concat(t,":playlists")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationSeries",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:cy.Series};this.layout.showChildView(I,l.createElement(mS,Object.assign({key:"".concat(t,":series")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationVideos",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:cy.Videos};this.layout.showChildView(I,l.createElement(mS,Object.assign({key:"".concat(t,":videos")},n))),this.renderClassificationLeftNav(e,t)}},{key:"removeClassificationMember",value:function(e,t,n){var r=Object.assign({classificationId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(L,l.createElement(wS,Object.assign({},r)))}},{key:"deleteClassification",value:function(e,t){var n=t===this.currentLeftNavId?{application:c.SUBJECTS,action:a.Subjects.NEW_CLASSIFICATION,args:[e]}:null,r=Object.assign({classificationId:t,routeToOnDelete:n||null},this.getPopupProps());this.layout.showChildView(L,l.createElement(uS,Object.assign({},r)))}},{key:"levels",value:function(){this.layout.showChildView(I,l.createElement(LS,null)),this.renderLevelsLeftNav()}},{key:"newLevel",value:function(){this.layout.showChildView(I,l.createElement(_S,null)),this.renderLevelsLeftNav()}},{key:"level",value:function(e){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[e]},{replace:!0})}},{key:"editLevel",value:function(e){this.layout.showChildView(I,l.createElement(kS,{key:e,id:e})),this.renderLevelsLeftNav(e)}},{key:"levelAudiences",value:function(e){this.layout.showChildView(I,l.createElement(BS,{key:e,levelId:e})),this.renderLevelsLeftNav(e)}},{key:"editLevelPlaylists",value:function(e,t){var n={levelId:e,memberType:uy.Playlists,action:a.Subjects.EDIT_LEVEL_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(I,l.createElement($S,Object.assign({key:"".concat(e,":playlists")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelSeries",value:function(e,t){var n={levelId:e,memberType:uy.Series,action:a.Subjects.EDIT_LEVEL_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(I,l.createElement($S,Object.assign({key:"".concat(e,":series")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelVideos",value:function(e,t){var n={levelId:e,memberType:uy.Videos,action:a.Subjects.EDIT_LEVEL_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(I,l.createElement($S,Object.assign({key:"".concat(e,":videos")},n))),this.renderLevelsLeftNav(e)}},{key:"removeLevelMember",value:function(e,t,n){var r=Object.assign({levelId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(L,l.createElement(YS,Object.assign({},r)))}},{key:"audiences",value:function(){var e={objectType:"audiences",getAppLink:function(e){return{application:c.SUBJECTS,action:a.Subjects.PRESENTATION_AUDIENCES,args:[e.id]}}};this.layout.showChildView(I,l.createElement(cE,Object.assign({},e))),this.hideLeftNav()}},{key:"removeAudienceMember",value:function(e,t,n){var r=Object.assign({audienceId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(L,l.createElement(jC,Object.assign({},r)))}},{key:"presentationAudiences",value:function(e){this.subjectDataService.getAudiences(e,(function(t){var n=!!t&&t[0];n?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:a.Subjects.NEW_AUDIENCE,args:[e]},{replace:!0})}))}},{key:"newAudience",value:function(e){this.layout.showChildView(I,l.createElement(qg,{presentationId:e})),this.hideLeftNav()}},{key:"editAudience",value:function(e,t){var n={presentationId:e,audienceId:t};this.layout.showChildView(I,l.createElement(Vg,Object.assign({key:t},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudiencePlaylists",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:uy.Playlists};this.layout.showChildView(I,l.createElement(Qg,Object.assign({key:"".concat(t,":playlists")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceSeries",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:uy.Series};this.layout.showChildView(I,l.createElement(Qg,Object.assign({key:"".concat(t,":series")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceVideos",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:uy.Videos};this.layout.showChildView(I,l.createElement(Qg,Object.assign({key:"".concat(t,":videos")},n))),this.renderAudienceLeftNav(e,t)}},{key:"deleteAudience",value:function(e,t){var n={application:c.SUBJECTS,action:a.Subjects.PRESENTATION_AUDIENCES,args:[e]},r=Object.assign({id:t,routeToOnDelete:n},this.getPopupProps());this.layout.showChildView(L,l.createElement(Mg,Object.assign({},r)))}},{key:"presentations",value:function(){this.layout.showChildView(I,l.createElement(rE,null)),this.hideLeftNav()}},{key:"newPresentation",value:function(){this.layout.showChildView(I,l.createElement(aE,null))}},{key:"editPresentation",value:function(e){this.layout.showChildView(I,l.createElement(QS,{key:e,id:e})),this.hideLeftNav()}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(L,l.createElement(lh,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Cs.Radio.channel(G.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(_,l.createElement(Nd,{alerts:n,removeAlert:r}))}},{key:"renderClassificationLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedClassificationId:t};this.layout.showChildView(j,l.createElement(iS,Object.assign({},n)))}},{key:"renderSubjectsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(j,l.createElement(FE,{selectedSubjectId:e}))}},{key:"renderAudienceLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedAudienceId:t};this.layout.showChildView(j,l.createElement(Yg,Object.assign({},n)))}},{key:"renderLevelsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(j,l.createElement(DS,{selectedLevelId:e}))}},{key:"setCurrentLeftNavItem",value:function(e){this.currentLeftNavId=e||null}},{key:"hideLeftNav",value:function(){this.setCurrentLeftNavItem(),this.layout.hideLeftNav()}},{key:"getTopNav",value:function(e){return l.createElement(VE,{currentAppLink:e})}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return FC}}]),n}(p.Application),BC=function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},HC=function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n}},zC=function(e,t,n,r){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:ue.a.POST,invalidationKeys:"themes",success:t,error:n,always:r}},qC=function(e,t,n,r,a){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:ue.a.PUT,success:n,error:r,always:a}},JC=function(e,t,n,r){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:ue.a.DELETE,invalidationKeys:"themes",success:t,error:n,always:r}},$C=function(e){return{application:c.THEMES,action:a.Themes.EDIT_THEME,args:[e.id]}};function KC(){var e=ce.useBasicFetch(HC());return e.data?l.createElement(Al,{objects:e.data,columns:[{accessor:"name",header:"Name",appLink:$C}],newObjectAppLink:{application:c.THEMES,action:a.Themes.NEW_THEME},objectName:"Theme"}):l.createElement(l.Fragment,null)}!function(e){e.Glance="glance"}(UC||(UC={}));var WC=[{key:"topLeft",label:"Top Left"},{key:"topRight",label:"Top Right"},{key:"bottomLeft",label:"Bottom Left"},{key:"bottomRight",label:"Bottom Right"}];function YC(){var e=ua();return l.createElement("div",{className:"form-group"},WC.map((function(t){var n="data.".concat(t.key);return l.createElement(Sl,{label:t.label,imageType:Ms.HeroBanners,fieldName:n,application:c.THEMES,uploadAction:a.Videos.UPLOAD_IMAGE,setSelectedImage:function(t){e.setFieldValue(n,{fileId:t.id,url:t.url,fileIdType:Fs.ImageAPIv2})}})})))}var GC=ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),ZC=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),type:ka.mixed().required("Type is required"),data:ka.mixed().when("type",{is:UC.Glance,then:ka.object().shape({topLeft:GC,topRight:GC,bottomLeft:GC,bottomRight:GC}).noUnknown(),otherwise:ka.mixed().strip(!0)}).default({})}).noUnknown();function QC(e){var t=ua(),n=function(e){switch(e){case UC.Glance:return YC;default:return}}(t.values.type);return l.createElement(ba,null,l.createElement(ou,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this theme",autoFocus:!0}),l.createElement(ou,{as:"select",label:"Type",name:"type",id:"type",value:t.values.type},l.createElement("option",{value:null},"Select a type..."),wa.a.getEnumKeys(UC).map((function(e){return l.createElement("option",{key:e,value:UC[e]},e)}))),!!n&&l.createElement(n,null),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(Iu,{isNew:e.isNew}),!!e.actions&&l.createElement(Dl,{actions:e.actions})))}function XC(e){var t;return l.createElement(Ta,{initialValues:e.theme,validationSchema:ZC,onSubmit:e.saveTheme},l.createElement(QC,{isNew:!(null===(t=e.theme)||void 0===t?void 0:t.id),actions:e.actions}))}function eO(){var e=Object(b.useDispatch)();return l.createElement(XC,{saveTheme:function(t,n){ce.fetch(e,zC(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.THEMES,action:a.Themes.EDIT_THEME,args:[e.id]})}),null,n))}})}function tO(e){var t=Object(b.useDispatch)(),n=wp(),r=ce.useBasicFetch(BC(e.id));return r.data?l.createElement(XC,{theme:r.data,saveTheme:function(r,a){ce.fetch(t,qC(e.id,r,(function(){n.success("Successfully updated theme")}),(function(){n.error("Failed to update theme")}),a))},actions:[{label:"Delete theme",className:"btn btn-danger",button:!0,appLink:{application:c.THEMES,action:a.Themes.DELETE_THEME,args:[e.id]}}]}):l.createElement(l.Fragment,null)}function nO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aO(e){var t=Object(b.useDispatch)(),n=wp(),r=nO(l.useState(!1),2),i=r[0],o=r[1],u=ce.useBasicFetch(BC(e.id));return l.createElement(Tp,{title:"Delete Theme",closePopup:e.closePopup,showLoadingSpinner:!u.data},l.createElement(l.Fragment,null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,u.data.name),"?"),l.createElement(jp,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),ce.fetch(t,JC(e.id,(function(){n.success("Successfully deleted theme"),p.AppLinkHelper.trigger({application:c.THEMES,action:a.Themes.THEMES})}),(function(){n.error("Failed to delete theme")})))},buttonText:"Yes, delete this theme",isSpinnerButton:!0,showSpinner:i}]})))}var iO=function(e){var t=e.children;return l.createElement(rl,null,t)};function oO(e){return(oO="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 cO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(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 sO(e,t,n){return t&&uO(e.prototype,t),n&&uO(e,n),e}function lO(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&&fO(e,t)}function fO(e,t){return(fO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mO(e);if(t){var a=mO(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return dO(this,n)}}function dO(e,t){return!t||"object"!==oO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mO(e){return(mO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hO=function(e){lO(n,e);var t=pO(n);function n(){return cO(this,n),t.apply(this,arguments)}return sO(n,[{key:"channelName",get:function(){return c.THEMES}},{key:"appRoutes",get:function(){return{"manage/themes(/)":"themes","manage/themes/new(/)":"newTheme","manage/themes/:id(/)":"editTheme"}}},{key:"appLinks",get:function(){return["deleteTheme","uploadImage"]}}]),n}(p.AppRouter),yO=function(e){lO(n,e);var t=pO(n);function n(){return cO(this,n),t.apply(this,arguments)}return sO(n,[{key:"name",get:function(){return"Themes Application"}},{key:"channelName",get:function(){return c.THEMES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:iO}}}},{key:"themes",value:function(){this.layout.showChildView(I,l.createElement(KC,null))}},{key:"newTheme",value:function(){this.layout.showChildView(I,l.createElement(eO,null))}},{key:"editTheme",value:function(e){this.layout.showChildView(I,l.createElement(tO,{id:e}))}},{key:"deleteTheme",value:function(e){var t=this;this.layout.showChildView(L,l.createElement(aO,{id:e,closePopup:function(){return t.layout.closePopup()}}))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(L,l.createElement(lh,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}}],[{key:"router",get:function(){return hO}}]),n}(rp),vO=function(e){var t=e.children;return l.createElement(rl,null,t)},bO=function(e,t){var n=c.VIDEOS,r=a.Videos,i=[{label:"Edit Video Details",appLink:{application:n,action:r.EDIT_VIDEO,args:[t]}}];return ed(e)?[].concat(i,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_VIDEO_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_VIDEO_AUDIENCES,args:[t]}},{label:"Aliases",appLink:{application:n,action:r.EDIT_VIDEO_ALIASES,args:[t]}}]):i};function gO(e){var t,n=bO(e.currentUser,e.videoId);return n.length<2?l.createElement(l.Fragment,null):l.createElement("div",{className:"py-2"},l.createElement(Wl,{tabs:n,isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}))}var SO,EO,CO=ka.object().shape({name:ka.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ka.string().trim().default(""),status:ka.mixed().required("Status is required"),productionYear:ka.number().min(1900),rating:ka.object().shape({id:ka.string()}).default({}).noUnknown(),thumbnail:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),heroBanner:ka.object().shape({fileId:ka.string(),fileIdType:ka.mixed(),url:ka.string()}).default({}).noUnknown(),glance:ka.object().shape({theme:ka.string(),format:ka.mixed(),content:ka.string(),type:ka.mixed()}).default({}).noUnknown()}).noUnknown();!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(SO||(SO={})),function(e){e.Markdown="text/markdown"}(EO||(EO={}));var OO=n(52),wO=n.n(OO),AO=n(31);function TO(e){return f.a.createElement("div",Object.assign({},e,{role:"button",tabIndex:0,className:"".concat(e.className?e.className:""," cursor-pointer"),onKeyDown:e.onKeyDown?e.onKeyDown:function(t){return"Enter"===t.key&&e.onClick(t)},onClick:e.onClick,style:e.style?e.style:{}}),e.children)}var kO=n(53),jO=n.n(kO);function IO(e){var t=e.tag,n=e.appLink,r=e.onClick,a=e.disabled,i=e.tagClass,o=void 0===i?"tag":i,c=t.name.toLowerCase(),u="badge-pill py-1 px-2 my-1 mr-1 ".concat(o);return!n&&!r||a||(u+=" cursor-pointer"),a&&(u+=" "+jO.a.disabled),n?f.a.createElement(Ps,{onClick:r,appLink:n,className:u,title:c},f.a.createElement("span",{className:"text-truncate text-nowrap"},c)):f.a.createElement("span",{onClick:r,className:u,title:c},f.a.createElement("span",{className:"text-truncate text-nowrap"},c))}function LO(e){var t=e.tags,n=e.getAppLink;return t&&t.data?f.a.createElement("div",{className:jO.a.tagList},t.data.map((function(e){var t=h(n)?n(e):null;return f.a.createElement(IO,{key:e.id,tag:e,appLink:t})}))):f.a.createElement(f.a.Fragment,null)}var _O=n(27),PO=n.n(_O);function xO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var RO;function DO(e){var t,n,r,a=xO(l.useState(""),2),i=a[0],o=a[1];if(l.useEffect((function(){if(e.hasGlanceData){var t=OO(e.video.glance.content).split('a href="cv-tag://').join('a class="badge-pill tag mr-1 my-1 px-2 py-1" href="cv-tag://');o(t)}}),[null===(t=e.video.glance)||void 0===t?void 0:t.content]),!e.hasGlanceData&&e.hasDetails)return e.onClickShowDescription&&e.onClickShowDescription(),l.createElement(l.Fragment,null);return l.createElement("div",{className:"rounded border px-5 py-3 mb-3 position-relative d-flex justify-content-center ".concat(PO.a.container," ").concat((r=null===(n=e.theme)||void 0===n?void 0:n.name.toLowerCase(),r===RO.Maths?PO.a.bgBlue:r===RO.English?PO.a.bgPink:r===RO.History?PO.a.bgYellow:PO.a.bgGreen))},l.createElement("div",{className:"".concat(PO.a.content," d-flex align-items-center")},l.createElement("div",null,l.createElement("h2",{className:"h4"},l.createElement(ju,{namespace:"shared.videoAtAGlance",phrase:"videoAtAGlance"})),e.hasDetails&&e.onClickShowDescription&&l.createElement(TO,{onClick:e.onClickShowDescription,className:"".concat(PO.a.detailsBtn," position-absolute cursor-pointer mr-4 font-weight-500 text-info")},l.createElement(ju,{namespace:"shared.videoAtAGlance",phrase:"readFullDescription"})),l.createElement("div",{className:"position-relative",onClick:function(t){t.preventDefault();var n=t.target.getAttribute("href");if(n)if(n.includes("cv-timestamp://")){var r=n.split("cv-timestamp://")[1];e.setStartTime&&e.setStartTime(AO.a.convertDurationToSeconds(r))}else if(n.includes("cv-tag://")&&e.getTagAppLink){var a=n.split("cv-tag://")[1];p.AppLinkHelper.trigger(e.getTagAppLink(a))}else;},dangerouslySetInnerHTML:{__html:i}}),function(){var t,n,r;return(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?l.createElement("div",{className:"py-1"},l.createElement(LO,{tags:null===(r=e.video)||void 0===r?void 0:r.tags,getAppLink:function(t){return e.getTagAppLink?e.getTagAppLink(t.name):null}})):l.createElement(l.Fragment,null)}(),l.createElement("div",{className:"mt-2"},e.hasCurriculumLinks&&e.onClickShowCurriculumLinks&&l.createElement(TO,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block font-weight-500 text-info"},l.createElement(ju,{namespace:"shared.videoAtAGlance",phrase:"seeCurriculumLinks"}))))),function(){var t;return wa.a.keys(null===(t=e.theme)||void 0===t?void 0:t.data).filter((function(t){var n;return!wa.a.isEmpty(null===(n=e.theme)||void 0===n?void 0:n.data[t])})).map((function(t){var n,r,a,i;return l.createElement("div",{key:null===(r=null===(n=e.theme)||void 0===n?void 0:n.data[t])||void 0===r?void 0:r.fileId,className:"".concat(PO.a[t]," ").concat(PO.a.background),style:{backgroundImage:"url('".concat(Gs.createUrl(null===(i=null===(a=e.theme)||void 0===a?void 0:a.data[t])||void 0===i?void 0:i.url,{format:"png"}),"')")}})}))}())}function MO(e){var t,n,r,a,i,o=ua(),c=e.themes.find((function(e){var t;return e.name===(null===(t=o.values.glance)||void 0===t?void 0:t.theme)})),u=(null===(t=o.values.glance)||void 0===t?void 0:t.format)===EO.Markdown&&(null===(n=o.values.glance)||void 0===n?void 0:n.content)&&c;return l.createElement("div",{className:"form-group p-2 border"},l.createElement("div",{className:"border-bottom mb-2"},l.createElement("label",null,"Video at a Glance")),l.createElement(ou,{as:"select",label:"Theme",name:"glance.theme",id:"glance.theme",value:null===(r=o.values.glance)||void 0===r?void 0:r.theme},l.createElement("option",{value:null},"Select a theme..."),e.themes.map((function(e){return l.createElement("option",{key:e.id,value:e.name},e.name)}))),l.createElement(ou,{as:"select",label:"Format",name:"glance.format",id:"glance.format",value:null===(a=o.values.glance)||void 0===a?void 0:a.format},l.createElement("option",{value:null},"Select a format..."),wa.a.getEnumKeys(EO).map((function(e){return l.createElement("option",{key:e,value:EO[e]},e)}))),l.createElement(ou,{label:"Content",as:"textarea",name:"glance.content",id:"glance.content",value:null===(i=o.values.glance)||void 0===i?void 0:i.content}),u&&l.createElement("div",{className:"form-group"},l.createElement("label",null,"Preview"),l.createElement(DO,{theme:c,video:{glance:o.values.glance,tags:e.tags},hasGlanceData:!0})))}function UO(e){switch(e){case SO.Published:return"badge-success";case SO.Archived:return"badge-danger";case SO.Draft:return"badge-warning";case SO.Pending:return"badge-info";case SO.Rejected:return"badge-dark";default:return"badge-secondary"}}function FO(e){var t=ua(),n=!!e.rightslineId,r=ed(e.currentUser);return l.createElement(ba,null,n&&l.createElement(ou,{label:"Rightsline ID",name:"rightslineId",id:"rightslineId",value:e.rightslineId,disabled:!0}),l.createElement(ou,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this video",disabled:n,autoFocus:!0}),l.createElement("div",{className:"form-group"},l.createElement("label",null,"Status"),l.createElement("div",null,l.createElement("span",{className:"badge ".concat(UO(t.values.status))},SO[t.values.status]))),l.createElement(ou,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this video here",disabled:n,showCharacterCounter:!0}),l.createElement(ou,{label:"Production Year",type:"number",name:"productionYear",id:"productionYear",value:t.values.productionYear,disabled:n}),l.createElement(Fl,{ratings:e.ratings,disabled:n}),l.createElement(Sl,{imageType:Ms.Thumbnails,fieldName:"thumbnail",application:c.VIDEOS,uploadAction:a.Videos.UPLOAD_IMAGE}),l.createElement(Sl,{imageType:Ms.HeroBanners,fieldName:"heroBanner",application:c.VIDEOS,uploadAction:a.Videos.UPLOAD_IMAGE}),r&&l.createElement(MO,{themes:e.themes,tags:e.tags}),l.createElement(Iu,{isNew:!e.id}))}function VO(e,t){if(e)return t?Object.assign(Object.assign({},e),t):e}function BO(e){var t;return l.createElement(Ta,{initialValues:VO(e.video,e.rightslineVideo),validationSchema:CO,onSubmit:e.saveVideo,allowInitialSubmit:!!e.rightslineVideo},l.createElement(FO,{id:e.video&&e.video.id,ratings:e.ratings,themes:e.themes,tags:null===(t=e.video)||void 0===t?void 0:t.tags,currentUser:e.currentUser,rightslineId:e.rightslineId}))}function HO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qO(e){var t,n=Object(b.useDispatch)(),r=HO(l.useState(!1),2),i=r[0],o=r[1],u=ce.useBasicFetch(pg(e.videoId)),s=ce.useBasicFetch(mg(e.videoId)),f=ce.useBasicFetch(XE()),p=ce.useBasicFetch(HC(UC.Glance)),d=ce.useBasicFetch(Fp());var m,h=!!u.data&&!!f.data&&!!p.data&&!!d.data&&s.isComplete;return l.createElement(l.Fragment,null,!!d.data&&l.createElement(gO,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO,currentUser:d.data}),!!s.data&&l.createElement("div",{className:"pt-3 text-right"},l.createElement(Ia.Button,{variant:"outline-dark",size:"sm",onClick:function(){s.isFetching||(o(!0),ce.fetch(n,mg(e.videoId)))}},"Sync from Rightsline")),h&&l.createElement(BO,{video:u.data,saveVideo:function(t,r){ce.fetch(n,hg(e.videoId,t,null,null,r))},ratings:f.data,themes:p.data,currentUser:d.data,rightslineId:null===(t=s.data)||void 0===t?void 0:t.rightslineId,rightslineVideo:i&&s.data}),l.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit video page ",l.createElement(Ps,{className:"info-link",appLink:(m=e.videoId,{application:c.VIDEOS,action:a.Videos.LEGACY_EDIT_VIDEO,args:[m]})},"here"),"."))}function JO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KO(e){var t=JO(l.useState({}),2),n=t[0],r=t[1],i=ce.useBasicFetch(pg(e.videoId)),o=ce.useBasicFetch(Fp()),c=pp(s.SUBJECT);!function(e,t,n){var r=function(e){return Gh(n,e)};Yh(Pv.getObjectLevelsFetchOptions(e,cy.Videos,r("videoLevels")),[e]),Yh(Pv.getObjectAudiencesFetchOptions(e,cy.Videos,r("videoAudiences")),[e,t.videoLevels]),qh([Pv.getPresentationsFetchOptions(r("presentations")),Pv.getLevelsFetchOptions(r("levels"))],[]),Yh(!!t.currentPresentation&&Pv.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.videoId,n,r),Wb(n,r);var u=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.videoLevels&&n.videoAudiences);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(gO,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO_AUDIENCES,currentUser:o.data}),l.createElement(Ml,{object:i.data}),!!u&&l.createElement(Bv,{objectLevels:n.videoLevels,objectAudiences:n.videoAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Gh(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:cy.Videos,saveLevels:function(t,n,r){return c.updateObjectLevels(e.videoId,t,cy.Videos,n,r,r)},saveAudiences:function(t,r){return c.updateObjectAudiences(e.videoId,n.currentPresentation.id,t,cy.Videos,r,r)}}))}function WO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||GO(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YO(e){return function(e){if(Array.isArray(e))return ZO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||GO(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GO(e,t){if(e){if("string"==typeof e)return ZO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZO(e,t):void 0}}function ZO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QO(e){var t=WO(l.useState({}),2),n=t[0],r=t[1],i=ce.useBasicFetch(pg(e.videoId)),o=ce.useBasicFetch(Fp()),c=pp(s.SUBJECT);!function(e,t,n){var r=function(e){return Gh(n,e)};qh([Pv.getSubjectTreeFetchOptions(r("subjectTree")),Pv.getPresentationsFetchOptions(r("presentations"))],[]),Yh(Pv.getObjectSubjectsFetchOptions(e,cy.Videos,r("videoSubjects")),[e]),Yh(!!t.currentPresentation&&Pv.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.videoSubjects]);var a=function(e,t){return[].concat(YO(t.subjectClassifications||[]),YO(e))},i=t.videoSubjects&&t.videoSubjects.map((function(e){return Pv.getSubjectClassificationFetchOptions(e.id,Gh(n,"subjectClassifications",a))}));qh(i,[t.videoSubjects],!!i),Yh(Pv.getObjectClassificationsFetchOptions(e,cy.Videos,r("videoClassifications")),[e,t.videoSubjects])}(e.videoId,n,r),Wb(n,r);var u=!!(n.videoSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.videoClassifications&&n.subjectClassifications);return l.createElement(l.Fragment,null,!!o.data&&l.createElement(gO,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO_SUBJECTS,currentUser:o.data}),l.createElement(Ml,{object:i.data}),u&&l.createElement(jb,{objectSubjects:n.videoSubjects,subjectTree:n.subjectTree,memberType:cy.Videos,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:Gh(r,"currentPresentation"),objectClassifications:n.videoClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.videoId,t,cy.Videos,n,r,r)},saveClassifications:function(t,r){return c.updateObjectClassifications(e.videoId,n.currentPresentation.id,t,cy.Videos,r,r)}}))}!function(e){e.Maths="maths",e.English="english",e.History="history"}(RO||(RO={}));var XO=function(e){return{key:"aliases:".concat(e),url:"/api/master/v2/objects/".concat(e,"/aliases")}},ew=function(e,t,n,r){return{key:"create:alias",url:"/api/master/v2/objects/".concat(e,"/aliases"),type:ue.a.POST,invalidationKeys:"aliases:".concat(e),data:t,success:n,error:r}},tw=function(e,t,n,r){return{key:"delete:alias",url:"/api/domain/v2/objects/".concat(e,"/aliases/").concat(t),type:ue.a.DELETE,invalidationKeys:"aliases:".concat(e),success:n,error:r}};function nw(e){var t=Object(b.useDispatch)(),n=wp(),r=ce.useBasicFetch(XO(e.videoId)),i=ce.useBasicFetch(Fp());return r.data?l.createElement(l.Fragment,null,!!i.data&&l.createElement(gO,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO_ALIASES,currentUser:i.data}),l.createElement(Nf,{aliases:r.data.data,onSave:function(r,a){ce.fetch(t,ew(e.videoId,r,(function(){n.success("Successfully created alias"),a()}),(function(){n.error("Something went wrong creating your alias")})))},onDelete:function(r){ce.fetch(t,tw(e.videoId,r,(function(){n.success("Successfully deleted alias")}),(function(){n.error("Something went wrong deleting your alias")})))}})):l.createElement(l.Fragment,null,"Loading...")}function rw(e){return(rw="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 aw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iw(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 ow(e,t,n){return t&&iw(e.prototype,t),n&&iw(e,n),e}function cw(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&&uw(e,t)}function uw(e,t){return(uw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fw(e);if(t){var a=fw(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return lw(this,n)}}function lw(e,t){return!t||"object"!==rw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fw(e){return(fw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pw,dw,mw=function(e){cw(n,e);var t=sw(n);function n(){return aw(this,n),t.apply(this,arguments)}return ow(n,[{key:"channelName",get:function(){return c.VIDEOS}},{key:"appRoutes",get:function(){return{"manage/videos/:id(/)":"editVideo","manage/videos/:id/audiences(/)":"editVideoAudiences","manage/videos/:id/classifications(/)":"editVideoSubjects","manage/videos/:id/aliases(/)":"editVideoAliases","tools/programlookup/:id":"legacyEditVideo"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(p.AppRouter),hw=function(e){cw(n,e);var t=sw(n);function n(){return aw(this,n),t.apply(this,arguments)}return ow(n,[{key:"initialize",value:function(){var e=this;wa.a.values(s).forEach((function(t){return fp.getInstance(t,e)}))}},{key:"name",get:function(){return"Videos Application"}},{key:"channelName",get:function(){return c.VIDEOS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:vO,alertRegion:_}}}},{key:"editVideo",value:function(e){this.layout.showChildView(I,l.createElement(qO,{videoId:e}))}},{key:"editVideoAudiences",value:function(e){this.layout.showChildView(I,l.createElement(KO,{videoId:e}))}},{key:"editVideoSubjects",value:function(e){this.layout.showChildView(I,l.createElement(QO,{videoId:e}))}},{key:"editVideoAliases",value:function(e){this.layout.showChildView(I,l.createElement(nw,{videoId:e}))}},{key:"legacyEditVideo",value:function(e){p.LocationUtils.Redirect("/tools/programlookup/".concat(e))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(L,l.createElement(lh,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}}],[{key:"router",get:function(){return mw}}]),n}(rp);function yw(e){return(yw="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 vw(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&&bw(e,t)}function bw(e,t){return(bw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ew(e);if(t){var a=Ew(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Sw(this,n)}}function Sw(e,t){return!t||"object"!==yw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ew(e){return(Ew=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ow(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 ww(e,t,n){return t&&Ow(e.prototype,t),n&&Ow(e,n),e}!function(e){e.UPDATE="UPDATE_VIEW_MODEL"}(pw||(pw={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage"}(dw||(dw={}));var Aw=function(){function e(t){if(Cw(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport)try{this.storage=window[this.type]}catch(e){}}return ww(e,[{key:"get",value:function(e){if(this.hasSupport){var t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}},{key:"set",value:function(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}},{key:"remove",value:function(e){if(this.hasSupport)return this.storage.removeItem(e)}},{key:"length",value:function(){if(this.hasSupport)return this.storage.length}},{key:"clear",value:function(){if(this.hasSupport)return this.storage.clear()}},{key:"cacheSet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set("".concat(this.cachePrefix).concat(e),r)}},{key:"cacheGet",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}},{key:"cacheExists",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}},{key:"cacheRemove",value:function(e){return this.remove("".concat(this.cachePrefix).concat(e))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var e=0;e<this.storage.length;e++){var t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){var n=this.get(t);n&&n.time&&this.isExpired(n)&&this.remove(t)}}}},{key:"isExpired",value:function(e){return e.time<this.getCurrentTime()}},{key:"getCurrentTime",value:function(){return(new Date).getTime()}},{key:"hasBrowserSupport",value:function(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}]),e}(),Tw=function(e){vw(n,e);var t=gw(n);function n(){return Cw(this,n),t.apply(this,arguments)}return ww(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:dw.LocalStorage}))}}]),n}(Aw),kw=function(e){vw(n,e);var t=gw(n);function n(){return Cw(this,n),t.apply(this,arguments)}return ww(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:dw.SessionStorage}))}}]),n}(Aw),jw=Tw.Instance,Iw=kw.Instance;var Lw=function(e,t,n){var r,a=(r=null==n?void 0:n.storage)?r===dw.SessionStorage?Iw:jw:null,i=Object(b.useDispatch)(),o=Object(b.useSelector)((function(t){return t.viewModelData[e]})),c=void 0!==t&&void 0===o;if(c)s(t);else if(a&&void 0===o){var u=a.get(e);s("undefined"===u?null:u)}function s(t,n){a&&function(t,n){if(!a)return;var r=a.get(e);if("string"==typeof t&&void 0!==n)return void a.set(e,Object.assign(Object.assign({},r),{dataOrKey:n}));a.set(e,t)}(t,n),i({type:pw.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:n}})}return c?[t,s]:[null!=o?o:void 0,s]},_w="release:notes:config",Pw=[{id:"798",name:"Monorepo"},{id:"109",name:"Online"},{id:"822",name:"Lite"},{id:"534",name:"Library Editor"},{id:"62",name:"Curator"}];function xw(e){var t=ua(),n=su(t),r="798"===t.values.project;return f.a.useEffect((function(){e.getMilestones(t.values.project),r&&e.getBranchNames(t.values.project)}),[t.values.project]),f.a.useEffect((function(){t.setFieldValue("milestone",Vp.a.first(e.milestones))}),[e.milestones]),f.a.useEffect((function(){t.setFieldValue("branchName",Vp.a.first(e.branchNames))}),[e.branchNames]),f.a.createElement(ba,null,f.a.createElement(ou,{as:"select",label:"Project",name:"project",id:"project",value:t.values.project},Pw.map((function(e){return f.a.createElement("option",{key:e.id,value:e.id},e.name)}))),f.a.createElement(ou,{as:"select",label:"Milestone",name:"milestone",id:"milestone",value:t.values.milestone,disabled:!e.milestones.length},e.milestones.map((function(e){return f.a.createElement("option",{key:e,value:e},e)}))),r&&f.a.createElement(ou,{as:"select",label:"Branch Name",name:"branchName",id:"branchName",value:t.values.branchName,disabled:!e.branchNames.length},e.branchNames.map((function(e){return f.a.createElement("option",{key:e,value:e},e)}))),f.a.createElement("div",{className:"d-flex justify-content-between"},f.a.createElement(Lf,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Generate")))}var Nw="U_Jxes3Htv-xiaDX5wfn",Rw="https://gitlab.cvinternal.net/api/v4",Dw=function(e,t){return{key:"milestones:".concat(e),url:qs("".concat(Rw,"/projects/").concat(e,"/milestones"),{private_token:Nw}),normalize:!1,formatData:function(e){return e.map((function(e){return e.title}))},success:t}},Mw=function(e,t){return{key:"branch:names:".concat(e),url:qs("".concat(Rw,"/projects/").concat(e,"/repository/branches"),{private_token:Nw,per_page:50}),normalize:!1,formatData:function(e){return e.map((function(e){return e.name}))},success:t}},Uw=function(e,t,n,r){return{key:"merge:requests:".concat(e,":").concat(t,":").concat(n),url:qs("".concat(Rw,"/projects/").concat(e,"/merge_requests"),{private_token:Nw,milestone:t,state:"merged",per_page:50,page:n}),success:r}},Fw=function(e,t,n){return{key:"file:paths:".concat(t,":").concat(e),url:qs("".concat(Rw,"/projects/").concat(e,"/search"),{scope:"blobs",search:t,private_token:Nw}),normalize:!1,formatData:function(e){return e.filter((function(e){return e.filename.includes(t)}))},success:n}},Vw=function(e,t,n,r){return{key:"file:".concat(e,":").concat(t,":").concat(n),url:qs("".concat(Rw,"/projects/").concat(e,"/repository/files/").concat(encodeURIComponent(t),"/raw"),{ref:n,private_token:Nw}),normalize:!1,formatData:function(e){return JSON.parse(e)},success:r}},Bw=ka.object().shape({project:ka.string().required("Project is required").default(""),milestone:ka.string().required("Milestone is required").default(""),branchName:ka.string().when("project",(function(e,t){return"798"===e?t.required("Branch name is required"):t})).default("")}).noUnknown();function Hw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qw={project:Vp.a.first(Pw).id};function Jw(){var e=Hw(f.a.useState([]),2),t=e[0],n=e[1],r=Hw(f.a.useState([]),2),i=r[0],o=r[1],u=Hw(Lw(_w),2)[1],s=Object(b.useDispatch)();return f.a.createElement(f.a.Fragment,null,f.a.createElement("h4",{className:"py-2"},"Generate Release Notes"),f.a.createElement(Ta,{initialValues:qw,onSubmit:function(e){u(e),p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:a.ReleaseNotes.GENERATOR})},validationSchema:Bw},f.a.createElement(xw,{getMilestones:function(e){n([]),ce.fetch(s,Dw(e,n))},milestones:t,getBranchNames:function(e){o([]),ce.fetch(s,Mw(e,o))},branchNames:i})))}var $w=n(219),Kw=/#*/;function Ww(e){return e=e.replace("-"," "),e="## "+(e=(e=zl(e)).replace(Kw,"").trim())}function Yw(e){var t=e.toLowerCase();return"## notes"===t||"## dependencies"===t}function Gw(e){return e=e.replace("-"," "),e=zl(e)}function Zw(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qw(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function Qw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xw=["# online","# curator","# library editor","# lite","# styles","# tooling","# analytics","# common","# shared","# player"];function eA(e){for(var t={name:"",changes:""},n=0;t.name||n<e.length;n++){var r=e[n];if(!r)break;if("#"===r){var a=e.indexOf("\n",n),i=e.slice(n,a);Xw.includes(i.toLowerCase().trim())&&(t.name=zl(i.replace("#","").trim()),e=e.slice(a),n=-1)}}for(var o=0;!t.changes&&o<e.length;o++){if(o+1===e.length){t.changes=e,e="";break}if("#"===e[o]&&"#"!==e[o+1]){var c=e.indexOf("\n",o),u=e.slice(o,c);Xw.includes(u.toLowerCase().trim())&&(t.changes=e.slice(0,o),e=e.slice(o),o=-1)}}return{section:t,remainingDescription:e}}function tA(e){var t,n={},r=Zw(e);try{for(r.s();!(t=r.n()).done;)for(var a=t.value;a;){var i=eA(a),o=i.section;if(a=i.remainingDescription,!o.name)break;n[o.name]||(n[o.name]=[]),n[o.name].push(o.changes)}}catch(e){r.e(e)}finally{r.f()}var c={};return Object.keys(n).forEach((function(e){var t,r;c[e]=(t=n[e],r={},t.forEach((function(e){for(var t=e.split("");t&&t.length;){for(var n=0;n<t.length&&t.length!==n+1;n++)if("#"===t[n]&&"#"===t[n+1]){var a=t.indexOf("\n",n),i=Gw(t.slice(n,a).join(""));r[i]||(r[i]="");for(var o=a;o<t.length;o++){if(t.length===o+1){var c=t.slice(a+1).join("");r[i]+=c,t=[];break}if("#"===t[o]&&"#"===t[o+1]){var u=t.slice(a+1,o).join("");if(!u.length){t=t.slice(o),n=-1;break}r[i]+=u,t=t.slice(o),n=-1;break}}r[i]+="\n"}break}})),Object.keys(r).reduce((function(e,t){return e+=t+"\n",e+=r[t]+"\n"}),""))})),Object.keys(c).reduce((function(e,t){return e+="\n",e+="\n# ".concat(t),e+="\n".concat(c[t])}),"")}var nA=n(220),rA=n.n(nA);function aA(e){return function(e){if(Array.isArray(e))return cA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oA(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw a}}return i}(e,t)||oA(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oA(e,t){if(e){if("string"==typeof e)return cA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cA(e,t):void 0}}function cA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uA(){var e=iA(f.a.useState(!0),2),t=e[0],n=e[1],r=iA(f.a.useState(1),2),i=r[0],o=r[1],u=iA(f.a.useState([]),2),s=u[0],l=u[1],d=iA(f.a.useState([]),2),m=d[0],h=d[1],y=iA(f.a.useState(!0),2),v=y[0],g=y[1],S=iA(f.a.useState(""),2),E=S[0],C=S[1],O=iA(f.a.useState("Copy"),2),w=O[0],A=O[1],T=iA(Lw(_w),1)[0],k=T&&"798"===T.project,j=Object(b.useDispatch)();return f.a.useEffect((function(){if(T){var e=T.project,t=T.milestone;ce.fetch(j,Uw(e,t,i,(function(e){l([].concat(aA(s),aA(e))),50===e.length?o(i+1):n(!1)})))}}),[i]),f.a.useEffect((function(){if(!(t||k&&v)){var e=s.map((function(e){return e.description.replace("\r\n","\n").replace("\r","")})),n=k?function(e,t){var n=function(e){var t="# Final Package Versions\n\n| Package | Version |\n| ------------------------- | ------------------------ |\n| @clickview/analytics | <analytics-version> |\n| @clickview/styles | <styles-version> |\n| @clickview/tooling | <tooling-version> |\n| @clickview/curator | <curator-version> |\n| @clickview/library-editor | <library-editor-version> |\n| @clickview/lite | <lite-version> |\n| @clickview/online | <online-version> |\n| @clickview/player | <player-version> |\n";return e.forEach((function(e){var n=e.name,r=e.version;r&&(t=t.replace("<".concat(n.replace("@clickview/",""),"-version>"),r))})),t}(t),r=tA(e);return"".concat(n,"\n").concat(r)}(e,m):function(e){var t={};return e.forEach((function(e){for(var n=e.split("");;){var r=!1;if(!n||!n.length)break;for(var a=0;a<n.length&&n.length!==a+1;a++)if("#"===n[a]){var i=n.indexOf("\n",a),o=Ww(n.slice(a,i).join(""));t[o]||(Yw(o)?r=!0:t[o]="");for(var c=i;c<n.length;c++){if(n.length===c+1){if(r){r=!1,n=[];break}var u=n.slice(i+1).join("");t[o]+=u,n=[];break}if("#"===n[c]){if(r){r=!1,n=n.slice(c),a=-1;break}var s=n.slice(i+1,c).join("");if(!s.length){n=n.slice(c),a=-1;break}t[o]+=s,n=n.slice(c),a=-1;break}}t[o]?t[o]+="\n":delete t[o]}break}})),Object.keys(t).reduce((function(e,n){return t[n]?(e+=n+"\n",e+=t[n]+"\n"):e}),"")}(e);C(n)}}),[t,v]),f.a.useEffect((function(){if(T&&k){var e=[];ce.fetch(j,Fw(T.project,"package.json",(function(t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oA(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;ce.fetch(j,Vw(T.project,a.path,T.branchName,(function(n){e.push(n),e.length===t.length&&(h(e),g(!1))})))}}catch(e){r.e(e)}finally{r.f()}})))}}),[]),T?f.a.createElement(f.a.Fragment,null,E?f.a.createElement("div",{className:"position-relative border rounded p-3"},f.a.createElement($w,{onCopy:function(){return A("Copied")},text:E},f.a.createElement("button",{className:"btn btn-outline-dark ".concat(rA.a.copyBtn)},w)),f.a.createElement("div",{dangerouslySetInnerHTML:{__html:wO()(E)}})):t?"Fetching merge requests..":"Merging descriptions.."):(p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:a.ReleaseNotes.FORM}),f.a.createElement(f.a.Fragment,null))}function sA(e){return(sA="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 lA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fA(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 pA(e,t,n){return t&&fA(e.prototype,t),n&&fA(e,n),e}function dA(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&&mA(e,t)}function mA(e,t){return(mA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vA(e);if(t){var a=vA(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return yA(this,n)}}function yA(e,t){return!t||"object"!==sA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vA(e){return(vA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bA,gA=function(e){dA(n,e);var t=hA(n);function n(){return lA(this,n),t.apply(this,arguments)}return pA(n,[{key:"channelName",get:function(){return c.RELEASE_NOTES}},{key:"appRoutes",get:function(){return{"developer/release-notes(/)":"index","developer/release-notes/generate(/)":"form","developer/release-notes/generator(/)":"generator"}}}]),n}(p.AppRouter),SA=function(e){dA(n,e);var t=hA(n);function n(){return lA(this,n),t.apply(this,arguments)}return pA(n,[{key:"name",get:function(){return"Release Notes Application"}},{key:"channelName",get:function(){return c.RELEASE_NOTES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}},{key:"index",value:function(){p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:a.ReleaseNotes.GENERATOR},{replace:!0})}},{key:"form",value:function(){this.layout.showChildView(I,l.createElement(Jw,null))}},{key:"generator",value:function(){this.layout.showChildView(I,l.createElement(uA,null))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Cs.Radio.channel(G.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(_,l.createElement(Nd,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}}],[{key:"router",get:function(){return gA}}]),n}(p.Application);function EA(e){return(EA="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 CA(e){return function(e){if(Array.isArray(e))return OA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wA(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 AA(e,t){return(AA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function TA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jA(e);if(t){var a=jA(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return kA(this,n)}}function kA(e,t){return!t||"object"!==EA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jA(e){return(jA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Fifo="FifoMemoryCache"}(bA||(bA={}));var IA,LA=function(e){!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&&AA(e,t)}(i,e);var t,n,r,a=TA(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"name",get:function(){return bA.Fifo}},{key:"removeCacheKey",value:function(e){this.cachedkeys=d.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||du.c.throw(new yu.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=d.object(this.cachedkeys,this.cachedkeys),a=[];d.each(e,(function(e){var t;r[e]&&a.push(e);var n=new RegExp(e,"i"),i=d.filter(r,(function(e){return n.test(e)}));(t=a).push.apply(t,CA(i))})),a.length&&(a=d.uniq(a),d.each(a,(function(e){delete n.cache[e],d.isFunction(t)&&t(e)})),this.cachedkeys=d.without.apply(d,[this.cachedkeys].concat(CA(a))))}}])&&wA(t.prototype,n),r&&wA(t,r),i}(pu.a),_A=n(17);!function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(IA||(IA={}));var PA,xA={type:IA.Unknown,message:"",code:0};!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(PA||(PA={}));var NA=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function RA(e){return(RA="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 DA(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 MA(e,t){return(MA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function UA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VA(e);if(t){var a=VA(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return FA(this,n)}}function FA(e,t){return!t||"object"!==RA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function VA(e){return(VA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var BA=function(e){!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&&MA(e,t)}(i,e);var t,n,r,a=UA(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=i,(n=[{key:"name",get:function(){return PA.Ajax}},{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=ue.a.GET);var a=d.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===ue.a.POST||n===ue.a.PUT?JSON.stringify(t):t),a.forceHttps&&(i.url=this.makeHttps(i.url)),a.traditional&&(i.traditional=a.traditional);var o=$.ajax(i);return d.keys(this.successMiddleware).length&&o.done(d.values(this.successMiddleware)),d.keys(this.errorMiddleware).length&&o.fail(d.values(this.errorMiddleware)),o}},{key:"create",value:function(e,t,n){var r=n.channel,a=n.successEvent,i=n.errorEvent;this.base(e,t,ue.a.POST).done((function(e,t,n){return r.trigger(a,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,a=t.errorEvent;this.base(e,null,ue.a.GET).done((function(e,t,a){n.trigger(r,e,t,a)})).fail((function(e,t,r){n.trigger(a,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,a=n.successEvent,i=n.errorEvent;this.base(e,t,ue.a.PUT).done((function(e,t,n){return r.trigger(a,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,a=t.errorEvent;this.base(e,null,ue.a.DELETE).done((function(e,t,a){return n.trigger(r,e,t,a)})).fail((function(e,t,r){return n.trigger(a,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e){var t=e.responseJSON,n=xA;switch(n.code=e.status,n.message=NA(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=IA.BadRequest;break;case 401:n.type=IA.Unauthorized;break;case 403:n.type=IA.Forbidden;break;case 404:n.type=IA.NotFound;break;case 500:n.type=IA.InternalServer}return n}}])&&DA(t.prototype,n),r&&DA(t,r),i}(_A.Object);function HA(e){return(HA="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 zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qA(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),zA({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),zA({},t.payload.dataOrKey,t.payload.keyData)))):("object"===HA(t.payload.dataOrKey)&&Array.isArray(t.payload.dataOrKey),Object.assign(Object.assign({},e),zA({},t.payload.viewModelKey,t.payload.dataOrKey)))}function JA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pw.UPDATE:return qA(e,t)}return e}var $A="LanguageDataService",KA="locale",WA="phrases",YA="language:data:service";function GA(e){return(GA="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 ZA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QA(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 XA(e,t){return(XA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nT(e);if(t){var a=nT(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return tT(this,n)}}function tT(e,t){return!t||"object"!==GA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nT(e){return(nT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rT=function(e){!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&&XA(e,t)}(i,e);var t,n,r,a=eT(i);function i(){return ZA(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return $A}},{key:"channelName",get:function(){return YA}},{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:KA,expiryTime:dy.STANDARD,bootstrapName:Dp,callback:function(n){t.locale=n,t.phrases&&d.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:WA,expiryTime:dy.STANDARD,bootstrapName:Mp,callback:function(n){t.phrases=n,t.locale&&d.isFunction(e)&&e(t)}})}}])&&QA(t.prototype,n),r&&QA(t,r),i}(fy);n.d(t,"Layouts",(function(){return o})),n.d(t,"AppChannels",(function(){return c})),n.d(t,"DataChannels",(function(){return u})),n.d(t,"Actions",(function(){return a})),n.d(t,"DataPrefixes",(function(){return i})),n.d(t,"DataServices",(function(){return s})),n.d(t,"CuratorLayoutView",(function(){return z})),n.d(t,"LayoutComponent",(function(){return Y})),n.d(t,"CuratorAppNavService",(function(){return oe})),n.d(t,"CompaniesApplication",(function(){return Yf})),n.d(t,"CustomersApplication",(function(){return Ad})),n.d(t,"DomainOptionsApplication",(function(){return Cm})),n.d(t,"PeopleApplication",(function(){return eh})),n.d(t,"PlaylistsApplication",(function(){return ZE})),n.d(t,"SeriesApplication",(function(){return AC})),n.d(t,"SubjectDataService",(function(){return Lv})),n.d(t,"SubjectDataServiceHelper",(function(){return Pv})),n.d(t,"SubjectsApplication",(function(){return VC})),n.d(t,"ThemesApplication",(function(){return yO})),n.d(t,"VideosApplication",(function(){return hw})),n.d(t,"DomainOptionsApplication",(function(){return Cm})),n.d(t,"ReleaseNotesApplication",(function(){return SA})),n.d(t,"Core",(function(){return p})),n.d(t,"InstanceManager",(function(){return fp})),n.d(t,"FifoMemoryCache",(function(){return LA})),n.d(t,"AjaxDataProvider",(function(){return BA})),n.d(t,"AlertList",(function(){return Nd})),n.d(t,"AlertType",(function(){return dp})),n.d(t,"BaseAlertService",(function(){return Op})),n.d(t,"LanguageService",(function(){return Tu})),n.d(t,"Flight",(function(){return ce})),n.d(t,"CacheDurations",(function(){return dy})),n.d(t,"ViewModelReducer",(function(){return JA})),n.d(t,"LanguageDataService",(function(){return rT}))}])}));