@clickview/lite 0.0.21-rc.0 → 0.0.21
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.
- package/dist/scripts/{bundle-bf3339dd82.min.js → bundle-86b9401ad3.min.js} +1 -1
- package/dist/scripts/bundles.json +1 -1
- package/package.json +1 -1
- /package/dist/scripts/{0-c12d21b1e6.chunk.js → 0-901d9a5174.chunk.js} +0 -0
- /package/dist/scripts/{11-fa96ba0eb1.chunk.js → 11-7040a1a9eb.chunk.js} +0 -0
- /package/dist/scripts/{12-c3ee18255b.chunk.js → 12-56399321c2.chunk.js} +0 -0
- /package/dist/scripts/{13-be8a58566c.chunk.js → 13-6f6dd6876b.chunk.js} +0 -0
- /package/dist/scripts/{14-b95e3bdc63.chunk.js → 14-85b1c4519e.chunk.js} +0 -0
- /package/dist/scripts/{15-9111c0b902.chunk.js → 15-a708c0a441.chunk.js} +0 -0
- /package/dist/scripts/{16-5337a7cba9.chunk.js → 16-672f637430.chunk.js} +0 -0
- /package/dist/scripts/{17-62298dde47.chunk.js → 17-f535d75948.chunk.js} +0 -0
- /package/dist/scripts/{18-e884d230e4.chunk.js → 18-a0fa688611.chunk.js} +0 -0
- /package/dist/scripts/{19-9231048384.chunk.js → 19-efdc78b01d.chunk.js} +0 -0
- /package/dist/scripts/{2-2be2ad9b05.chunk.js → 2-959e3f07c5.chunk.js} +0 -0
- /package/dist/scripts/{20-1e059a94ec.chunk.js → 20-b3b942d3ee.chunk.js} +0 -0
- /package/dist/scripts/{21-d8e7fccff2.chunk.js → 21-5d0bf18256.chunk.js} +0 -0
- /package/dist/scripts/{22-15ef28b14e.chunk.js → 22-bf7f6a09af.chunk.js} +0 -0
- /package/dist/scripts/{23-3e75cdfba6.chunk.js → 23-ce69478417.chunk.js} +0 -0
- /package/dist/scripts/{24-27addc1469.chunk.js → 24-2f573144dd.chunk.js} +0 -0
- /package/dist/scripts/{25-e7997a6490.chunk.js → 25-c0a7edb46b.chunk.js} +0 -0
- /package/dist/scripts/{26-9c99812240.chunk.js → 26-eda1f676ce.chunk.js} +0 -0
- /package/dist/scripts/{27-c8d09701bb.chunk.js → 27-19a73a8e3c.chunk.js} +0 -0
- /package/dist/scripts/{28-ff8ec6e287.chunk.js → 28-543f35676a.chunk.js} +0 -0
- /package/dist/scripts/{29-c7c1be75af.chunk.js → 29-c8624a459e.chunk.js} +0 -0
- /package/dist/scripts/{3-9d79137a9f.chunk.js → 3-4681a2970b.chunk.js} +0 -0
- /package/dist/scripts/{30-67cba53175.chunk.js → 30-250405639f.chunk.js} +0 -0
- /package/dist/scripts/{31-92d2ebb1ef.chunk.js → 31-973623b2b8.chunk.js} +0 -0
- /package/dist/scripts/{32-082279e5c0.chunk.js → 32-56b87645a5.chunk.js} +0 -0
- /package/dist/scripts/{33-652a7a93e7.chunk.js → 33-8139dd6b22.chunk.js} +0 -0
- /package/dist/scripts/{34-6a4a9ac0f8.chunk.js → 34-4305b444d2.chunk.js} +0 -0
- /package/dist/scripts/{35-0512383cdc.chunk.js → 35-b00e2d430e.chunk.js} +0 -0
- /package/dist/scripts/{36-d7c2756d41.chunk.js → 36-b1ac1d234c.chunk.js} +0 -0
- /package/dist/scripts/{37-5b3f819c0d.chunk.js → 37-887ece8f25.chunk.js} +0 -0
- /package/dist/scripts/{38-bccf8a2eb4.chunk.js → 38-6b761c580b.chunk.js} +0 -0
- /package/dist/scripts/{39-6cdb4537e7.chunk.js → 39-15c7fb0629.chunk.js} +0 -0
- /package/dist/scripts/{4-053928f0cc.chunk.js → 4-c79da2c235.chunk.js} +0 -0
- /package/dist/scripts/{40-8c744ed5b1.chunk.js → 40-d06a006479.chunk.js} +0 -0
- /package/dist/scripts/{41-eb2551c0e3.chunk.js → 41-9ca185cca0.chunk.js} +0 -0
- /package/dist/scripts/{42-c51253a98a.chunk.js → 42-1169517631.chunk.js} +0 -0
- /package/dist/scripts/{43-a5a05d20c3.chunk.js → 43-0e9beea9c1.chunk.js} +0 -0
- /package/dist/scripts/{44-a84b8cc263.chunk.js → 44-d113f9e462.chunk.js} +0 -0
- /package/dist/scripts/{45-569d39ddd7.chunk.js → 45-705a98b85d.chunk.js} +0 -0
- /package/dist/scripts/{46-9e9386f3df.chunk.js → 46-6aea461612.chunk.js} +0 -0
- /package/dist/scripts/{47-efd47d2735.chunk.js → 47-56b20a5099.chunk.js} +0 -0
- /package/dist/scripts/{48-06762cd3d0.chunk.js → 48-cbbb4a5715.chunk.js} +0 -0
- /package/dist/scripts/{49-ddabc2751c.chunk.js → 49-109e79ce55.chunk.js} +0 -0
- /package/dist/scripts/{5-7b40ed6b48.chunk.js → 5-29933b6e8c.chunk.js} +0 -0
- /package/dist/scripts/{50-6211173d7e.chunk.js → 50-6f6935b631.chunk.js} +0 -0
- /package/dist/scripts/{51-70fef9b9f1.chunk.js → 51-7fa8424b75.chunk.js} +0 -0
- /package/dist/scripts/{52-9a746009d5.chunk.js → 52-a94a759a27.chunk.js} +0 -0
- /package/dist/scripts/{53-e56d01940d.chunk.js → 53-482d232c95.chunk.js} +0 -0
- /package/dist/scripts/{54-86063041f7.chunk.js → 54-de14c911e7.chunk.js} +0 -0
- /package/dist/scripts/{55-b47e8429a8.chunk.js → 55-3394848440.chunk.js} +0 -0
- /package/dist/scripts/{56-478c018071.chunk.js → 56-ad1ab23edb.chunk.js} +0 -0
- /package/dist/scripts/{57-33214b989c.chunk.js → 57-853a2f73e6.chunk.js} +0 -0
- /package/dist/scripts/{58-a10833640d.chunk.js → 58-80fcc2da85.chunk.js} +0 -0
- /package/dist/scripts/{6-60f28cd9f9.chunk.js → 6-5f5d06a387.chunk.js} +0 -0
- /package/dist/scripts/{7-12c7f1b5ac.chunk.js → 7-11cf07c243.chunk.js} +0 -0
- /package/dist/scripts/{8-70f71ff4cd.chunk.js → 8-410d69ed5a.chunk.js} +0 -0
- /package/dist/scripts/{9-198886ac3b.chunk.js → 9-c78686d1cc.chunk.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("Marionette"),require("ReactBootstrap"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("Yup"),require("ReactIntersectionObserver"),require("Autosuggest"),require("SortableHOC"),require("ImmersiveReader"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","Handlebars","Marionette","ReactBootstrap","ReactRedux","moment","ReactDOM","FontAwesome","ReactCustomScrollbars","DOMPurify","Redux","ReactTransitionGroup","Bloodhound","Polyglot","reactDropzone","Yup","ReactIntersectionObserver","Autosuggest","SortableHOC","ImmersiveReader","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("Marionette"),require("ReactBootstrap"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("Yup"),require("ReactIntersectionObserver"),require("Autosuggest"),require("SortableHOC"),require("ImmersiveReader"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.Handlebars,e.Marionette,e.ReactBootstrap,e.ReactRedux,e.moment,e.ReactDOM,e.FontAwesome,e.ReactCustomScrollbars,e.DOMPurify,e.Redux,e.ReactTransitionGroup,e.Bloodhound,e.Polyglot,e.reactDropzone,e.Yup,e.ReactIntersectionObserver,e.Autosuggest,e.SortableHOC,e.ImmersiveReader,e.marked)}(window,(function(e,t,n,r,o,i,a,c,u,s,l,f,p,h,d,y,v,m,g,b,w,S,O){return function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);u.length;)u.shift()()}var n={},r={10:0},o={10:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,2:1,3:1,4:1,5:1,6:1,8:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,31:1,34:1,38:1,44:1,46:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+e+".chunk.css",a=i.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===a))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"scripts/"+e+"-"+{0:"c12d21b1e6",1:"2b6afccaa5",2:"2be2ad9b05",3:"9d79137a9f",4:"053928f0cc",5:"7b40ed6b48",6:"60f28cd9f9",7:"12c7f1b5ac",8:"70f71ff4cd",9:"198886ac3b",11:"fa96ba0eb1",12:"c3ee18255b",13:"be8a58566c",14:"b95e3bdc63",15:"9111c0b902",16:"5337a7cba9",17:"62298dde47",18:"e884d230e4",19:"9231048384",20:"1e059a94ec",21:"d8e7fccff2",22:"15ef28b14e",23:"3e75cdfba6",24:"27addc1469",25:"e7997a6490",26:"9c99812240",27:"c8d09701bb",28:"ff8ec6e287",29:"c7c1be75af",30:"67cba53175",31:"92d2ebb1ef",32:"082279e5c0",33:"652a7a93e7",34:"6a4a9ac0f8",35:"0512383cdc",36:"d7c2756d41",37:"5b3f819c0d",38:"bccf8a2eb4",39:"6cdb4537e7",40:"8c744ed5b1",41:"eb2551c0e3",42:"c51253a98a",43:"a5a05d20c3",44:"a84b8cc263",45:"569d39ddd7",46:"9e9386f3df",47:"efd47d2735",48:"06762cd3d0",49:"ddabc2751c",50:"6211173d7e",51:"70fef9b9f1",52:"9a746009d5",53:"e56d01940d",54:"86063041f7",55:"b47e8429a8",56:"478c018071",57:"33214b989c",58:"a10833640d"}[e]+".chunk.js"}(e);var s=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var s=c;return i(i.s=404)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(95);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,o,i,a,c,u,s,l,f,p,h,d,y,v,m,g,b,w,S,O;!function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",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.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.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.PDF="pdf",e.CustomerSetting="customer_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",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="target_user"}(o||(o={})),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.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.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",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.TeacherManager="teacher_manager",e.TeacherManagerListItem="teacher_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.PlayPage="play_page",e.FloatingPlayer="floating_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(u||(u={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(s||(s={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(l||(l={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(f||(f={})),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"}(p||(p={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Thumbnail="thumbnail",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"}(h||(h={})),function(e){e.LibraryReview="library_review"}(d||(d={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(y||(y={})),function(e){e.Edit="edit"}(v||(v={})),function(e){e.Image="image",e.User="user"}(m||(m={})),function(e){e.On="on",e.Off="off"}(g||(g={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(b||(b={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(w||(w={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(S||(S={})),function(e){e[e.V1=1]="V1"}(O||(O={})),n.d(t,"n",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"j",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"k",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"a",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"e",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"f",(function(){return O}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={DEFAULT:"default:application",PLAYLISTS:"playlists:application",DASHBOARD:"dashboard:application",SUBJECT:"subject:application",EMBED:"embed:application",NOTIFICATIONS:"notifications:application",SEARCH:"search:application",CONTENT_UPDATES:"content:updates:application",USER_MANAGER:"user:manager:application",UPLOAD:"upload:application",CLASSROOMS:"classrooms:application",SETTINGS:"settings:application"},o={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(13),i=n(38),a=n(8);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){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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(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 p(e){return(p=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&&s(e,t)}(f,e);var t,n,i,c=l(f);function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=f,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{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():a.c.throw(new o.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 o=e.prototype.name;return this.referenceCounts[o]=0,this.constructors[o]=function(){return new e(t)},this.destructors[o]=function(){return r.isFunction(n.instances[o].destroy)&&n.instances[o].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]||a.c.throw(new o.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||a.c.throw(new o.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&a.c.throw(new o.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&u(t.prototype,n),i&&u(t,i),f}(i.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(241),o=n(1),i=n(96),a=n(38),c=n(8),u=n(37),s=n(13),l=n(46);function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==f(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){return(m=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&&d(e,t)}(v,e);var t,n,a,f=y(v);function v(){return p(this,v),f.apply(this,arguments)}return t=v,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new r({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||c.c.throw(new s.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!l.a.isDevelopment){var a=window.trackJs;return a&&a.console.error("No phrase set for ".concat(r," in language config")),""}c.c.throw(new s.a("No phrase set for ".concat(r," in language config.")))}if(!n||o.isEmpty(n)){var u=this.cache[r];if(u)return u;var f=this.polyglot.t(r);return this.cache[r]=f,f}var p=o.omit(n,"smartCount"),h={};for(var d in p)h[d]=i.sanitize(p[d]);o.isNumber(n.smartCount)&&(h.smart_count=n.smartCount);var y="".concat(r,":").concat(o.values(Object.assign({},h)).join(":")),v=this.cache[y];if(v)return v;var m=this.polyglot.t(r,h);return this.cache[y]=m,m}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return u.a.LANGUAGE}}])&&h(t.prototype,n),a&&h(t,a),v}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return O}));var r=n(5),o=n(15),i=n(46),a=n(19);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&&m(e,t)}function p(e){var t=v();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(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){var t="function"==typeof Map?new Map:void 0;return(d=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 y(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)})(e)}function y(e,t,n){return(y=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&m(o,n.prototype),o}).apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(d(Error)),w=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}(b),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"CoreError"}}]),n}(d(Error)),O={throw:function(e){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof w||i.a.isDevelopment))throw e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},o={ImageUrl:"ImageUrlService",PendingItems:"PendingItemsService",Alerts:"AlertService",VideoUpload:"VideoUploadService",ResourceUpload:"ResourceUploadService",SubtitleUpload:"SubtitleUploadService",VideoMixin:"VideoMixinService",ContextualSearch:"ContextualSearchService",Context:"ContextService",Notification:"NotificationService",AppOptions:"AppOptionsService"}},function(e,t,n){"use strict";var r,o,i=n(64),a=n(1),c=n(138),u=n.n(c),s=n(139),l=n.n(s),f=n(140),p=n.n(f),h=n(141),d=n.n(h),y=(n(142),n(143),n(144)),v=n.n(y),m=n(145),g=n.n(m),b=n(146),w=n.n(b),S=n(147),O=n.n(S),k=n(148),C=n.n(k),E=n(149),R=n.n(E),P=n(150),x=n.n(P),_=n(151),A=n.n(_),T=n(152),L=n.n(T),j=n(153),N=n.n(j),I=n(154),D=n.n(I),U=n(155),M=n.n(U),z=n(156),F=n.n(z),V=n(157),H=n.n(V),q=n(158),B=n.n(q),J=n(159),G=n.n(J),K=n(160),W=n.n(K),Y=n(161),Q=n.n(Y),$=n(162),X=n.n($),Z=n(163),ee=n.n(Z),te=(n(164),n(165)),ne=n.n(te),re=n(166),oe=n.n(re),ie=n(167),ae=n.n(ie),ce=(n(168),n(169),n(170)),ue=n.n(ce),se=n(171),le=n.n(se),fe=n(172),pe=n.n(fe),he=n(173),de=n.n(he),ye=n(174),ve=n.n(ye),me=n(175),ge=n.n(me),be=(n(176),n(177)),we=n.n(be),Se=n(178),Oe=n.n(Se),ke=n(179),Ce=n.n(ke),Ee=n(180),Re=n.n(Ee),Pe=n(181),xe=n.n(Pe),_e=n(182),Ae=n.n(_e),Te=n(183),Le=n.n(Te),je=(n(184),n(185)),Ne=n.n(je),Ie=n(186),De=n.n(Ie),Ue=n(187),Me=n.n(Ue),ze=n(188),Fe=n.n(ze),Ve=n(189),He=n.n(Ve),qe=n(190),Be=n.n(qe),Je=n(191),Ge=n.n(Je),Ke=n(192),We=n.n(Ke),Ye=n(193),Qe=n.n(Ye),$e=n(194),Xe=n.n($e),Ze=n(195),et=n.n(Ze),tt=n(196),nt=n.n(tt),rt=n(197),ot=n.n(rt),it=(n(198),n(199),n(200),n(201)),at=n.n(it),ct=(n(202),n(203),n(204),n(205),n(206)),ut=n.n(ct),st=n(207),lt=n.n(st),ft=(n(208),n(209),n(210),n(211)),pt=n.n(ft),ht=n(212),dt=n.n(ht),yt=n(213),vt=n.n(yt),mt=n(214),gt=n.n(mt),bt=n(215),wt=n.n(bt),St=n(216),Ot=n.n(St),kt=n(217),Ct=n.n(kt),Et=(n(218),n(219),n(220),n(221)),Rt=n.n(Et),Pt=n(222),xt=n.n(Pt),_t=[u.a,p.a,d.a,v.a,O.a,C.a,R.a,x.a,w.a,l.a,A.a,L.a,N.a,D.a,M.a,g.a,F.a,H.a,B.a,ee.a,G.a,W.a,Q.a,X.a,ne.a,pe.a,Ge.a,Qe.a,We.a,ot.a,Xe.a,et.a,nt.a,Re.a,Ae.a,xe.a,oe.a,ae.a,Oe.a,Ce.a,we.a,ue.a,de.a,De.a,Me.a,ve.a,ge.a,Fe.a,le.a,Ne.a,He.a,Be.a,Le.a,ut.a,lt.a,at.a,vt.a,dt.a,pt.a,gt.a,Ot.a,wt.a,Ct.a,xt.a,Rt.a];function At(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.Search="search",e.Share="share",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.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",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.CloseCaption="close-caption",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"}(r||(r={}));var Tt;function Lt(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)}}a.extend(i.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(o=i.library).add.apply(o,function(e){if(Array.isArray(e))return At(e)}(Tt=_t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(Tt)||function(e,t){if(e){if("string"==typeof e)return At(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)?At(e,t):void 0}}(Tt)||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.")}()),n.d(t,"a",(function(){return jt})),n.d(t,"b",(function(){return Nt}));var jt=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 i.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return i.findIconDefinition({prefix:r,iconName:e})}}])&&Lt(t.prototype,n),r&&Lt(t,r),e}().Instance,Nt=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Default:{ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error",DIALOG_ERROR:"dialog:error",SERIES:"series",PLAY_VIDEO:"play:video",FAVOURITE_VIDEOS:"favourite:videos",EDIT_VIDEO:"edit:video",EDIT_UPLOAD:"edit:upload",SHARE:"share",WATCH_HISTORY:"watch:history"},Playlists:{HOME:"index",PLAYLIST:"playlist",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",DELETE_PLAYLIST:"delete:playlist",ADD_TO_PLAYLIST:"add:to:playlist",REMOVE_VIDEO_FROM_PLAYLIST:"remove:video:from:playlist"},Dashboard:{HOME:"index",DASHBOARD:"dashboard"},Subjects:{CLASSIFICATION:"classification",CLASSIFICATION_SERIES:"classification:series",PREFERENCES:"preferences"},Notifications:{HOME:"index"},Search:{HOME:"index"},ContentUpdates:{CONTENT_UPDATES:"content:updates",CLASSIFICATION_UPDATE:"classification:update"},UserManager:{STUDENTS:"student:manager",TEACHERS:"teacher:manager",REMOVE_USERS:"remove:users",NEW_STUDENT:"new:student",EDIT_STUDENT:"edit:student",NEW_TEACHER:"new:teacher",EDIT_TEACHER:"edit:teacher",STUDENT_UPLOAD_REVIEW:"student:upload:review",TEACHER_UPLOAD_REVIEW:"teacher:upload:review"},Upload:{MY_UPLOADS:"my:uploads",EDIT_UPLOAD:"edit:upload",CANCEL_UPLOAD:"cancel:upload"},Classrooms:{HOME:"index",CLASSROOM:"classroom",NEW_CLASSROOM:"new:classroom",EDIT_CLASSROOM:"edit:classroom",DELETE_CLASSROOM:"delete:classroom",MANAGE_CLASSROOM:"manage:classroom",ADD_STUDENTS:"add:students",REMOVE_STUDENTS:"remove:students",NEW_GROUP:"new:group",EDIT_GROUP:"edit:group",DELETE_GROUP:"delete:group"},Settings:{HOME:"index"}}},function(e,t,n){"use strict";var r=n(93);n.d(t,"a",(function(){return r}))},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 o(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 a(e,t){return(a=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}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&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(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(8).a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={CONFIG:"config:data:service",USER:"user:data:service",LANGUAGE:"language:data:service",LIBRARY:"library:data:service",SEARCH:"search:data:service",SERIES:"series:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service"},o={PENDING_ITEMS:"pending:items:service",VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",CONTEXTUAL_SEARCH:"contextual:search:service"},i={NOTIFICATIONS:"notifications:application"}},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";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){e.exports={leftNav:"_3jVyN",leftNavExpanded:"Q3CCb",leftNavAnchor:"_3A_-8",leftNavCollapsed:"_2idO9",leftNavText:"_3qbRh",leftNavBottom:"_1OHHF",partialLeftNavItem:"_131rM",iconGrey:"_2C2dq",leftNavIcon:"_13OIc",discover:"_2dE5b",active:"_3209B",playlists:"_2l2O2",myUploads:"_qXck",favouritedVideos:"mqsI_",classrooms:"Zgkg3",classroom:"_2K3g7",watchHistory:"ZMi6H",settings:"YTaso",highlightText:"_3uRuV"}},function(e,t){e.exports=r},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";n.d(t,"a",(function(){return r}));var r={SUBJECT_PLAYLISTS:"subject:playlists",CURRENT_USER:"current:user",WORKSPACE:"workspace",CONFIG:"config",LOCALE:"locale",PHRASES:"phrases",SEARCH_FILTERS:"search:filters",SERIES:"series",NOTIFICATIONS:"notifications",SUGGEST_EDIT:"suggest:edit"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables"}},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5);function o(e,t,n,o){var i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),o.call(this,i,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return d}));var r=n(1),o=n(5),i=n(44),a=n(15),c=n(19),u=/((\(\?)?:\w+)|(\*\w+)/,s=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return o.Radio.channel(a.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;o.Radio.channel(n).trigger(r,e,t)},d={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,i=e.params,u=o.Radio.channel(a.a.SHELL);return"/".concat(u.request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,i))},buildRoute:function(e,t){if(!t)return e;var n=t.args,o=t.params;if(r.each(n,(function(t){e=e.replace(u,t||"")})),e=(e=(e=e.replace(l,"")).replace(s,"")).replace(f,""),!o)return e;var a=i.a.SerializeQueryParams(o);return a.length?"".concat(e,"?").concat(a):e},trigger:function(e,t){e&&(p.hasActiveRoute()?o.Radio.channel(a.a.SHELL).once("routing:end",(function(){h(e,t)})):h(e,t))},getCurrentAppLink:function(){return o.Radio.channel(a.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPLOAD_COMPLETE:"upload:complete",FILES_SELECTED:"files:selected",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",PENDING_ITEM_READY_TO_WATCH:"pending:item:ready:to:watch",PENDING_ITEM_STATUS_CHANGE:"pending:item:status:change",PROCESSING_CANCELLED:"processing:cancelled",UNLOCK_NAV:"upload:unlock:nav"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={debounce:function(e,t,n){return r.debounce(e,t,n)},throttle:function(e,t,n){return r.throttle(e,t,n)},isFunction:function(e){return r.isFunction(e)},useIdentity:function(){return r.identity},memoize:function(e,t){return r.memoize(e,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(98),o="categories{libraries.typeid:".concat(r.a.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,tags,clips{limit:100},")+"interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",SERIES:"tallposter,rating",FOLDER:"banner,thumbnail",CLASSIFICATION:"banner,cover",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover"},a={SubjectPresentationActiveAudienceFilter:function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},SubjectPresentationAudienceFilter:function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},ClassificationWithFollowersAndMemberCount:function(e){return i.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"}}},function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return g}));var r,o,i=n(1),a=n(5),c=n(62),u=n(43),s=n(38),l=n(15),f=n(37);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 h(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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(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 m(e){return(m=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"}(r||(r={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(o||(o={}));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&&d(e,t)}(s,e);var t,n,r,o=y(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.alertCollection=new c.a,this.listenTo(l.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=a.Radio.channel(l.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=i.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=i.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new u.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?i.bind((function(e,n){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?i.bind((function(e){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return i.uniqueId("alert_")}},{key:"name",get:function(){return f.a.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&h(t.prototype,n),r&&h(t,r),s}(s.a)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.ExchangeVideoAvailable="exchange-video-available",e.WorkspaceVideoAvailable="workspace-video-available",e.Marketing="marketing",e.EditedVideoAvailable="edited-video-available",e.VideoRequestAvailable="pay-tv-video-available",e.VideoRequestDenied="pay-tv-video-denied",e.VideoReviewReminder="term-update-review-reminder",e.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",e.CustomLibraryVideoAvailable="custom-library-video-available",e.VideoProcessingFailed="video-processing-failed",e.StaffRequest="new-staff-request",e.StaffRequestFulfilled="staff-request-fulfilment",e.ChapterMergeSuccess="media-concatenate-success",e.SuggestEdit="suggest-an-edit"}(r||(r={}))},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(13),a=n(3),c=n(15),u=n(100);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(a,e);var t,n,r,i=h(a);function a(){var e;return l(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:"initialize",value:function(){this.listenTo(c.a.SHELL,o.a.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}},{key:"name",get:function(){return u.a.Context}}])&&f(t.prototype,n),r&&f(t,r),a}(o.a.Service)),m=n(65);function g(){var e=v.getCurrentContext().appLink;return r.isObject(e)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function b(){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,c=e.descriptor,u=void 0===c?null:c;return t||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:g(),location:t,entity:n,descriptor:u,workflowPhase:a}}function w(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(t,"a",(function(){return S}));var S={logUserAction:function(e,t){if(function(e){return!(!r.isArray(e)||!r.every(e,(function(e){return r.isObject(e)})))||!!r.isObject(e)}(e)&&r.isObject(t)){var n=S.buildUserActionEvent(t),o=n.userAction,i=n.action,a=n.eventVersion;m.a.log(o,e,i,a)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:w(),appLink:e},t);m.a.log(a.n.Navigate,n)},mergeOptions:function(e,t){return r.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=b(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return w()},buildSearchEvent:function(e,t){return{data:{query:e},action:b({entity:a.d.Video,location:a.j.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===a.l.Series&&(r=a.d.Series),n===a.l.Folder&&(r=a.d.Folder),n===a.l.Tags&&(r=a.d.Tag),n===a.l.Video&&(r=a.d.Video);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:b({entity:r,location:a.j.SearchBar})}},mapInteractionType:function(e){switch(e){case a.h.DragDrop:return a.i.DragDrop;case a.h.FileSelect:return a.i.FileSelect;default:return}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(9),o=Object.assign(Object.assign({},r.b),{CombineUploads:"combine:uploads:service"}),i=Object.assign({},r.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return u}));var r,o=n(0),i=n(26),a=n(10),c=n(83);function u(e){var t=e.svgName,n=e.className,u=void 0===n?"d-inline-block svg-container":n,s=e.tagName,l=void 0===s?"span":s,f=e.size,p=void 0===f?r.Standard:f,h=e.onClick,d=e.title,y=e.tooltipPlacement,v=void 0===y?"right":y,m=l,g={dangerouslySetInnerHTML:{__html:a.a.getSvg(t)},className:"".concat(u," ").concat(p),onClick:i.a.isFunction(h)?h:null};return d?o.createElement(c.a,{title:d,placement:v},o.createElement(m,Object.assign({},g))):o.createElement(m,Object.assign({},g))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(2);function i(e){var t=e.appLink,n=e.className,i=e.children,a=e.tag,c=void 0===a?"a":a;if(!t)return r.createElement("span",{className:n||""},i);var u=e.onClick;u||(u=function(e){e.preventDefault(),o.a.AppLinkHelper.trigger(t)});var s={onClick:u,href:o.a.AppLinkHelper.getHref(t),className:n};return r.createElement(c,Object.assign({},s),i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(242),i=n.n(o),a=/&/g,c=/[\W]+/g,u=/\s+/g,s={className:"info-link"},l={escapeExpression:function(e){return window.Handlebars.escapeExpression(e)},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(e){if(e)return e.toLowerCase().replace(a,"and").replace(c," ").trim().replace(u,"-").substr(0,80)},linkifyText:function(e,t){if(e){var n=t?r.extend({},s,t):s;return i()(e,n)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),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)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(22),o=n(23),i=n(8);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 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 o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}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 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&&s(e,t)}(f,e);var t,n,r,a=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=a.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 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],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t){e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n(60),i=n(13),a=n(38),c=n(43),u=n(70),s=n(8);function l(e){return(l="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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(d,e);var t,n,a,l=h(d);function d(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(e=l.call(this)).viewObjects={},e}return t=d,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof u.a&&e.set(n,{silent:!0}),e instanceof c.a&&!(e instanceof u.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,o=void 0!==r&&r,i=this.viewObjects[e];if(i&&o)return this.updateViewModel(i,t);if(i)return i;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=r.ctor,i=r.storage,a=this.mergeData(t,n),u=o?new o(a):new c.a(a);return this.viewObjects[e]=u,i&&!n?(this.setLocalData(e,u,null,r),this.setupChangeListeners(e,u,r)):i&&n&&this.setupChangeListeners(e,u,r),u}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var o,i=r.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),t instanceof c.a&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var o=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),r.each(i.persistProps,(function(i){o.listenTo(t,"change:".concat(i),r.partial(o.setLocalData,e,r,r,n))})))}},{key:"mergeData",value:function(e,t){return t?r.isObject(e)&&r.isObject(t)?r.extend(e,t):void s.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}},{key:"name",get:function(){return"ViewModelService"}}])&&f(t.prototype,n),a&&f(t,a),d}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),o=n(5),i=n(38),a=n(8),c=n(13);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 s(e){return function(e){if(Array.isArray(e))return l(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 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)||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 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}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=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&&p(e,t)}(l,e);var t,n,i,u=h(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=u.call(this,e),r.result(y(t),"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(y(t),"channelName")||a.c.throw(new c.a("Must provide a channelName for ".concat(r.result(y(t),"name"))));var n=[].concat(s(t.defaultProps),s(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=l,(n=[{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,o=e.errorCallback,i=e.eventPrefix,a=this.getEventNames(i),c=a.syncEvent,u=a.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),c,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),u,o),r.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),u,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),c,n),r.isFunction(o)&&o()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=e.resource,c=e.formatData,u=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(i),h=p.syncEvent,d=p.requestEvent,y=p.successEvent,v=p.errorEvent,m=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(i,this.bootstrapData[f],c,{openRequest:!1,timestamp:g}),delete this.bootstrapData[f]);var b,w=this.cache.get(i);w&&(b=w.data);var S=w&&w.openRequest,O=this.isExpired(i,u);if(S&&(this.listenToOnce(m,h,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),v,o),r.isFunction(n)&&n(e)})),this.listenToOnce(m,v,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),h,n),r.isFunction(o)&&o()}))),this.cache.has(i)&&!O||(m.trigger(d),this.listenToResponse({eventPrefix:i,formatData:c,cacheOptions:{timestamp:g},callback:n,errorCallback:o,successHandler:s,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:y,errorEvent:v})),b&&r.isFunction(n)&&!O&&n(b),b)return b}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.invalidationKeys,u=e.successHandler,s=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:h})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,o=e.resource,i=e.formatData,a=e.eventPrefix,c=e.invalidationKeys,u=e.errorHandler,s=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:y,successEvent:p,errorEvent:h})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,o=e.errorCallback,i=e.invalidationKeys,a=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:o,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:s,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.successHandler,u=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),h=p.syncEvent,d=(p.requestEvent,p.successEvent),y=p.errorEvent,v=p.successAlertEvent,m=p.errorAlertEvent,g=this.getChannel(),b=this.getTransportChannel(),w=this.getAlertChannel();r.isFunction(i)&&this.listenToOnce(g,h,i),r.isFunction(a)&&this.listenToOnce(g,y,a),this.stopListening(w,v),this.stopListening(w,m),r.isFunction(c)&&this.listenToOnce(w,v,c),r.isFunction(u)&&this.listenToOnce(w,m,u),!r.isFunction(u)&&!1!==u&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,m,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(b,d,(function(e){t.stopListening(g,y,a);for(var r=arguments.length,i=new Array(r>1?r-1:0),c=1;c<r;c++)i[c-1]=arguments[c];w.trigger.apply(w,[v,e].concat(i));var u=f.noCache?t.formatData(e,o):t.cacheData(n,e,o);f.clearCacheKey&&t.cache.remove(n),g.trigger(h,u),s&&s.length&&t.cache.invalidate(s,(function(e){return g.trigger("".concat(e,":invalidate"))}))})),this.listenTo(b,y,(function(){var e;t.stopListening(g,h,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(m,r),g.trigger(y,r),f.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.openRequest,i=void 0!==o&&o,a=r.timestamp;a||(a=this.currentTimestamp());var c=this.processPagination(t),u=this.formatData(t,n);return this.cache.set(e,{data:u,timestamp:a,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:r.isUndefined(t.offset)||r.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return r.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){r.isFunction(e)&&e(t)},o=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return o(e,"get")},create:function(e){return o(e,"create")},update:function(e){return o(e,"update")},delete:function(e){return o(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 o.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return o.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,o=e.totalItems,i=o>0&&t<o&&t+n,a=o>0&&t>0&&Math.max(t-n,0),c={};if(i&&i<o&&(c.next=i.toString()),r.isNumber(a)&&(c.previous=a.toString()),!r.isEmpty(c))return c}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,o=r.isNumber(t)&&t>0&&t<n&&t+1,i=r.isNumber(t)&&t>1&&t-1,a={};if(o&&o<=n&&(a.next=o.toString()),i&&(a.previous=i.toString()),!r.isEmpty(a))return a}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(5),i=n(23);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 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=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(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 h(e){return(h=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&&l(e,t)}(p,e);var t,n,o,a=f(p);function p(){return c(this,p),a.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(h(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(h(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(5),i=n(24),a=n(19),c=n(15),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);o.history.navigate(r,n),o.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(o),e):(e[r]=[e[r],o],e):(e[r]=o,e)}),{}):{}},StartHistory:function(){o.History.started&&o.history.stop(),o.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()?o.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},SetPageTitle:function(e){document.title=e}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Newest="newest",e.RecentlyUpdated="recentlyupdated",e.AtoZ="atoz"}(r||(r={}))},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 o}));var o=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,o;return t=e,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&r(t.prototype,n),o&&r(t,o),e}().Instance},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(0),o=n(7),i=n(36),a=r.createContext(""),c=r.memo((function(e){var t=e.phrase,n=e.namespace,i=e.options,c=r.useContext(a),u=n||c,s=o.a.getPhrase(u,t,i);return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.a.isEqual(e.options,t.options)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(15),i=n(9);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 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){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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}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 h=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&&s(e,t)}(p,e);var t,n,a,f=l(p);function p(){var e;return c(this,p),(e=f.apply(this,arguments)).routeHistory=[],e.contextHistory=[],e}return t=p,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}},{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:"getPreviousContext",value:function(){if(this.contextHistory.length&&!(this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}},{key:"updateRouteHistory",value:function(e){(r.a.AppLinkHelper.getHref(e)||"/"===r.a.LocationUtils.GetCurrentPath())&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e}))}},{key:"getCurrentRoute",value:function(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}},{key:"getPreviousRoute",value:function(){if(this.routeHistory.length&&!(this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return i.b.Context}}])&&u(t.prototype,n),a&&u(t,a),p}(r.a.Service))},function(e,t,n){e.exports={content:"_1SX2l",collapsedNavContent:"_3LJFz",openNavContent:"_34Pt4",hiddenNavContent:"_1gZ0J",mask:"mE2Dq",fixedBottomRightContainer:"Sgmex"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39),o=n(99),i=function(e,t){var n=Object(r.useDispatch)(),i=Object(r.useSelector)((function(t){return t.viewModelData[e]}));function a(t,r){n({type:o.a.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:r}})}return void 0!==t&&void 0===i&&a(t),[i,a]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH_BAR_LOCATION:"search:bar:location",WEB_PLAYER_DATA:"web:player:data",BULK_TEACHER_UPLOAD:"bulk:teacher:upload",BULK_STUDENT_UPLOAD:"bulk:student:upload"}},function(e,t){e.exports=c},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),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"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Received=1]="Received",e[e.Seen=2]="Seen",e[e.Read=3]="Read"}(r||(r={}))},function(e,t){e.exports=u},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Error=-1]="Error",e[e.Processing=1]="Processing",e[e.Completed=2]="Completed"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={urlBuilder:function(e,t){var n=r.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)):""})),o=r.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return o?"".concat(e,"?").concat(o):e},buildFilter:function(e){var t=[];if(e.limit&&t.push("limit:".concat(e.limit)),e.cursor&&t.push("page:".concat(e.cursor)),e.before&&t.push("dateCreated:...".concat(e.before)),t.length)return t.join(",")},makeHttps:function(e){return r.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e},safeUrlConcat:function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):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 o(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&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(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)}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,n){return t&&l(e.prototype,t),n&&l(e,n),e}var p;n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return m})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(p||(p={}));var h=function(){function e(t){s(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return f(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}(),d=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.LocalStorage}))}}]),n}(h),y=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.SessionStorage}))}}]),n}(h),v=d.Instance,m=y.Instance},function(e,t,n){e.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(5),o=n(23);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 a(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 o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}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 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&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{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],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={type:n(55).a.Unknown,message:"",code:0}},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=n(5),o=n(54),i=n(101),a=n(2),c=n(13);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)}}var s=n(3).f.V1,l=function(){function e(t,n,r,o){!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=o||s}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||a.a.ErrorHelper.throw(new c.a("".concat(e," is not a valid key"))),this[e]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named ".concat(e)))}}])&&u(t.prototype,n),r&&u(t,r),e}();n.d(t,"a",(function(){return f}));var f={log:function(e,t,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new l(e,t,n,a))}}},function(e,t,n){e.exports={nav:"_3RLQ9",logoContainer:"UIlc9",searchBar:"_2E7RQ",actionButtons:"_2HygL",hamburger:"_2BRko",searchBarNavContainer:"_2bUnK"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(36);function i(e){return function(e){if(Array.isArray(e))return a(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 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 c={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,o=e&&e.length?e.slice():[];return t+1>o.length&&(o=[].concat(i(o),i(Array(t+1-o.length).fill(r)))),o.splice(t,1,n),o},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)},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=o.a.deepClone(e);return-1===n?[].concat(i(r),[t]):[].concat(i(r.slice(0,n)),i(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){return r.uniq(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(7),o=n(10);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}var a,c="shared.videoActionsHelper";!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(a||(a={}));var u=function(){var e;return i(e={},a.AddToPlaylist,{label:r.a.getPhrase(c,"addToPlaylist"),svgName:o.b.AddToPlaylists}),i(e,a.RemoveFromPlaylist,{label:r.a.getPhrase(c,"removeFromPlaylist"),svgName:o.b.Delete}),i(e,a.Share,{label:r.a.getPhrase(c,"share"),svgName:o.b.Share}),i(e,a.Edit,{label:r.a.getPhrase(c,"edit"),svgName:o.b.Edit}),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return P}));var r=n(1),o=n(5),i=n(22),a=n(23),c=n(13),u=n(15),s=n(46),l=n(8),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 h(e){return function(e){if(Array.isArray(e))return d(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 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)||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 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}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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&&v(e.prototype,t),n&&v(e,n),e}function g(e,t,n){return(g="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=C(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(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&&w(e,t)}function w(e,t){return(w=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){b(n,e);var t=S(n);function n(e){var o;y(this,n),o=t.call(this,e);var i=[].concat(h(o.defaultProps),h(o.props||[]));return o.mergeOptions(e,i),r.result(k(o),"name")||l.c.throw(new l.b("Error: View with cid:".concat(o.cid," requires a name."))),o}return m(n,[{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,o;s.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",o=this.name,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),this.$el.attr(e)}},{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=g(C(n.prototype),"serializeData",this).call(this),o=r.result(this,"viewOptions"),i=r.extend({},t,{options:o});return n.ViewDataExtensions.length?r.extend.apply(r,[i].concat(h(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,o=t[n],i=f.a.getHref(o);"[this]"===r&&(r=null);var a=r?e.$el.find(n):e.$el;(a.is("a")||a.is("button"))&&(i&&"/"!==i&&a.attr("href",i),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(o)})))})))}},{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){o.Radio.channel(u.a.SHELL).trigger("render:partial:loading",this,e)}},{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],g(C(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:"defaultProps",get:function(){return["shell","layoutService"]}},{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:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(i.View);E.ViewDataExtensions=[];var R=function(e){b(n,e);var t=S(n);function n(e){var r;return y(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return m(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var o=this,i=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var a=r.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=r.getInstance(t)),t.boundListeners["".concat(a,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,r.eventName,t.render),t.boundListeners["".concat(a,":").concat(r.eventName)]=!0),o[n]=r.getData(t.resourceInstances[a]),i=i&&!!o[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,"."))),o.Radio.channel(u.a.SHELL).trigger("set:page:title",this.title)}}]),n}(E),P=function(e){b(n,e);var t=S(n);function n(){return y(this,n),t.apply(this,arguments)}return n}(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(43),i=n(62);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 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=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(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 h(e){return(h=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&&l(e,t)}(y,e);var t,n,p,d=f(y);function y(){return c(this,y),d.apply(this,arguments)}return t=y,(n=[{key:"set",value:function(e,t,n){var o,i;if(null===e)return this;for(o in"object"===a(e)?(i=e,n=t):(i={})[e]=t,n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return s(h(y.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return s(h(y.prototype),"get",this).call(this,e);var n=e.substr(0,t),o=this.attributes[n];if(!o||!r.isFunction(o.get))return s(h(y.prototype),"get",this).call(this,e);var i=e.substr(t+1);return o.get(i)}},{key:"setAssociation",value:function(e,t,n){var a=this.associations[e],c=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof o.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 o.a?t:new a(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 o=s(h(y.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(o,t)&&r.isFunction(o[t].toJSON)?o[t]=o[t].toJSON():o[t]=(new e).toJSON()})),o}},{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(h(y.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&u(t.prototype,n),p&&u(t,p),y}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<r.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}}},function(e,t,n){"use strict";var r=n(0),o=n(26);function i(e){return function(e){if(Array.isArray(e))return a(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 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}function c(e){var t=e.view,n=e.options,a=void 0===n?{}:n,c=e.className,u=void 0===c?"":c,s=r.useMemo((function(){return new t(a)}),[a]),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=r.useRef(null);return r.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){o.a.isFunction(e.close)?e.close():o.a.isFunction(e.destroy)&&e.destroy()}}}),i(t)),n}(s,[s]);return t?r.createElement("div",{ref:l,className:u}):r.createElement(r.Fragment,null)}n.d(t,"a",(function(){return c}))},function(e,t,n){e.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(e,t,n){e.exports={iconPlaceholder:"_2hr_4"}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){e.exports={fixed:"_3C4_W",inline:"_2voRI",closeSvg:"_2RiDj",buttons:"ZbN3s",flippedIcon:"_3nkTw"}},function(e,t,n){e.exports={dropMask:"_3bFev",dropContent:"_2_7SU",dropArea:"_3oOzB",border:"_1IoKS"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(225);function o(e){return Object(r.a)(e)}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),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)"}(r||(r={}))},function(e,t,n){"use strict";var r,o,i,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),function(e){e.Small="small",e.Medium="medium",e.Large="large"}(r||(r={})),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"}(o||(o={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(i||(i={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function o(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}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}function a(e){var t=o(Object(r.useState)(window.matchMedia(e).matches),2),n=t[0],i=t[1];return Object(r.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&i(t.matches);var r=function(){return i(t.matches)};return t.addListener(r),function(){return t.removeListener(r)}}),[e]),n}},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero"}(r||(r={}));var o=n(21);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)}}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,r;return t=e,(n=[{key:"name",get:function(){return o.a.SEARCH}}])&&i(t.prototype,n),r&&i(t,r),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)}}var u=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,(n=[{key:"name",get:function(){return o.a.NOTIFICATIONS}}])&&c(t.prototype,n),r&&c(t,r),e}();n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(28),i=n(131);function a(e){var t=e.title,n=e.placement,a=e.trigger,c=e.children;return r.createElement(o.OverlayTrigger,{placement:n,overlay:r.createElement(o.Tooltip,{id:"".concat(t,"-").concat(i.a.getRandomInt())},t),trigger:a},r.createElement("span",null,c))}a.defaultProps={trigger:["hover","click","focus"],placement:"top"}},function(e,t,n){"use strict";var r,o;n.d(t,"a",(function(){return r})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Student=1]="Student",e[e.Staff=2]="Staff",e[e.Admin=3]="Admin",e[e.CVAdmin=4]="CVAdmin",e[e.FreeUser=6]="FreeUser",e[e.ReadOnly=8]="ReadOnly"}(r||(r={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(o||(o={}))},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 o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}},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";n.d(t,"a",(function(){return b}));var r=n(1),o=n(5),i=n(22),a=n(19),c=n(23),u=n(8);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&&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 h(e,t,n){return(h="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=g(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=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&&d(e,t)}(f,e);var t,n,i,s=y(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(m(t),"name")||u.c.throw(new u.b("BaseApplication must define a name")),r.result(m(t),"channelName")||u.c.throw(new u.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{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"))),o.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||u.c.throw(new u.b("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new t({collection:n}))}},{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],h(g(f.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&p(t.prototype,n),i&&p(t,i),f}(i.Application)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(69),o=n(13),i=n(8);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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(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 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,a=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),a.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){i.c.throw(new o.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";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 o(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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(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 s}));var s=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&&i(e,t)}(u,e);var t,n,r,c=a(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,"Not Found")}return t=u,(n=[{key:"name",get:function(){return"NotFoundError"}}])&&o(t.prototype,n),r&&o(t,r),u}(n(2).a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t){e.exports=l},function(e,t,n){"use strict";n.r(t);var r,o=n(90);!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={}));var i=n(16);function a(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var c=[i.a.POST,i.a.PUT];function u(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,u={url:t,method:n};c.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),$.ajax(u).done((function(e,t,n){r&&r(e,a(n))})).fail((function(e,t,n){o&&o(a(e))})).always((function(){i&&i()}))}var s=n(13),l=n(95);function f(e){return(f="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 p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.namespace,i=void 0===o?"":o;return e[r]||l.ErrorHelper.throw(new s.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=[];return e.forEach((function(e){e[o]&&i.push(p(e,n)),y(e,t,n)})),i}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=Object.assign({},e);if(Object.keys(e).forEach((function(r){var a=e[r];if(a)if(Array.isArray(a)){var c=h(a,t,n);c.length&&(i[r]=c)}else if("object"===f(a)){var u=d(a,t,n);a[o]?i[r]=p(a,n):i[r]=u}})),e[o]){var a=p(e,n);return t[a]=i,a}return i}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?h(e,t,n):"object"===f(e)?d(e,t,n):e}function v(e,t){var n={};return{result:y(e,n,t),entities:n}}var m=n(36);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 b(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=b(t[e],t,n);return Object.assign(n[e],r),m.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return b(e,t,n)}));if("object"===g(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=b(e[o],t,n)||e[o]})),r}}}function w(e,t){return b(e,t,{})}var S=n(39);function O(e,t){return e===t}function k(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=null,r=null;return function(){return k(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function E(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 R(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),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=E(r),u=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),s=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return s.resultFunc=a,s.dependencies=c,s.recomputations=function(){return i},s.resetRecomputations=function(){return i=0},s}}var P=R(C);var x=n(71),_=n(0);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)}}var T=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,o;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===r.None||this.isExpired}},{key:"isExpired",get:function(){return x.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===r.Fetching}},{key:"hasError",get:function(){return this.status===r.Error}},{key:"isComplete",get:function(){return this.status===r.Success||this.status===r.Error}}])&&A(t.prototype,n),o&&A(t,o),e}();function L(e,t,n){if(!e||!t)return j();var r=t.response;return!1!==t.request.normalize&&(r=w(t.response,n)),new T({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function j(){return new T({status:r.None})}function N(e,t){return L(t,e.flightData.resources[t],e.flightData.entities)}function I(e,t){return function(){D(e,t)}}function D(e,t){e({type:o.a.API_REQUEST,request:t})}function U(e){return I(Object(S.useDispatch)(),e)}function M(e,t){var n=Object(_.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return R(C,(function(e,t){var n=["response","request"];return m.a.isEqual(m.a.omit(e,n),m.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n,r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return L(e,t,n)}))}(e):function(e){return P((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return L(e,t,n)}))}(e)}),[e]);return Object(S.useSelector)((function(e){return n(e)}))}function z(e,t){var n=Object(S.useDispatch)(),r=M(e&&e.key,t),o=I(n,e);return e&&r.shouldFetch&&o(),r}function F(e){return function(e){if(Array.isArray(e))return V(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 V(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 V(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 V(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 H=function(e,t,n){var r=Array.isArray(t)?t:[t],o=[];return r.forEach((function(t){var n,r=new RegExp(t,"i"),i=Object.keys(e.resources).filter((function(e){return r.test(e)}));(n=o).push.apply(n,F(i))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})},q=n(86);var B=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},J=function(e,t){var n=e.success,r=e.error,o=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:q.a.Ok,getResponseHeader:function(e){return""}}):i.errorResponse&&r(i.errorResponse()),o())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))},G=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function K(e){var t=e.fetchData,n=e.bootstrappedData,a=e.defaultExpiryTime,c=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:a});return function(e){return function(i){return function(a){if(a.type===o.a.API_REQUEST){var u=e.getState(),s=Object.assign({},c,a.request),l=s.success,f=s.error,p=s.always,h=s.formatData,d=G(s,["success","error","always","formatData"]),y=u.flightData.resources[d.key];if(i(a),!y||y.status!==r.Fetching){if(d.bootstrapName&&n[a.request.bootstrapName])return g(n[a.request.bootstrapName]),b(),void delete n[a.request.bootstrapName];var m={resource:d.url,type:d.type,data:d.data,success:g,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:a.request,timestamp:x.a.currentTimestamp(),xhr:t}),f&&f(t)},always:b};return void(B(d)?J(m,d):t(m))}}else i(a);function g(t,n){var r=h(t),i={result:r,entities:{}};(d.normalize&&(i=v(r,d.normalizeOptions)),e.dispatch({type:o.a.API_REPONSE,result:i.result,entities:i.entities,request:d,timestamp:x.a.currentTimestamp(),xhr:n}),d.updateState)&&(Array.isArray(d.updateState)?d.updateState:[d.updateState]).forEach((function(t){var n,r,i,a;n=t,r=H(u.flightData,n.keys),i=Object.assign({},Object.keys(u.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=u.flightData.resources[t],r=n.response;return n.request.normalize&&(r=w(n.response,u.flightData.entities)),e[t]=r,e}),{})),a=n.updateData(i),Object.keys(a).forEach((function(t){var n=u.flightData.resources[t],r=a[t],i={result:r,entities:{}};n.request.normalize&&(i=v(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:i.result,entities:i.entities,request:n.request})}))}));if(l){var a=i.result;d.normalize&&(a=w(i.result,Object.assign(Object.assign({},u.flightData.entities),i.entities))),l(a)}}function b(){d.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:d.invalidationKeys,request:d}),p&&p()}}}}}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(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 Q(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,{request:t.request,status:r.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function X(e,t){var n,o=t.entities?Object.keys(t.entities):[];return{entities:Y(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,{request:t.request,status:r.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:o}))}}function Z(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,{request:t.request,status:r.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function ee(e,t){var n,o=H(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 o[e]})).reduce((function(t,n){var o=e.resources[n];return t[n]=Object.assign({},o,{status:r.None}),t}),{}))}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:Y(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var ne={resources:{},entities:{}};function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.a.API_REQUEST:return Q(e,t);case o.a.API_REPONSE:return X(e,t);case o.a.API_ERROR:return Z(e,t);case o.a.INVALIDATE:return ee(e,t);case o.a.UPDATE:return te(e,t)}return e}var oe=n(67);var ie="id";function ae(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function ce(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var ue={getAll:function(e,t){var n=ce(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return ue.create(e,t)})),ce(e)):[]},get:function(e,t){var n=ue.getAll(e);return n.length?n.find((function(e){return e[ie]===t})):null},create:function(e,t){var n,r,o,i=ue.getAll(e),a=Object.assign(Object.assign({},t),(n={},r=ie,o=t[ie]||(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 i.push(a),ae(e,i),a},update:function(e,t){var n=ue.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[ie]===t[ie]}));return n[r]=t,ae(e,n),t},delete:function(e,t){var n=ue.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[ie]===e}));n.splice(t,1)})),ae(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof oe.a.first(a)&&(a=ue.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:ue.create(r,e)})),u=ue.getAll(e);if(u.length){var s=u.find((function(e){return e.id===t}));if(s)return c.forEach((function(e){if(s[n])if(Array.isArray(s[n])){if(s[n].find((function(t){return t.id===e.id})))return;s[n].push(e)}else s[n]=e;else s[n]=i?[e]:e})),ae(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:oe.a.first(c)}},dissoc:function(e,t,n,r){var o=ue.getAll(e);if(o.length){var i=o.find((function(e){return e.id===t}));if(i){var a=i[n];if(a)return Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach((function(e){var t=a.findIndex((function(t){return t.id===e}));a.splice(t,1)})),i[n]=a,ae(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}};n.d(t,"Actions",(function(){return o.a})),n.d(t,"RequestStatus",(function(){return r})),n.d(t,"ajaxRequest",(function(){return u})),n.d(t,"normalize",(function(){return v})),n.d(t,"denormalize",(function(){return w})),n.d(t,"emptyResponse",(function(){return j})),n.d(t,"getResponse",(function(){return N})),n.d(t,"getFetch",(function(){return I})),n.d(t,"fetch",(function(){return D})),n.d(t,"useGetFetch",(function(){return U})),n.d(t,"useGetResponse",(function(){return M})),n.d(t,"useBasicFetch",(function(){return z})),n.d(t,"createMiddleware",(function(){return K})),n.d(t,"FlightReducer",(function(){return re})),n.d(t,"Simulator",(function(){return ue}))},function(e,t,n){"use strict";var r=n(2),o=n(7),i=n(1),a=n(245),c=n.n(a);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 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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(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 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&&l(e,t)}(a,e);var t,n,r,o=f(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"getImageClass",value:function(){return this.options.customImageClass}},{key:"getHeading",value:function(){return i.isFunction(this.options.heading)?this.options.heading():this.options.heading}},{key:"getDescription",value:function(){return i.isFunction(this.options.description)?this.options.description():this.options.description}},{key:"viewOptions",value:function(){return{imageUrl:this.options.imageUrl,imageClass:this.getImageClass(),heading:this.getHeading(),description:this.getDescription()}}},{key:"name",get:function(){return"EmptyStateComponent"}},{key:"className",get:function(){var e="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(e+=" ".concat(this.options.customClass)),e}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{imageSize:"lg",paddedContainer:!0}}},{key:"appLinks",get:function(){return this.options.appLink||{}}}])&&s(t.prototype,n),r&&s(t,r),a}(r.a.Component),y={isCollectionEmpty:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collection";return e[t]&&!e[t].length}};function v(e){return(v="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){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 b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==v(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k,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&&b(e,t)}(a,e);var t,n,r,o=w(a);function a(){return m(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"shouldRender",value:function(){return!!i.isFunction(this.options.shouldRender)&&this.options.shouldRender()}},{key:"getComponent",value:function(){var e=this.options.emptyStateComponents[this.options.type](this);return new d(e)}},{key:"renderEmptyState",value:function(){if(this.shouldRender()){var e=this.getComponent();this.view.showChildView(this.options.region,e)}}},{key:"onRender",value:function(){this.renderEmptyState()}},{key:"defaults",get:function(){return{type:0,shouldRender:y.isCollectionEmpty.bind(null,this.view)}},set:function(e){}}])&&g(t.prototype,n),r&&g(t,r),a}(r.a.Behavior);!function(e){e[e.Notifications=0]="Notifications"}(k||(k={}));var E=n(6),R=n(21),P=n(104),x=n.n(P);var _,A,T,L,j=(_={},A=k.Notifications,T=function(e){var t={imageUrl:E.a.getInstance(R.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:e.options.componentOptions.noNotificationsText,customClass:"".concat(x.a.paddedContainer," ").concat(e.options.componentOptions.customClass),customImageClass:"sm"===e.options.componentOptions.imageSize?x.a.imageSmall:x.a.imageLarge};return E.a.releaseInstance(R.a.NOTIFICATIONS),t},A in _?Object.defineProperty(_,A,{value:T,enumerable:!0,configurable:!0,writable:!0}):_[A]=T,_),N=n(5),I=n(53),D=n(10),U=n(14),M=n(30);!function(e){e[e.Other=0]="Other",e[e.Alert=1]="Alert",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Success=4]="Success"}(L||(L={}));var z,F,V,H="notifications.utils",q=/^marketing-/,B=function(e){switch(e){case L.Success:return"success";case L.Alert:return"danger";case L.Warning:return"warning";case L.Info:case L.Other:default:return"dark"}},J=function(e){switch(e){case L.Success:return D.b.CheckCircle;case L.Alert:case L.Warning:return D.b.Warning;case L.Info:case L.Other:default:return D.b.Info}},G=function(e){return e===M.a.VideoProcessingFailed||e===M.a.VideoRequestDenied?"danger":e.match(q)?"warning":void 0},K=function(e){if(e.match(q))return D.b.Star},W=function(e){switch(e){case M.a.VideoReviewAddedToLibrary:case M.a.WorkspaceVideoAvailable:case M.a.ExchangeVideoAvailable:case M.a.EditedVideoAvailable:return o.a.getPhrase(H,"viewVideo");case M.a.VideoReviewReminder:return o.a.getPhrase(H,"reviewVideos");case M.a.VideoReviewAddedToLibrary:return o.a.getPhrase(H,"viewNewContent");case M.a.CustomLibraryVideoAvailable:return o.a.getPhrase(H,"viewVideoDetails");case M.a.StaffRequest:return o.a.getPhrase(H,"reviewVideo");default:return o.a.getPhrase(H,"seeNow")}},Y=n(56),Q=n(102);function $(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||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,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 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 Z(){return E.a.getInstance(R.a.NOTIFICATIONS,this)}function ee(e,t,n){return e===V.Module?function(e,t){var n=Z();return t===F.ContentUpdates?n.appLinks.pastReleases:t===F.LibraryReview?n.appLinks.awaitingReview:void 0}(0,t):e===V.Video?function(e,t,n){return Object.assign(Object.assign({},Z().appLinks.videoDetails),{args:[t]})}(0,t):e===V.StaffRequest?function(e,t,n){return Object.assign(Object.assign({},Z().appLinks.editStaffRequest),{args:[t],params:{referrer:z.Notification}})}(0,t):void 0}!function(e){e.Notification="notification"}(z||(z={})),function(e){e.LibraryReview="libraryreview",e.ContentUpdates="newcontent"}(F||(F={})),function(e){e.Video="video",e.Url="url",e.Module="module",e.App="app",e.StaffRequest="staff_request"}(V||(V={}));var te=function(e){return i.contains(Z().notificationTypesWithAppLinks,e)},ne=function(e,t){if(e&&t){var n=$(e.split(":"),2);return ee(n[0],n[1])}},re=n(114),oe=n.n(re),ie=n(246),ae=n.n(ie);function ce(e){return(ce="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 ue(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 se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){return!t||"object"!==ce(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 pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he,de=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&&se(e,t)}(i,e);var t,n,r,o=le(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){return N.Radio.channel(U.a.NOTIFICATIONS).trigger(Q.a.Read,this.model.get("id")),this.model.set("notificationStatus",Y.a.Read),!0}},{key:"getAppLink",value:function(){var e=this.model.get("appLink");if(!e)return null;var t=this.model.get("notificationType");return te(t)?ne(e,t):null}},{key:"updateReadStatus",value:function(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}},{key:"getReadStatus",value:function(){switch(this.model.get("notificationStatus")){case Y.a.Read:return"read";default:case Y.a.Received:return"unread"}}},{key:"viewOptions",value:function(){var e=G(this.model.get("notificationType"))||B(this.model.get("alertType")),t=K(this.model.get("notificationType"))||J(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:I(this.model.get("dateCreated")).fromNow(),icon:D.a.getSvg(t),iconClass:"text-".concat(e),styles:oe.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==L.Warning,actionText:W(this.model.get("notificationType"))}}},{key:"name",get:function(){return"NotificationItemComponent"}},{key:"template",get:function(){return ae.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}},{key:"className",get:function(){return"notification ".concat(oe.a.item," px-1 py-2 ").concat(this.getReadStatus())}},{key:"appLinks",get:function(){var e=this.getAppLink();return e?{"[this]":e}:{}}}])&&ue(t.prototype,n),r&&ue(t,r),i}(r.a.Component),ye=n(247),ve=n.n(ye);function me(e){return(me="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 ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(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 we(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),e}function Se(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&&Oe(e,t)}function Oe(e,t){return(Oe=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ce(this,n)}}function Ce(e,t){return!t||"object"!==me(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 Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return Pe})),function(e){e[e.Default=0]="Default",e[e.Popover=1]="Popover"}(he||(he={}));var Re=function(e){Se(n,e);var t=ke(n);function n(e){return ge(this,n),t.call(this,e)}return we(n,[{key:"name",get:function(){return"NotificationComponentCollection"}},{key:"className",get:function(){return this.options.isPopover&&"popover-list-body-sm"}},{key:"childView",get:function(){return de}},{key:"childViewOptions",get:function(){return{showActionText:!this.options.isPopover}}}]),n}(r.a.ComponentCollection),Pe=function(e){Se(n,e);var t=ke(n);function n(e){return ge(this,n),t.call(this,e)}return we(n,[{key:"regions",value:function(){return{notifications:{el:".notifications-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.isPopover?{customClass:"px-0 py-3",imageSize:"sm",noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}}},{key:"onRender",value:function(){this.showChildView("notifications",new Re(this.options))}},{key:"name",get:function(){return"NotificationListComponent"}},{key:"template",get:function(){return ve.a}},{key:"lang",get:function(){return"notifications.notificationList"}},{key:"behaviors",get:function(){return[{behaviorClass:C,region:"notifications",type:k.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:j}]}}]),n}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(24),o=n(87),i=n(1),a=n(5),c=n(22),u=n(23);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)}}var l=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,(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)}}])&&s(t.prototype,n),r&&s(t,r),e}(),f=n(19),p=n(8),h=n(44),d=n(15);function y(e){return(y="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 v(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 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 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=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function w(e,t){return(w=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==y(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=/([A-Z])/g,E=/(^|:)(\w)/gi,R=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&&w(e,t)}(s,e);var t,n,o,c=S(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=s,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(d.a.SHELL,f.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(o,i){return r.a.buildRoute(t,{application:n.channelName,action:e,args:o,params:i})}))}},{key:"processInternalRoutes",value:function(){var e=this;i.each(i.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(n,r){r&&r.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=i.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,h.a.UpdateUrl(t,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&i.each(i.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],o=e.toEventName(n);e.addRouteLookup(o,t),e.listenTo(e.channelName,o,(function(e,t){t&&t.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),h.a.PageLoad(r.a.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&i.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var o=this;this.validateAppLink(e);var c=this.toMethodName(e.action);r.b.routingStarted();var u=a.Radio.channel(d.a.SHELL);if(this.options.shell.isNavLocked())return u.trigger(f.a.NAV_IS_LOCKED,e),void r.b.routingEnded();var s=new l;i.each(this.filters,(function(e){return s.use(e)})),s.go(e,(function(){u.trigger(f.a.ROUTE,e,t),o.createApp();var a=o.controller;if(i.isFunction(a[c])||(r.b.routingEnded(),p.c.throw(new p.b("".concat(c," does not exist on the ").concat(i.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void r.b.routingEnded();a.triggerMethod("load:layout"),a[c].apply(a,[].concat(v(e.args||[]),[e.params||{}])),i.isFunction(n)&&n(),r.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 r=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a={application:r.channelName,action:r.toEventName(n),args:t.slice(0,t.length-1),params:h.a.DeserializeQueryParams(t[t.length-1])};r.executeRoute(a,{isAppRoute:!0},(function(){h.a.UpdateQuery(i.extend(r.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(C,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(E,(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||(r.b.routingEnded(),p.c.throw(new p.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return u.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(k(s.prototype),"listenTo",this))}}])&&g(t.prototype,n),o&&g(t,o),s}(c.AppRouter);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 x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(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 A(e,t,n){return(A="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=N(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function T(e,t){return(T=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(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 N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=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&&T(e,t)}(i,e);var t,n,r,o=L(i);function i(){return x(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],A(N(i.prototype),"listenTo",this))}}])&&_(t.prototype,n),r&&_(t,r),i}(c.Behavior),D=n(62);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 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 z(e,t,n){return(z="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 o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?q(e):t}function q(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 J=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)}(a,e);var t,n,r,o=V(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=o.call(this,e),i.result(q(t),"name")||p.c.throw(new p.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=a,(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 u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],z(B(a.prototype),"listenTo",this))}}])&&M(t.prototype,n),r&&M(t,r),a}(c.CollectionView),G=n(88),K=n(70),W=n(38),Y=n(43),Q=n(69);function $(e){return($="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 X(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 Z(e,t,n){return(Z="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=re(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==$(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 re(e){return(re=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&&ee(e,t)}(a,e);var t,n,r,o=te(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=o.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=a,(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]||p.c.throw(new p.b("".concat(t," was not registered as a template.")));var o=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===o&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=o,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){i.each(this.requiredRegions,(function(t){i.has(i.result(e.prototype,"regions"),t)||p.c.throw(new p.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Z(re(a.prototype),"listenTo",this))}}])&&X(t.prototype,n),r&&X(t,r),a}(c.Object);function ie(e){return(ie="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 ae(e,t,n){return(ae="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=le(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){return!t||"object"!==ie(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 le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(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 he(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}var de=function(){function e(t,n){fe(this,e),this.application=t,this.options=n||{}}return he(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),ye=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&&ce(e,t)}(n,e);var t=ue(n);function n(){return fe(this,n),t.apply(this,arguments)}return he(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(d.a.SHELL,f.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(d.a.SHELL,f.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(d.a.SHELL,f.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(d.a.SHELL,f.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=a.Radio.channel(d.a.SHELL);t.reply(f.a.HAS_ACTIVE_ROUTE,i.bind(this.hasActiveRoute,this)),t.reply(f.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){r.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=a.Radio.channel(d.a.SHELL);this.listenTo(e,f.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;a.Radio.channel(d.a.SHELL).reply(f.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 de(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return d.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(r,o){t.runStartUpSteps(t,e,(function(r,o,i){ae(le(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;i.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(),h.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,o){return t(n,r,(function(){return e(n,r,o)}))}),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||p.c.throw(new p.b("An error must have a name in order to register a handler for it.")),i.any(this.errorHandlers,(function(t){return t.errorType===e}))&&p.c.throw(new p.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=i.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 u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],ae(le(n.prototype),"listenTo",this))}}]),n}(c.Application);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b})),n.d(t,"Application",(function(){return o.a})),n.d(t,"AppRouter",(function(){return R})),n.d(t,"Behavior",(function(){return I})),n.d(t,"Collection",(function(){return D.a})),n.d(t,"CollectionView",(function(){return J})),n.d(t,"ComponentCollection",(function(){return J})),n.d(t,"Error",(function(){return p.a})),n.d(t,"ErrorHelper",(function(){return p.c})),n.d(t,"SilentError",(function(){return p.d})),n.d(t,"LayoutView",(function(){return G.a})),n.d(t,"NestedModel",(function(){return K.a})),n.d(t,"Service",(function(){return W.a})),n.d(t,"Model",(function(){return Y.a})),n.d(t,"View",(function(){return Q.b})),n.d(t,"Component",(function(){return Q.a})),n.d(t,"EventNames",(function(){return f.a})),n.d(t,"LayoutService",(function(){return oe})),n.d(t,"Middleware",(function(){return l})),n.d(t,"LocationUtils",(function(){return h.a})),n.d(t,"Shell",(function(){return ye}))},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g}));var r=n(42),o=n(6),i=n(9),a=n(14),c=n(20),u=n(41);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(s,e);var t,n,r,o=h(s);function s(){return l(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:c.a.CURRENT_USER,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:c.a.WORKSPACE,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return i.a.User}},{key:"channelName",get:function(){return a.b.USER}}])&&f(t.prototype,n),r&&f(t,r),s}(r.a),m={dataServiceName:i.a.User,dataChannelName:a.b.USER},g={getCurrentUserFetchOptions:function(e,t){return Object.assign(Object.assign({},m),{eventPrefix:c.a.CURRENT_USER,fetchData:function(e){return e.getCurrentUser()},setData:e,onError:t})},currentUser:{dataServiceName:i.a.User,eventName:"".concat(c.a.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return o.a.getInstance(i.a.User,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),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"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPDATE:"UPDATE_VIEW_MODEL"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ANALYTICS:"global:analytics"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Read="notification:read"}(r||(r={}))},function(e,t,n){e.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(e,t,n){e.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(e,t,n){e.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(e,t,n){e.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(e,t,n){e.exports={searchSvgContainer:"_1-crd",tipsContainer:"_15HAy",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(e,t,n){e.exports={appLink:"_1SFgo",seasonEpisodeContainer:"_1YAi8"}},function(e,t){e.exports=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(27);var r=Object.assign(Object.assign({},{VIDEO:"series,season,rating,producers,glance,distributors,resources,tags,productionCompanies,directors,links,thumbnail,interactives[owner[customers[organisation]]],clips",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}"}),{VIDEO_COLLECTION:"thumbnail,tags,rating,series,season",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover,subjectpresentationaudiences"})},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(224),o=n(85),i=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var c=a(),u=a("@"),s=a(":"),l=a("."),f=a(),p=a(),h=a("\n"),d=a(),y=a("+"),v=a("#"),m=a(),g=a("mailto:"),b=a("?"),w=a("/"),S=a("_"),O=a(),k=a(),C=a(),E=a("{"),R=a("["),P=a("<"),x=a("("),_=a("}"),A=a("]"),T=a(">"),L=a(")"),j=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=h,t.NUM=d,t.PLUS=y,t.POUND=v,t.QUERY=b,t.PROTOCOL=m,t.MAILTO=g,t.SLASH=w,t.UNDERSCORE=S,t.SYM=O,t.TLD=k,t.WS=C,t.OPENBRACE=E,t.OPENBRACKET=R,t.OPENANGLEBRACKET=P,t.OPENPAREN=x,t.CLOSEBRACE=_,t.CLOSEBRACKET=A,t.CLOSEANGLEBRACKET=T,t.CLOSEPAREN=L,t.AMPERSAND=j},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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(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}n.d(t,"a",(function(){return u}));var i={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 5.0/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function a(e,t,n){var o=r(t.exec(n)||[],3),i=(o[0],o[1],o[2]);return i||(i="Unknown"),{browser:e,version:i}}function c(e,t,n){if(!t)return{os:e,version:"Unknown"};var r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():"Unknown"}}var u={getDeviceType:function(){var e=window.navigator.userAgent;return i.mobileDevice.test(e)?i.iphone.test(e)?"iPhone":i.ipad.test(e)?"iPad":i.android.test(e)?"Android":i.blackberry.test(e)?"Blackberry":i.windowsPhone.test(e)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem:function(){var e=window.navigator.userAgent;return i.linux.test(e)?c("Linux",null,e):i.unix.test(e)?c("Unix",null,e):i.mac.test(e)?c("Macintosh",i.osxVersion,e):i.windows.test(e)?function(e,t){var n={os:e};return i.win2000.test(t)&&(n.version="2000"),i.winXP.test(t)&&(n.version="XP"),i.winVista.test(t)&&(n.version="Vista"),i.win7.test(t)&&(n.version="7"),i.win8.test(t)&&(n.version="8"),i.win81.test(t)&&(n.version="8.1"),i.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):i.iphone.test(e)||i.ipad.test(e)?c("iOS",i.iosVersion,e):i.android.test(e)?c("Android",i.androidVersion,e):i.blackberry.test(e)?c("Android",i.blackberryVersion,e):i.windowsPhone.test(e)?c("Android",i.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},getBrowser:function(){var e=window.navigator.userAgent;return i.chrome.test(e)?a("Chrome",i.generalVersion,e):i.firefox.test(e)?a("Firefox",i.generalVersion,e):i.safari.test(e)?a("Safari",i.generalVersion,e):i.ie.test(e)?a("Internet Explorer",i.ieVersion,e):i.edge.test(e)?a("Edge",i.edgeVersion,e):i.opera.test(e)?a("Opera",i.operaVersion,e):{browser:"Unknown",version:"Unknown"}},isTouchScreen:function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)}}},function(e,t){e.exports=h},function(e,t,n){e.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(e,t){e.exports=d},function(e,t,n){e.exports={coverImage:"_1_Tx-",coverContainer:"_3Qf-6",textContainer:"_34VXV"}},function(e,t,n){"use strict";(function(e){var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t,a=!0,c=0;for(i=a?i:i[Symbol.iterator]();;){var u;if(a){if(c>=i.length)break;u=i[c++]}else{if((c=i.next()).done)break;u=c.value}var s=u;s.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){var o=n[r];if(o===t){n.splice(r,1);break}}return this}}]),e}(),i=function(e){function i(e,t){r(this,i);var o,a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),c=void 0;if(a.element=e,a.version=i.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(a),a.element.dropzone=a;var u,s=null!=(o=i.optionsForElement(a.element))?o:{};if(a.options=i.extend({},a.defaultOptions,s,null!=t?t:{}),a.options.forceFallback||!i.isBrowserSupported())return u=a.options.fallback.call(a),n(a,u);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(c=a.getExistingFallback())&&c.parentNode&&c.parentNode.removeChild(c),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=i.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=i.getElements(a.options.clickable,"clickable")),a.init(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=o,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");;){if(t>=n.length)break;var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var o=e.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*i:null==n&&(n=t/i);var a=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===r)i>a?(o.srcHeight=e.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=e.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>a?n=t/i:t=n*i}return o.srcX=(e.width-o.srcWidth)/2,o.srcY=(e.height-o.srcHeight)/2,o.trgWidth=t,o.trgHeight=n,o},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=i.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var o=r[n++];o.textContent=e.name}for(var a=0,c=c=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=c.length);)(o=c[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var u=function(n){return n.preventDefault(),n.stopPropagation(),e.status===i.UPLOADING?i.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?i.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},s=0,l=l=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(s>=l.length)break;l[s++].addEventListener("click",u)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var o=r[n++];o.alt=e.name,o.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,o=o=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=o.length)break;var i=o[r++];"PROGRESS"===i.nodeName?i.value=t:i.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value: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 o=n,i=!0,a=0;for(o=i?o:o[Symbol.iterator]();;){var c;if(i){if(a>=o.length)break;c=o[a++]}else{if((a=o.next()).done)break;c=a.value}var u=c;for(var s in u){var l=u[s];e[s]=l}}return e}}]),t(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===i.UPLOADING||e.status===i.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",i.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,o=o=n;;){if(r>=o.length)break;var i=o[r++];e.addFile(i)}return e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;;){if(t>=n.length)break;var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var o=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return o(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return o(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||i.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,o=o=this.getActiveFiles();;){if(r>=o.length)break;var i=o[r++];t+=i.upload.bytesSent,n+=i.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=i.createElement(n);return"FORM"!==this.element.tagName?(t=i.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,o=t[n];if(r=e(this.element.getElementsByTagName(o)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],o=0;o<r.length;o++){var i=r[o];if(e>=Math.pow(this.options.filesizeBase,4-o)/10){t=e/Math.pow(this.options.filesizeBase,4-o),n=i;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var r=e.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,o=o=e;;){if(r>=o.length)break;var i,a=o[r++];null!=a.webkitGetAsEntry&&(i=a.webkitGetAsEntry())?i.isFile?n.push(t.addFile(a.getAsFile())):i.isDirectory?n.push(t._addFilesFromDirectory(i,i.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),o=function(e){return t=console,n="log",r=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var o=0,i=i=r;;){if(o>=i.length)break;var a=i[o++];a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null}),o)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:i.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=i.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==i.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===i.UPLOADING&&this.cancelUpload(e),this.files=a(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();;){if(t>=n.length)break;var r=n[t++];(r.status!==i.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,o){var a=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return o(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var c=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(c=s.restore(e.dataURL,c)),o(i.dataURItoBlob(c))}))}},{key:"createThumbnail",value:function(e,t,n,r,o,i){var a=this,c=new FileReader;return c.onload=function(){if(e.dataURL=c.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,o,i);null!=i&&i(c.result)},c.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,o,i,a){var c=this,s=document.createElement("img");return a&&(s.crossOrigin=a),s.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(e){return EXIF.getData(s,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(o){e.width=s.width,e.height=s.height;var a=c.options.resize.call(c,e,t,n,r),l=document.createElement("canvas"),f=l.getContext("2d");switch(l.width=a.trgWidth,l.height=a.trgHeight,o>4&&(l.width=a.trgHeight,l.height=a.trgWidth),o){case 2:f.translate(l.width,0),f.scale(-1,1);break;case 3:f.translate(l.width,l.height),f.rotate(Math.PI);break;case 4:f.translate(0,l.height),f.scale(1,-1);break;case 5:f.rotate(.5*Math.PI),f.scale(1,-1);break;case 6:f.rotate(.5*Math.PI),f.translate(0,-l.width);break;case 7:f.rotate(.5*Math.PI),f.translate(l.height,-l.width),f.scale(-1,1);break;case 8:f.rotate(-.5*Math.PI),f.translate(-l.height,0)}u(f,s,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var p=l.toDataURL("image/png");if(null!=i)return i(p,l)}))},null!=i&&(s.onerror=i),s.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===i.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;;){if(n>=r.length)break;r[n++].status=i.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var o=0,a=a=t;;){if(o>=a.length)break;var c=a[o++];this.emit("canceled",c)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==i.ADDED&&e.status!==i.QUEUED||(e.status=i.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],o=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*t.options.chunkSize,c=Math.min(a+t.options.chunkSize,r.size),u={name:t._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,c):o.slice(a,c),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:u,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[u])}};if(r.upload.finishedChunkUpload=function(n){var o=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var c=0;c<r.upload.totalChunkCount;c++){if(void 0===r.upload.chunks[c])return a();r.upload.chunks[c].status!==i.SUCCESS&&(o=!1)}o&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var c=0;c<r.upload.totalChunkCount;c++)a();else a()}else{for(var u=[],s=0;s<e.length;s++)u[s]={name:t._getParamName(s),data:n[s],filename:e[s].upload.filename};t._uploadData(e,u)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,o=0,a=a=e;;){if(o>=a.length)break;a[o++].xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var c=this.resolveOption(this.options.method,e),u=this.resolveOption(this.options.url,e);r.open(c,u,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var s={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var l in this.options.headers&&i.extend(s,this.options.headers),s){var f=s[l];f&&r.setRequestHeader(l,f)}var p=new FormData;if(this.options.params){var h=this.options.params;for(var d in"function"==typeof h&&(h=h.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),h){var y=h[d];p.append(d,y)}}for(var v=0,m=m=e;;){if(v>=m.length)break;var g=m[v++];this.emit("sending",g,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,p),this._addFormElementData(p);for(var b=0;b<t.length;b++){var w=t[b];p.append(w.name,w.data,w.filename)}this.submitRequest(r,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],o=0,i=function(i){n.options.transformFile.call(n,e[i],(function(n){r[i]=n,++o===e.length&&t(r)}))},a=0;a<e.length;a++)i(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var r=n[t++],o=r.getAttribute("name"),i=r.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=o)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,c=c=r.options;;){if(a>=c.length)break;var u=c[a++];u.selected&&e.append(o,u.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&e.append(o,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var o=e[0],i=this._getChunk(o,t);i.progress=r,i.total=n.total,i.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var a=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else for(var c=0,u=u=e;;){if(c>=u.length)break;var s=u[c++];s.upload.progress=r,s.upload.total=n.total,s.upload.bytesSent=n.loaded}for(var l=0,f=f=e;;){if(l>=f.length)break;var p=f[l++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var h=!0;r=100;for(var d=0,y=y=e;;){if(d>=y.length)break;var v=y[d++];100===v.upload.progress&&v.upload.bytesSent===v.upload.total||(h=!1),v.upload.progress=r,v.upload.bytesSent=v.upload.total}if(h)return;for(var m=0,g=g=e;;){if(m>=g.length)break;var b=g[m++];this.emit("uploadprogress",b,r,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=0,a=a=e;;){if(o>=a.length)break;a[o++];this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,o=o=e;;){if(r>=o.length)break;var a=o[r++];a.status=i.SUCCESS,this.emit("success",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,o=o=e;;){if(r>=o.length)break;var a=o[r++];a.status=i.ERROR,this.emit("error",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),i}(o);i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(e){return e.getAttribute("id")?i.options[c(e.getAttribute("id"))]:void 0},i.instances=[],i.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},i.autoDiscover=!0,i.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,o=o=t;;){if(r>=o.length)break;var i=o[r++];/(^| )dropzone($| )/.test(i.className)?n.push(e.push(i)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;;){if(n>=r.length)break;var o=r[n++];!1!==i.optionsForElement(o)?t.push(new i(o)):t.push(void 0)}return t}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=i.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},i.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0,a=t.length,c=0<=a;c?i<=a:i>=a;c?i++:i--)o[i]=t.charCodeAt(i);return new Blob([r],{type:n})};var a=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},c=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};i.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},i.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},i.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var o=0,i=i=e;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,c=c=document.querySelectorAll(e);!(a>=c.length);)n=c[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},i.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),o=0,i=i=t;;){if(o>=i.length)break;var a=i[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new i(this,e)}))}),null!==e?e.exports=i:window.Dropzone=i,i.ADDED="added",i.QUEUED="queued",i.ACCEPTED=i.QUEUED,i.UPLOADING="uploading",i.PROCESSING=i.UPLOADING,i.CANCELED="canceled",i.ERROR="error",i.SUCCESS="success";var u=function(e,t,n,r,o,i,a,c,u,s){var l=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var o=r.getImageData(1,0,1,t).data,i=0,a=t,c=t;c>i;){0===o[4*(c-1)+3]?a=c:i=c,c=a+i>>1}var u=c/t;return 0===u?1:u}(t);return e.drawImage(t,n,r,o,i,a,c,u,s/l)},s=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,o="",i=void 0,a=void 0,c=void 0,u="",s=0;i=(n=e[s++])>>2,a=(3&n)<<4|(r=e[s++])>>4,c=(15&r)<<2|(o=e[s++])>>6,u=63&o,isNaN(r)?c=u=64:isNaN(o)&&(u=64),t=t+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(c)+this.KEY_STR.charAt(u),n=r=o="",i=a=c=u="",s<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),o=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),o=r.indexOf(255,3),i=r.slice(0,o),a=r.slice(o),c=i;return c=(c=c.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,o=e.slice(t,r);n.push(o),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",o=void 0,i=void 0,a="",c=0,u=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(c++))<<2|(o=this.KEY_STR.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(i=this.KEY_STR.indexOf(e.charAt(c++)))>>2,r=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(c++))),u.push(t),64!==i&&u.push(n),64!==a&&u.push(r),t=n=r="",o=i=a="",c<e.length;);return u}}]),e}();s.initClass();i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(e,t){var n=!1,r=!0,o=e.document,i=o.documentElement,a=o.addEventListener?"addEventListener":"attachEvent",c=o.addEventListener?"removeEventListener":"detachEvent",u=o.addEventListener?"":"on",s=function r(i){if("readystatechange"!==i.type||"complete"===o.readyState)return("load"===i.type?e:o)[c](u+i.type,r,!1),!n&&(n=!0)?t.call(e,i.type||i):void 0};if("complete"!==o.readyState){if(o.createEventObject&&i.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{i.doScroll("left")}catch(t){return void setTimeout(e,50)}return s("poll")}()}o[a](u+"DOMContentLoaded",s,!1),o[a](u+"readystatechange",s,!1),e[a](u+"load",s,!1)}}(window,i._autoDiscoverFunction)}).call(this,n(403)(e))},function(e,t,n){"use strict";var r=n(0),o=n(28),i=n(26);function a(){return r.createElement("div",{className:"text-center p-5"},r.createElement(o.Spinner,{as:"div",animation:"border",role:"status"}))}function c(e){var t=e.title,n=e.closeButton,c=void 0===n||n,u=e.closePopup,s=e.onEntered,l=e.showLoadingSpinner,f=Object.assign({show:!0,onHide:u},i.a.isFunction(s)?{onEntered:s}:{});return r.createElement(o.Modal,Object.assign({},f),!!t&&r.createElement(o.Modal.Header,{closeButton:c},r.createElement(o.Modal.Title,null,t)),l?r.createElement(a,null):r.createElement(o.Modal.Body,null,e.children))}n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n(33),i=n(34),a=n(75),c=n.n(a);function u(e){var t=e.svgName,n=e.children,a=e.appLink,u=e.className,s=e.onClick,l="".concat(u," ").concat(c.a.iconButton);l+=" ".concat(n?c.a.iconWithText:c.a.iconOnly);var f=r.createElement(o.a,{svgName:t,className:c.a.svg});return a?r.createElement(i.a,{appLink:a,className:l,onClick:s},f,n):r.createElement("button",{className:l,onClick:s},f,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={currentUser:{url:"/api/currentUser",key:"currentuser"},workspace:{url:"api/domain/v2/me/workspace",key:"workspace"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r,o,i=n(59),a=n(36),c=n(2),u=n(80);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"}(o||(o={}));var l=(s(r={},u.b.Banners,o.Banner),s(r,u.b.Thumbnails,o.Thumbnail),r),f=function(e){return"/v1/category-map/".concat(e)},p={createUrl:function(e,t){return p._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?p._createUrl(e.url,n):p._createCategoryMappedUrl(t,n)},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,o=e.type,a=i.a.safeUrlConcat(n,"".concat(f(l[o]))),c=Object.assign({name:p.Rfc3986EncodeURIComponent(r)},t);return p._createUrl(a,c)},_createUrl:function(e,t){if(e){if(a.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return i.a.safeUrlConcat(e,"".concat(r).concat(n))}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof c.a.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:u.a.Small,bgColor:"000"},t);return p._createUrl(n,r)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(12),o=n(59),i=n(16);function a(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 u={getAll:function(){return{url:"/api/domain/v1/classrooms",key:"classrooms",successResponse:function(){return r.a.Simulator.getAll("classrooms")},timeout:1e3}},getClassroom:function(e){return{url:"/api/domain/v1/classrooms/".concat(e),key:"classroom:".concat(e),invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.get("classrooms",e)},timeout:5e3}},createClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"create:classroom",type:i.a.POST,invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.create("classrooms",Object.assign(Object.assign({},e),{students:[],groups:[],activities:[],isFavourited:!1}))},success:t,error:n}},editClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"update:classroom",type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",e)},success:t,error:n}},deleteClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"delete:classroom",type:i.a.DELETE,invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.delete("classrooms",e),{}},success:t,error:n}},addStudents:function(e,t,n,o){return{url:"/api/domain/v1/classrooms/".concat(t,"/students"),key:"add:students:classroom",type:i.a.POST,invalidationKeys:["classroom:".concat(t),"students","groups:with:all:students"],successResponse:function(){return r.a.Simulator.assoc("classrooms",t,"students","school:students",e)},success:n,error:o}},removeStudents:function(e,t,n,o){return{url:"/api/domain/v1/classrooms/".concat(t,"/students"),key:"remove:students:classroom",type:i.a.DELETE,invalidationKeys:["classroom:".concat(t)].concat(a(e.map((function(e){return"students:".concat(e)}))),["groups:with:all:students"]),successResponse:function(){return r.a.Simulator.dissoc("classrooms",t,"students",e)},success:n,error:o}},addGroupToClassroom:function(e,t,n,o){return{url:"/api/domain/v1/classrooms/".concat(t,"/groups"),key:"add:classroom:group",type:i.a.POST,invalidationKeys:["classroom:".concat(t)],successResponse:function(){return r.a.Simulator.assoc("classrooms",t,"groups","groups",e)},success:n,error:o}},editGroup:function(e,t,n,o){return{url:"/api/domain/v1/groups/".concat(e.id),key:"group:".concat(e.id),type:i.a.PUT,invalidationKeys:["groups","classroom:".concat(t.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},t),{groups:t.groups.map((function(t){return t.id!==e.id?t:e}))})),r.a.Simulator.update("groups",e)},success:n,error:o}},deleteGroup:function(e,t,n,o){return{url:"/api/domain/v1/groups/".concat(e),key:"delete:group",type:i.a.DELETE,invalidationKeys:["groups","classroom:".concat(t)],successResponse:function(){return r.a.Simulator.dissoc("classrooms",t,"groups",e),r.a.Simulator.delete("groups",e),{}},success:n,error:o}},addStudentsToGroup:function(e,t,n,o){return{url:"/api/domain/v1/groups/".concat(t,"/students"),key:"add:student:group",data:e,type:i.a.POST,invalidationKeys:["group:".concat(t)].concat(a(e.map((function(e){return"user:".concat(e,":groups")}))),["groups:with:all:students"]),successResponse:function(){return e.forEach((function(e){r.a.Simulator.assoc("groups",t,"students","school:students",[e])})),r.a.Simulator.get("groups",t)},success:n,error:o}},removeStudentsFromGroup:function(e,t,n,c){return{url:o.a.urlBuilder("/api/domain/v1/groups/".concat(t,"/students"),{id:e}),key:"remove:student:group",type:i.a.DELETE,invalidationKeys:["group:".concat(t),"groups:with:all:students"].concat(a(e.map((function(e){return"user:".concat(e,":groups")})))),successResponse:function(){return e.forEach((function(e){r.a.Simulator.dissoc("groups",t,"students",e)})),r.a.Simulator.get("groups",t)},success:n,error:c}},getStarredClassrooms:function(){return{url:"/api/domain/v1/me/starred-classrooms",key:"starred:classrooms",successResponse:function(){return r.a.Simulator.getAll("classrooms").filter((function(e){return e.isFavourited}))}}},starClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/star"),key:"star:classroom:".concat(e.id),type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!0}))},success:t,error:n}},unstarClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/unstar"),key:"unstar:classroom:".concat(e.id),type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!1}))},success:t,error:n}},getGroupsWithAllStudents:function(e){var t=e.map((function(e){return e.id}));return{url:"i highly doubt this will be a real request",key:"groups:with:all:students",successResponse:function(){return r.a.Simulator.getAll("groups").filter((function(e){var n=!0,r=0,o=function(){var o=t[r];e.students.find((function(e){return e.id===o}))||(n=!1),r++};do{o()}while(r<t.length);return n}))}}}}},function(e,t,n){"use strict";var r=n(8),o=n(13);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)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,o=e.cursor;n&&(this.id=n),r&&(this.sort=r),o&&(this.cursor=o),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new o.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&i(t.prototype,n),a&&i(t,a),e}();n(63);n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(16),o=n(98),i=n(110),a=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(i.a.VIDEO)},c=function(e,t){var n="{orderbydesc:datecreated}".concat(i.a.VIDEO_COLLECTION).concat(function(e){return e?"&cursor=".concat(e):""}(t));return"api/domain/v2/objects/".concat(e,"/videos?query=").concat(n)},u=function(e){var t=e.map((function(e){return"id=".concat(e)}));return"/api/domain/v2/objects?".concat(t.join("&"))},s={video:function(e){return{url:a(e),key:"videos:".concat(e)}},workspace:function(e,t){return{url:c(e,t),key:"workspace:".concat(e,":").concat(t)}},videos:function(e,t){return{url:u(e),key:"videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t){return{key:"update:video:".concat(e.id),url:"/api/domain/v2/objects/".concat(e.id),type:r.a.PUT,data:e,success:t}},videoRatings:function(e){var t=e.map((function(e){return"id=".concat(e)}));return{url:"/api/domain/v2/objects?query=rating&".concat(t.join("&")),key:"video:ratings:by:id:".concat(e.join(","))}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(o.a.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(28),i=n(127),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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function c(e){var t=e.buttons;return r.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,c=e.type,u=void 0===c?"button":c,s=e.isSpinnerButton,l=e.showSpinner,f=void 0!==l&&l,p=e.className,h=a(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),d=Object.assign({key:t,type:u,className:"ml-2".concat(p?" ".concat(p):"")},h);return s?r.createElement(i.a,Object.assign({showSpinner:f},d),n):r.createElement(o.Button,Object.assign({},d),n)}(e,t)})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={config:{url:"/api/config",key:"config"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n(28);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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}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 c=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function u(e){var t=e.showSpinner,n=e.children,a=c(e,["showSpinner","children"]),u=r.useRef(),s=i(r.useState({}),2),l=s[0],f=s[1];return r.useEffect((function(){var e=l.width,t=l.height;if(!e||!t){var n=u.current,r=n.offsetHeight,o=n.offsetWidth;r&&o&&f({width:o,height:r})}})),r.useEffect((function(){var e=l.width,t=l.height;if(e&&t){var n=u.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[l]),r.createElement(o.Button,Object.assign({ref:u,disabled:t},a),t?r.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}},function(e,t,n){"use strict";var r=n(0),o=n(35),i=function(e,t){var n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n},a=n(34),c=n(108),u=n.n(c);function s(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return r.createElement(r.Fragment,null);var o=i(n.number,2),a=i(t.episodeNumber,2);return r.createElement("span",{className:"d-inline-block ".concat(u.a.seasonEpisodeContainer)}," ",!!o&&"S".concat(o," • "),"E",a)}function l(e){var t=e.appLink,n=e.video.series,i=e.className;if(!n||!n.id)return r.createElement(r.Fragment,null);var c=t&&Object.assign(Object.assign({},t),{args:[n.id,o.a.slugify(n.name)]});return c?r.createElement(a.a,{appLink:c,className:"text-uppercase ".concat(u.a.appLink," ").concat(i)},n.name,r.createElement(s,Object.assign({},e))):r.createElement("span",{className:"text-uppercase ".concat(u.a.appLink," ").concat(i)},n.name,r.createElement(s,Object.assign({},e)))}n.d(t,"a",(function(){return l}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=r.createContext({})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45),o={getFilterFromSort:function(e){switch(e){case r.a.RecentlyUpdated:return"orderbydesc:timestamp";case r.a.AtoZ:return"orderby:name";case r.a.Newest:default:return"orderbydesc:datecreated"}},getSortTypeFromName:function(e){switch(e){case"recentlyupdated":return r.a.RecentlyUpdated;case"atoz":return r.a.AtoZ;case"newest":default:return r.a.Newest}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={getRandomInt:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},i={ToDisplayDuration:function(e){if(!r.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),i=o(t.getUTCMinutes(),2,"0"),a=o(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(i,":").concat(a):"".concat(i,":").concat(a)}}},function(e,t,n){"use strict";var r,o=n(27);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(r||(r={})),n.d(t,"a",(function(){return l}));var i=function(){return"/api/domain/v1/subjects?query=".concat(o.a.CLASSIFICATION)},a=function(e,t){return"/api/domain/v1/subjects/".concat(e,"?query=").concat(o.b.ClassificationWithFollowersAndMemberCount(t))},c=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},u=function(e){return"/api/domain/v1/subjects/".concat(e,"/children?query=").concat(o.a.CLASSIFICATION)},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="/api/domain/v1/subjects/".concat(e,"/").concat(t),i=[];n&&i.push("query=".concat(n)),r&&i.push("cursor=".concat(r));var a=i.join("&");return a&&(o+="?".concat(a)),o},l={presentation:function(){return{url:"/api/domain/v1/subjects/presentation",key:"presentation",bootstrapName:"presentation"}},classifications:function(){return{url:i(),key:"classifications"}},classification:function(e,t,n){return{url:a(e,t),key:"classification:".concat(e),error:n}},path:function(e){return{url:c(e),key:"classification:".concat(e,":path")}},children:function(e){return{url:u(e),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var i="limit:100";n.length&&(i+=",".concat(o.b.SubjectPresentationActiveAudienceFilter(n)));var a="{".concat(i,"}").concat(o.a.VIDEO_COLLECTION)+",".concat(o.b.SubjectPresentationAudienceFilter(t));return{url:s(e,r.Videos,a),key:"classification:".concat(e,":").concat(r.Videos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var i="limit:100,orderby:name";n.length&&(i+=",".concat(o.b.SubjectPresentationActiveAudienceFilter(n)));var a="{".concat(i,"}").concat(o.a.PLAYLIST_COLLECTION)+",".concat(o.b.SubjectPresentationAudienceFilter(t));return{url:s(e,r.Playlists,a),key:"classification:".concat(e,":").concat(r.Playlists,":").concat(n.join(":"))}}},series:function(e,t,n){if(t){var i="limit:100";n.length&&(i+=",".concat(o.b.SubjectPresentationActiveAudienceFilter(n)));var a="{".concat(i,"}").concat(o.a.SERIES)+",".concat(o.b.SubjectPresentationAudienceFilter(t));return{url:s(e,r.Series,a),key:"classification:".concat(e,":").concat(r.Series,":").concat(n.join(":"))}}}}},function(e,t,n){"use strict";var r=n(5),o=n(29),i=n(13),a=n(2),c=n(6),u=n(37),s=n(7),l=n(49),f=n(14),p=n(53),h=n(58),d="upload.utils",y={getStatus:function(e){if(y.hasError(e))return s.a.getPhrase(d,"videoProcessingError");if(!e.get("foregroundComplete")){var t=y.getProgress(e);return 0===t?s.a.getPhrase(d,"waiting"):s.a.getPhrase(d,"processing",{progress:t})}return y.isDone(e)?s.a.getPhrase(d,"complete"):s.a.getPhrase(d,"readyToWatch")},hasError:function(e){return e.get("pendingProcessStatus")===h.a.Error},isDone:function(e){return 2===e.get("pendingProcessStatus")},getProgress:function(e){return e.get("foregroundProgress")},hasExpired:function(e,t){var n=e.get("timeInitialized");return p().diff(n,"days")>=t}},v=n(25),m=n(32),g=n(4),b=n(11),w=n(35);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 O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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&&k(e.prototype,t),n&&k(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&&R(e,t)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==S(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){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return j}));var A,T=s.a.encloseNamespace("upload.services"),L=function(e){E(n,e);var t=P(n);function n(){return O(this,n),t.apply(this,arguments)}return C(n,[{key:"modelId",value:function(e){return e.pendingProcessId||e.id}},{key:"comparator",get:function(){return function(e,t){var n=e.get("status"),r=t.get("status");return n===A.Errored?1:r===A.Errored?-1:0}}}]),n}(a.a.Collection);!function(e){e[e.Uploading=0]="Uploading",e[e.Processing=1]="Processing",e[e.Errored=2]="Errored"}(A||(A={}));var j=function(e){E(n,e);var t=P(n);function n(){return O(this,n),t.apply(this,arguments)}return C(n,[{key:"initialize",value:function(){this.initializeServices(),this.initializeCollections(),this.bindListeners()}},{key:"initializeServices",value:function(){this.videoUploadService=c.a.getInstance(m.b.VideoUpload,this),this.pendingItemsService=c.a.getInstance(m.b.PendingItems,this),this.alertService=c.a.getInstance(u.a.ALERT,this)}},{key:"initializeCollections",value:function(){this.uploads=this.videoUploadService.getCollection(),this.pendingItems=this.pendingItemsService.getPendingItems(),this.combined=new L,this.erroredVideos=new a.a.Collection,this.uploads.each(this.addUpload,this),this.pendingItems.each(this.addPendingItem,this)}},{key:"bindListeners",value:function(){this.listenTo(this.uploads,"add",this.addUpload),this.listenTo(this.pendingItems,"add",this.addPendingItem),this.listenTo(this.uploads,"remove",this.removeUpload),this.listenTo(this.pendingItems,"remove",this.removePendingItem),this.listenTo(this.uploads,"change",this.onChangeUpload),this.listenTo(this.pendingItems,"change",this.onChangePendingItem),this.listenTo(f.c.PENDING_ITEMS,v.a.PENDING_ITEM_READY_TO_WATCH,this.onPendingItemReadyToWatch)}},{key:"getUploadAttrs",value:function(e){return{id:e.get("id"),name:e.get("name"),progress:e.get("progress"),status:A.Uploading,pendingProcessId:e.get("pendingProcessId")}}},{key:"getPendingItemAttrs",value:function(e){return{id:e.get("pendingProcessId"),name:e.get("video").get("name"),progress:e.get("foregroundProgress"),status:y.hasError(e)?A.Errored:A.Processing,pendingProcessId:e.get("pendingProcessId"),videoId:e.get("video").get("id")}}},{key:"addUpload",value:function(e){this.combined.add(this.getUploadAttrs(e))}},{key:"addPendingItem",value:function(e){var t=this.combined.findWhere({pendingProcessId:e.get("pendingProcessId")});t?t.set(this.getPendingItemAttrs(e)):this.combined.add(this.getPendingItemAttrs(e))}},{key:"removeUpload",value:function(e){var t=this.combined.get(e.get("id"));this.combined.remove(t),this.erroredVideos.remove(t)}},{key:"removePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));this.combined.remove(t),this.erroredVideos.remove(t),r.Radio.channel(this.channelName).trigger(v.a.PROCESSING_CANCELLED)}},{key:"onChangeUpload",value:function(e){this.combined.get(e.get("id")).set(this.getUploadAttrs(e))}},{key:"onChangePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));t.set(this.getPendingItemAttrs(e)),y.hasError(e)&&this.onPendingItemError(t)}},{key:"onPendingItemError",value:function(e){if(!this.erroredVideos.findWhere({id:e.get("id")})){this.erroredVideos.add(e);var t={heading:o.c.Fail,type:o.a.Fail,message:T("errorAlertMessage",{videoName:e.get("name")})};l.a.getCurrentContext().appLink.application!==g.a.UPLOAD&&(t.appLinkText=T("errorAlertAppLinkText"),t.appLinkClassName="info-link",t.appLink={application:g.a.UPLOAD,action:b.a.Upload.MY_UPLOADS}),this.alertService.createAlert(t)}}},{key:"onPendingItemReadyToWatch",value:function(e){var t=e.get("video"),n={application:g.a.DEFAULT,action:b.a.Default.PLAY_VIDEO,args:[t.get("id"),w.a.slugify(t.get("name"))]};this.alertService.createAlert({type:o.a.Success,heading:T("completeUploadAlertHeading",{videoName:t.get("name")}),message:T("completeUploadAlertMessage",{videoName:t.get("name")}),appLink:n,appLinkText:T("completeUploadAlertAppLinkText",{videoName:t.get("name")}),appLinkClassName:"info-link"})}},{key:"cancelUpload",value:function(e){this.videoUploadService.cancelUpload(e)}},{key:"cancelProcessing",value:function(e){var t=this.pendingItems.findWhere({pendingProcessId:e});this.pendingItemsService.clearPendingItem(t)}},{key:"retryItem",value:function(e){var t=this;e.status===A.Uploading&&a.a.ErrorHelper.throw(new i.a("Cannot retry uploading items.")),this.erroredVideos.remove(e);var n=this.pendingItems.findWhere({pendingProcessId:e.id});this.pendingItemsService.retryPendingItem(n,(function(){t.pendingItemsService.forceFetchPendingItems()}))}},{key:"editUpload",value:function(e){e.status===A.Uploading&&(this.uploads.get(e.id).get("sending")||a.a.AppLinkHelper.trigger({application:g.a.UPLOAD,action:b.a.Upload.EDIT_UPLOAD,args:[e.id]}))}},{key:"updateUploadMetadata",value:function(e,t){var n=this.combined.findWhere({videoId:e});n&&n.set({name:t})}},{key:"getCollection",value:function(){return this.combined}},{key:"name",get:function(){return m.b.CombineUploads}},{key:"channelName",get:function(){return g.b.COMBINE_UPLOADS}}]),n}(a.a.Service)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(265),a=n.n(i);function c(e){var t=e.imageUrl;return o.a.createElement("span",{className:a.a.avatar,style:{backgroundImage:"url('".concat(t,"')")}}," ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),i=n(5),a=n(15),c=n(2),u=n(7),s=n(67),l=n(14),f=n(25),p=n(137);function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||y(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 d(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||y(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 y(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(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 m=u.a.encloseNamespace("shared.hooks"),g=function(){var e=d(o.a.useState([]),2),t=e[0],n=e[1],r=i.Radio.channel(a.a.SHELL);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.find((function(t){return t.id===e.id}))||(e.allowAppLinks||r.trigger(c.a.EventNames.LOCK_NAV),n([].concat(h(t),[e])))}function y(e){var o=t.filter((function(t){return t.id!==e}));0!==o.length&&o.find((function(e){return!e.allowAppLinks}))||r.trigger(c.a.EventNames.UNLOCK_NAV),n(o)}function v(e){if(t.length){var n=t.find((function(e){return!e.allowAppLinks})),i=[{buttonText:m("cancel"),className:"btn btn-secondary"},{buttonText:m("discard"),className:"btn btn-danger",onClick:n.onConfirmUnlock?n.onConfirmUnlock:function(){},success:!0}];p.a.render(o.a.createElement("p",null,n.text),{title:n.title,buttons:i,success:function(){return function(e){r.trigger(c.a.EventNames.NAV_UNLOCKED_BY_USER),t.forEach((function(e){e.allowAppLinks||y(e.id)})),c.a.AppLinkHelper.trigger(e)}(e)}})}}function g(e){var n=t.find((function(e){return e.allowAppLinks}));return n||(n=s.a.first(t)),e.returnValue=n.text,n.text}return o.a.useEffect((function(){return t.find((function(e){return!e.allowAppLinks}))&&r.on(c.a.EventNames.NAV_IS_LOCKED,v),t.length&&window.addEventListener("beforeunload",g),function(){r.off(c.a.EventNames.NAV_IS_LOCKED,v),window.removeEventListener("beforeunload",g)}}),[t]),o.a.useEffect((function(){function e(){u({id:"upload",title:m("uploadLockTitle"),text:m("uploadLockBody"),allowAppLinks:!0})}var t=i.Radio.channel(l.c.VIDEO_UPLOAD);return t.on(f.a.FILES_ADDED,e),t.on(f.a.UNLOCK_NAV,y),function(){t.off(f.a.FILES_ADDED,e),t.off(f.a.UNLOCK_NAV,y)}}),[]),{lock:u,unlock:y}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n.n(r),i=n(57),a=n(26),c=n(7),u=n(125),s=n(118);var l={render:function(e,t){var n=document.getElementById("dialog-region");function r(){a.a.isFunction(t.cancel)&&t.cancel(),Object(i.unmountComponentAtNode)(n)}var c=(t.buttons||[l.getConfirmDefault(),l.getCancelDefault()]).map((function(e){var o=e.success;return delete e.success,Object.assign(Object.assign({},e),{onClick:function(){o&&(a.a.isFunction(t.success)&&t.success(),Object(i.unmountComponentAtNode)(n)),r(),a.a.isFunction(e.onClick)&&e.onClick()}})}));Object(i.render)(o.a.createElement(s.a,{title:t.title,closePopup:r},e,o.a.createElement(u.a,{buttons:c})),n)},getCancelDefault:function(){return{variant:"light",buttonText:c.a.getPhrase("shared.utils","cancel")}},getConfirmDefault:function(){return{variant:"dark",success:!0,buttonText:c.a.getPhrase("shared.utils","confirm")}}}},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",[],"",""]}},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:"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.458 12c0 .944.514 1.722 1.542 2.333a10.98 10.98 0 0 1-.667 1.584c-.944-.223-1.805.055-2.583.833-.694.694-.917 1.556-.667 2.583A10.98 10.98 0 0 1 14.5 20c-.611-1.028-1.444-1.542-2.5-1.542s-1.889.514-2.5 1.542c-.5-.167-1.042-.389-1.625-.667.25-1.055.042-1.916-.625-2.583-.667-.667-1.528-.875-2.583-.625C4.389 15.542 4.167 15 4 14.5c1.028-.611 1.542-1.444 1.542-2.5 0-.944-.514-1.722-1.542-2.333a8.484 8.484 0 0 1 .667-1.584c.944.223 1.805-.055 2.583-.833.667-.667.875-1.528.625-2.583C8.458 4.389 9 4.167 9.5 4c.611 1.028 1.444 1.542 2.5 1.542S13.889 5.028 14.5 4c.5.167 1.042.389 1.625.667-.25 1.055-.042 1.916.625 2.583.778.778 1.639 1.056 2.583.833.306.611.528 1.14.667 1.584-1.028.61-1.542 1.389-1.542 2.333zM12 16.083c1.111 0 2.07-.402 2.875-1.208.806-.806 1.208-1.764 1.208-2.875s-.402-2.07-1.208-2.875c-.806-.806-1.764-1.208-2.875-1.208s-2.07.402-2.875 1.208c-.806.806-1.208 1.764-1.208 2.875s.402 2.07 1.208 2.875c.806.806 1.764 1.208 2.875 1.208z"]}},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",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c4.001-4.053 1.158-11.055-4.532-11.055-3.417 0-4.985 2.511-5.596 2.98-.614-.471-2.172-2.98-5.596-2.98-5.672 0-8.55 6.984-4.531 11.055z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c2.491-2.523 2.491-6.63 0-9.154-1.21-1.226-2.819-1.901-4.532-1.901s-3.321.675-4.531 1.9l-1.065 1.08-1.065-1.079c-1.21-1.226-2.819-1.901-4.531-1.901-1.713 0-3.322.675-4.532 1.901-2.491 2.524-2.491 6.631 0 9.153zm-8.527-17.822c.926-.937 2.157-1.454 3.464-1.454 1.308 0 2.538.517 3.463 1.455l1.599 1.62c.281.285.786.285 1.067 0l1.599-1.621c.928-.937 2.158-1.454 3.465-1.454 1.308 0 2.538.517 3.464 1.454 1.917 1.943 1.917 5.104 0 7.048l-9.06 9.181-9.061-9.182c-1.917-1.942-1.917-5.104 0-7.047z"]}},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,19.0049107 C4,19.5548349 4.44525903,20 4.99508929,20 L19.0049107,20 C19.5548349,20 20,19.554741 20,19.0049107 L20,4.99508929 C20,4.44516513 19.554741,4 19.0049107,4 L4.99508929,4 C4.44516513,4 4,4.44525903 4,4.99508929 L4,19.0049107 Z M4.99508929,3 L19.0049107,3 C20.1067681,3 21,3.8926228 21,4.99508929 L21,19.0049107 C21,20.1067681 20.1073772,21 19.0049107,21 L4.99508929,21 C3.8932319,21 3,20.1073772 3,19.0049107 L3,4.99508929 C3,3.8932319 3.8926228,3 4.99508929,3 Z M17.5,17.3 C17.7761424,17.3 18,17.0761424 18,16.8 C18,16.5238576 17.7761424,16.3 17.5,16.3 L9.5,16.3 C9.22385763,16.3 9,16.5238576 9,16.8 C9,17.0761424 9.22385763,17.3 9.5,17.3 L17.5,17.3 Z M17.5,12.7 C17.7761424,12.7 18,12.4761424 18,12.2 C18,11.9238576 17.7761424,11.7 17.5,11.7 L9.5,11.7 C9.22385763,11.7 9,11.9238576 9,12.2 C9,12.4761424 9.22385763,12.7 9.5,12.7 L17.5,12.7 Z M8.07195299,7.22930174 L6.86542219,6.50538326 C6.38401051,6.21653625 6,6.43413716 6,6.98678206 L6,8.51032805 C6,9.06455544 6.38746271,9.27850253 6.86542219,8.99172685 L8.07195299,8.26780837 C8.55336467,7.97896136 8.54991246,7.51607743 8.07195299,7.22930174 Z M8.07195299,11.7293017 L6.86542219,11.0053833 C6.38401051,10.7165363 6,10.9341372 6,11.4867821 L6,13.010328 C6,13.5645554 6.38746271,13.7785025 6.86542219,13.4917268 L8.07195299,12.7678084 C8.55336467,12.4789614 8.54991246,12.0160774 8.07195299,11.7293017 Z M8.07195299,16.2293017 L6.86542219,15.5053833 C6.38401051,15.2165363 6,15.4341372 6,15.9867821 L6,17.510328 C6,18.0645554 6.38746271,18.2785025 6.86542219,17.9917268 L8.07195299,17.2678084 C8.55336467,16.9789614 8.54991246,16.5160774 8.07195299,16.2293017 Z M17.5,8.3 C17.7761424,8.3 18,8.07614237 18,7.8 C18,7.52385763 17.7761424,7.3 17.5,7.3 L9.5,7.3 C9.22385763,7.3 9,7.52385763 9,7.8 C9,8.07614237 9.22385763,8.3 9.5,8.3 L17.5,8.3 Z"]}},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.055a.768.768 0 0 1 .72 0l3.767 1.998-.806-4.602 3.357-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601 3.768-1.998zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","M7.89 19.203a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},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",[],"","M4.5 6a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-15zm0-1h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11A1.5 1.5 0 0 1 4.5 5zM10 9.26v5.48a.256.256 0 0 0 .39.218l4.482-2.74a.256.256 0 0 0 0-.436l-4.483-2.74a.256.256 0 0 0-.389.219z"]}},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",[],"","M12,-1.71862524e-13 C13.3893905,-1.71862524e-13 14.5197317,1.12166968 14.5197317,2.50040137 C14.5197317,2.8215332 14.4594938,3.13263028 14.3442115,3.42156921 C16.2349366,3.84633285 17.9748233,4.78862459 19.3866372,6.17539419 L19.4316433,6.22680193 C21.3267651,8.11265804 22.5,10.713205 22.5,13.5805516 C22.5,19.3258216 17.7897333,24 12,24 L12,24 C6.21026669,24 1.5,19.3258216 1.5,13.5805516 L1.50006052,13.5243182 C1.50002021,13.5212739 1.5,13.5182249 1.5,13.5151711 L1.501,13.503 L1.50378159,13.2988768 C1.57785421,10.543134 2.73548466,8.05071265 4.56835673,6.22680193 L4.61336276,6.17539419 C6.02517671,4.78862459 7.76506343,3.84633285 9.65748913,3.42018903 C9.54056383,3.13263028 9.48031555,2.8215332 9.48031555,2.50040137 C9.48031555,1.12166968 10.6106095,-1.71862524e-13 12,-1.71862524e-13 Z M12,4.52624116 L11.6809164,4.53170146 C11.6454989,4.53291535 11.610132,4.53433052 11.5748169,4.53594584 L11.6816694,4.53162088 C11.5883913,4.53477816 11.4953516,4.53932139 11.4025747,4.54524062 L11.5748169,4.53594584 C11.4679256,4.54083509 11.3615084,4.54755809 11.2555967,4.55608379 L11.4025747,4.54524062 C11.3068176,4.55134999 11.2113405,4.55892518 11.1161702,4.56795525 L11.2555967,4.55608379 C11.095392,4.56897997 10.9363438,4.5860008 10.7785603,4.60703883 C10.7467123,4.6104578 10.7154515,4.61475211 10.6842289,4.61920452 L10.7785603,4.60703883 C10.6768565,4.62059949 10.5756781,4.63582921 10.4750543,4.65269924 L10.6842289,4.61920452 C10.600263,4.63117821 10.5165735,4.64429522 10.4331795,4.65854779 L10.4750543,4.65269924 C9.11485909,4.88074187 7.85598275,5.40850943 6.77005357,6.16492738 L8.00490498,7.39068924 C8.27354347,7.65726684 8.27354347,8.0894535 8.00490498,8.35612485 C7.87046765,8.48939021 7.69450873,8.55604633 7.5184081,8.55604633 C7.34230747,8.55604633 7.16634856,8.48943709 7.03200569,8.35612485 L5.70204148,7.03485023 C4.13204115,8.52299364 3.09475895,10.5601022 2.90659433,12.8322227 L4.30759576,12.8325787 C4.68743083,12.8325787 4.99546522,13.1382031 4.99546522,13.5151711 C4.99546522,13.892186 4.68747807,14.1977635 4.30764299,14.1977635 L2.89670934,14.1976473 C3.02371908,16.0609257 3.72135566,17.7714185 4.81716961,19.1579915 L4.97167812,19.3482139 C5.26113447,19.6949337 5.57609243,20.0199666 5.91367078,20.3204536 L7.03200569,19.2111609 C7.30069142,18.9445833 7.73612479,18.9445833 8.00490498,19.2111609 C8.27354347,19.4777385 8.27354347,19.9099252 8.00490498,20.1765497 L7.01386949,21.160078 C8.44796715,22.0922041 10.1613427,22.6346745 12,22.6346745 L12,22.6346745 C13.8583409,22.6346745 15.5887033,22.0805272 17.0320921,21.1300078 L16.0701299,20.1765497 C15.8014914,19.909972 15.8014914,19.4777854 16.0701299,19.2111609 C16.3388156,18.9445833 16.774249,18.9445833 17.042982,19.2111609 L18.1252566,20.2856043 C18.4481451,19.9948825 18.7500205,19.681572 19.0283219,19.3482139 L19.1828304,19.1579915 C20.2466397,17.8119151 20.9351906,16.1605635 21.0907063,14.3605101 L21.1032907,14.1976527 L21.1032907,14.1976527 L19.4302507,14.1977635 C19.0504157,14.1977635 18.7423813,13.8921391 18.7423813,13.5151711 C18.7423813,13.1381562 19.0504157,12.8325787 19.4302507,12.8325787 L21.0934057,12.8322227 C20.9067892,10.5787961 19.8849698,8.55653016 18.3366017,7.07169263 L17.0430292,8.35607798 C16.9085919,8.48943709 16.732633,8.55604633 16.5565323,8.55604633 C16.3804317,8.55604633 16.2044728,8.48943709 16.0701299,8.35612485 C15.8014914,8.08954725 15.8014914,7.65736059 16.0701299,7.39068924 L17.2742569,6.19598696 C16.1894526,5.4308071 14.9295636,4.89482891 13.5669368,4.65983993 C13.5528409,4.65615858 13.538853,4.65380129 13.5248569,4.65147595 L13.5669368,4.65983993 C13.4834378,4.64544029 13.3995531,4.63217086 13.3152992,4.62004816 L13.5248569,4.65147595 C13.4243139,4.63477151 13.3233471,4.61971567 13.2219896,4.60632197 L13.3152992,4.62004816 C13.1723723,4.59948341 13.0283832,4.58221861 12.8834131,4.56833442 C12.8374466,4.56355426 12.7909906,4.55949885 12.7444647,4.55579028 L12.8834131,4.56833442 C12.7886701,4.55926062 12.6935082,4.5516307 12.5979499,4.54546716 L12.7444647,4.55579028 C12.6381278,4.54731418 12.5314263,4.5406499 12.4243976,4.53581255 L12.5979499,4.54546716 C12.5053597,4.53949506 12.4123973,4.53489967 12.3190836,4.53170146 L12.4243976,4.53581255 C12.2834709,4.52944313 12.1419768,4.52624116 12,4.52624116 Z M12.2098775,18.4456908 C12.3524617,18.4551964 12.4902931,18.464702 12.6328773,18.4884661 C12.6851582,18.4932189 12.7421919,18.5074773 12.7944727,18.5169829 C12.8039783,18.5169829 12.813484,18.5169829 12.8229896,18.5217357 C12.8990345,18.5692638 12.984585,18.5740166 13.0701355,18.5930278 C13.0938996,18.5977806 13.1224164,18.6025334 13.1509332,18.612039 C13.1746973,18.6215447 13.1984613,18.6310503 13.2174725,18.6500615 C13.2364838,18.6690727 13.255495,18.6833311 13.2887647,18.688084 C13.3172815,18.6928368 13.3362927,18.7213536 13.3362927,18.7546232 C13.3362927,18.7831401 13.3315399,18.8116569 13.3267871,18.835421 C13.3077759,18.9304771 13.2887647,19.030286 13.2650006,19.1253422 C13.2602478,19.153859 13.2507422,19.1823759 13.2412366,19.2108927 C13.2174725,19.277432 13.2127197,19.3487241 13.1937085,19.4152634 C13.1794501,19.4532859 13.1746973,19.4960611 13.1556861,19.5340836 C13.1414276,19.5673532 13.131922,19.6006229 13.1034052,19.6386453 C13.0891468,19.6529038 13.084394,19.6766678 13.0796411,19.7004318 C13.0606299,19.7527127 13.0321131,19.7717239 12.9750794,19.7622183 L12.9750794,19.7622183 L12.960821,19.7622183 C12.8562592,19.7384543 12.7564503,19.7194431 12.6566413,19.6909262 C12.5473268,19.6624094 12.4380122,19.6529038 12.3286977,19.6576566 C12.3001808,19.6576566 12.271664,19.6671622 12.2431471,19.6766678 C12.2051247,19.6909262 12.1956191,19.7194431 12.1956191,19.7574655 C12.1956191,19.7764767 12.2003719,19.7907352 12.2193831,19.795488 C12.2811696,19.8287576 12.3382033,19.8620273 12.419001,19.8762857 C12.442765,19.8810385 12.4617762,19.8952969 12.4807875,19.9048025 C12.5045515,19.9190609 12.5235627,19.9285666 12.542574,19.9380722 C12.689911,20.0093643 12.8467536,20.0711508 12.9798322,20.1709597 C13.084394,20.2422518 13.1604389,20.3325551 13.2032141,20.4513753 L13.2032141,20.4513753 L13.3077759,20.7745662 C13.3410455,20.8933864 13.3362927,21.0217122 13.3315399,21.1452851 C13.3267871,21.2403413 13.3125287,21.3401502 13.279259,21.4304535 C13.2745062,21.4352064 13.2745062,21.4399592 13.2745062,21.4494648 C13.2840118,21.5587793 13.2507422,21.6585883 13.1889557,21.7441388 C13.084394,21.8962286 12.9513154,22.0293072 12.7897199,22.1291162 C12.6851582,22.1956555 12.5710908,22.2336779 12.4475178,22.257442 C12.3239448,22.281206 12.1956191,22.3144756 12.0672933,22.3287341 C11.9579787,22.3429925 11.8486642,22.3429925 11.7441024,22.3382397 C11.6157766,22.3239812 11.4922036,22.3002172 11.3638778,22.2764532 C11.3448666,22.2764532 11.3258554,22.2669476 11.3068442,22.2621948 C11.2165408,22.2194195 11.1262375,22.2051611 11.0311814,22.1956555 C10.9076084,22.1766442 10.7887882,22.1481274 10.6652152,22.1243634 C10.6366984,22.1196106 10.6081815,22.0958465 10.6081815,22.0625769 C10.6081815,21.9675207 10.5844175,21.8677118 10.5986759,21.7726556 C10.6129344,21.6015546 10.62244,21.4257007 10.6414512,21.2545997 C10.6509568,21.1642964 10.6747208,21.073993 10.6984849,20.9789369 C10.7127433,20.9219032 10.7507658,20.8981392 10.8125522,20.902892 C10.9028556,20.9123976 10.9931589,20.9171504 11.0787094,20.9314088 C11.188024,20.9456672 11.2925857,20.9599257 11.3971475,20.9931953 C11.4541812,21.0074537 11.5112149,21.0169593 11.5682485,21.0217122 C11.6633047,21.026465 11.753608,21.026465 11.8439113,21.026465 C11.8866866,21.026465 11.9294619,20.9836897 11.9342147,20.9456672 C11.9389675,20.9123976 11.9152034,20.8696223 11.8724282,20.8553639 C11.8391585,20.8458583 11.7963833,20.8363527 11.7583608,20.8315999 C11.7345968,20.8268471 11.7108328,20.8220943 11.6870687,20.8220943 C11.6015182,20.8173415 11.5254733,20.7935774 11.4446756,20.7650606 C11.3638778,20.7317909 11.2783273,20.7127797 11.1975296,20.6795101 C11.088215,20.6414876 10.9884061,20.5797011 10.8981028,20.508409 C10.817305,20.4466225 10.7792826,20.361072 10.7507658,20.2707687 C10.7079905,20.1234316 10.6937321,19.9713418 10.7127433,19.819252 C10.7270017,19.7051846 10.7317545,19.5911173 10.7507658,19.4818027 C10.793541,19.2441624 10.8885972,19.030286 11.0596982,18.859185 C11.2070352,18.711848 11.3876419,18.612039 11.5920126,18.5550054 C11.7060799,18.5217357 11.8249001,18.4932189 11.9437203,18.4694548 C12.0340236,18.4551964 12.124327,18.4551964 12.2098775,18.4456908 Z M14.7328664,9.61765309 C15.1590885,9.61765309 15.5675493,9.84298078 15.7988231,10.2056519 C16.0296718,10.5678544 16.0563136,11.0171504 15.8699625,11.4074308 L14.1147664,15.0838768 C13.9903906,15.3443138 13.7774449,15.5556727 13.5149472,15.6790944 L9.80998461,17.4209191 C9.63676546,17.5022939 9.45419332,17.5435907 9.2670864,17.5435907 C8.84086431,17.5435907 8.43240343,17.3182631 8.20112965,16.9555919 C7.97028099,16.5933895 7.94363916,16.1440935 8.12999028,15.753813 L9.88518638,12.077367 C10.0095622,11.81693 10.2225079,11.6055242 10.4850055,11.4821494 L14.1899681,9.74032473 C14.3631873,9.65894988 14.5457594,9.61765309 14.7328664,9.61765309 Z M14.4894526,11.1101033 L11.1110414,12.6984127 L9.51045294,16.050953 L12.8888641,14.4626436 L14.4894526,11.1101033 Z M13.0226075,6.1644377 C13.0938996,6.1691905 13.1651917,6.1691905 13.2364838,6.1691905 L13.2364838,6.1691905 L13.5121466,6.18344892 C13.5596746,6.18344892 13.5929443,6.21196577 13.5976971,6.26424664 C13.6309667,6.56842629 13.6547308,6.87260593 13.6357196,7.17678557 C13.5976971,7.72335837 13.6262139,8.27468397 13.6167083,8.82125677 C13.6167083,9.03513308 13.6214611,9.24900939 13.6452252,9.46763851 L13.6452252,9.46763851 L13.6452252,9.59121149 C13.6404724,9.6625036 13.6024499,9.69102044 13.5359106,9.68626763 C13.526405,9.68626763 13.5121466,9.69102044 13.502641,9.69102044 C13.4836297,9.69577324 13.4598657,9.70527886 13.4408545,9.70052605 C13.3695624,9.68626763 13.2935175,9.69102044 13.2222254,9.69102044 C13.1414276,9.68626763 13.0606299,9.69577324 12.9798322,9.70052605 C12.837248,9.71003166 12.689911,9.71953728 12.542574,9.72429009 C12.4997987,9.72904289 12.4760347,9.70527886 12.4570234,9.6672564 L12.4570234,9.6672564 L12.271664,9.34881834 C12.1195741,9.07315554 11.9532259,8.81175116 11.8201473,8.52658274 L11.8201473,8.52658274 L11.8011361,8.49331309 L11.8011361,8.53608835 C11.7916305,8.81650396 11.777372,9.09216676 11.7821249,9.37258237 C11.7821249,9.4628857 11.777372,9.55318904 11.7726192,9.64349237 C11.7678664,9.71478447 11.729844,9.75280693 11.6585519,9.76231254 L11.6585519,9.76231254 L11.5112149,9.77657096 C11.4066531,9.78607658 11.3068442,9.76231254 11.2070352,9.75280693 L11.2070352,9.75280693 L10.8077994,9.75280693 C10.7555186,9.75280693 10.6747208,9.78132377 10.6557096,9.72429009 C10.646204,9.70527886 10.6414512,9.69102044 10.646204,9.61972833 C10.646204,9.58170588 10.6509568,9.56269465 10.6509568,9.51991939 L10.6509568,9.51991939 L10.6604624,9.31079588 L10.6794736,8.66441414 C10.6889793,8.33171766 10.7032377,7.99902117 10.6937321,7.66632469 C10.6889793,7.45720118 10.6794736,7.24807768 10.669968,7.04370698 C10.669968,7.03420136 10.669968,7.01994294 10.6652152,7.01043733 C10.6319456,6.81081944 10.6366984,6.60644874 10.6557096,6.40207804 C10.6604624,6.39257243 10.6557096,6.37831401 10.6604624,6.36405559 C10.6604624,6.32603313 10.6984849,6.28801068 10.7365073,6.28325787 C10.769777,6.28325787 10.8077994,6.28801068 10.8410691,6.28801068 L10.8410691,6.28801068 L10.8838443,6.28801068 C11.0216757,6.26424664 11.1595071,6.24048261 11.3020914,6.24523541 L11.3020914,6.24523541 L11.458934,6.2357298 C11.5444845,6.23097699 11.630035,6.22622419 11.7155856,6.22622419 C11.729844,6.22622419 11.7488552,6.23097699 11.7631136,6.24048261 C11.7821249,6.25474103 11.8011361,6.25949384 11.8249001,6.25474103 C11.877181,6.24523541 11.9056978,6.25949384 11.9247091,6.30702191 C11.9864956,6.47812295 12.0767989,6.63971839 12.171855,6.79180821 C12.2478999,6.91538119 12.3001808,7.04370698 12.3477089,7.17678557 C12.3952369,7.29085294 12.4475178,7.4001675 12.5093043,7.50948206 L12.5093043,7.50948206 L12.5235627,7.52849329 C12.5235627,7.52849329 12.5283155,7.52849329 12.5330683,7.52374048 L12.5330683,7.52374048 L12.5330683,7.50472925 C12.5330683,7.28134733 12.5330683,7.0579654 12.5283155,6.83458347 C12.5283155,6.69199927 12.5188099,6.55416787 12.5188099,6.41633646 L12.5188099,6.41633646 L12.5188099,6.38781962 C12.5093043,6.30702191 12.5473268,6.24998822 12.6091133,6.20721296 C12.6328773,6.18344892 12.6613941,6.17394331 12.689911,6.17869612 C12.8039783,6.18344892 12.9132929,6.1644377 13.0226075,6.1644377 Z M12,1.36518483 C11.3691932,1.36518483 10.8560545,1.87443384 10.8560545,2.50035449 C10.8560545,2.7121822 10.9139202,2.91435368 11.0223297,3.09018146 C11.3472278,3.06046277 11.6746768,3.04536905 12,3.04536905 C12.3250871,3.04536905 12.6524415,3.06046277 12.977623,3.09027521 C13.0860798,2.91444743 13.1439455,2.7121822 13.1439455,2.50035449 C13.1439455,1.87438696 12.6308068,1.36518483 12,1.36518483 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","M12,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 C0,5.372583 5.372583,0 12,0 Z M12,2.05714286 C6.50871163,2.05714286 2.05714286,6.50871163 2.05714286,12 C2.05714286,17.4912884 6.50871163,21.9428571 12,21.9428571 C17.4912884,21.9428571 21.9428571,17.4912884 21.9428571,12 C21.9428571,6.50871163 17.4912884,2.05714286 12,2.05714286 Z M12,5.82857143 C12.5680643,5.82857143 13.0285714,6.28907854 13.0285714,6.85714286 L13.0285714,11.5739518 L17.0130241,15.5584045 C17.4147062,15.9600866 17.4147062,16.611342 17.0130241,17.0130241 C16.611342,17.4147062 15.9600866,17.4147062 15.5584045,17.0130241 L11.2726902,12.7273098 C11.0797956,12.5344153 10.9714286,12.2727941 10.9714286,12 L10.9714286,6.85714286 C10.9714286,6.28907854 11.4319357,5.82857143 12,5.82857143 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:"quality-240",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm1 4.818C4 9.644 4.94 8.8 6.261 8.8c1.272 0 2.182.777 2.182 1.81 0 .76-.45 1.334-1.285 2.178L5.58 14.347v.022h2.96v.932H4.062v-.769L6.407 12.2c.724-.737.923-1.064.923-1.54 0-.526-.473-.946-1.104-.946-.663 0-1.157.468-1.157 1.1v.017H4v-.013zm8.426 4.483v-1.206h-3.18v-.98c.553-1.043 1.264-2.178 2.646-4.187h1.62v4.235h.857v.932h-.856v1.206h-1.087zm-2.146-2.142v.03h2.164V9.773h-.018c-1.029 1.492-1.638 2.433-2.146 3.387zm7.234 2.27c-1.564 0-2.496-1.277-2.496-3.321 0-2.036.941-3.308 2.496-3.308 1.55 0 2.486 1.263 2.486 3.303s-.927 3.326-2.486 3.326zm0-.932c.843 0 1.333-.888 1.333-2.39 0-1.488-.499-2.375-1.333-2.375-.84 0-1.347.896-1.347 2.371 0 1.502.499 2.394 1.347 2.394z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-480",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm3.964 9.269v-1.2H3.8v-.976c.55-1.037 1.257-2.166 2.632-4.166h1.613v4.215h.853v.927h-.853v1.2h-1.08zm-2.136-2.132v.031h2.154V9.767h-.018c-1.024 1.485-1.63 2.421-2.136 3.37zm7.185 2.26c-1.467 0-2.47-.761-2.47-1.842 0-.822.58-1.468 1.442-1.63v-.022c-.72-.185-1.19-.743-1.19-1.433 0-.962.926-1.67 2.218-1.67 1.297 0 2.215.703 2.215 1.674 0 .681-.466 1.235-1.186 1.429v.022c.861.167 1.446.813 1.446 1.63 0 1.085-1.016 1.841-2.475 1.841zm0-.867c.76 0 1.297-.448 1.297-1.059 0-.62-.536-1.063-1.297-1.063-.76 0-1.296.448-1.296 1.063 0 .611.536 1.06 1.296 1.06zm0-2.988c.638 0 1.095-.395 1.095-.94 0-.55-.453-.945-1.095-.945-.646 0-1.098.395-1.098.945 0 .545.452.94 1.098.94zm5.709 3.854c-1.556 0-2.483-1.27-2.483-3.304 0-2.026.936-3.292 2.483-3.292 1.542 0 2.474 1.257 2.474 3.287 0 2.03-.923 3.31-2.474 3.31zm0-.927c.84 0 1.327-.883 1.327-2.377 0-1.481-.497-2.365-1.327-2.365-.835 0-1.34.892-1.34 2.36 0 1.494.496 2.382 1.34 2.382z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-hd",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm2 2.25h1.31v2.976h3.406V8.25h1.31v7.482h-1.31v-3.374H6.31v3.374H5V8.25zm7.597 0H15.7c.573 0 1.069.098 1.488.293.42.196.762.463 1.027.802.266.339.463.735.592 1.19.13.454.194.939.194 1.456a5.3 5.3 0 0 1-.194 1.457 3.43 3.43 0 0 1-.592 1.189 2.765 2.765 0 0 1-1.027.802c-.419.195-.915.293-1.488.293h-3.102V8.25zm1.31 6.413h1.29c.51 0 .927-.068 1.251-.204.325-.136.58-.325.765-.566.185-.241.311-.524.378-.849.066-.325.1-.676.1-1.053 0-.377-.034-.728-.1-1.053a2.043 2.043 0 0 0-.378-.849 1.832 1.832 0 0 0-.765-.566c-.324-.136-.742-.204-1.252-.204h-1.289v5.344z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm5.486 9.759c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C6.635 8.337 7.548 8 8.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397zm7 0c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C13.635 8.337 14.548 8 15.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397z"]}},function(e,t){e.exports={prefix:"cv",iconName:"contract",icon:["24","24",[],"","M8.5 8.5V5H10v5H5V8.5h3.5zm0 7H5V14h5v5H8.5v-3.5zm7-7H19V10h-5V5h1.5v3.5zm0 7V19H14v-5h5v1.5h-3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"full-screen",icon:["24","24",[],"","M6.5 6.5V10H5V5h5v1.5H6.5zm0 11H10V19H5v-5h1.5v3.5zm11-11H14V5h5v5h-1.5V6.5zm0 11V14H19v5h-5v-1.5h3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"mute",icon:["24","24",[],"","M16.733 12.018l-1.57-1.57a.555.555 0 1 1 .785-.785l1.57 1.57 1.57-1.57a.555.555 0 1 1 .785.785l-1.57 1.57 1.57 1.57a.555.555 0 1 1-.785.785l-1.57-1.57-1.57 1.57a.555.555 0 1 1-.785-.785l1.57-1.57zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"next",icon:["24","24",[],"","M16 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11zm-10.86.005a.5.5 0 0 1 .761-.427l9.003 5.5a.5.5 0 0 1 0 .853l-9.003 5.5a.5.5 0 0 1-.76-.426v-11z"]}},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:"pause",icon:["24","24",[],"","M8 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 8 17.5v-11zm6 0c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"previous",icon:["24","24",[],"","M5 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 5 17.5v-11zm13.602.005v11a.5.5 0 0 1-.76.426l-9.003-5.5a.5.5 0 0 1 0-.853l9.002-5.5a.5.5 0 0 1 .761.427z"]}},function(e,t){e.exports={prefix:"cv",iconName:"volume",icon:["24","24",[],"","M15.8 11.25c-.137-.815-.44-1.549-.727-2.009a.48.48 0 0 1 .167-.67.507.507 0 0 1 .687.163c.35.56.7 1.41.86 2.359.24 1.439.001 2.866-.866 4.183a.508.508 0 0 1-.691.147.48.48 0 0 1-.15-.674c.724-1.1.922-2.285.72-3.5zm1.86 5.959c1.856-3.7 1.676-7.108 0-10.416a.558.558 0 0 1 .201-.728.483.483 0 0 1 .678.215c1.828 3.61 2.028 7.398.001 11.438a.483.483 0 0 1-.677.218.557.557 0 0 1-.203-.727zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},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:"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){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(85);var o=function(e){this.j=[],this.T=e||null};o.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],o=n[1];if(this.test(e,r))return o}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)(o,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,r.inherits)(o,(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=a,t.stateify=function(e,t,n,r){for(var o=0,a=e.length,c=t,u=[],s=void 0;o<a&&(s=c.next(e[o]));)c=s,o++;if(o>=a)return[];for(;o<a-1;)s=new i(r),u.push(s),c.on(e[o],s),c=s,o++;return s=new i(n),u.push(s),c.on(e[a-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";n.d(t,"a",(function(){return i}));var r=n(0),o=n(6);function i(e){var t=o.a.getInstance(e);return r.useEffect((function(){return function(){return o.a.releaseInstance(e)}})),t}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(r||(r={}))},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-2"><a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+" - "+u("function"==typeof(i=null!=(i=n.libraryName||(null!=t?t.libraryName:t))?i:c)?i.call(a,{name:"libraryName",hash:{},data:o}):i)+"</a></div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+u("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:c)?i.call(a,{name:"templateText",hash:{},data:o}):i)+'</span>\r\n <span class="query-text">'+u("function"==typeof(i=null!=(i=n.query||(null!=t?t.query:t))?i:c)?i.call(a,{name:"query",hash:{},data:o}):i)+"</span>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="tt-not-found"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataset||(null!=t?t.dataset:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataset",hash:{},data:o}):i)+"</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(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 s}));var s=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&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t="".concat(e.webPlayerHost,"home/ev?vid=").concat(e.id);return r.createElement("div",{className:"embed-responsive ".concat(e.className?e.className:"")},r.createElement("iframe",{src:t,className:"embed-responsive-item",allowFullScreen:!0,allow:"autoplay; fullscreen"}))}},function(e,t,n){"use strict";var r,o,i,a=n(1),c=n(5),u=n(3),s=n(31),l=n(65),f=n(2),p=n(60),h=n(7),d=n(6),y=n(14),v=n(21),m=n(9),g=n(97),b=n(91),w=n(10),S={showMask:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetSelector,n=e.additionalClasses,r=e.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(S.getTarget(t)),$(S.getTarget(t)).addClass("mask-lock"),a}},hideMask:function(e){var t=e||$(".".concat("mask"));t.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),t.remove())},getTarget:function(e){var t=$(e||"#app");if(t.length)return t}},O={libraries:{dataServiceName:m.a.Library,eventName:"libraries:sync",getData:function(e){return e.getLibraries()},getInstance:function(e){return d.a.getInstance(m.a.Library,e)},beforeOnBeforeRender:!0}};!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(r||(r={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(o||(o={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Classification="subjects"}(i||(i={}));var k=function(e){return e&&e.get("filterParam")?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.get("filterParam"),e.get("filterValue")):{}},C=n(228),E=1,R={Min:1,Default:3,Folder:3,Recent:3},P=R,x={prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(e+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(t.url,"?q=").concat(e);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(e,t){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:a.partial(x.prepareQuery,a,a,t),transform:a.partial(x.handleResult,a,e)}}},handleResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t===i.Classification?x.processSubjectResult(e[t],t,n):t===i.Video?x.processVideoResult(e[t],t,n):n.showFolder&&t===i.Folder?x.processFolderResult(e[t],t,n):t===i.Series?x.processSeriesResult(e[t],t,n):t===i.Tags?x.processTagsResult(e[t],t,n):[]},processSubjectResult:function(e,t,n){return e?(e=x.processCollection(e),a.map(e,(function(e){return e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e}))):[]},processVideoResult:function(e,t,n){return e?(e=x.processCollection(e),a.map(e,(function(e){return e.cached||(e.topics=a.map(e.topics,(function(e){return{name:e}})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e}))):[]},processTagsResult:function(e,t,n){if(!e)return[];var r=d.a.getInstance(v.a.SEARCH,this);return e=x.processCollection(e),a.map(e,(function(e){return e.cached||(e.url=f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},r.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e}))},processSeriesResult:function(e,t,n){return e?(e=x.processCollection(e),a.map(e,(function(e){var t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=a.first(e.folder)),a.extend({},e,{collectionType:void 0,collection:t})}))):[]},processFolderResult:function(e,t){return e?(e=x.processCollection(e,{limit:P.Folder}),a.map(e,(function(e){var t=e.library,n=void 0===t?{}:t;return n.type===C.a.Exchange&&(n.name="Exchange"),a.extend({},e,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?P.Default:n;return e.slice(0,r)}},_={getRecentSearches:function(e,t){var n=t.cacheGet(e);return a.isArray(n)||(n=[]),n},setRecentSearches:function(e,t,n){a.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches:function(e,t,n){var r=n.add,o=n.remove,i=n.query,c=n.limit,u=void 0===c?5:c,s=_.getRecentSearches(e,t),l=a.indexOf(s,i);return r&&-1===l&&s.unshift(i),o&&l>-1&&s.splice(l,1),s.length>u&&(s=s.slice(0,u)),_.setRecentSearches(e,s,t),s}},A=n(115),T=n(251),L=n.n(T),j=n(105),N=n.n(j);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 D(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 M(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(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 F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=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)}(i,e);var t,n,r,o=M(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return{styles:N.a,confirmSelectionText:h.a.getPhrase("shared.utils","confirmSelection",{svg:'<kbd><span class="'.concat(N.a.svgContainer,'">').concat(w.a.getSvg(w.b.Enter),"</span></kbd>")})}}},{key:"name",get:function(){return"ConfirmSelectionComponent"}},{key:"template",get:function(){return L.a}},{key:"className",get:function(){return"suggestion-footer empty-suggestion px-2 ".concat(N.a.selectionContainer," clearfix")}}])&&D(t.prototype,n),r&&D(t,r),i}(f.a.Component);function H(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}var B,J={handleQuery:function(e,t){return function(n,r,i){if(t||(t={}),n&&t.ignoreOnQuery)return r([]);var a=n&&n.length>=E;return t.fetchType!==o.Local||a?a?e instanceof A?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())}},getTemplate:function(e){var t=arguments,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fallbackTemplate,o=n.templateText;return function(n){var i=n.query;if(!i)return r.apply(void 0,H(t));if(i.length&&i.length<E)return r.apply(void 0,H(t));var c=a.extend(n,{templateText:o});return e(c)}},getSearchSources:function(e){return a.map(e,(function(e,t){var n,r=e.typeaheadConfig,o=e.bloodhoundConfig,i=e.name,a=e.options;return o&&(n=J.buildBloodhound(o(i,a))),r({bloodhound:n,name:i},t,a)}))},buildBloodhound:function(e){return new A(e)},selectFirstResult:function(e,t,n,r){if(n&&!this.$el.find(".tt-cursor").length){var o=a.first(t);if(o&&!a.isEmpty(o)){var i=this.$el.find(".add-new");!i||o.id?(i&&i.hasClass("tt-cursor")&&i.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):i.addClass("tt-cursor")}else this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion")}},emitEventOnInput:function(e,t,n,r){if(e)return function(o,i){c.Radio.channel(e).trigger(t,o,n,a.extend({},r,i))}},resetAssociationOnBlur:function(e){return function(t,n){var r=this.model.get(n),o=a.isNumber(this.model.id);return e[n]||o?"string"==typeof r&&r.length?o?void(e.id===this.model.id&&(this.model.set(e),c.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(c.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void c.Radio.channel(t).trigger("typeahead:clear:input"))}},getConfirmSelectionTemplate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return new V(e).render().el}},clearInputOnBlur:function(e){c.Radio.channel(e).trigger("typeahead:clear:input")}};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 K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(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 Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(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 Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(B||(B={}));var ee=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&&Y(e,t)}(i,e);var t,n,r,o=Q(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickOutside",value:function(e){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}},{key:"defaults",get:function(){return{title:"",placement:B.bottom,size:"popover-md"}},set:function(e){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&W(t.prototype,n),r&&W(t,r),i}(f.a.Behavior),te=n(252),ne=n.n(te),re=n(253),oe=n.n(re),ie=n(106),ae=n.n(ie);function ce(e){return(ce="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 ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(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&&se(e.prototype,t),n&&se(e,n),e}function fe(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 he(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return de(this,n)}}function de(e,t){return!t||"object"!==ce(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 ve=function(e){fe(n,e);var t=he(n);function n(){return ue(this,n),t.apply(this,arguments)}return le(n,[{key:"viewOptions",value:function(){return{styles:ae.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return oe.a}},{key:"className",get:function(){return"py-2 ".concat(ae.a.tip)}}]),n}(f.a.Component),me=function(e){fe(n,e);var t=he(n);function n(){return ue(this,n),t.apply(this,arguments)}return le(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return ve}}]),n}(f.a.ComponentCollection),ge=function(e){fe(n,e);var t=he(n);function n(){return ue(this,n),t.apply(this,arguments)}return le(n,[{key:"initialize",value:function(){this.collection=new f.a.Collection([{term:["".concat(h.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(h.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(h.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(h.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fourthTerm1")),"".concat(h.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(h.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(h.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(e){this.showChildView(e,new me({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:ae.a,searchInfoSvg:w.a.getSvg(w.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return ne.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:ee,containerSelector:".popover-container",title:h.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(t){return e.renderTips(t)}}]}}]),n}(f.a.Component);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 we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(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 Oe(e,t){return(Oe=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ce(this,n)}}function Ce(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 Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=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&&Oe(e,t)}(i,e);var t,n,r,o=ke(i);function i(){return we(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getElement",value:function(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}},{key:"getOptions",value:function(){var e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}},{key:"onRender",value:function(){var e=this.getElement();e.length&&e.tooltip(this.getOptions())}},{key:"onBeforeDetach",value:function(){var e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}},{key:"defaults",get:function(){return{placement:"top"}},set:function(e){}},{key:"ui",get:function(){return this.options.selector?{tooltip:this.options.selector}:{}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&Se(t.prototype,n),r&&Se(t,r),i}(f.a.Behavior),Pe=n(254),xe=n.n(Pe),_e=n(61),Ae=n.n(_e);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 Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 Ie(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ue(e);if(t){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}function De(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 Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=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,o=Ie(i);function i(){return Le(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(y.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(e){var t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(Ae.a.tagFocus):t.removeClass(Ae.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:Ae.a,closeSvg:w.a.getSvg(w.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return xe.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return Ae.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:Re,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(Ae.a.searchContextTag),clearSvg:".".concat(Ae.a.svgContainer)}}}])&&je(t.prototype,n),r&&je(t,r),i}(f.a.Component),ze=n(255),Fe=n.n(ze),Ve=n(256),He=n.n(Ve);function qe(e){return(qe="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 Be(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 Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=We(e);if(t){var o=We(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==qe(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 We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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&&Je(e,t)}(i,e);var t,n,r,o=Ge(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:He.a,closeSvg:w.a.getSvg(w.b.Close)}}},{key:"onClick",value:function(e){var t=this;return e.stopPropagation(),setTimeout((function(){c.Radio.channel(t.options.channelName).trigger("remove:recent",t.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return Fe.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&Be(t.prototype,n),r&&Be(t,r),i}(f.a.Component),Qe=n(257),$e=n.n(Qe);function Xe(e){return(Xe="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 Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(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 tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ot(e);if(t){var o=ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rt(this,n)}}function rt(e,t){return!t||"object"!==Xe(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 ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=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&&tt(e,t)}(i,e);var t,n,r,o=nt(i);function i(){return Ze(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return $e.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&et(t.prototype,n),r&&et(t,r),i}(f.a.Component),at=n(258),ct=n.n(at);function ut(e){return(ut="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 st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(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 ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(e,t){return!t||"object"!==ut(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 dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yt=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&&ft(e,t)}(i,e);var t,n,r,o=pt(i);function i(){return st(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return ct.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&<(t.prototype,n),r&<(t,r),i}(f.a.Component),vt="lazy:load:behavior",mt=n(121),gt=n(132),bt=n(259),wt=n.n(bt),St=n(73),Ot=n.n(St);function kt(e){return(kt="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 Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(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 Rt(e,t){return(Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_t(e);if(t){var o=_t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(e,t){return!t||"object"!==kt(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 _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=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&&Rt(e,t)}(i,e);var t,n,r,o=Pt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"showPlayIcon",value:function(){this.$el.find(".".concat(Ot.a.playSvgContainer)).show()}},{key:"onClick",value:function(e){if(!this.options.appLink&&a.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}},{key:"onImageLoad",value:function(){this.options.channelName&&c.Radio.channel(this.options.channelName).trigger("thumbnail:load")}},{key:"viewOptions",value:function(){var e=this.model.get("duration");return{styles:Ot.a,url:mt.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&>.a.ToDisplayDuration(e),playSvg:w.a.getSvg(w.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}},{key:"onRender",value:function(){if(c.Radio.channel(vt).trigger("update:loader"),this.options.lazyload&&this.options.channelName){var e=this.getUI("img");e.length&&(e[0].onload=a.bind(this.onImageLoad,this))}}},{key:"name",get:function(){return"ThumbnailComponent"}},{key:"template",get:function(){return wt.a}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){if(this.options.classNameOverride)return this.options.classNameOverride;var e="".concat(Ot.a.thumbnailContainer," responsive-img");return this.options.onClickHandler&&(e+=" cursor-pointer"),e}},{key:"elements",get:function(){var e;return Ct(e={},".".concat(Ot.a.playSvgContainer),"showPlayIcon"),Ct(e,"img","img"),e}},{key:"appLinks",get:function(){return this.options.appLink?{"[this]":this.options.appLink}:{}}},{key:"attributes",get:function(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}}])&&Et(t.prototype,n),r&&Et(t,r),i}(f.a.Component),Tt=n(260),Lt=n.n(Tt);function jt(e){return(jt="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 Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(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 Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ut(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){return!t||"object"!==jt(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 zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ft=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&&Dt(e,t)}(i,e);var t,n,r,o=Ut(i);function i(){return Nt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(v.a.SEARCH,this)}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getCollection",value:function(){var e=this.model,t=e.categories,n=e.series;return t&&t.length?{name:t.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return Lt.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&It(t.prototype,n),r&&It(t,r),i}(f.a.Component),Vt=n(116),Ht=n(261),qt=n.n(Ht);function Bt(e){return(Bt="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 Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(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 Kt(e,t){return(Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qt(e);if(t){var o=Qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){return!t||"object"!==Bt(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 Qt(e){return(Qt=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&&Kt(e,t)}(i,e);var t,n,r,o=Wt(i);function i(){return Jt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(v.a.SEARCH,this)}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model,classNameOverride:"".concat(Vt.coverImage," responsive-img")});this.showChildView("cover",e)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:Vt}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return qt.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&Gt(t.prototype,n),r&&Gt(t,r),i}(f.a.Component),Xt=n(229),Zt=n.n(Xt),en=n(230),tn=n.n(en),nn=n(231),rn=n.n(nn),on=n(232),an=n.n(on),cn=n(233),un=n.n(cn),sn=n(234),ln=n.n(sn),fn=n(235),pn=n.n(fn),hn=n(236),dn=n.n(hn),yn=n(262),vn=n.n(yn),mn=n(107),gn=n.n(mn),bn=n(263),wn=n.n(bn),Sn=n(264),On=n.n(Sn);function kn(e){return function(e){if(Array.isArray(e))return Cn(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 Cn(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 Cn(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 Cn(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 En(e){return(En="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 Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(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 xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _n(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tn(e);if(t){var o=Tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return An(this,n)}}function An(e,t){return!t||"object"!==En(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 Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return jn}));var Ln=R,jn=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&&xn(e,t)}(P,e);var t,n,C,R=_n(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=R.call(this,e)).viewCache={},t}return t=P,(n=[{key:"initialize",value:function(){this.contextualSearchService=d.a.getInstance(m.b.ContextualSearch,this),this.appVariables=d.a.getInstance(v.a.SEARCH,this),this.storageHelper=p.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){var e;return Rn(e={submit:"onSubmit"},"click .".concat(gn.a.searchSvgContainer),"onClickSearch"),Rn(e,"click a","onTypeaheadSelect"),Rn(e,"keydown","onKeydown"),e}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:b.a.Component,options:{template:On.a,className:"w-100",viewOptions:{styles:wn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(y.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(y.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(e,t){var n=t.ctor,r=t.viewOptions;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}},{key:"clearViewCache",value:function(){a.each(this.viewCache,(function(e){return e.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(e){var t=this;return e===r.Recent?function(e){return t.getOrCacheView("recent:".concat(e),{ctor:Ye,viewOptions:{model:new f.a.Model({name:e}),channelName:t.channelName}}).render().el}:e===i.Classification?function(e){return t.getOrCacheView(e.id,{ctor:$t,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Video?function(e){return t.getOrCacheView(e.id,{ctor:Ft,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Folder?Zt.a:e===i.Series?function(e){return t.getOrCacheView(e.id,{ctor:it,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Tags?function(e){return t.getOrCacheView(e.id,{ctor:yt,viewOptions:{model:new f.a.Model(e)}}).render().el}:void 0}},{key:"getLimits",value:function(e){return i.Folder,Ln.Folder}},{key:"updateSearchHistory",value:function(e){var t=e.add,n=e.remove,r=e.query;r=r.trim();var o=_.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:Ln.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch){var e=this.getUI("input").typeahead("val");if(e)this.$el.find(".tt-menu").removeClass("hide-results");else{var t=_.getRecentSearches(this.recentSearchKey,this.storageHelper);if(t.length)return;this.$el.find(".tt-menu").addClass("hide-results")}}}},{key:"onDeleteRecentSearch",value:function(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(e,t){return t===i.Series?Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[e.id]}):t===i.Video?Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[e.id]}):t===i.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===i.Classification?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id]}):void 0}},{key:"onTypeaheadSelect",value:function(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),"object"===En(t)&&t.id){var o=this.getInstantSearchAppLink(t,n);if(!o)return!1;var i=s.a.buildInstantSearchEvent(this.model.get("query"),t,n),a=i.data,p=i.action;return l.a.log(u.n.InstantSearch,a,p),this.model.clear(),this.getUI("input").typeahead("close"),c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(o),!1}var h="string"==typeof t?t:t.query;this.model.set({query:h});var d=n===r.Recent?u.c.Recent:u.c.ShowAll;return this.submitQuery(d),!1}},{key:"onClickSearch",value:function(e){return e.stopPropagation(),this.submitQuery(u.c.SearchIcon),!1}},{key:"onSubmit",value:function(e){return e.preventDefault(),this.submitQuery(u.c.Submit),!1}},{key:"submitQuery",value:function(e){this.updateInitialQuery();var t=this.model.get("query");if(t){this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=k(this.searchContext);c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(e,t){var n=s.a.buildSearchEvent(e,t),r=n.data,o=n.action;l.a.log(u.n.Search,r,o)}},{key:"onTypeaheadOpen",value:function(e){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var t=this.model.get("query");t&&t.length>=E&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),S.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||S.hideMask()}},{key:"alignTypeahead",value:function(){var e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(e,t,n,o){o===r.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var e=this.getUI("input");e.on("typeahead:select",a.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",a.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",a.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",a.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",a.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var e=this,t=this.getUI("input");t.on("typeahead:open",a.bind(this.showMask,this)),t.on("typeahead:close",a.bind(this.hideMask,this)),t.on("typeahead:select",a.bind((function(){f.a.AppLinkHelper.trigger(e.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(e){8!==e.keyCode||this.model.get("query")||c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var e=_.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}},{key:"getDynamicBloodhoundConfig",value:function(){return x.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var e=this,t=J.getTemplate(ln.a,{fallbackTemplate:an.a}),n=J.getTemplate(rn.a,{fallbackTemplate:an.a,templateText:h.a.getPhrase(this.lang,"findingResults")});return function(r,i){return{name:e.getConfigName(r.name),source:J.handleQuery(r.bloodhound,{fetchType:o.Remote}),limit:e.getLimits(r.name),display:function(e){return e.name},async:!0,templates:{header:t,pending:0===i?n:an.a,notFound:an.a,suggestion:e.getDynamicTemplate(r.name),footer:un.a}}}}},{key:"getConfigName",value:function(e){switch(e){case i.Classification:return h.a.getPhrase(this.lang,"classifications");case i.Video:return h.a.getPhrase(this.lang,"videos");case i.Tags:return h.a.getPhrase(this.lang,"tags");case i.Series:return h.a.getPhrase(this.lang,"series")}return e}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var e=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:r.Recent,source:J.handleQuery(this.recentSearchEngine,{fetchType:o.Local,ignoreOnQuery:!0}),limit:Ln.Default,templates:{header:function(){return pn.a({templateText:h.a.getPhrase(e.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(r.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:r.Direct,source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(tn.a,{fallbackTemplate:an.a,templateText:h.a.getPhrase(this.lang,"allResults")}),footer:un.a}}]}},{key:"getDynamicSearchSources",value:function(){var e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return J.getSearchSources([{name:i.Classification,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}},{key:"getSources",value:function(){var e=[].concat(kn(this.getDirectSearchSources()),kn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&e.push.apply(e,kn(this.getRecentSearchSources())),e}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(dn.a,{fallbackTemplate:an.a,templateText:h.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(e){return e.id}))}},{key:"viewOptions",value:function(){return{styles:gn.a,svg:w.a.getSvg(w.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:h.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.showChildView("searchTips",new ge)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),c.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new Me({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),c.Validation.unbind(this)}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return vn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(gn.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"requiredResources",get:function(){return{currentUser:g.b.currentUser,libraryCollection:O.libraries}}}])&&Pn(t.prototype,n),C&&Pn(t,C),P}(f.a.View)},function(e,t,n){"use strict";var r,o=n(123);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 a(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){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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));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,o,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a);n.d(t,"a",(function(){return p}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(397).default},function(e,t){e.exports=v},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<img src="'+c(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+c(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+c(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,t))+'">'+s(u(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+s(e.lambda(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.termContainer:c,t))+'">\r\n'+(null!=(c=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=t?t.description:t))?u:e.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<a class="row" href="'+c(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="w-100 h-100 align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<button type="submit" tabindex="-1" style="display:none"></button>\r\n<span class="search-tips-region '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tipsContainer:i,t))+'"></span>\r\n'},3:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_3RyZE"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,c=t||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=e[o]<<8*(s+r*(a%4));return{value:c,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,c;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,c,u,s,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,c=0;c<e.length;c+=1)for(a=[],128>(i=e.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,c=0;c<e.length;c+=1){for(i=e.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(u=e.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=t.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,c,u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",c=t/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=e[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?e[i+1>>>2]:0,s=i+2<f?e[i+2>>>2]:0,c=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(c+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n){return e^t^n}function u(e,t,n){return e&t^e&n^t&n}function s(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,d,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)y[h]=h<16?e[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,y[h]):l(a(n,5),c(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=s(n,t[0]),t[1]=s(r,t[1]),t[2]=s(o,t[2]),t[3]=s(i,t[3]),t[4]=s(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(t=0;t<c;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,c=i(t);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(e,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return u(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.14"}')},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function p(){}function h(){}var d={};d[o]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(C([])));v&&v!==t&&n.call(v,o)&&(d=v);var m=h.prototype=f.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=m.constructor=h,h.constructor=p,p.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,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(398));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(e){return e.replace(/"/g,""")}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=o(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,h=f.formattedHref,d=f.tagName,y=f.className,v=f.target,m=f.attributes,g="<"+d+' href="'+c(h)+'"';y&&(g+=' class="'+c(y)+'"'),v&&(g+=' target="'+c(v)+'"'),m&&(g+=" "+u(m)),g+=">"+a(p)+"</"+d+">",r.push(g)}else r.push(a(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(85),o=c(n(399)),i=c(n(400)),a=c(n(401));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 a.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=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=o,t.parser=a,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},o={defaultProtocol:"http",events:null,format:a,formatHref:a,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:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,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,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},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(223),o=n(111),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}(o);var a="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(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),v=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,v),v.on(s,v);for(var m=0;m<a.length;m++){var g=(0,r.stateify)(a[m],p,o.TLD,o.DOMAIN);l.push.apply(l,g)}var b=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,S),l.push.apply(l,O);var k=b.pop(),C=w.pop(),E=S.pop(),R=O.pop(),P=f(o.DOMAIN),x=f(o.PROTOCOL),_=f(o.MAILTO);C.on("s",P).on(":",x),E.on("s",P).on(":",x),l.push(P),k.on(":",x),P.on(":",x),R.on(":",_);var A=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,A),p.on(c,h),h.on("-",y).on(c,h).on(u,d),d.on("-",y).on(u,d);for(var T=0;T<l.length;T++)l[T].on("-",y).on(u,d);y.on("-",y).on(c,d).on(u,d),p.defaultTransition=f(o.SYM);var L=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=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(e.substr(o-c,c)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(223),o=n(402),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}(o),a=n(111);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),d=c(),y=c(o.URL),v=c(),m=c(o.URL),g=c(o.URL),b=c(),w=c(),S=c(),O=c(),k=c(),C=c(o.URL),E=c(o.URL),R=c(o.URL),P=c(o.URL),x=c(),_=c(),A=c(),T=c(),L=c(),j=c(),N=c(o.EMAIL),I=c(),D=c(o.EMAIL),U=c(o.MAILTOEMAIL),M=c(),z=c(),F=c(),V=c(),H=c(o.NL);u.on(a.NL,H).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),h.on(a.DOT,d),L.on(a.DOT,j),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),j.on(a.TLD,N).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),N.on(a.DOT,j),y.on(a.COLON,v).on(a.SLASH,g),v.on(a.NUM,m),m.on(a.SLASH,g),N.on(a.COLON,I),I.on(a.NUM,D);var q=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],B=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,k),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,k),w.on(a.CLOSEBRACE,g),S.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),C.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),R.on(a.CLOSEANGLEBRACKET,g),P.on(a.CLOSEPAREN,g),x.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),A.on(a.CLOSEANGLEBRACKET,g),T.on(a.CLOSEPAREN,g),w.on(q,C),S.on(q,E),O.on(q,R),k.on(q,P),w.on(B,x),S.on(B,_),O.on(B,A),k.on(B,T),C.on(q,C),E.on(q,E),R.on(q,R),P.on(q,P),C.on(B,C),E.on(B,E),R.on(B,R),P.on(B,P),x.on(q,C),_.on(q,E),A.on(q,R),T.on(q,P),x.on(B,x),_.on(B,_),A.on(B,A),T.on(B,T),g.on(q,g),b.on(q,g),g.on(B,b),b.on(B,b),l.on(a.TLD,U).on(a.DOMAIN,U).on(a.NUM,U).on(a.LOCALHOST,U),U.on(q,U).on(B,M),M.on(q,U).on(B,M);var J=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(J,z).on(a.AT,F),y.on(J,z).on(a.AT,F),d.on(J,z),z.on(J,z).on(a.AT,F).on(a.DOT,V),V.on(J,z),F.on(a.TLD,L).on(a.DOMAIN,L).on(a.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 a=u,c=null,s=null,l=0,f=null,p=-1;n<t&&!(c=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(s=c||a.next(e[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.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(224),o=n(85),i=n(111);function a(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,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.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,o=[],c=0;r[c]instanceof i.PROTOCOL;)t=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},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){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.r(t);n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396);var r=n(2),o=n(0),i=n.n(o),a=n(5),c=n(87),u=n(15);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(c,e);var t,n,r,i=h(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(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,o.createElement(t,{alerts:r,removeAlert:function(e){return a.Radio.channel(u.a.ALERT).trigger("remove:alert",e)}}))}}}])&&f(t.prototype,n),r&&f(t,r),c}(c.a),m="content",g="popup",b="alert",w="TeacherLayout",S="EmbedLayout",O=n(4),k=n(3);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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 P(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),e}function x(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,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(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 L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){x(n,e);var t=A(n);function n(){return E(this,n),t.apply(this,arguments)}return P(n,[{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/manage":"manageClassroom"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup"]}}]),n}(r.a.AppRouter),N=function(e){x(r,e);var t=A(r);function r(){return E(this,r),t.apply(this,arguments)}return P(r,[{key:"index",value:function(){var e=this;n.e(21).then(n.bind(null,657)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(m,i.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(28).then(n.bind(null,655)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(m,i.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,o=t.tab;["students","groups"].includes(o)||(o="students"),Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(16)]).then(n.bind(null,651)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(m,i.a.createElement(n,{id:e,activeTab:o}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(32)]).then(n.bind(null,620)).then((function(t){var n=t.CreateClassroomView,r={actionType:k.n.Create,entity:k.d.Classroom,workflowPhase:k.o.Complete,location:k.j.Popup};e.layout.showChildView(g,i.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(33)]).then(n.bind(null,621)).then((function(n){var r=n.EditClassroomView,o={actionType:k.n.Edit,entity:k.d.Classroom,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(48).then(n.bind(null,622)).then((function(n){var r=n.DeleteClassroomView,o={actionType:k.n.Delete,entity:k.d.Classroom,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(23)]).then(n.bind(null,623)).then((function(n){var r=n.AddStudentsToClassroomView,o={actionType:k.n.Associate,entity:k.d.Classroom,location:k.j.Popup,descriptor:k.a.User,workflowPhase:k.o.Complete};t.layout.showChildView(g,i.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:o}))}))}},{key:"removeStudents",value:function(e,t){var r=this,o=t.studentIds;n.e(49).then(n.bind(null,624)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:k.n.Dissociate,entity:k.d.Classroom,location:k.j.Popup,descriptor:k.a.User,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(n,{classroomId:e,studentIds:o,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,o=t.addStudents,a=void 0===o?[]:o;Promise.all([n.e(1),n.e(18)]).then(n.bind(null,625)).then((function(t){var n=t.CreateClassroomGroupView,o={entity:k.d.ClassroomGroup,location:k.j.Popup,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(19)]).then(n.bind(null,626)).then((function(n){var o=n.EditClassroomGroupView,a={entity:k.d.ClassroomGroup,actionType:k.n.Edit,location:k.j.Popup,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(47).then(n.bind(null,627)).then((function(n){var o=n.DeleteClassroomGroupView,a={entity:k.d.ClassroomGroup,actionType:k.n.Delete,location:k.j.Popup,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return j}}]),r}(v),I=n(129),D=n(68),U="content",M="popup",z="alert",F=n(35),V=n(11),H={getVideoAppLink:function(e){return{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO,args:[e.id,F.a.slugify(e.name)]}},getSeriesAppLink:function(e){return{application:O.a.DEFAULT,action:V.a.Default.SERIES,args:[e.id,F.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:O.a.CONTENT_UPDATES,action:V.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,F.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:O.a.SUBJECT,action:V.a.Subjects.CLASSIFICATION,args:[e.id,F.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:O.a.DEFAULT,action:V.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},contentUpdatesAppLink:{application:O.a.CONTENT_UPDATES,action:V.a.ContentUpdates.CONTENT_UPDATES}};function q(e){return(q="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 B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(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 G(e,t,n){return t&&J(e.prototype,t),n&&J(e,n),e}function K(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&&W(e,t)}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){return!t||"object"!==q(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 X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=function(e){K(n,e);var t=Y(n);function n(){return B(this,n),t.apply(this,arguments)}return G(n,[{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}}]),n}(r.a.AppRouter),ee=function(e){K(r,e);var t=Y(r);function r(){return B(this,r),t.apply(this,arguments)}return G(r,[{key:"contentUpdates",value:function(){var e=this,t=[D.a.Share,D.a.AddToPlaylist],r=function(e,t){switch(t){case D.a.AddToPlaylist:return H.getAddToPlaylistAppLink(e);case D.a.Share:return H.getShareAppLink(e)}};Promise.all([n.e(0),n.e(25)]).then(n.bind(null,664)).then((function(n){var i=n.ContentUpdatesView;e.layout.showChildView(U,o.createElement(I.a.Provider,{value:{videoActions:t,getActionAppLink:r}},o.createElement(i,{appLinks:H})))}))}},{key:"classificationUpdate",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(26)]).then(n.bind(null,628)).then((function(t){var n=t.ClassificationUpdateView;r.layout.showChildView(U,o.createElement(n,{classificationId:e,appLinks:H}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return Z}}]),r}(v);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 ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(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 oe(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ie(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&&ae(e,t)}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(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 se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){ie(n,e);var t=ce(n);function n(){return ne(this,n),t.apply(this,arguments)}return oe(n,[{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"dashboard/:id(/:name/)":"dashboard","(/)":"index"}}}]),n}(r.a.AppRouter),fe=function(e){ie(r,e);var t=ce(r);function r(){return ne(this,r),t.apply(this,arguments)}return oe(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(2),n.e(12)]).then(n.bind(null,654)).then((function(t){var n=t.DashboardView;e.layout.showChildView(U,o.createElement(n,null))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0}}}}],[{key:"router",get:function(){return le}}]),r}(r.a.Application),pe=n(89);function he(e){return(he="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 de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(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 ve(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),e}function me(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&&ge(e,t)}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Se(e);if(t){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(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 Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){me(n,e);var t=be(n);function n(){return de(this,n),t.apply(this,arguments)}return ve(n,[{key:"channelName",get:function(){return O.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","my-uploads(/)":"myUploads","series/:id(/:slug)":"series","share/:shortCode(/)":"playSharedVideo","favourited-videos(/)":"favouriteVideos","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","editUpload","share"]}}]),n}(r.a.AppRouter),ke=function(e){me(i,e);var t=be(i);function i(){return de(this,i),t.apply(this,arguments)}return ve(i,[{key:"share",value:function(e,t){var r=this;n.e(13).then(n.bind(null,656)).then((function(n){var i=n.ShareView;r.layout.showChildView(M,o.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"playVideo",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(5),n.e(58)]).then(n.bind(null,629)).then((function(t){var n=t.PlayView;r.layout.showChildView(U,o.createElement(n,{id:e}))}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(5),n.e(51)]).then(n.bind(null,630)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(U,o.createElement(r,{shortCode:e}))}))}},{key:"myUploads",value:function(e){var t=this;Promise.all([n.e(0),n.e(8)]).then(n.bind(null,658)).then((function(n){var r=n.MyUploadsView;t.layout.showChildView(U,o.createElement(r,{cursor:e.cursor}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(37)]).then(n.bind(null,631)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(M,o.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(9)]).then(n.bind(null,632)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(M,o.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var i=this;Promise.all([n.e(0),n.e(27)]).then(n.bind(null,666)).then((function(t){var n,a=t.SeriesView;i.layout.showChildView(U,o.createElement(a,{id:e,cursor:null===(n=r)||void 0===n?void 0:n.cursor}))}))}},{key:"favouriteVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,633)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(U,o.createElement(r,{cursor:e.cursor}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new pe.a)}},{key:"notFound",value:function(){var e=this;n.e(55).then(n.bind(null,634)).then((function(t){var n=t.NotFoundView;e.layout.showChildView(U,o.createElement(n,null))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(54).then(n.bind(null,635)).then((function(n){var r=n.ErrorView;e.layout.showChildView(U,o.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(52).then(n.bind(null,636)).then((function(n){var i=n.DialogView;e.layout.showChildView(M,o.createElement(i,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(53).then(n.bind(null,637)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(U,o.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.DEFAULT}}],[{key:"router",get:function(){return Oe}}]),i}(v);function Ce(e){return(Ce="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 Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(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 Pe(e,t,n){return t&&Re(e.prototype,t),n&&Re(e,n),e}function xe(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 Ae(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Le(e);if(t){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==Ce(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 Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){xe(n,e);var t=Ae(n);function n(){return Ee(this,n),t.apply(this,arguments)}return Pe(n,[{key:"channelName",get:function(){return O.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shortCode":"embedVideo"}}}]),n}(r.a.AppRouter),Ne=function(e){xe(r,e);var t=Ae(r);function r(){return Ee(this,r),t.apply(this,arguments)}return Pe(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.a,a=void 0!==i&&i;n.e(46).then(n.bind(null,638)).then((function(n){var r=n.EmbedView;t.layout.showChildView(U,o.createElement(r,{id:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:S}}},{key:"channelName",get:function(){return O.a.EMBED}}],[{key:"router",get:function(){return je}}]),r}(v),Ie=n(72);function De(e){return(De="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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(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 ze(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),e}function Fe(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&&Ve(e,t)}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==De(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 Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Je=function(e){Fe(n,e);var t=He(n);function n(){return Ue(this,n),t.apply(this,arguments)}return ze(n,[{key:"channelName",get:function(){return O.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}}]),n}(r.a.AppRouter),Ge=function(e){Fe(r,e);var t=He(r);function r(){return Ue(this,r),t.apply(this,arguments)}return ze(r,[{key:"index",value:function(e){var t=this;n.e(45).then(n.bind(null,667)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(m,o.createElement(Ie.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}},{key:"channelName",get:function(){return O.a.NOTIFICATIONS}}],[{key:"router",get:function(){return Je}}]),r}(v),Ke=n(130),We=n(45);function Ye(e){return(Ye="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 Qe(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 Xe(e,t,n){return t&&$e(e.prototype,t),n&&$e(e,n),e}function Ze(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&&et(e,t)}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==Ye(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 rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){Ze(n,e);var t=tt(n);function n(){return Qe(this,n),t.apply(this,arguments)}return Xe(n,[{key:"channelName",get:function(){return O.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist"]}}]),n}(r.a.AppRouter),it=function(e){Ze(r,e);var t=tt(r);function r(){return Qe(this,r),t.apply(this,arguments)}return Xe(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:k.j.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.PLAYLIST,args:[e.id,F.a.slugify(e.name)]}},i=function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME,params:{sort:e}}};this.setDefaultQueryParams({sort:e.sort||We.a.Newest}),Promise.all([n.e(6),n.e(14)]).then(n.bind(null,659)).then((function(n){var a=n.PlaylistsView;t.layout.showChildView(U,o.createElement(a,{getPlaylistAppLink:r,key:e.sort,getSortAppLink:i,sort:Ke.a.getSortTypeFromName(e.sort)}))}))}},{key:"playlist",value:function(e,t){var r=this,i=function(e){return{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO,args:[e.id,F.a.slugify(e.name)]}},a=function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME}};Promise.all([n.e(0),n.e(6),n.e(34)]).then(n.bind(null,652)).then((function(t){var n=t.PlaylistView;r.layout.showChildView(U,o.createElement(n,{key:e,playlistId:e,application:O.a.PLAYLISTS,getVideoAppLink:i,getSeriesAppLink:a,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(7),n.e(57)]).then(n.bind(null,639)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(M,o.createElement(n,Object.assign({application:O.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(7),n.e(56)]).then(n.bind(null,640)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(M,o.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(42).then(n.bind(null,641)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(M,o.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(29).then(n.bind(null,660)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(M,o.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(43).then(n.bind(null,642)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(M,o.createElement(i,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.PLAYLISTS}}],[{key:"router",get:function(){return ot}}]),r}(v);function at(e){return(at="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 ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(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 st(e,t,n){return t&&ut(e.prototype,t),n&&ut(e,n),e}function lt(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&&ft(e,t)}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(e,t){return!t||"object"!==at(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 dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yt=function(e){lt(n,e);var t=pt(n);function n(){return ct(this,n),t.apply(this,arguments)}return st(n,[{key:"channelName",get:function(){return O.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}}]),n}(r.a.AppRouter),vt=function(e){lt(r,e);var t=pt(r);function r(){return ct(this,r),t.apply(this,arguments)}return st(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(17)]).then(n.bind(null,661)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(U,o.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0}}}},{key:"channelName",get:function(){return O.a.SEARCH}}],[{key:"router",get:function(){return yt}}]),r}(r.a.Application);function mt(e){return(mt="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 gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(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 wt(e,t,n){return t&&bt(e.prototype,t),n&&bt(e,n),e}function St(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&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ct(this,n)}}function Ct(e,t){return!t||"object"!==mt(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 Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rt=function(e){St(n,e);var t=kt(n);function n(){return gt(this,n),t.apply(this,arguments)}return wt(n,[{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences?step=subjects":"preferences","subjects/:id(/:slug)/series":"classificationSeries","subjects/:id(/:slug)":"classification"}}}]),n}(r.a.AppRouter),Pt=function(e){St(r,e);var t=kt(r);function r(){return gt(this,r),t.apply(this,arguments)}return wt(r,[{key:"classification",value:function(e,t){var r=this;Promise.all([n.e(2),n.e(4),n.e(11)]).then(n.bind(null,653)).then((function(t){var n=t.ClassificationView;r.layout.showChildView(m,o.createElement(n,{key:e,id:e}))}))}},{key:"classificationSeries",value:function(e,t,r){var i=this;Promise.all([n.e(4),n.e(44)]).then(n.bind(null,643)).then((function(t){var n=t.ClassificationSeriesListView;i.layout.showChildView(m,o.createElement(n,{id:e,queryParams:r}))}))}},{key:"preferences",value:function(e){var t=this,r=e.step,i=void 0===r?"subjects":r;n.e(15).then(n.bind(null,650)).then((function(e){var n=e.PreferencesView;t.layout.showChildView(m,o.createElement(n,{application:O.a.SUBJECT,step:i}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Rt}}]),r}(v);function xt(e){return(xt="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 _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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 Tt(e,t,n){return t&&At(e.prototype,t),n&&At(e,n),e}function Lt(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&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dt(e);if(t){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(e,t){return!t||"object"!==xt(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 Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){Lt(n,e);var t=Nt(n);function n(){return _t(this,n),t.apply(this,arguments)}return Tt(n,[{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"appRoutes",get:function(){return{"my-uploads(/)":"myUploads"}}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}}]),n}(r.a.AppRouter),Mt=function(e){Lt(r,e);var t=Nt(r);function r(){return _t(this,r),t.apply(this,arguments)}return Tt(r,[{key:"myUploads",value:function(e){var t=this;Promise.all([n.e(0),n.e(8)]).then(n.bind(null,658)).then((function(n){var r=n.MyUploadsView;t.layout.showChildView(m,o.createElement(r,{cursor:e.cursor}))}))}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(9)]).then(n.bind(null,632)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(g,o.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(50).then(n.bind(null,644)).then((function(n){var i=n.CancelUploadView;r.layout.showChildView(g,o.createElement(i,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Ut}}]),r}(v);function zt(e){return(zt="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 Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(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 Ht(e,t,n){return t&&Vt(e.prototype,t),n&&Vt(e,n),e}function qt(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&&Bt(e,t)}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==zt(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 Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=function(e){qt(n,e);var t=Jt(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/teachers(/)":"teacherManager","user-manager/students/upload/review":"studentUploadReview","user-manager/teachers/upload/review":"teacherUploadReview"}}},{key:"appLinks",get:function(){return["newStudent","editStudent","newTeacher","editTeacher","removeUsers"]}}]),n}(r.a.AppRouter),Yt=function(e){qt(r,e);var t=Jt(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Ht(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(20)]).then(n.bind(null,668)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(m,o.createElement(r,{queryParams:e}))}))}},{key:"teacherManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(22)]).then(n.bind(null,669)).then((function(n){var r=n.SchoolTeacherManagerView;t.layout.showChildView(m,o.createElement(r,{queryParams:e}))}))}},{key:"studentUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(24)]).then(n.bind(null,662)).then((function(t){var n=t.StudentUploadReviewView,r={entity:k.d.User,location:k.j.StudentManager,actionType:k.n.Create};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"teacherUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(30)]).then(n.bind(null,663)).then((function(t){var n=t.TeacherUploadReviewView,r={entity:k.d.User,location:k.j.TeacherManager,actionType:k.n.Create};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"newStudent",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(35)]).then(n.bind(null,645)).then((function(t){var n=t.CreateStudentView,r={actionType:k.n.Create,entity:k.d.User,workflowPhase:k.o.Complete,descriptor:k.k.Single,location:k.j.Popup};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editStudent",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(36)]).then(n.bind(null,646)).then((function(n){var r=n.EditStudentView,i={actionType:k.n.Edit,entity:k.d.User,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newTeacher",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(39)]).then(n.bind(null,647)).then((function(t){var n=t.CreateTeacherView,r={actionType:k.n.Create,entity:k.d.User,workflowPhase:k.o.Complete,descriptor:k.k.Single,location:k.j.Popup};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editTeacher",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(40)]).then(n.bind(null,648)).then((function(n){var r=n.EditTeacherView,i={actionType:k.n.Edit,entity:k.d.User,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeUsers",value:function(e){var t=this,r=e.userIds,i=void 0===r?[]:r,a=e.userType;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(41)]).then(n.bind(null,649)).then((function(e){var n=e.RemoveUserView,r={actionType:k.n.Delete,entity:k.d.User,workflowPhase:k.o.Complete,descriptor:1===i.length?k.k.Single:k.k.Bulk,location:k.j.Popup};t.layout.showChildView(g,o.createElement(n,{userIds:i,userType:a,closePopup:function(){return t.layout.closePopup()},analyticsOptions:r}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Wt}}]),r}(v);function Qt(e){return(Qt="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 $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(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 Zt(e,t,n){return t&&Xt(e.prototype,t),n&&Xt(e,n),e}function en(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&&tn(e,t)}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=on(e);if(t){var o=on(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==Qt(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 on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=function(e){en(n,e);var t=nn(n);function n(){return $t(this,n),t.apply(this,arguments)}return Zt(n,[{key:"channelName",get:function(){return O.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"appLinks",get:function(){return[]}}]),n}(r.a.AppRouter),cn=function(e){en(r,e);var t=nn(r);function r(){return $t(this,r),t.apply(this,arguments)}return Zt(r,[{key:"index",value:function(){var e=this;n.e(38).then(n.bind(null,665)).then((function(t){var n=t.SettingsView;e.layout.showChildView(U,i.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.SETTINGS}}],[{key:"router",get:function(){return an}}]),r}(v);var un,sn=n(6),ln=n(1),fn=n(13);!function(e){e.Fifo="FifoMemoryCache"}(un||(un={}));var pn=n(38),hn=n(8);function dn(e){return(dn="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 yn(e){return function(e){if(Array.isArray(e))return vn(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 vn(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 vn(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 vn(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 mn(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 gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wn(this,n)}}function wn(e,t){return!t||"object"!==dn(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 Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var On=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&&gn(e,t)}(i,e);var t,n,r,o=bn(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=o.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=ln.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||hn.c.throw(new fn.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=ln.object(this.cachedkeys,this.cachedkeys),o=[];ln.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),i=ln.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,yn(i))})),o.length&&(o=ln.uniq(o),ln.each(o,(function(e){delete n.cache[e],ln.isFunction(t)&&t(e)})),this.cachedkeys=ln.without.apply(ln,[this.cachedkeys].concat(yn(o))))}},{key:"name",get:function(){return un.Fifo}}])&&mn(t.prototype,n),r&&mn(t,r),i}(pn.a);var kn,Cn=n(22),En=n(63),Rn=n(16),Pn=n(55);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(kn||(kn={}));var xn=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 _n(e){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function An(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 Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ln(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jn(this,n)}}function jn(e,t){return!t||"object"!==_n(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 Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var In=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&&Tn(e,t)}(i,e);var t,n,r,o=Ln(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=o.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:"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=Rn.a.GET);var o=ln.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===Rn.a.POST||n===Rn.a.PUT?JSON.stringify(t):t),o.forceHttps&&(i.url=this.makeHttps(i.url)),o.traditional&&(i.traditional=o.traditional);var a=$.ajax(i);return ln.keys(this.successMiddleware).length&&a.done(ln.values(this.successMiddleware)),ln.keys(this.errorMiddleware).length&&a.fail(ln.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Rn.a.POST).done((function(e,t,n){return r.trigger(o,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,o=t.errorEvent;this.base(e,null,Rn.a.GET).done((function(e,t,o){n.trigger(r,e,t,o)})).fail((function(e,t,r){n.trigger(o,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Rn.a.PUT).done((function(e,t,n){return r.trigger(o,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,o=t.errorEvent;this.base(e,null,Rn.a.DELETE).done((function(e,t,o){return n.trigger(r,e,t,o)})).fail((function(e,t,r){return n.trigger(o,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,t,n){var r=e.responseJSON,o=En.a;switch(o.code=e.status,o.message=xn(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=Pn.a.BadRequest;break;case 401:o.type=Pn.a.Unauthorized;break;case 403:o.type=Pn.a.Forbidden;break;case 404:o.type=Pn.a.NotFound;break;case 500:o.type=Pn.a.InternalServer}return o}},{key:"name",get:function(){return kn.Ajax}}])&&An(t.prototype,n),r&&An(t,r),i}(Cn.Object);var Dn=n(29),Un=n(37),Mn=n(42),zn=n(9),Fn=n(20),Vn=n(14),Hn="locale",qn="phrases",Bn="version",Jn=n(41);function Gn(e){return(Gn="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 Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wn(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 Yn(e,t){return(Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(e,t){return!t||"object"!==Gn(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 Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn=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&&Yn(e,t)}(i,e);var t,n,r,o=Qn(i);function i(){return Kn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getConfig",value:function(e,t){return this.get({resource:"/api/config",eventPrefix:Fn.a.CONFIG,expiryTime:Jn.a.STANDARD,callback:e,errorCallback:t})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:Bn,callback:e,expiryTime:Jn.a.STANDARD})}},{key:"name",get:function(){return zn.a.Config}},{key:"channelName",get:function(){return Vn.b.CONFIG}}])&&Wn(t.prototype,n),r&&Wn(t,r),i}(Mn.a),er=(zn.a.Config,Vn.b.CONFIG,n(97));function tr(e){return(tr="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 nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(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 or(e,t){return(or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cr(e);if(t){var o=cr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ar(this,n)}}function ar(e,t){return!t||"object"!==tr(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 cr(e){return(cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ur=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&&or(e,t)}(i,e);var t,n,r,o=ir(i);function i(){return nr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:Fn.a.LOCALE,expiryTime:Jn.a.STANDARD,bootstrapName:Hn,callback:function(n){t.locale=n,t.phrases&&ln.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:Fn.a.PHRASES,expiryTime:Jn.a.STANDARD,bootstrapName:qn,callback:function(n){t.phrases=n,t.locale&&ln.isFunction(e)&&e(t)}})}},{key:"name",get:function(){return zn.a.Language}},{key:"channelName",get:function(){return Vn.b.LANGUAGE}}])&&rr(t.prototype,n),r&&rr(t,r),i}(Mn.a);function sr(e){return(sr="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 lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fr(e,t){return(fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dr(e);if(t){var o=dr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hr(this,n)}}function hr(e,t){return!t||"object"!==sr(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 dr(e){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yr=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&&fr(e,t)}(n,e);var t=pr(n);function n(){return lr(this,n),t.apply(this,arguments)}return n}(r.a.Model);function vr(e){return(vr="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 mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(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 br(e,t){return(br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Or(e);if(t){var o=Or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sr(this,n)}}function Sr(e,t){return!t||"object"!==vr(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 Or(e){return(Or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kr=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&&br(e,t)}(i,e);var t,n,r,o=wr(i);function i(){return mr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new yr(e)},resource:"notify",eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return zn.a.NotificationSocket}},{key:"channelName",get:function(){return Vn.b.NOTIFICATIONS_SOCKET}}])&&gr(t.prototype,n),r&&gr(t,r),i}(Mn.a),Cr=n(53),Er=n(7),Rr=n(59),Pr=n(56);function xr(e){return(xr="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ar(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 Tr(e,t){return(Tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nr(e);if(t){var o=Nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jr(this,n)}}function jr(e,t){return!t||"object"!==xr(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 Nr(e){return(Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ir=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&&Tr(e,t)}(i,e);var t,n,r,o=Lr(i);function i(){return _r(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return yr}}])&&Ar(t.prototype,n),r&&Ar(t,r),i}(r.a.Collection);function Dr(e){return(Dr="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 Ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(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 zr(e,t){return(zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hr(e);if(t){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}function Vr(e,t){return!t||"object"!==Dr(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 Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,o=t.cursor,i=t.before,a=[],c=Rr.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},Br=function(e){return"/api/notifications/v1/notifications/".concat(e)},Jr="/api/notifications/v1/notifications",Gr="/api/domain/v1/notifications",Kr=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&&zr(e,t)}(i,e);var t,n,r,o=Fr(i);function i(){return Ur(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:qr(e,t),expiryTime:Jn.a.STANDARD,eventPrefix:n,formatData:function(e){return new Ir(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Pr.a.Read},resource:Br(e),eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Cr().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Pr.a.Seen},resource:"".concat(Jr,"?to=").concat(t,"¬ificationStatus=").concat(Pr.a.Received),eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(Gr),eventPrefix:"".concat(Fn.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(Er.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return zn.a.Notification}},{key:"channelName",get:function(){return Vn.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&Mr(t.prototype,n),r&&Mr(t,r),i}(Mn.a),Wr=n(113),Yr=n(10),Qr=n(96),$r=n(33),Xr=n(34),Zr=n(47),eo=n.n(Zr);function to(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,a=t.message,c=t.heading,u=t.appLink,s=t.appLinkText,l=t.appLinkClassName,f=void 0===l?"":l,p=Object(Qr.sanitize)(a);return o.createElement(o.Fragment,null,o.createElement("div",{className:"d-inline-block ".concat(eo.a.icon)},o.createElement($r.a,{svgName:n,className:"svg-container ".concat(r)})),o.createElement("div",{className:"pl-2 d-inline-block ".concat(eo.a.alertContent)},o.createElement("p",{className:"p-0 m-0 pb-1 ".concat(eo.a.heading)},c),o.createElement("p",{className:"p-0 m-0 ".concat(eo.a.message),dangerouslySetInnerHTML:{__html:p}}),!!u&&o.createElement(Xr.a,{className:f,appLink:u},s)),o.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button","aria-hidden":"true",onClick:i},"×"))}function no(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(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}var oo=function(e){switch(e.type){case Dn.a.Success:return Yr.b.CheckCircleOutline;case Dn.a.Fail:case Dn.a.Warning:return Yr.b.Warning;case Dn.a.Info:default:return Yr.b.Info}};function io(e){var t=e.alert,n=e.closeAlert,r=no(o.useState(!0),2),i=r[0],a=r[1],c=o.useRef();o.useEffect((function(){i?c.current=window.setTimeout(n,3e3):clearTimeout(c.current)}),[i]);var u="text-".concat(t.type.toLowerCase());return o.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(eo.a.alertItem),onMouseEnter:function(){return a(!1)},onMouseLeave:function(){return a(!0)}},o.createElement(to,{alert:t,svgName:oo(t),svgClassName:u,closeAlert:n}))}function ao(e){var t=e.alerts,n=e.removeAlert;return o.createElement("div",{className:eo.a.alertBox},o.createElement(Wr.TransitionGroup,{component:"ul",className:"".concat(eo.a.alertList," list-unstyled")},t&&t.map((function(e,t){return o.createElement(Wr.CSSTransition,{key:t,timeout:200,classNames:"alert"},o.createElement(io,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var co=n(12),uo=n(27);function so(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 lo=function(e){return{url:"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary",key:"libraries",success:e,normalize:!1}},fo=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(uo.a.FOLDER),key:"folder:".concat(e),success:t}},po=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=lo((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),o=co.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&co.a.fetch(this.store.dispatch,n),o.data&&new r.a.Collection(o.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=fo(e,(function(e){return t&&t(new r.a.Model(e))})),o=co.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&co.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return zn.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&so(t.prototype,n),o&&so(t,o),e}();function ho(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 yo=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(uo.a.SERIES),key:"series:".concat(e),success:t}},vo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=yo(e,(function(e){return t&&t(new r.a.Model(e))})),o=co.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&co.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return zn.a.Series}},{key:"channelName",get:function(){return Vn.b.SERIES}}])&&ho(t.prototype,n),o&&ho(t,o),e}(),mo="Success! 🙌",go="Oops...";function bo(e){return("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 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 So(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Co(e);if(t){var o=Co(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return ko(this,n)}}function ko(e,t){return!t||"object"!==bo(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(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}hn.a;function Eo(e){return(Eo="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 Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Po(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 xo(e,t){return(xo=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=To(e);if(t){var o=To(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ao(this,n)}}function Ao(e,t){return!t||"object"!==Eo(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 To(e){return(To=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lo=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&&xo(e,t)}(i,e);var t,n,r,o=_o(i);function i(){return Ro(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&Po(t.prototype,n),r&&Po(t,r),i}(r.a.SilentError);function jo(e){return(jo="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 Io(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 Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zo(e);if(t){var o=zo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(e,t){return!t||"object"!==jo(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 zo(e){return(zo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fo=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&&Do(e,t)}(i,e);var t,n,r,o=Uo(i);function i(){return No(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&Io(t.prototype,n),r&&Io(t,r),i}(r.a.SilentError);function Vo(e){return(Vo="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 Ho(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 qo(e,t){return(qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Go(e);if(t){var o=Go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jo(this,n)}}function Jo(e,t){return!t||"object"!==Vo(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 Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ko=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&&qo(e,t)}(a,e);var t,n,o,i=Bo(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)).dialogOptions||r.a.ErrorHelper.throw(new fn.a("Please provide DialogOptions for your implementation of DialogError")),t}return t=a,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&Ho(t.prototype,n),o&&Ho(t,o),a}(r.a.SilentError);function Wo(e){sn.a.getInstance(Un.a.ALERT).createAlert({heading:go,type:Dn.a.Fail,message:e.message})}function Yo(e){r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:V.a.Default.NOT_FOUND})}function Qo(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:V.a.Default.ERROR})}function $o(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:V.a.Default.DIALOG_ERROR})}var Xo=n(57),Zo=n(39);function ei(e){return(ei="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 ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ni(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 ri(e,t){return(ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ai(e);if(t){var o=ai(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ii(this,n)}}function ii(e,t){return!t||"object"!==ei(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 ai(e){return(ai=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ci=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&&ri(e,t)}(a,e);var t,n,r,i=oi(a);function a(){return ti(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"isReactComponent",value:function(e){return o&&o.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"),Xo.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return Xo.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return Xo.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return o.createElement(Zo.Provider,{store:this.options.store},e)}}])&&ni(t.prototype,n),r&&ni(t,r),a}(n(88).a),ui=n(243),si=n(78),li=n(51),fi=n(31),pi=n(81),hi=n(79),di=n(40),yi=n(120),vi=n(21),mi=n(244),gi=n.n(mi),bi=n(103),wi=n.n(bi);function Si(e){return(Si="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 Oi(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 ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ci(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ei(this,n)}}function Ei(e,t){return!t||"object"!==Si(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 Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pi=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&&ki(e,t)}(i,e);var t,n,r,o=Ci(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:wi.a,svg:Yr.a.getSvg(Yr.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(wi.a.notificationIcon," ").concat(wi.a[this.options.color])}},{key:"template",get:function(){return gi.a}}])&&Oi(t.prototype,n),r&&Oi(t,r),i}(r.a.Component),xi=n(94),_i=n(91),Ai=n(240),Ti=n(248),Li=n.n(Ti),ji=n(226),Ni=n.n(ji),Ii=n(227),Di=n.n(Ii);function Ui(e){return(Ui="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 Mi(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 zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vi(this,n)}}function Vi(e,t){return!t||"object"!==Ui(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 Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qi=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&&zi(e,t)}(i,e);var t,n,r,o=Fi(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:_i.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:Ni.a,className:"px-1 py-2",viewOptions:{styles:Di.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=sn.a.getInstance(zn.b.Notification,this),this.appVariables=sn.a.getInstance(vi.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new Ai.a({collectionPrefix:Fn.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new xi.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}},{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return Li.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&Mi(t.prototype,n),r&&Mi(t,r),i}(r.a.View),Bi=n(249),Ji=n.n(Bi),Gi=n(250),Ki=n.n(Gi);function Wi(e){return(Wi="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 Yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(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 $i(e,t){return($i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ea(e);if(t){var o=ea(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zi(this,n)}}function Zi(e,t){return!t||"object"!==Wi(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 ea(e){return(ea=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&&$i(e,t)}(i,e);var t,n,r,o=Xi(i);function i(){return Yi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=sn.a.getInstance(vi.a.NOTIFICATIONS)}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new qi({childType:xi.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=sn.a.getInstance(zn.b.Notification),t=new Pi({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return Ki.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return Ji.a}}])&&Qi(t.prototype,n),r&&Qi(t,r),i}(r.a.View),na=n(239),ra=n(133),oa=n(237),ia=n(52),aa=n(28),ca=n(48),ua=n(135),sa=n(74),la=n.n(sa),fa=o.memo((function(e){var t=e.user;if(!t)return o.createElement(aa.Button,{variant:"primary",className:"mx-2 px-2"},"Log in");var n=t.avatar,r=t.displayName,i=t.customerName;return o.createElement(ca.a.Provider,{value:"shared.userOptions"},o.createElement("div",{className:"cursor-pointer mx-2 px-2 position-relative","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},o.createElement(ua.a,{imageUrl:n}),o.createElement("nav",{className:"dropdown-menu dropdown-arrow dropdown-menu-right ".concat(la.a.dropdownMenu)},o.createElement("div",{className:"dropdown-item"},o.createElement("div",{className:"m-0"},o.createElement("strong",null,r)),o.createElement("div",{className:"m-0 text-muted"},i)),o.createElement(Xr.a,{className:"dropdown-item",appLink:null},o.createElement("span",{className:"".concat(la.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),o.createElement(ca.b,{phrase:"myProfile"})),o.createElement(Xr.a,{className:"dropdown-item",appLink:null},o.createElement("span",{className:"".concat(la.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),o.createElement(ca.b,{phrase:"myPreferences"})),o.createElement(Xr.a,{className:"dropdown-item",appLink:null},o.createElement("span",{className:"".concat(la.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),o.createElement(ca.b,{phrase:"signOut"})))))}),(function(e,t){var n,r,o,i,a,c,u,s;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(o=e.user)||void 0===o?void 0:o.avatar)===(null===(i=t.user)||void 0===i?void 0:i.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(c=t.user)||void 0===c?void 0:c.displayName)&&(null===(u=e.user)||void 0===u?void 0:u.customerName)===(null===(s=t.user)||void 0===s?void 0:s.customerName)})),pa=n(119),ha=n(32),da=o.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(si.a)(ha.b.VideoUpload),i=o.useRef(null),a=o.useCallback((function(e){e&&(i.current=e)}),[]);return o.createElement(o.Fragment,null,o.createElement(pa.a,{svgName:Yr.b.Upload,className:"btn btn-secondary",onClick:function(e){i.current.value=null,i.current.click(null)}},!n&&o.createElement(ca.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})),o.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!0,accept:"video/*",ref:a,onChange:function(e){return t=e.target.files,r.addFiles(t,{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Start,descriptor:fi.a.mapInteractionType(k.h.FileSelect)});var t}}))})),ya=n(66),va=n.n(ya);function ma(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ga(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 ga(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 ga(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 ba(){return o.createElement("svg",{viewBox:"0 0 434 71"},o.createElement("g",null,o.createElement("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),o.createElement("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})))}function wa(e){var t,n=co.a.useBasicFetch(yi.a.currentUser,{optimize:!0}).data,r=co.a.useBasicFetch(ra.a.presentation()),i=ma(Object(li.a)(ia.a.SEARCH_BAR_LOCATION,!0),1)[0];return o.createElement("nav",{className:"navbar navbar-expanded sticky-top ".concat(va.a.nav)},o.createElement("div",{className:"justify-content-start"},e.showLeftNavToggle&&o.createElement($r.a,{svgName:Yr.b.Handle,className:"".concat(va.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),o.createElement("a",{className:"navbar-brand text-hide align-top ".concat(va.a.logoContainer," d-inline-block'"),href:"/"},o.createElement(ba,null))),i&&o.createElement("div",{className:"justify-content-center"},o.createElement(Ie.a,{className:"container ".concat(va.a.searchBarNavContainer),view:na.a,options:{model:di.a.get("search",{ctor:oa.a}),disableMask:!0,presentationId:null===(t=r.data)||void 0===t?void 0:t.id}})),o.createElement("div",{className:"d-flex align-items-center justify-content-end pr-1 ".concat(va.a.actionButtons)},!!n&&o.createElement(da,{hideButtonText:i}),o.createElement(Ie.a,{view:ta,className:"ml-2 pl-2"}),o.createElement(fa,{user:n})))}var Sa=n(92),Oa=n(122),ka=n(26),Ca=n(83);function Ea(e){var t=e.children,n=e.className,r=void 0===n?"d-inline-block svg-container":n,i=e.tagName,a=void 0===i?"span":i,c=e.size,u=void 0===c?$r.b.Standard:c,s=e.onClick,l=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,h=a,d={className:"".concat(r," ").concat(u),onClick:ka.a.isFunction(s)?s:null};return l?o.createElement(Ca.a,{title:l,placement:p},o.createElement(h,Object.assign({},d),t)):o.createElement(h,Object.assign({},d),t)}var Ra=n(49),Pa=n(17),xa=n.n(Pa);function _a(e){var t=e.application,n=e.action,r=Ra.a.getCurrentRoute();return r||(r=Ra.a.getCurrentContext()),t===r.appLink.application&&n===r.appLink.action}function Aa(e){var t=_a(e.appLink),n=!e.collapsed||t,r=e.collapsed&&t,o=e.icon;return i.a.createElement(Xr.a,{className:"".concat(xa.a.leftNavAnchor," ").concat(e.className," ").concat(n?xa.a.active:xa.a.iconGrey," mt-3"),appLink:e.appLink},i.a.createElement("span",{className:"".concat(xa.a.leftNavIcon)},e.icon?i.a.createElement(Ea,{size:$r.b.Large},i.a.createElement(o,null)):i.a.createElement($r.a,{svgName:e.svgName,size:$r.b.Large})),i.a.createElement("span",{className:"".concat(xa.a.leftNavText," ").concat(r?xa.a.highlightText:"")},e.name))}function Ta(){return i.a.createElement("div",{className:"".concat(xa.a.leftNavAnchor," mt-3")},i.a.createElement("span",{className:"".concat(xa.a.iconGrey," partial-loading-background")}),i.a.createElement("span",{className:"".concat(xa.a.leftNavText," ").concat(xa.a.partialLeftNavItem," mx-1 partial-loading-background")}))}var La=Er.a.encloseNamespace("shared.leftNav");function ja(){return i.a.createElement("svg",{viewBox:"0 0 24 24"},i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("g",{transform:"translate(0.000000, 2.000000)"},i.a.createElement("text",{id:"ABC",fontFamily:"Rubik-Black, Rubik Black",fontSize:"6.6",fontWeight:"700",fill:"#ffffff"},i.a.createElement("tspan",{x:"4.5",y:"10.8"},"ABC")),i.a.createElement("rect",{id:"Rectangle",stroke:"#ffffff",strokeWidth:"1.2",x:"3",y:"1.8",width:"18",height:"13.2",rx:"1.2"}),i.a.createElement("line",{x1:"0.6",y1:"15",x2:"23.4",y2:"15",id:"Line-2",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("circle",{id:"Oval",stroke:"#ffffff",strokeWidth:"1.2",fill:"#000000",cx:"12",cy:"1.2",r:"1"}),i.a.createElement("line",{x1:"11.4",y1:"15",x2:"7.8",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("line",{x1:"16.2",y1:"15",x2:"12.6",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round",transform:"translate(14.400000, 16.800000) scale(-1, 1) translate(-14.400000, -16.800000) "}))))}var Na,Ia={discover:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},playlists:{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME},myUploads:{application:O.a.DEFAULT,action:V.a.Upload.MY_UPLOADS},favouritedVideos:{application:O.a.DEFAULT,action:V.a.Default.FAVOURITE_VIDEOS},classrooms:{application:O.a.CLASSROOMS,action:V.a.Classrooms.HOME},classroom:{application:O.a.CLASSROOMS,action:V.a.Classrooms.CLASSROOM},watchHistory:{application:O.a.DEFAULT,action:V.a.Default.WATCH_HISTORY},settings:{application:O.a.SETTINGS,action:V.a.Settings.HOME}},Da=i.a.memo((function(){var e=co.a.useBasicFetch(Oa.a.getStarredClassrooms());return i.a.createElement("nav",{className:"".concat(xa.a.leftNav," ").concat(xa.a.leftNavExpanded)},i.a.createElement(Sa.Scrollbars,{height:"100%"},i.a.createElement(Aa,{name:La("discover"),appLink:Ia.discover,className:xa.a.discover,svgName:Yr.b.Compass}),i.a.createElement(Aa,{name:La("playlists"),appLink:Ia.playlists,className:xa.a.playlists,svgName:Yr.b.Playlist}),i.a.createElement(Aa,{name:La("myUploads"),appLink:Ia.myUploads,className:xa.a.myUploads,svgName:Yr.b.Upload}),i.a.createElement(Aa,{name:La("favouritedVideos"),appLink:Ia.favouritedVideos,className:xa.a.favouritedVideos,svgName:Yr.b.Heart}),i.a.createElement("hr",null),i.a.createElement(Aa,{name:La("classrooms"),appLink:Ia.classrooms,className:xa.a.classrooms,icon:ja}),e.data?e.data.map((function(e){return i.a.createElement(Aa,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Ia.classroom),{args:[e.id]}),className:xa.a.classroom,svgName:Yr.b.Star})})):i.a.createElement(Ta,null),i.a.createElement("div",{className:xa.a.leftNavBottom},i.a.createElement(Aa,{name:La("watchHistory"),appLink:Ia.watchHistory,className:xa.a.watchHistory,svgName:Yr.b.History}),i.a.createElement(Aa,{name:La("settings"),appLink:Ia.settings,className:xa.a.settings,svgName:Yr.b.Cog}))))})),Ua=Er.a.encloseNamespace("shared.leftNav"),Ma={discover:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},playlists:{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME},myUploads:{application:O.a.DEFAULT,action:V.a.Upload.MY_UPLOADS},favouritedVideos:{application:O.a.DEFAULT,action:V.a.Default.FAVOURITE_VIDEOS},watchHistory:{application:O.a.DEFAULT,action:V.a.Default.WATCH_HISTORY}};function za(){return i.a.createElement("nav",{className:"".concat(xa.a.leftNav," ").concat(xa.a.leftNavCollapsed)},i.a.createElement(Sa.Scrollbars,{height:"100%"},i.a.createElement(Aa,{name:Ua("discover"),appLink:Ma.discover,className:xa.a.discover,svgName:Yr.b.Compass,collapsed:!0}),i.a.createElement(Aa,{name:Ua("playlists"),appLink:Ma.playlists,className:xa.a.playlists,svgName:Yr.b.Playlist,collapsed:!0}),i.a.createElement(Aa,{name:Ua("myUploads"),appLink:Ma.myUploads,className:xa.a.myUploads,svgName:Yr.b.Upload,collapsed:!0}),i.a.createElement(Aa,{name:Ua("favouritedVideos"),appLink:Ma.favouritedVideos,className:xa.a.favouritedVideos,svgName:_a(Ma.favouritedVideos)?Yr.b.Heart:Yr.b.HeartOutline,collapsed:!0}),i.a.createElement(Aa,{name:Ua("watchHistory"),appLink:Ma.watchHistory,className:xa.a.watchHistory,svgName:Yr.b.History,collapsed:!0})))}function Fa(e){return e.navState===Na.Hidden?i.a.createElement(i.a.Fragment,null):e.navState===Na.Collapsed?i.a.createElement(za,null):i.a.createElement(Da,null)}!function(e){e[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(Na||(Na={}));var Va=n(128),Ha=n(238),qa=n(126);function Ba(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ja(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 Ja(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 Ja(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 Ga=n(76),Ka=n.n(Ga);function Wa(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ya(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 Ya(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 Ya(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 Qa(e){return{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO,args:[e.id,F.a.slugify(e.name)]}}function $a(e){var t,n=e.video;return o.createElement("h2",{className:"mb-0 h6"},!!n.series&&o.createElement(Va.a,{video:n,appLink:(t=n.series,{application:O.a.DEFAULT,action:V.a.Default.SERIES,args:[t.id,F.a.slugify(t.name)]})}),o.createElement(Xr.a,{appLink:Qa(n)},n.name))}function Xa(){var e;!function(){var e,t,n=co.a.useBasicFetch(qa.a.config),r=Ba(Object(li.a)(ia.a.WEB_PLAYER_DATA,{webPlayerUrl:(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)||"",video:null,viewportPosition:null,isOnPlayPage:!1}),2)[1];i.a.useEffect((function(){var e;(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)&&r("webPlayerUrl",n.data.webPlayerUrl)}),[null===(t=n.data)||void 0===t?void 0:t.webPlayerUrl])}();var t=Wa(Object(li.a)(ia.a.WEB_PLAYER_DATA),2),n=t[0],r=t[1];if(!(null===(e=n)||void 0===e?void 0:e.video))return o.createElement(o.Fragment,null);var a={},c=Ka.a.fixed;return n.viewportPosition&&(c=Ka.a.inline,a=n.viewportPosition),n.viewportPosition||(c+=" shadow"),o.createElement("div",{style:a,className:"".concat(c)},o.createElement(Ha.a,{id:n.video.id,webPlayerHost:n.webPlayerUrl,className:"embed-responsive-16by9",key:n.video.id}),!n.viewportPosition&&o.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},o.createElement($a,{video:n.video}),o.createElement("span",{className:"".concat(Ka.a.buttons," flex-shrink-1")},o.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){fi.a.logUserAction({id:n.video.id},{location:k.j.FloatingPlayer,entity:k.d.Video,actionType:k.n.Click,descriptor:k.b.Close}),r("video",null)}},o.createElement($r.a,{svgName:Yr.b.Close})),o.createElement(Xr.a,{onClick:function(){fi.a.logUserAction({id:n.video.id},{location:k.j.FloatingPlayer,entity:k.d.Video,actionType:k.n.Click,descriptor:k.b.Open})},appLink:Qa(n.video)},!n.isOnPlayPage&&o.createElement($r.a,{svgName:Yr.b.NewWindow,className:"".concat(Ka.a.flippedIcon," d-inline-block svg-container float-right")})))))}var Za=n(136),ec=n(77),tc=n.n(ec);function nc(){return o.createElement(o.Fragment,null,o.createElement("div",{className:tc.a.dropMask}),o.createElement("div",{className:tc.a.dropContent},o.createElement("div",{className:tc.a.border},o.createElement("h1",null,o.createElement(ca.b,{namespace:"shared.dragMask",phrase:"message"})))),o.createElement("div",{className:tc.a.dropArea}))}var rc=n(50),oc=n.n(rc);function ic(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ac(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 ac(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 ac(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 cc=function(e){var t,n=e.showNav,r=e.contentChild,i=e.popupChild,a=e.alertChild,c=ic(o.useState(!1),2),u=c[0],s=c[1];Object(Za.a)();var l=Object(pi.a)(hi.a.XS),f=Object(pi.a)(hi.a.SM),p=Object(pi.a)(hi.a.XXL),h=ic(Object(li.a)(ia.a.WEB_PLAYER_DATA),1)[0];o.useEffect((function(){s(!p)}),[p]);var d=function(e,t,n){return t?{state:e?Na.Hidden:Na.Open,showMask:!e,contentClass:oc.a.hiddenNavContent}:n?{state:e?Na.Collapsed:Na.Open,showMask:!e,contentClass:oc.a.collapsedNavContent}:{state:e?Na.Collapsed:Na.Open,showMask:!1,contentClass:e?oc.a.collapsedNavContent:oc.a.openNavContent}}(u,l,f),y=Object(si.a)(ha.b.VideoUpload),v=o.useCallback((function(e){y.addFiles(e,{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Start,descriptor:fi.a.mapInteractionType(k.h.DragDrop),location:k.j.VideoUpload})}),[]),m=Object(ui.useDropzone)({onDrop:v,noClick:!0,noKeyboard:!0}),g=m.getRootProps,b=m.getInputProps,w=m.isDragActive,S="d-flex flex-column align-items-end",O="";return(null===(t=h)||void 0===t?void 0:t.viewportPosition)?O=oc.a.fixedBottomRightContainer:S+=" ".concat(oc.a.fixedBottomRightContainer),o.createElement("div",Object.assign({},g()),o.createElement(wa,{toggleLeftNav:function(){s(!u)},showLeftNavToggle:n}),n&&o.createElement(Fa,{navState:d.state}),o.createElement("div",{className:"".concat(oc.a.content," ").concat(d.contentClass)},o.createElement("div",{className:"container overflow-hidden-x"},r)),i,d.showMask&&o.createElement("div",{className:"modal-backdrop show ".concat(oc.a.mask)}),o.createElement("div",{className:S},!!a&&o.createElement("div",{className:O},a),o.createElement(Xa,null)),w&&o.createElement(nc,null),o.createElement("input",Object.assign({},b())))};function uc(e){return o.createElement(Zo.Provider,{store:e.store},o.createElement(cc,Object.assign({},e)))}var sc=n(266),lc=n.n(sc);function fc(e){return(fc="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 pc(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 hc(e,t,n){return(hc="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=mc(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function dc(e,t){return(dc=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mc(e);if(t){var o=mc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vc(this,n)}}function vc(e,t){return!t||"object"!==fc(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 gc=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&&dc(e,t)}(a,e);var t,n,r,i=yc(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){return"".concat(w,":").concat(e.showNav)}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[U],popupChild:this.childComponents[M],alertChild:this.childComponents[z],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(M)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){hc(mc(a.prototype),"showChildView",this).call(this,"layout",o.createElement(uc,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return lc.a}}])&&pc(t.prototype,n),r&&pc(t,r),a}(ci);function bc(e){var t=e.contentChild;return o.createElement(o.Fragment,null,t)}function wc(e){var t=e.store;return o.createElement(Zo.Provider,{store:t},o.createElement(bc,Object.assign({},e)))}var Sc=n(267),Oc=n.n(Sc);function kc(e){return(kc="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 Cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ec(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 Rc(e,t,n){return(Rc="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=Ac(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Pc(e,t){return(Pc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ac(e);if(t){var o=Ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _c(this,n)}}function _c(e,t){return!t||"object"!==kc(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 Ac(e){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tc=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&&Pc(e,t)}(a,e);var t,n,r,i=xc(a);function a(){var e;return Cc(this,a),(e=i.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return S}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[U],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(M)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){Rc(Ac(a.prototype),"showChildView",this).call(this,"layout",o.createElement(wc,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return Oc.a}}])&&Ec(t.prototype,n),r&&Ec(t,r),a}(ci);var Lc=n(46);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)}}var Nc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,r;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&jc(t.prototype,n),r&&jc(t,r),e}();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 Dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(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 Mc(e,t,n){return t&&Uc(e.prototype,t),n&&Uc(e,n),e}function zc(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&&Fc(e,t)}function Fc(e,t){return(Fc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qc(e);if(t){var o=qc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hc(this,n)}}function Hc(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 qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bc,Jc=function(e){zc(n,e);var t=Vc(n);function n(){return Dc(this,n),t.apply(this,arguments)}return Mc(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),Gc=function(e){zc(n,e);var t=Vc(n);function n(){return Dc(this,n),t.apply(this,arguments)}return Mc(n,[{key:"model",get:function(){return Jc}}]),n}(r.a.Collection),Kc=n(58);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(Bc||(Bc={}));var Wc=n(25);function Yc(e){return(Yc="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 $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 Xc(e,t){return(Xc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tu(e);if(t){var o=tu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eu(this,n)}}function eu(e,t){return!t||"object"!==Yc(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 tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=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&&Xc(e,t)}(c,e);var t,n,o,i=Zc(c);function c(){return Qc(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.videoDataService=sn.a.getInstance(zn.a.Video,this),this.videoUploadDataService=sn.a.getInstance(zn.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case Kc.a.Completed:case Kc.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),ln.isFunction(t)&&t()}));break;case Kc.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),ln.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){a.Radio.channel(this.channelName).trigger(Wc.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new Gc,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&a.Radio.channel(e.channelName).trigger(Wc.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===Kc.a.Completed&&e.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=ln.map(n,(function(e){return e.masterVideoId.toString()})),i=function(r){ln.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Bc.Processing&&t.set("status",Bc.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&window.setTimeout(ln.bind(e.fetchPendingItems,e),e.getTimeoutLength()),ln.isFunction(t.callback)&&t.callback()};o.length?e.videoDataService.getVideos(o,i):i(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=di.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;ln.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===Kc.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return zn.b.PendingItems}},{key:"channelName",get:function(){return Vn.c.PENDING_ITEMS}}])&&$c(t.prototype,n),o&&$c(t,o),c}(r.a.Service),ru=n(102);function ou(e){return(ou="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 iu(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 au(e,t){return(au=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=su(e);if(t){var o=su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uu(this,n)}}function uu(e,t){return!t||"object"!==ou(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 su(e){return(su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lu=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&&au(e,t)}(i,e);var t,n,r,o=cu(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return t=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=sn.a.getInstance(zn.a.Notification,this),this.notificationSocketService=sn.a.getInstance(zn.a.NotificationSocket,this),this.userDataService=sn.a.getInstance(zn.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=Fn.a.NOTIFICATIONS;this.listenTo(Vn.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(Vn.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(Vn.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(Vn.a.NOTIFICATIONS,ru.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,Fn.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=di.a.get(Fn.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),di.a.get(Fn.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}},{key:"name",get:function(){return zn.b.Notification}}])&&iu(t.prototype,n),r&&iu(t,r),i}(r.a.Service);function fu(e){return(fu="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 pu(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 hu(e,t){return(hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function du(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vu(e);if(t){var o=vu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yu(this,n)}}function yu(e,t){return!t||"object"!==fu(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 vu(e){return(vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mu(e){return(mu="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 bu(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 wu(e,t){return(wu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Su(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var o=ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ou(this,n)}}function Ou(e,t){return!t||"object"!==mu(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 ku(e){return(ku=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cu=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&&wu(e,t)}(i,e);var t,n,r,o=Su(i);function i(){return gu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return kn.Notifications}}])&&bu(t.prototype,n),r&&bu(t,r),i}(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&&hu(e,t)}(i,e);var t,n,r,o=du(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=o.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=$.hubConnection(e.endpoint),t.hub=t.connection.createHubProxy(e.hubName),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=i,(n=[{key:"setProviderOptions",value:function(e){e.logging&&(this.connection.logging=!0),e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(0),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.hub.invoke(this.subscribeEvent,e.Token).done((function(){return t.setConnectionState(1)})).fail((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(e,t){this.isConnectedOrConnecting()&&this.connection.stop(e,t)}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.disconnected((function(){return e.onConnectionError})),this.connection.reconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):this.connection.lastError?console.log("Connection Error. Reason: ".concat(this.connection.lastError)):console.log("Connection Error."),this.setConnectionState(4),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){1===e&&console.log("Connected!"),4===e&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return 0===this.connectionState||1===this.connectionState||2===this.connectionState}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return En.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.hub.invoke(e,t).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;t.errorEvent,this.hub.on(e,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];n.trigger.apply(n,[r].concat(t))}))}}])&&pu(t.prototype,n),r&&pu(t,r),i}(Cn.Object));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 Ru(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pu(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 xu(e,t){return(xu=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tu(e);if(t){var o=Tu(this).constructor;n=Reflect.construct(r,arguments,o)}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 Tu(e){return(Tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lu=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&&xu(e,t)}(c,e);var t,n,o,i=_u(c);function c(){return Ru(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(Vn.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(Vn.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(e,t){t.isAppRoute&&this.setSearchContext(e)}},{key:"onTypeaheadToggle",value:function(e){if(!e.open&&!this.searchContext.get("filterValue")){var t=Ra.a.getCurrentContext().appLink;this.setSearchContext(t)}}},{key:"setSearchContext",value:function(e){var t=this.isValidSearchContext(e);t?this.updateSearchContext(t,e.args):this.inSearchView(e)||a.Radio.channel(Vn.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}},{key:"setFilterValue",value:function(e){var t={filterValue:e,title:e};this.searchContext.set(t)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(e){return this.appVariables||(this.appVariables=sn.a.getInstance(vi.a.SEARCH,this)),ln.find((t=this.lang,n=this.appVariables.appLinks,r=[],n.folder&&r.push({appLink:n.folder,searchTag:Er.a.getPhrase(t,"folderTag"),filterParam:"folder",setFilterValue:function(e,t){sn.a.getInstance(zn.a.Library,t).getFolder(ln.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.get("name")),sn.a.releaseInstance(zn.a.Library)}))}}),n.series&&r.push({appLink:n.series,searchTag:Er.a.getPhrase(t,"seriesTag"),filterParam:"series",setFilterValue:function(e,t){sn.a.getInstance(zn.a.Series,t).getSeries(ln.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.name),sn.a.releaseInstance(zn.a.Series)}))}}),r),(function(t){return e.application===t.appLink.application&&e.action===t.appLink.action}));var t,n,r}},{key:"inSearchView",value:function(e){var t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}},{key:"name",get:function(){return zn.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Pu(t.prototype,n),o&&Pu(t,o),c}(r.a.Service),ju=n(124);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)}}var Iu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:co.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){ka.a.isFunction(t)&&t(new r.a.Collection(e))},o=ju.a.videos(e,n),i=co.a.getResponse(this.store.getState(),o.key);return i.shouldFetch?co.a.fetch(this.store.dispatch,o):n(i.data),new r.a.Collection(i.data)}},{key:"name",get:function(){return ha.a.Video}}])&&Nu(t.prototype,n),o&&Nu(t,o),e}();function Du(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 Uu,Mu,zu=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Rn.a.DELETE}},Fu=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Rn.a.DELETE}},Vu=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Rn.a.POST}},Hu=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},qu=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},Bu=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:Rn.a.POST,success:t,data:e}},Ju=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){co.a.fetch(this.store.dispatch,zu(e,t))}},{key:"cancelPendingItems",value:function(e,t){co.a.fetch(this.store.dispatch,Fu(e,t))}},{key:"retryPendingItems",value:function(e,t){co.a.fetch(this.store.dispatch,Vu(e,t))}},{key:"getPendingItem",value:function(e,t){co.a.fetch(this.store.dispatch,Hu(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){co.a.fetch(this.store.dispatch,qu(e))}},{key:"completeVideoUpload",value:function(e,t){co.a.fetch(this.store.dispatch,Bu(e,t))}},{key:"name",get:function(){return ha.a.VideoUpload}}])&&Du(t.prototype,n),o&&Du(t,o),e}(),Gu=n(134);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(Uu||(Uu={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Mu||(Mu={}));var Ku=["pdf"],Wu=["doc","docx","dotx","dot","rtf","docm","odt"],Yu=["csv","txt"],Qu=["xls","xlt","xlsx"],$u=["jpg","tif","png","bmp","gif","jpeg"],Xu=["zip","rar"],Zu=["ppt","pot","pps","pptx"],es=["srt"],ts={IMAGES:".".concat($u.join(",.")),RESOURCES:".".concat([].concat(Wu,Qu,Zu,Ku,Yu,$u,Xu).join(",.")),SUBTITLES:".".concat(es.join(",."))};function ns(e){return(ns="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 rs(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 os(e,t){return(os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function is(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cs(e);if(t){var o=cs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return as(this,n)}}function as(e,t){return!t||"object"!==ns(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 cs(e){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var us=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&&os(e,t)}(i,e);var t,n,r,o=is(i);function i(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:Er.a.getPhrase(this.lang,"heading"),text:Er.a.getPhrase(this.lang,"body"),buttons:[{text:Er.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:Er.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&rs(t.prototype,n),r&&rs(t,r),i}(Ko),ss=n(117);function ls(e){return(ls="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 fs(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 ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hs(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ys(e);if(t){var o=ys(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ds(this,n)}}function ds(e,t){return!t||"object"!==ls(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 ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vs=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&&ps(e,t)}(i,e);var t,n,r,o=hs(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Er.a.getPhrase("upload.internetConnectivityError","title"))}return t=i,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:Er.a.getPhrase("upload.internetConnectivityError","heading"),text:Er.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:Er.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&fs(t.prototype,n),r&&fs(t,r),i}(Ko);function ms(e){return(ms="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 gs(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 bs(e,t){return(bs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ws(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Os(e);if(t){var o=Os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(e,t){return!t||"object"!==ms(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 Os(e){return(Os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ks,Cs,Es=[],Rs=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&&bs(e,t)}(c,e);var t,n,o,i=ws(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,o=[{key:"isValidFile",value:function(e,t){return ss.isValidFile(e,t)}}],(n=[{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=a.Radio.channel(e.channelName),o=this;this.dropzone=new ss(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(ln.each(Es,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(t,o,n)}))})),this.on("uploadprogress",(function(e,t,r){var i=r/e.size*100;n.trigger("progress",o.getId(e),i,r)})),this.on("success",(function(e){var t=e.upload.chunks,r=ln.last(t),o=r.xhr;o||(o=r.file.xhr);var i=JSON.parse(o.response);e.cvUpload.fileUrl=i.url,n.trigger("upload:success",e,i)})),this.on("error",(function(e,t,n){n&&0===n.status?r.a.ErrorHelper.throw(new vs):"canceled"!==e.status&&r.a.ErrorHelper.throw(new Lo(Er.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}},{key:"name",get:function(){return"DropzoneWrapper"}}])&&gs(t.prototype,n),o&&gs(t,o),c}(r.a.Service);function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xs(e){return(xs="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 As(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 Ts(e,t,n){return t&&As(e.prototype,t),n&&As(e,n),e}function Ls(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&&js(e,t)}function js(e,t){return(js=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ns(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ds(e);if(t){var o=Ds(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Is(this,n)}}function Is(e,t){return!t||"object"!==xs(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 Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Us,Ms=function(e){Ls(n,e);var t=Ns(n);function n(){return _s(this,n),t.call(this,{dataProvider:sn.a.getInstance(kn.Ajax),cache:sn.a.getInstance(un.Fifo),alertService:sn.a.getInstance(Un.a.ALERT)})}return Ts(n,[{key:"requestUploads",value:function(e,t,n,r){var o=this,i=this.chain();ln.each(e,(function(e){i.create({resource:"/api/upload",eventPrefix:"request:upload",data:o.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),i.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){sn.a.releaseInstance(kn.Ajax).releaseInstance(un.Fifo)}},{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}}]),n}(Mn.a);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(Us||(Us={}));var zs,Fs,Vs=(Ps(ks={},Us.Video,"video/*"),Ps(ks,Us.LearningResource,ts.RESOURCES),Ps(ks,Us.Subtitle,ts.SUBTITLES),ks),Hs=(Ps(Cs={},Us.Video,Vn.c.VIDEO_UPLOAD),Ps(Cs,Us.LearningResource,Vn.c.RESOURCE_UPLOAD),Ps(Cs,Us.Subtitle,Vn.c.SUBTITLE_UPLOAD),Cs),qs=function(e){Ls(n,e);var t=Ns(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ts(n,[{key:"initialize",value:function(){this.uploadDataService=new Ms,this.progressViewModel=di.a.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new Rs({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new r.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return Rs.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;ln.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new us(Er.a.getPhrase(this.lang,"invalidFileType"),e,this.getAcceptedFiles())):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),o=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===Us.Video&&(r=r.replace(/\.[^/.]+$/,"")),o.add({id:n.uploader.getId(e),file:e,name:r},{at:o.length-1})}),(function(){t&&fi.a.logUserAction({uploadCount:e.length},t),a.Radio.channel(n.channelName).trigger(Wc.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var o=r.get("file");this.uploader.removeFile(o),n.remove(r),this.uploadDataService.cancelUpload(o.cvUpload.uploadId,o.cvUpload.ingestUrl,(function(){fi.a.logUserAction({id:o.cvUpload.uploadId},{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Discard,descriptor:k.k.Single,location:k.j.MyUploads}),a.Radio.channel(t.channelName).trigger(Wc.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),fi.a.logUserAction({id:e.cvUpload.uploadId},{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Complete,descriptor:k.k.Single,location:k.j.VideoUpload}),a.Radio.channel(this.channelName).trigger(Wc.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));ln.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return Vs[this.uploadType]}},{key:"channelName",get:function(){return Hs[this.uploadType]}},{key:"lang",get:function(){return"upload.services"}}]),n}(r.a.Service),Bs=function(e){Ls(n,e);var t=Ns(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ts(n,[{key:"uploadType",get:function(){return Us.Video}},{key:"name",get:function(){return zn.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Mu.Temporary}}]),n}(qs);function Js(e){return(Js="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 Gs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ks(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 Ws(e,t,n){return(Ws="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=Xs(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Ys(e,t){return(Ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qs(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xs(e);if(t){var o=Xs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $s(this,n)}}function $s(e,t){return!t||"object"!==Js(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 Xs(e){return(Xs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(zs||(zs={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Fs||(Fs={}));var Zs=Er.a.encloseNamespace("upload.services"),el=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,o=Qs(i);function i(){return Gs(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Ws(Xs(i.prototype),"initialize",this).call(this),this.videoUploadDataService=sn.a.getInstance(ha.a.VideoUpload,this),this.pendingItemsService=sn.a.getInstance(ha.b.PendingItems,this),this.userDataService=sn.a.getInstance(ha.a.User,this),this.alertService=sn.a.getInstance(Un.a.ALERT,this),this.listenTo(this.channelName,Wc.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,Wc.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,Wc.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:Dn.a.Success,heading:Zs("startUploadAlertHeading"),message:1===e.length?Zs("startUploadSingleAlertBody",{videoName:e[0].name}):Zs("startUploadMultipleAlertBody",{uploadCount:e.length})};Ra.a.getCurrentContext().appLink.application===O.a.UPLOAD||(t.appLinkText=Zs("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:O.a.UPLOAD,action:V.a.Upload.MY_UPLOADS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||a.Radio.channel(this.channelName).trigger(Wc.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(o){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:o.id,categoryId:o.categoryTree.id,pendingProcessOrigin:Uu.Upload,origin:zs.Lite,fileUrl:t.url,subtitleOptions:{subtitleExtractOptions:Fs.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Ws(Xs(i.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&Ks(t.prototype,n),r&&Ks(t,r),i}(Bs);function tl(e){return(tl="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 nl(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 rl(e,t){return(rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ol(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=al(e);if(t){var o=al(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return il(this,n)}}function il(e,t){return!t||"object"!==tl(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 al(e){return(al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cl=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&&rl(e,t)}(i,e);var t,n,r,o=ol(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=o.call(this,e)).imageUrls=e.imageUrls,t}return t=i,(n=[{key:"getImageUrls",value:function(){return this.imageUrls}},{key:"name",get:function(){return zn.b.ImageUrl}}])&&nl(t.prototype,n),r&&nl(t,r),i}(r.a.Service),ul={EmptyStates:{VIDEOS:""},ErrorViews:{DEFAULT:""}};var sl=n(109),ll=n(36),fl=n(90);function pl(e,t){return ll.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var hl={version:null};function dl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hl,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case fl.a.API_REPONSE:return pl(e,t)}return e}var yl=n(99);function vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ml(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),vl({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),vl({},t.payload.dataOrKey,t.payload.keyData)))):Object.assign(Object.assign({},e),vl({},t.payload.viewModelKey,t.payload.dataOrKey))}function gl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case yl.a.UPDATE:return ml(e,t)}return e}var bl=n(93),wl=n(86);function Sl(e,t){var n,r,o,i=Object(sl.combineReducers)({flightData:co.a.FlightReducer,applicationData:dl,viewModelData:gl}),a=co.a.createMiddleware({fetchData:co.a.ajaxRequest,bootstrappedData:window.bootstrapData,defaultExpiryTime:Jn.a.STANDARD}),c=(n={oldVersionError:new fn.a("A new version is available"),authenticationError:new fn.a("Authentication Error")},r=n.oldVersionError,o=n.authenticationError,function(e){return function(t){return function(n){var i,a,c,u;if(n.type===bl.Actions.API_REPONSE){var s=n,l=e.getState().applicationData.version,f=null===(a=null===(i=s)||void 0===i?void 0:i.xhr)||void 0===a?void 0:a.getResponseHeader("X-App-Version");r&&l&&f&&f!==l&&hn.c.throw(r),o&&(null===(u=null===(c=s)||void 0===c?void 0:c.xhr)||void 0===u?void 0:u.status)===wl.a.Unauthorized&&hn.c.throw(o),t(n)}else t(n)}}});var u,s=Object(sl.createStore)(i,Object(sl.applyMiddleware)(a,c));u=s,e.registerStore(u),t(),delete window.bootstrapData}var Ol=n(82);function kl(e){return(kl="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 Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(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 Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pl(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_l(e);if(t){var o=_l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xl(this,n)}}function xl(e,t){return!t||"object"!==kl(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 _l(e){return(_l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Al=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&&Rl(e,t)}(i,e);var t,n,r,o=Pl(i);function i(){return Cl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:O.a.SEARCH,action:V.a.Search.HOME},series:{application:O.a.DEFAULT,action:V.a.Default.SERIES},videoDetails:{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO},tagSearch:{application:O.a.SEARCH,action:V.a.Search.HOME},classification:{application:O.a.SUBJECT,action:V.a.Subjects.CLASSIFICATION}}}}])&&El(t.prototype,n),r&&El(t,r),i}(Ol.b),Tl=n(30);function Ll(e){return(Ll="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 jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(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 Il(e,t){return(Il=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dl(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ml(e);if(t){var o=Ml(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ul(this,n)}}function Ul(e,t){return!t||"object"!==Ll(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 Ml(e){return(Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zl=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&&Il(e,t)}(i,e);var t,n,r,o=Dl(i);function i(){return jl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO},notifications:{application:O.a.NOTIFICATIONS,action:V.a.Notifications.HOME},pastReleases:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},awaitingReview:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},editStaffRequest:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Tl.a.VideoReviewReminder,Tl.a.VideoReviewAddedToLibrary,Tl.a.CustomLibraryVideoAvailable,Tl.a.WorkspaceVideoAvailable,Tl.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return""}},{key:"bellIconColor",get:function(){return"dark"}}])&&Nl(t.prototype,n),r&&Nl(t,r),i}(Ol.a);var Fl=n(18);function Vl(e){return(Vl="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)}var Hl={register:function(){var e=this;Fl.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return Er.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new fn.a("No language key provided.")),!1):"object"!==Vl(t)?(r.a.ErrorHelper.throw(new fn.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!ln.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new fn.a("No `lang` property provided.")),!1)}};var ql,Bl=n(84);function Jl(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[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other"}(ql||(ql={}));var Gl={curriculum:!1},Kl=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({onlineModules:Gl},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return zn.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Bl.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Jl(t.prototype,n),r&&Jl(t,r),e}();var Wl=n(54),Yl=n(101),Ql=n(100);function $l(e){return("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 Xl(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 Zl(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ef(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nf(e);if(t){var o=nf(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return tf(this,n)}}function tf(e,t){return!t||"object"!==$l(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(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.a.Service;function rf(e){return("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 of(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 af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cf(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&&uf(e,t)}function uf(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ff(e);if(t){var o=ff(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return lf(this,n)}}function lf(e,t){return!t||"object"!==rf(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 ff(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Cn.Object;function pf(e){return(pf="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 hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function df(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 yf(e,t){return(yf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gf(e);if(t){var o=gf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mf(this,n)}}function mf(e,t){return!t||"object"!==pf(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 bf=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&&yf(e,t)}(i,e);var t,n,r,o=vf(i);function i(){return hf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===i.type}}])&&df(t.prototype,n),r&&df(t,r),i}(r.a.Service);bf.type="BaseAnalyticsEnricher";n(112);var wf="URLSearchParams"in self,Sf="Symbol"in self&&"iterator"in Symbol,Of="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),kf="FormData"in self,Cf="ArrayBuffer"in self;if(Cf)var Ef=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Rf=ArrayBuffer.isView||function(e){return e&&Ef.indexOf(Object.prototype.toString.call(e))>-1};function Pf(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function xf(e){return"string"!=typeof e&&(e=String(e)),e}function _f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Sf&&(t[Symbol.iterator]=function(){return t}),t}function Af(e){this.map={},e instanceof Af?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Tf(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Lf(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function jf(e){var t=new FileReader,n=Lf(t);return t.readAsArrayBuffer(e),n}function Nf(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function If(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Of&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:kf&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:wf&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Cf&&Of&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Nf(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Cf&&(ArrayBuffer.prototype.isPrototypeOf(e)||Rf(e))?this._bodyArrayBuffer=Nf(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):wf&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Of&&(this.blob=function(){var e=Tf(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Tf(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(jf)}),this.text=function(){var e,t,n,r=Tf(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Lf(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},kf&&(this.formData=function(){return this.text().then(Mf)}),this.json=function(){return this.text().then(JSON.parse)},this}Af.prototype.append=function(e,t){e=Pf(e),t=xf(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Af.prototype.delete=function(e){delete this.map[Pf(e)]},Af.prototype.get=function(e){return e=Pf(e),this.has(e)?this.map[e]:null},Af.prototype.has=function(e){return this.map.hasOwnProperty(Pf(e))},Af.prototype.set=function(e,t){this.map[Pf(e)]=xf(t)},Af.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Af.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),_f(e)},Af.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),_f(e)},Af.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),_f(e)},Sf&&(Af.prototype[Symbol.iterator]=Af.prototype.entries);var Df=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Uf(e,t){var n,r,o=(t=t||{}).body;if(e instanceof Uf){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Af(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Af(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Df.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Mf(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function zf(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new Af(t.headers),this.url=t.url||"",this._initBody(e)}Uf.prototype.clone=function(){return new Uf(this,{body:this._bodyInit})},If.call(Uf.prototype),If.call(zf.prototype),zf.prototype.clone=function(){return new zf(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Af(this.headers),url:this.url})},zf.error=function(){var e=new zf(null,{status:0,statusText:""});return e.type="error",e};var Ff=[301,302,303,307,308];zf.redirect=function(e,t){if(-1===Ff.indexOf(t))throw new RangeError("Invalid status code");return new zf(null,{status:t,headers:{location:e}})};var Vf=self.DOMException;try{new Vf}catch(e){(Vf=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Vf.prototype.constructor=Vf}function Hf(e,t){return new Promise((function(n,r){var o=new Uf(e,t);if(o.signal&&o.signal.aborted)return r(new Vf("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Af,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new zf(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new Vf("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(Of?i.responseType="blob":Cf&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Hf.polyfill=!0,self.fetch||(self.fetch=Hf,self.Headers=Af,self.Request=Uf,self.Response=zf);n(268),n(269);function qf(e){return(qf="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)}var Bf,Jf=function(e){var t=qf(e);return"function"===t||"object"===t&&!!e};!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(Bf||(Bf={}));var Gf,Kf;Bf.CvApSoutheast1,Bf.CvApSoutheast2,Bf.CvEuWest1;function Wf(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.AU="au",e.NZ="nz",e.UK="uk"}(Gf||(Gf={}));Wf(Kf={},Gf.AU,Bf.CvApSoutheast1),Wf(Kf,Gf.NZ,Bf.CvApSoutheast2),Wf(Kf,Gf.UK,Bf.CvEuWest1);function Yf(e){return(Yf="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 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 $f(e,t){return($f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ep(e);if(t){var o=ep(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zf(this,n)}}function Zf(e,t){return!t||"object"!==Yf(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 ep(e){return(ep=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tp=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,o=Xf(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===i.type}}])&&Qf(t.prototype,n),r&&Qf(t,r),i}(r.a.Service);tp.type="BaseAnalyticsClient";var np=function(){return!0},rp=function(){return!1};var op=function(e){return e};function ip(e){if(e&&e.code)return e.code}function ap(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.id){var n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}}function cp(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var up,sp,lp,fp=function(e){var t=e.model,n={id:t.id,year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=ip(t.rating),o=ap(t.series),i=cp(t.categories),a=ap(t.owner,{ignoreTitle:!0}),c=ap(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},pp={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===k.d.Video)return pp.formatVideoUpload(e,t);if(n===k.d.Resource||n===k.d.Subtitle)return pp.formatResourceUpload(e);if(n===k.d.Banner||n===k.d.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===k.o.Start?pp.getStartVideoUploadData(e):n===k.o.Discard?pp.getDiscardVideoUploadData(e):n===k.o.Complete?pp.getCompleteUploadData(e):void 0},getStartVideoUploadData:function(e){return e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map((function(t){return{fileName:t.name,size:t.size,type:t.type,count:e.length}}))):[]},getDiscardVideoUploadData:function(e){var t=function(t){var n=t.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(e)?e.length:1,type:r,status:i};return t.progress&&(c.progress=t.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(e)?e.map((function(e){return t(e)})):[t(e)]},getCompleteUploadData:function(e){return e&&e.length?e.map((function(t){return{fileName:t.fileName,libraryId:t.libraryId,folderId:t.folderId,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return Jf(e.metadata)&&(t.type=e.metadata.type),t}};function hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dp;hp(up={},k.n.Navigate,rp),hp(up,k.n.Click,np),hp(up,k.n.Search,np),hp(up,k.n.InstantSearch,np),hp(up,k.n.Play,np),hp(up,k.n.Stream,np),hp(up,k.n.Rename,np),hp(up,k.n.Move,np),hp(up,k.n.Create,np),hp(up,k.n.Delete,np),hp(up,k.n.Associate,np),hp(up,k.n.Dissociate,np),hp(up,k.n.Filter,np),hp(up,k.n.Sort,np),hp(up,k.n.Approve,np),hp(up,k.n.Reject,np),hp(up,k.n.Disable,np),hp(up,k.n.Upload,np),hp(up,k.n.Download,rp),hp(up,k.n.SetAccess,np),hp(up,k.n.AddToLocalCache,rp),hp(up,k.n.Share,np),hp(up,k.n.Edit,np),hp(up,k.n.Suggest,np),hp(up,k.n.ResolveWarning,np),hp(up,k.n.DismissWarning,np),hp(up,k.n.EditAssoc,np),hp(sp={},k.n.Search,op),hp(sp,k.n.InstantSearch,op),hp(sp,k.n.Play,op),hp(sp,k.n.Stream,fp),hp(sp,k.n.Click,op),hp(sp,k.n.Filter,op),hp(sp,k.n.Sort,op),hp(sp,k.n.SetAccess,op),hp(sp,k.n.Approve,op),hp(sp,k.n.Reject,op),hp(sp,k.n.Create,op),hp(sp,k.n.Delete,op),hp(sp,k.n.Rename,op),hp(sp,k.n.Move,op),hp(sp,k.n.Edit,op),hp(sp,k.n.Share,op),hp(sp,k.n.Disable,op),hp(sp,k.n.Suggest,op),hp(sp,k.n.Upload,pp.getUploadData),hp(sp,k.n.ResolveWarning,op),hp(sp,k.n.DismissWarning,op),hp(lp={},k.n.Search,"search"),hp(lp,k.n.InstantSearch,"search"),hp(lp,k.n.Filter,"filter");!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(dp||(dp={}));var yp=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});yp.addInitializationStep(Sl).addInitializationStep((function(e,t){e.registerLayout(w,gc).registerLayout(S,Tc),t(e)})).addInitializationStep((function(e,t){sn.a.registerInstance(On,{size:100}),t(e)})).addInitializationStep((function(e,t){sn.a.registerInstance(Al).registerInstance(zl),t(e)})).addInitializationStep((function(e,t){sn.a.registerInstance(In,{}),t(e)})).addInitializationStep(Sl).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:mo,type:Dn.a.Success},defaultErrorAlert:{heading:go,type:Dn.a.Fail},alertViewCtor:ao};sn.a.registerSingleton(new Dn.b(n));var r=sn.a.getInstance(Un.a.ALERT),o={cache:un.Fifo,dataProvider:kn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};sn.a.registerDataService(Zn,o).registerDataService(er.a,o).registerDataService(ur,o).registerDataService(Kr,o);var i={store:e.store};sn.a.registerInstance(po,i).registerInstance(vo,i);var a={cache:un.Fifo,dataProvider:kn.Notifications,alertService:r};sn.a.registerDataService(kr,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new Lu;sn.a.registerInstance(cl,{imageUrls:ul}).registerInstance(el).registerInstance(Iu,{store:e.store}).registerInstance(Ju,{store:e.store}).registerInstance(nu).registerInstance(Gu.a).registerInstance(lu).registerSingleton(n);var r=new Nc(2),o=function(){r.decrement(),r.getValue()>0||(sn.a.releaseInstance(zn.a.Language),sn.a.releaseInstance(zn.a.Config),t(e))};sn.a.getInstance(zn.a.Language).getLanguageConfig((function(e){Er.a.setConfig(e),o()})),sn.a.getInstance(zn.a.Config).getConfig((function(e){sn.a.registerInstance(Cu,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notificationHub",logging:!0}),o()}))})).addInitializationStep((function(e,t){e.registerApplication(ke).registerApplication(it).registerApplication(fe).registerApplication(Pt).registerApplication(Ne).registerApplication(Ge).registerApplication(vt).registerApplication(ee).registerApplication(Yt).registerApplication(Mt).registerApplication(N).registerApplication(cn),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:ln.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Hl.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Fo,Qo).registerErrorHandler(Ko,$o).registerErrorHandler(Lo,Wo).registerErrorHandler(pe.a,Yo),t()})).addInitializationStep((function(e,t){sn.a.registerSingleton(new Kl({onlineRole:Bl.a.Staff,customerType:ql.Primary})),t(e)})),yp.addStartUpStep((function(e,t,n){sn.a.getInstance(zn.a.Config).getConfig((function(r){Lc.a.setUpVariables({isDevelopment:!1}),n(e,t),sn.a.releaseInstance(zn.a.Config)}))})),yp.start()},function(e,t){e.exports=m},function(e,t){e.exports=g},function(e,t){e.exports=b},function(e,t){e.exports=w},function(e,t){e.exports=S},function(e,t){e.exports=O}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("Marionette"),require("ReactBootstrap"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("Yup"),require("ReactIntersectionObserver"),require("Autosuggest"),require("SortableHOC"),require("ImmersiveReader"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","Handlebars","Marionette","ReactBootstrap","ReactRedux","moment","ReactDOM","FontAwesome","ReactCustomScrollbars","DOMPurify","Redux","ReactTransitionGroup","Bloodhound","Polyglot","reactDropzone","Yup","ReactIntersectionObserver","Autosuggest","SortableHOC","ImmersiveReader","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("Marionette"),require("ReactBootstrap"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("Yup"),require("ReactIntersectionObserver"),require("Autosuggest"),require("SortableHOC"),require("ImmersiveReader"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.Handlebars,e.Marionette,e.ReactBootstrap,e.ReactRedux,e.moment,e.ReactDOM,e.FontAwesome,e.ReactCustomScrollbars,e.DOMPurify,e.Redux,e.ReactTransitionGroup,e.Bloodhound,e.Polyglot,e.reactDropzone,e.Yup,e.ReactIntersectionObserver,e.Autosuggest,e.SortableHOC,e.ImmersiveReader,e.marked)}(window,(function(e,t,n,r,o,i,a,c,u,s,l,f,p,h,d,y,v,m,g,b,w,S,O){return function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);u.length;)u.shift()()}var n={},r={10:0},o={10:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,2:1,3:1,4:1,5:1,6:1,8:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,31:1,34:1,38:1,44:1,46:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+e+".chunk.css",a=i.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===a))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"scripts/"+e+"-"+{0:"901d9a5174",1:"2b6afccaa5",2:"959e3f07c5",3:"4681a2970b",4:"c79da2c235",5:"29933b6e8c",6:"5f5d06a387",7:"11cf07c243",8:"410d69ed5a",9:"c78686d1cc",11:"7040a1a9eb",12:"56399321c2",13:"6f6dd6876b",14:"85b1c4519e",15:"a708c0a441",16:"672f637430",17:"f535d75948",18:"a0fa688611",19:"efdc78b01d",20:"b3b942d3ee",21:"5d0bf18256",22:"bf7f6a09af",23:"ce69478417",24:"2f573144dd",25:"c0a7edb46b",26:"eda1f676ce",27:"19a73a8e3c",28:"543f35676a",29:"c8624a459e",30:"250405639f",31:"973623b2b8",32:"56b87645a5",33:"8139dd6b22",34:"4305b444d2",35:"b00e2d430e",36:"b1ac1d234c",37:"887ece8f25",38:"6b761c580b",39:"15c7fb0629",40:"d06a006479",41:"9ca185cca0",42:"1169517631",43:"0e9beea9c1",44:"d113f9e462",45:"705a98b85d",46:"6aea461612",47:"56b20a5099",48:"cbbb4a5715",49:"109e79ce55",50:"6f6935b631",51:"7fa8424b75",52:"a94a759a27",53:"482d232c95",54:"de14c911e7",55:"3394848440",56:"ad1ab23edb",57:"853a2f73e6",58:"80fcc2da85"}[e]+".chunk.js"}(e);var s=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var s=c;return i(i.s=404)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(95);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,o,i,a,c,u,s,l,f,p,h,d,y,v,m,g,b,w,S,O;!function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",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.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.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.PDF="pdf",e.CustomerSetting="customer_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",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="target_user"}(o||(o={})),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.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.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",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.TeacherManager="teacher_manager",e.TeacherManagerListItem="teacher_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.PlayPage="play_page",e.FloatingPlayer="floating_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(u||(u={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(s||(s={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(l||(l={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(f||(f={})),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"}(p||(p={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Thumbnail="thumbnail",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"}(h||(h={})),function(e){e.LibraryReview="library_review"}(d||(d={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(y||(y={})),function(e){e.Edit="edit"}(v||(v={})),function(e){e.Image="image",e.User="user"}(m||(m={})),function(e){e.On="on",e.Off="off"}(g||(g={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(b||(b={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(w||(w={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(S||(S={})),function(e){e[e.V1=1]="V1"}(O||(O={})),n.d(t,"n",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"j",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"k",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"a",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"e",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"f",(function(){return O}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={DEFAULT:"default:application",PLAYLISTS:"playlists:application",DASHBOARD:"dashboard:application",SUBJECT:"subject:application",EMBED:"embed:application",NOTIFICATIONS:"notifications:application",SEARCH:"search:application",CONTENT_UPDATES:"content:updates:application",USER_MANAGER:"user:manager:application",UPLOAD:"upload:application",CLASSROOMS:"classrooms:application",SETTINGS:"settings:application"},o={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(13),i=n(38),a=n(8);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){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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(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 p(e){return(p=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&&s(e,t)}(f,e);var t,n,i,c=l(f);function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=f,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{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():a.c.throw(new o.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 o=e.prototype.name;return this.referenceCounts[o]=0,this.constructors[o]=function(){return new e(t)},this.destructors[o]=function(){return r.isFunction(n.instances[o].destroy)&&n.instances[o].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]||a.c.throw(new o.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||a.c.throw(new o.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&a.c.throw(new o.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&u(t.prototype,n),i&&u(t,i),f}(i.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(241),o=n(1),i=n(96),a=n(38),c=n(8),u=n(37),s=n(13),l=n(46);function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==f(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){return(m=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&&d(e,t)}(v,e);var t,n,a,f=y(v);function v(){return p(this,v),f.apply(this,arguments)}return t=v,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new r({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||c.c.throw(new s.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!l.a.isDevelopment){var a=window.trackJs;return a&&a.console.error("No phrase set for ".concat(r," in language config")),""}c.c.throw(new s.a("No phrase set for ".concat(r," in language config.")))}if(!n||o.isEmpty(n)){var u=this.cache[r];if(u)return u;var f=this.polyglot.t(r);return this.cache[r]=f,f}var p=o.omit(n,"smartCount"),h={};for(var d in p)h[d]=i.sanitize(p[d]);o.isNumber(n.smartCount)&&(h.smart_count=n.smartCount);var y="".concat(r,":").concat(o.values(Object.assign({},h)).join(":")),v=this.cache[y];if(v)return v;var m=this.polyglot.t(r,h);return this.cache[y]=m,m}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return u.a.LANGUAGE}}])&&h(t.prototype,n),a&&h(t,a),v}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return O}));var r=n(5),o=n(15),i=n(46),a=n(19);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&&m(e,t)}function p(e){var t=v();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(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){var t="function"==typeof Map?new Map:void 0;return(d=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 y(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)})(e)}function y(e,t,n){return(y=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&m(o,n.prototype),o}).apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(d(Error)),w=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}(b),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"CoreError"}}]),n}(d(Error)),O={throw:function(e){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof w||i.a.isDevelopment))throw e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},o={ImageUrl:"ImageUrlService",PendingItems:"PendingItemsService",Alerts:"AlertService",VideoUpload:"VideoUploadService",ResourceUpload:"ResourceUploadService",SubtitleUpload:"SubtitleUploadService",VideoMixin:"VideoMixinService",ContextualSearch:"ContextualSearchService",Context:"ContextService",Notification:"NotificationService",AppOptions:"AppOptionsService"}},function(e,t,n){"use strict";var r,o,i=n(64),a=n(1),c=n(138),u=n.n(c),s=n(139),l=n.n(s),f=n(140),p=n.n(f),h=n(141),d=n.n(h),y=(n(142),n(143),n(144)),v=n.n(y),m=n(145),g=n.n(m),b=n(146),w=n.n(b),S=n(147),O=n.n(S),k=n(148),C=n.n(k),E=n(149),R=n.n(E),P=n(150),x=n.n(P),_=n(151),A=n.n(_),T=n(152),L=n.n(T),j=n(153),N=n.n(j),I=n(154),D=n.n(I),U=n(155),M=n.n(U),z=n(156),F=n.n(z),V=n(157),H=n.n(V),q=n(158),B=n.n(q),J=n(159),G=n.n(J),K=n(160),W=n.n(K),Y=n(161),Q=n.n(Y),$=n(162),X=n.n($),Z=n(163),ee=n.n(Z),te=(n(164),n(165)),ne=n.n(te),re=n(166),oe=n.n(re),ie=n(167),ae=n.n(ie),ce=(n(168),n(169),n(170)),ue=n.n(ce),se=n(171),le=n.n(se),fe=n(172),pe=n.n(fe),he=n(173),de=n.n(he),ye=n(174),ve=n.n(ye),me=n(175),ge=n.n(me),be=(n(176),n(177)),we=n.n(be),Se=n(178),Oe=n.n(Se),ke=n(179),Ce=n.n(ke),Ee=n(180),Re=n.n(Ee),Pe=n(181),xe=n.n(Pe),_e=n(182),Ae=n.n(_e),Te=n(183),Le=n.n(Te),je=(n(184),n(185)),Ne=n.n(je),Ie=n(186),De=n.n(Ie),Ue=n(187),Me=n.n(Ue),ze=n(188),Fe=n.n(ze),Ve=n(189),He=n.n(Ve),qe=n(190),Be=n.n(qe),Je=n(191),Ge=n.n(Je),Ke=n(192),We=n.n(Ke),Ye=n(193),Qe=n.n(Ye),$e=n(194),Xe=n.n($e),Ze=n(195),et=n.n(Ze),tt=n(196),nt=n.n(tt),rt=n(197),ot=n.n(rt),it=(n(198),n(199),n(200),n(201)),at=n.n(it),ct=(n(202),n(203),n(204),n(205),n(206)),ut=n.n(ct),st=n(207),lt=n.n(st),ft=(n(208),n(209),n(210),n(211)),pt=n.n(ft),ht=n(212),dt=n.n(ht),yt=n(213),vt=n.n(yt),mt=n(214),gt=n.n(mt),bt=n(215),wt=n.n(bt),St=n(216),Ot=n.n(St),kt=n(217),Ct=n.n(kt),Et=(n(218),n(219),n(220),n(221)),Rt=n.n(Et),Pt=n(222),xt=n.n(Pt),_t=[u.a,p.a,d.a,v.a,O.a,C.a,R.a,x.a,w.a,l.a,A.a,L.a,N.a,D.a,M.a,g.a,F.a,H.a,B.a,ee.a,G.a,W.a,Q.a,X.a,ne.a,pe.a,Ge.a,Qe.a,We.a,ot.a,Xe.a,et.a,nt.a,Re.a,Ae.a,xe.a,oe.a,ae.a,Oe.a,Ce.a,we.a,ue.a,de.a,De.a,Me.a,ve.a,ge.a,Fe.a,le.a,Ne.a,He.a,Be.a,Le.a,ut.a,lt.a,at.a,vt.a,dt.a,pt.a,gt.a,Ot.a,wt.a,Ct.a,xt.a,Rt.a];function At(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.Search="search",e.Share="share",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.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",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.CloseCaption="close-caption",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"}(r||(r={}));var Tt;function Lt(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)}}a.extend(i.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(o=i.library).add.apply(o,function(e){if(Array.isArray(e))return At(e)}(Tt=_t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(Tt)||function(e,t){if(e){if("string"==typeof e)return At(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)?At(e,t):void 0}}(Tt)||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.")}()),n.d(t,"a",(function(){return jt})),n.d(t,"b",(function(){return Nt}));var jt=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 i.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return i.findIconDefinition({prefix:r,iconName:e})}}])&&Lt(t.prototype,n),r&&Lt(t,r),e}().Instance,Nt=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Default:{ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error",DIALOG_ERROR:"dialog:error",SERIES:"series",PLAY_VIDEO:"play:video",FAVOURITE_VIDEOS:"favourite:videos",EDIT_VIDEO:"edit:video",EDIT_UPLOAD:"edit:upload",SHARE:"share",WATCH_HISTORY:"watch:history"},Playlists:{HOME:"index",PLAYLIST:"playlist",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",DELETE_PLAYLIST:"delete:playlist",ADD_TO_PLAYLIST:"add:to:playlist",REMOVE_VIDEO_FROM_PLAYLIST:"remove:video:from:playlist"},Dashboard:{HOME:"index",DASHBOARD:"dashboard"},Subjects:{CLASSIFICATION:"classification",CLASSIFICATION_SERIES:"classification:series",PREFERENCES:"preferences"},Notifications:{HOME:"index"},Search:{HOME:"index"},ContentUpdates:{CONTENT_UPDATES:"content:updates",CLASSIFICATION_UPDATE:"classification:update"},UserManager:{STUDENTS:"student:manager",TEACHERS:"teacher:manager",REMOVE_USERS:"remove:users",NEW_STUDENT:"new:student",EDIT_STUDENT:"edit:student",NEW_TEACHER:"new:teacher",EDIT_TEACHER:"edit:teacher",STUDENT_UPLOAD_REVIEW:"student:upload:review",TEACHER_UPLOAD_REVIEW:"teacher:upload:review"},Upload:{MY_UPLOADS:"my:uploads",EDIT_UPLOAD:"edit:upload",CANCEL_UPLOAD:"cancel:upload"},Classrooms:{HOME:"index",CLASSROOM:"classroom",NEW_CLASSROOM:"new:classroom",EDIT_CLASSROOM:"edit:classroom",DELETE_CLASSROOM:"delete:classroom",MANAGE_CLASSROOM:"manage:classroom",ADD_STUDENTS:"add:students",REMOVE_STUDENTS:"remove:students",NEW_GROUP:"new:group",EDIT_GROUP:"edit:group",DELETE_GROUP:"delete:group"},Settings:{HOME:"index"}}},function(e,t,n){"use strict";var r=n(93);n.d(t,"a",(function(){return r}))},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 o(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 a(e,t){return(a=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}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&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(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(8).a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={CONFIG:"config:data:service",USER:"user:data:service",LANGUAGE:"language:data:service",LIBRARY:"library:data:service",SEARCH:"search:data:service",SERIES:"series:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service"},o={PENDING_ITEMS:"pending:items:service",VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",CONTEXTUAL_SEARCH:"contextual:search:service"},i={NOTIFICATIONS:"notifications:application"}},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";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){e.exports={leftNav:"_3jVyN",leftNavExpanded:"Q3CCb",leftNavAnchor:"_3A_-8",leftNavCollapsed:"_2idO9",leftNavText:"_3qbRh",leftNavBottom:"_1OHHF",partialLeftNavItem:"_131rM",iconGrey:"_2C2dq",leftNavIcon:"_13OIc",discover:"_2dE5b",active:"_3209B",playlists:"_2l2O2",myUploads:"_qXck",favouritedVideos:"mqsI_",classrooms:"Zgkg3",classroom:"_2K3g7",watchHistory:"ZMi6H",settings:"YTaso",highlightText:"_3uRuV"}},function(e,t){e.exports=r},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";n.d(t,"a",(function(){return r}));var r={SUBJECT_PLAYLISTS:"subject:playlists",CURRENT_USER:"current:user",WORKSPACE:"workspace",CONFIG:"config",LOCALE:"locale",PHRASES:"phrases",SEARCH_FILTERS:"search:filters",SERIES:"series",NOTIFICATIONS:"notifications",SUGGEST_EDIT:"suggest:edit"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables"}},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5);function o(e,t,n,o){var i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),o.call(this,i,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return d}));var r=n(1),o=n(5),i=n(44),a=n(15),c=n(19),u=/((\(\?)?:\w+)|(\*\w+)/,s=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return o.Radio.channel(a.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;o.Radio.channel(n).trigger(r,e,t)},d={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,i=e.params,u=o.Radio.channel(a.a.SHELL);return"/".concat(u.request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,i))},buildRoute:function(e,t){if(!t)return e;var n=t.args,o=t.params;if(r.each(n,(function(t){e=e.replace(u,t||"")})),e=(e=(e=e.replace(l,"")).replace(s,"")).replace(f,""),!o)return e;var a=i.a.SerializeQueryParams(o);return a.length?"".concat(e,"?").concat(a):e},trigger:function(e,t){e&&(p.hasActiveRoute()?o.Radio.channel(a.a.SHELL).once("routing:end",(function(){h(e,t)})):h(e,t))},getCurrentAppLink:function(){return o.Radio.channel(a.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPLOAD_COMPLETE:"upload:complete",FILES_SELECTED:"files:selected",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",PENDING_ITEM_READY_TO_WATCH:"pending:item:ready:to:watch",PENDING_ITEM_STATUS_CHANGE:"pending:item:status:change",PROCESSING_CANCELLED:"processing:cancelled",UNLOCK_NAV:"upload:unlock:nav"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={debounce:function(e,t,n){return r.debounce(e,t,n)},throttle:function(e,t,n){return r.throttle(e,t,n)},isFunction:function(e){return r.isFunction(e)},useIdentity:function(){return r.identity},memoize:function(e,t){return r.memoize(e,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(98),o="categories{libraries.typeid:".concat(r.a.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,tags,clips{limit:100},")+"interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",SERIES:"tallposter,rating",FOLDER:"banner,thumbnail",CLASSIFICATION:"banner,cover",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover"},a={SubjectPresentationActiveAudienceFilter:function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},SubjectPresentationAudienceFilter:function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},ClassificationWithFollowersAndMemberCount:function(e){return i.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"}}},function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return g}));var r,o,i=n(1),a=n(5),c=n(62),u=n(43),s=n(38),l=n(15),f=n(37);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 h(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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(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 m(e){return(m=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"}(r||(r={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(o||(o={}));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&&d(e,t)}(s,e);var t,n,r,o=y(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.alertCollection=new c.a,this.listenTo(l.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=a.Radio.channel(l.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=i.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=i.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new u.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?i.bind((function(e,n){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?i.bind((function(e){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return i.uniqueId("alert_")}},{key:"name",get:function(){return f.a.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&h(t.prototype,n),r&&h(t,r),s}(s.a)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.ExchangeVideoAvailable="exchange-video-available",e.WorkspaceVideoAvailable="workspace-video-available",e.Marketing="marketing",e.EditedVideoAvailable="edited-video-available",e.VideoRequestAvailable="pay-tv-video-available",e.VideoRequestDenied="pay-tv-video-denied",e.VideoReviewReminder="term-update-review-reminder",e.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",e.CustomLibraryVideoAvailable="custom-library-video-available",e.VideoProcessingFailed="video-processing-failed",e.StaffRequest="new-staff-request",e.StaffRequestFulfilled="staff-request-fulfilment",e.ChapterMergeSuccess="media-concatenate-success",e.SuggestEdit="suggest-an-edit"}(r||(r={}))},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(13),a=n(3),c=n(15),u=n(100);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(a,e);var t,n,r,i=h(a);function a(){var e;return l(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:"initialize",value:function(){this.listenTo(c.a.SHELL,o.a.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}},{key:"name",get:function(){return u.a.Context}}])&&f(t.prototype,n),r&&f(t,r),a}(o.a.Service)),m=n(65);function g(){var e=v.getCurrentContext().appLink;return r.isObject(e)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function b(){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,c=e.descriptor,u=void 0===c?null:c;return t||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:g(),location:t,entity:n,descriptor:u,workflowPhase:a}}function w(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(t,"a",(function(){return S}));var S={logUserAction:function(e,t){if(function(e){return!(!r.isArray(e)||!r.every(e,(function(e){return r.isObject(e)})))||!!r.isObject(e)}(e)&&r.isObject(t)){var n=S.buildUserActionEvent(t),o=n.userAction,i=n.action,a=n.eventVersion;m.a.log(o,e,i,a)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:w(),appLink:e},t);m.a.log(a.n.Navigate,n)},mergeOptions:function(e,t){return r.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=b(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return w()},buildSearchEvent:function(e,t){return{data:{query:e},action:b({entity:a.d.Video,location:a.j.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===a.l.Series&&(r=a.d.Series),n===a.l.Folder&&(r=a.d.Folder),n===a.l.Tags&&(r=a.d.Tag),n===a.l.Video&&(r=a.d.Video);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:b({entity:r,location:a.j.SearchBar})}},mapInteractionType:function(e){switch(e){case a.h.DragDrop:return a.i.DragDrop;case a.h.FileSelect:return a.i.FileSelect;default:return}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(9),o=Object.assign(Object.assign({},r.b),{CombineUploads:"combine:uploads:service"}),i=Object.assign({},r.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return u}));var r,o=n(0),i=n(26),a=n(10),c=n(83);function u(e){var t=e.svgName,n=e.className,u=void 0===n?"d-inline-block svg-container":n,s=e.tagName,l=void 0===s?"span":s,f=e.size,p=void 0===f?r.Standard:f,h=e.onClick,d=e.title,y=e.tooltipPlacement,v=void 0===y?"right":y,m=l,g={dangerouslySetInnerHTML:{__html:a.a.getSvg(t)},className:"".concat(u," ").concat(p),onClick:i.a.isFunction(h)?h:null};return d?o.createElement(c.a,{title:d,placement:v},o.createElement(m,Object.assign({},g))):o.createElement(m,Object.assign({},g))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(2);function i(e){var t=e.appLink,n=e.className,i=e.children,a=e.tag,c=void 0===a?"a":a;if(!t)return r.createElement("span",{className:n||""},i);var u=e.onClick;u||(u=function(e){e.preventDefault(),o.a.AppLinkHelper.trigger(t)});var s={onClick:u,href:o.a.AppLinkHelper.getHref(t),className:n};return r.createElement(c,Object.assign({},s),i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(242),i=n.n(o),a=/&/g,c=/[\W]+/g,u=/\s+/g,s={className:"info-link"},l={escapeExpression:function(e){return window.Handlebars.escapeExpression(e)},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(e){if(e)return e.toLowerCase().replace(a,"and").replace(c," ").trim().replace(u,"-").substr(0,80)},linkifyText:function(e,t){if(e){var n=t?r.extend({},s,t):s;return i()(e,n)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),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)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(22),o=n(23),i=n(8);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 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 o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}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 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&&s(e,t)}(f,e);var t,n,r,a=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=a.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 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],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t){e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n(60),i=n(13),a=n(38),c=n(43),u=n(70),s=n(8);function l(e){return(l="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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(d,e);var t,n,a,l=h(d);function d(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(e=l.call(this)).viewObjects={},e}return t=d,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof u.a&&e.set(n,{silent:!0}),e instanceof c.a&&!(e instanceof u.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,o=void 0!==r&&r,i=this.viewObjects[e];if(i&&o)return this.updateViewModel(i,t);if(i)return i;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=r.ctor,i=r.storage,a=this.mergeData(t,n),u=o?new o(a):new c.a(a);return this.viewObjects[e]=u,i&&!n?(this.setLocalData(e,u,null,r),this.setupChangeListeners(e,u,r)):i&&n&&this.setupChangeListeners(e,u,r),u}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var o,i=r.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),t instanceof c.a&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var o=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),r.each(i.persistProps,(function(i){o.listenTo(t,"change:".concat(i),r.partial(o.setLocalData,e,r,r,n))})))}},{key:"mergeData",value:function(e,t){return t?r.isObject(e)&&r.isObject(t)?r.extend(e,t):void s.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}},{key:"name",get:function(){return"ViewModelService"}}])&&f(t.prototype,n),a&&f(t,a),d}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),o=n(5),i=n(38),a=n(8),c=n(13);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 s(e){return function(e){if(Array.isArray(e))return l(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 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)||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 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}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=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&&p(e,t)}(l,e);var t,n,i,u=h(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=u.call(this,e),r.result(y(t),"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(y(t),"channelName")||a.c.throw(new c.a("Must provide a channelName for ".concat(r.result(y(t),"name"))));var n=[].concat(s(t.defaultProps),s(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=l,(n=[{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,o=e.errorCallback,i=e.eventPrefix,a=this.getEventNames(i),c=a.syncEvent,u=a.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),c,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),u,o),r.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),u,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),c,n),r.isFunction(o)&&o()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=e.resource,c=e.formatData,u=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(i),h=p.syncEvent,d=p.requestEvent,y=p.successEvent,v=p.errorEvent,m=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(i,this.bootstrapData[f],c,{openRequest:!1,timestamp:g}),delete this.bootstrapData[f]);var b,w=this.cache.get(i);w&&(b=w.data);var S=w&&w.openRequest,O=this.isExpired(i,u);if(S&&(this.listenToOnce(m,h,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),v,o),r.isFunction(n)&&n(e)})),this.listenToOnce(m,v,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),h,n),r.isFunction(o)&&o()}))),this.cache.has(i)&&!O||(m.trigger(d),this.listenToResponse({eventPrefix:i,formatData:c,cacheOptions:{timestamp:g},callback:n,errorCallback:o,successHandler:s,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:y,errorEvent:v})),b&&r.isFunction(n)&&!O&&n(b),b)return b}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.invalidationKeys,u=e.successHandler,s=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:h})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,o=e.resource,i=e.formatData,a=e.eventPrefix,c=e.invalidationKeys,u=e.errorHandler,s=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:y,successEvent:p,errorEvent:h})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,o=e.errorCallback,i=e.invalidationKeys,a=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:o,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:s,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.successHandler,u=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),h=p.syncEvent,d=(p.requestEvent,p.successEvent),y=p.errorEvent,v=p.successAlertEvent,m=p.errorAlertEvent,g=this.getChannel(),b=this.getTransportChannel(),w=this.getAlertChannel();r.isFunction(i)&&this.listenToOnce(g,h,i),r.isFunction(a)&&this.listenToOnce(g,y,a),this.stopListening(w,v),this.stopListening(w,m),r.isFunction(c)&&this.listenToOnce(w,v,c),r.isFunction(u)&&this.listenToOnce(w,m,u),!r.isFunction(u)&&!1!==u&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,m,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(b,d,(function(e){t.stopListening(g,y,a);for(var r=arguments.length,i=new Array(r>1?r-1:0),c=1;c<r;c++)i[c-1]=arguments[c];w.trigger.apply(w,[v,e].concat(i));var u=f.noCache?t.formatData(e,o):t.cacheData(n,e,o);f.clearCacheKey&&t.cache.remove(n),g.trigger(h,u),s&&s.length&&t.cache.invalidate(s,(function(e){return g.trigger("".concat(e,":invalidate"))}))})),this.listenTo(b,y,(function(){var e;t.stopListening(g,h,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(m,r),g.trigger(y,r),f.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.openRequest,i=void 0!==o&&o,a=r.timestamp;a||(a=this.currentTimestamp());var c=this.processPagination(t),u=this.formatData(t,n);return this.cache.set(e,{data:u,timestamp:a,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:r.isUndefined(t.offset)||r.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return r.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){r.isFunction(e)&&e(t)},o=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return o(e,"get")},create:function(e){return o(e,"create")},update:function(e){return o(e,"update")},delete:function(e){return o(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 o.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return o.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,o=e.totalItems,i=o>0&&t<o&&t+n,a=o>0&&t>0&&Math.max(t-n,0),c={};if(i&&i<o&&(c.next=i.toString()),r.isNumber(a)&&(c.previous=a.toString()),!r.isEmpty(c))return c}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,o=r.isNumber(t)&&t>0&&t<n&&t+1,i=r.isNumber(t)&&t>1&&t-1,a={};if(o&&o<=n&&(a.next=o.toString()),i&&(a.previous=i.toString()),!r.isEmpty(a))return a}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(5),i=n(23);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 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=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(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 h(e){return(h=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&&l(e,t)}(p,e);var t,n,o,a=f(p);function p(){return c(this,p),a.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(h(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(h(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(5),i=n(24),a=n(19),c=n(15),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);o.history.navigate(r,n),o.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(o),e):(e[r]=[e[r],o],e):(e[r]=o,e)}),{}):{}},StartHistory:function(){o.History.started&&o.history.stop(),o.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()?o.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},SetPageTitle:function(e){document.title=e}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Newest="newest",e.RecentlyUpdated="recentlyupdated",e.AtoZ="atoz"}(r||(r={}))},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 o}));var o=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,o;return t=e,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&r(t.prototype,n),o&&r(t,o),e}().Instance},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(0),o=n(7),i=n(36),a=r.createContext(""),c=r.memo((function(e){var t=e.phrase,n=e.namespace,i=e.options,c=r.useContext(a),u=n||c,s=o.a.getPhrase(u,t,i);return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.a.isEqual(e.options,t.options)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(15),i=n(9);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 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){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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}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 h=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&&s(e,t)}(p,e);var t,n,a,f=l(p);function p(){var e;return c(this,p),(e=f.apply(this,arguments)).routeHistory=[],e.contextHistory=[],e}return t=p,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}},{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:"getPreviousContext",value:function(){if(this.contextHistory.length&&!(this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}},{key:"updateRouteHistory",value:function(e){(r.a.AppLinkHelper.getHref(e)||"/"===r.a.LocationUtils.GetCurrentPath())&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e}))}},{key:"getCurrentRoute",value:function(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}},{key:"getPreviousRoute",value:function(){if(this.routeHistory.length&&!(this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return i.b.Context}}])&&u(t.prototype,n),a&&u(t,a),p}(r.a.Service))},function(e,t,n){e.exports={content:"_1SX2l",collapsedNavContent:"_3LJFz",openNavContent:"_34Pt4",hiddenNavContent:"_1gZ0J",mask:"mE2Dq",fixedBottomRightContainer:"Sgmex"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39),o=n(99),i=function(e,t){var n=Object(r.useDispatch)(),i=Object(r.useSelector)((function(t){return t.viewModelData[e]}));function a(t,r){n({type:o.a.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:r}})}return void 0!==t&&void 0===i&&a(t),[i,a]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH_BAR_LOCATION:"search:bar:location",WEB_PLAYER_DATA:"web:player:data",BULK_TEACHER_UPLOAD:"bulk:teacher:upload",BULK_STUDENT_UPLOAD:"bulk:student:upload"}},function(e,t){e.exports=c},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),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"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Received=1]="Received",e[e.Seen=2]="Seen",e[e.Read=3]="Read"}(r||(r={}))},function(e,t){e.exports=u},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Error=-1]="Error",e[e.Processing=1]="Processing",e[e.Completed=2]="Completed"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={urlBuilder:function(e,t){var n=r.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)):""})),o=r.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return o?"".concat(e,"?").concat(o):e},buildFilter:function(e){var t=[];if(e.limit&&t.push("limit:".concat(e.limit)),e.cursor&&t.push("page:".concat(e.cursor)),e.before&&t.push("dateCreated:...".concat(e.before)),t.length)return t.join(",")},makeHttps:function(e){return r.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e},safeUrlConcat:function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):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 o(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&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(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)}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,n){return t&&l(e.prototype,t),n&&l(e,n),e}var p;n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return m})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(p||(p={}));var h=function(){function e(t){s(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return f(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}(),d=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.LocalStorage}))}}]),n}(h),y=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.SessionStorage}))}}]),n}(h),v=d.Instance,m=y.Instance},function(e,t,n){e.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(5),o=n(23);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 a(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 o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}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 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&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{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],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={type:n(55).a.Unknown,message:"",code:0}},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=n(5),o=n(54),i=n(101),a=n(2),c=n(13);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)}}var s=n(3).f.V1,l=function(){function e(t,n,r,o){!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=o||s}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||a.a.ErrorHelper.throw(new c.a("".concat(e," is not a valid key"))),this[e]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named ".concat(e)))}}])&&u(t.prototype,n),r&&u(t,r),e}();n.d(t,"a",(function(){return f}));var f={log:function(e,t,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new l(e,t,n,a))}}},function(e,t,n){e.exports={nav:"_3RLQ9",logoContainer:"UIlc9",searchBar:"_2E7RQ",actionButtons:"_2HygL",hamburger:"_2BRko",searchBarNavContainer:"_2bUnK"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(36);function i(e){return function(e){if(Array.isArray(e))return a(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 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 c={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,o=e&&e.length?e.slice():[];return t+1>o.length&&(o=[].concat(i(o),i(Array(t+1-o.length).fill(r)))),o.splice(t,1,n),o},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)},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=o.a.deepClone(e);return-1===n?[].concat(i(r),[t]):[].concat(i(r.slice(0,n)),i(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){return r.uniq(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(7),o=n(10);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}var a,c="shared.videoActionsHelper";!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(a||(a={}));var u=function(){var e;return i(e={},a.AddToPlaylist,{label:r.a.getPhrase(c,"addToPlaylist"),svgName:o.b.AddToPlaylists}),i(e,a.RemoveFromPlaylist,{label:r.a.getPhrase(c,"removeFromPlaylist"),svgName:o.b.Delete}),i(e,a.Share,{label:r.a.getPhrase(c,"share"),svgName:o.b.Share}),i(e,a.Edit,{label:r.a.getPhrase(c,"edit"),svgName:o.b.Edit}),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return P}));var r=n(1),o=n(5),i=n(22),a=n(23),c=n(13),u=n(15),s=n(46),l=n(8),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 h(e){return function(e){if(Array.isArray(e))return d(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 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)||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 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}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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&&v(e.prototype,t),n&&v(e,n),e}function g(e,t,n){return(g="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=C(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(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&&w(e,t)}function w(e,t){return(w=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){b(n,e);var t=S(n);function n(e){var o;y(this,n),o=t.call(this,e);var i=[].concat(h(o.defaultProps),h(o.props||[]));return o.mergeOptions(e,i),r.result(k(o),"name")||l.c.throw(new l.b("Error: View with cid:".concat(o.cid," requires a name."))),o}return m(n,[{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,o;s.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",o=this.name,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),this.$el.attr(e)}},{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=g(C(n.prototype),"serializeData",this).call(this),o=r.result(this,"viewOptions"),i=r.extend({},t,{options:o});return n.ViewDataExtensions.length?r.extend.apply(r,[i].concat(h(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,o=t[n],i=f.a.getHref(o);"[this]"===r&&(r=null);var a=r?e.$el.find(n):e.$el;(a.is("a")||a.is("button"))&&(i&&"/"!==i&&a.attr("href",i),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(o)})))})))}},{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){o.Radio.channel(u.a.SHELL).trigger("render:partial:loading",this,e)}},{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],g(C(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:"defaultProps",get:function(){return["shell","layoutService"]}},{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:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(i.View);E.ViewDataExtensions=[];var R=function(e){b(n,e);var t=S(n);function n(e){var r;return y(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return m(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var o=this,i=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var a=r.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=r.getInstance(t)),t.boundListeners["".concat(a,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,r.eventName,t.render),t.boundListeners["".concat(a,":").concat(r.eventName)]=!0),o[n]=r.getData(t.resourceInstances[a]),i=i&&!!o[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,"."))),o.Radio.channel(u.a.SHELL).trigger("set:page:title",this.title)}}]),n}(E),P=function(e){b(n,e);var t=S(n);function n(){return y(this,n),t.apply(this,arguments)}return n}(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(43),i=n(62);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 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=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(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 h(e){return(h=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&&l(e,t)}(y,e);var t,n,p,d=f(y);function y(){return c(this,y),d.apply(this,arguments)}return t=y,(n=[{key:"set",value:function(e,t,n){var o,i;if(null===e)return this;for(o in"object"===a(e)?(i=e,n=t):(i={})[e]=t,n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return s(h(y.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return s(h(y.prototype),"get",this).call(this,e);var n=e.substr(0,t),o=this.attributes[n];if(!o||!r.isFunction(o.get))return s(h(y.prototype),"get",this).call(this,e);var i=e.substr(t+1);return o.get(i)}},{key:"setAssociation",value:function(e,t,n){var a=this.associations[e],c=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof o.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 o.a?t:new a(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 o=s(h(y.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(o,t)&&r.isFunction(o[t].toJSON)?o[t]=o[t].toJSON():o[t]=(new e).toJSON()})),o}},{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(h(y.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&u(t.prototype,n),p&&u(t,p),y}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<r.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}}},function(e,t,n){"use strict";var r=n(0),o=n(26);function i(e){return function(e){if(Array.isArray(e))return a(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 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}function c(e){var t=e.view,n=e.options,a=void 0===n?{}:n,c=e.className,u=void 0===c?"":c,s=r.useMemo((function(){return new t(a)}),[a]),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=r.useRef(null);return r.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){o.a.isFunction(e.close)?e.close():o.a.isFunction(e.destroy)&&e.destroy()}}}),i(t)),n}(s,[s]);return t?r.createElement("div",{ref:l,className:u}):r.createElement(r.Fragment,null)}n.d(t,"a",(function(){return c}))},function(e,t,n){e.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(e,t,n){e.exports={iconPlaceholder:"_2hr_4"}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){e.exports={fixed:"_3C4_W",inline:"_2voRI",closeSvg:"_2RiDj",buttons:"ZbN3s",flippedIcon:"_3nkTw"}},function(e,t,n){e.exports={dropMask:"_3bFev",dropContent:"_2_7SU",dropArea:"_3oOzB",border:"_1IoKS"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(225);function o(e){return Object(r.a)(e)}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),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)"}(r||(r={}))},function(e,t,n){"use strict";var r,o,i,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),function(e){e.Small="small",e.Medium="medium",e.Large="large"}(r||(r={})),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"}(o||(o={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(i||(i={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function o(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}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}function a(e){var t=o(Object(r.useState)(window.matchMedia(e).matches),2),n=t[0],i=t[1];return Object(r.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&i(t.matches);var r=function(){return i(t.matches)};return t.addListener(r),function(){return t.removeListener(r)}}),[e]),n}},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero"}(r||(r={}));var o=n(21);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)}}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,r;return t=e,(n=[{key:"name",get:function(){return o.a.SEARCH}}])&&i(t.prototype,n),r&&i(t,r),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)}}var u=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,(n=[{key:"name",get:function(){return o.a.NOTIFICATIONS}}])&&c(t.prototype,n),r&&c(t,r),e}();n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(28),i=n(131);function a(e){var t=e.title,n=e.placement,a=e.trigger,c=e.children;return r.createElement(o.OverlayTrigger,{placement:n,overlay:r.createElement(o.Tooltip,{id:"".concat(t,"-").concat(i.a.getRandomInt())},t),trigger:a},r.createElement("span",null,c))}a.defaultProps={trigger:["hover","click","focus"],placement:"top"}},function(e,t,n){"use strict";var r,o;n.d(t,"a",(function(){return r})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Student=1]="Student",e[e.Staff=2]="Staff",e[e.Admin=3]="Admin",e[e.CVAdmin=4]="CVAdmin",e[e.FreeUser=6]="FreeUser",e[e.ReadOnly=8]="ReadOnly"}(r||(r={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(o||(o={}))},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 o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}},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";n.d(t,"a",(function(){return b}));var r=n(1),o=n(5),i=n(22),a=n(19),c=n(23),u=n(8);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&&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 h(e,t,n){return(h="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=g(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=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&&d(e,t)}(f,e);var t,n,i,s=y(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(m(t),"name")||u.c.throw(new u.b("BaseApplication must define a name")),r.result(m(t),"channelName")||u.c.throw(new u.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{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"))),o.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||u.c.throw(new u.b("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new t({collection:n}))}},{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],h(g(f.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&p(t.prototype,n),i&&p(t,i),f}(i.Application)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(69),o=n(13),i=n(8);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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(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 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,a=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),a.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){i.c.throw(new o.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";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 o(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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(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 s}));var s=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&&i(e,t)}(u,e);var t,n,r,c=a(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,"Not Found")}return t=u,(n=[{key:"name",get:function(){return"NotFoundError"}}])&&o(t.prototype,n),r&&o(t,r),u}(n(2).a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t){e.exports=l},function(e,t,n){"use strict";n.r(t);var r,o=n(90);!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={}));var i=n(16);function a(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var c=[i.a.POST,i.a.PUT];function u(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,u={url:t,method:n};c.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),$.ajax(u).done((function(e,t,n){r&&r(e,a(n))})).fail((function(e,t,n){o&&o(a(e))})).always((function(){i&&i()}))}var s=n(13),l=n(95);function f(e){return(f="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 p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.namespace,i=void 0===o?"":o;return e[r]||l.ErrorHelper.throw(new s.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=[];return e.forEach((function(e){e[o]&&i.push(p(e,n)),y(e,t,n)})),i}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=Object.assign({},e);if(Object.keys(e).forEach((function(r){var a=e[r];if(a)if(Array.isArray(a)){var c=h(a,t,n);c.length&&(i[r]=c)}else if("object"===f(a)){var u=d(a,t,n);a[o]?i[r]=p(a,n):i[r]=u}})),e[o]){var a=p(e,n);return t[a]=i,a}return i}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?h(e,t,n):"object"===f(e)?d(e,t,n):e}function v(e,t){var n={};return{result:y(e,n,t),entities:n}}var m=n(36);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 b(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=b(t[e],t,n);return Object.assign(n[e],r),m.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return b(e,t,n)}));if("object"===g(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=b(e[o],t,n)||e[o]})),r}}}function w(e,t){return b(e,t,{})}var S=n(39);function O(e,t){return e===t}function k(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=null,r=null;return function(){return k(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function E(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 R(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),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=E(r),u=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),s=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return s.resultFunc=a,s.dependencies=c,s.recomputations=function(){return i},s.resetRecomputations=function(){return i=0},s}}var P=R(C);var x=n(71),_=n(0);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)}}var T=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,o;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===r.None||this.isExpired}},{key:"isExpired",get:function(){return x.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===r.Fetching}},{key:"hasError",get:function(){return this.status===r.Error}},{key:"isComplete",get:function(){return this.status===r.Success||this.status===r.Error}}])&&A(t.prototype,n),o&&A(t,o),e}();function L(e,t,n){if(!e||!t)return j();var r=t.response;return!1!==t.request.normalize&&(r=w(t.response,n)),new T({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function j(){return new T({status:r.None})}function N(e,t){return L(t,e.flightData.resources[t],e.flightData.entities)}function I(e,t){return function(){D(e,t)}}function D(e,t){e({type:o.a.API_REQUEST,request:t})}function U(e){return I(Object(S.useDispatch)(),e)}function M(e,t){var n=Object(_.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return R(C,(function(e,t){var n=["response","request"];return m.a.isEqual(m.a.omit(e,n),m.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n,r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return L(e,t,n)}))}(e):function(e){return P((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return L(e,t,n)}))}(e)}),[e]);return Object(S.useSelector)((function(e){return n(e)}))}function z(e,t){var n=Object(S.useDispatch)(),r=M(e&&e.key,t),o=I(n,e);return e&&r.shouldFetch&&o(),r}function F(e){return function(e){if(Array.isArray(e))return V(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 V(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 V(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 V(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 H=function(e,t,n){var r=Array.isArray(t)?t:[t],o=[];return r.forEach((function(t){var n,r=new RegExp(t,"i"),i=Object.keys(e.resources).filter((function(e){return r.test(e)}));(n=o).push.apply(n,F(i))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})},q=n(86);var B=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},J=function(e,t){var n=e.success,r=e.error,o=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:q.a.Ok,getResponseHeader:function(e){return""}}):i.errorResponse&&r(i.errorResponse()),o())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))},G=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function K(e){var t=e.fetchData,n=e.bootstrappedData,a=e.defaultExpiryTime,c=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:a});return function(e){return function(i){return function(a){if(a.type===o.a.API_REQUEST){var u=e.getState(),s=Object.assign({},c,a.request),l=s.success,f=s.error,p=s.always,h=s.formatData,d=G(s,["success","error","always","formatData"]),y=u.flightData.resources[d.key];if(i(a),!y||y.status!==r.Fetching){if(d.bootstrapName&&n[a.request.bootstrapName])return g(n[a.request.bootstrapName]),b(),void delete n[a.request.bootstrapName];var m={resource:d.url,type:d.type,data:d.data,success:g,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:a.request,timestamp:x.a.currentTimestamp(),xhr:t}),f&&f(t)},always:b};return void(B(d)?J(m,d):t(m))}}else i(a);function g(t,n){var r=h(t),i={result:r,entities:{}};(d.normalize&&(i=v(r,d.normalizeOptions)),e.dispatch({type:o.a.API_REPONSE,result:i.result,entities:i.entities,request:d,timestamp:x.a.currentTimestamp(),xhr:n}),d.updateState)&&(Array.isArray(d.updateState)?d.updateState:[d.updateState]).forEach((function(t){var n,r,i,a;n=t,r=H(u.flightData,n.keys),i=Object.assign({},Object.keys(u.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=u.flightData.resources[t],r=n.response;return n.request.normalize&&(r=w(n.response,u.flightData.entities)),e[t]=r,e}),{})),a=n.updateData(i),Object.keys(a).forEach((function(t){var n=u.flightData.resources[t],r=a[t],i={result:r,entities:{}};n.request.normalize&&(i=v(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:i.result,entities:i.entities,request:n.request})}))}));if(l){var a=i.result;d.normalize&&(a=w(i.result,Object.assign(Object.assign({},u.flightData.entities),i.entities))),l(a)}}function b(){d.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:d.invalidationKeys,request:d}),p&&p()}}}}}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(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 Q(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,{request:t.request,status:r.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function X(e,t){var n,o=t.entities?Object.keys(t.entities):[];return{entities:Y(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,{request:t.request,status:r.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:o}))}}function Z(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,{request:t.request,status:r.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function ee(e,t){var n,o=H(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 o[e]})).reduce((function(t,n){var o=e.resources[n];return t[n]=Object.assign({},o,{status:r.None}),t}),{}))}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:Y(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),W({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var ne={resources:{},entities:{}};function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.a.API_REQUEST:return Q(e,t);case o.a.API_REPONSE:return X(e,t);case o.a.API_ERROR:return Z(e,t);case o.a.INVALIDATE:return ee(e,t);case o.a.UPDATE:return te(e,t)}return e}var oe=n(67);var ie="id";function ae(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function ce(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var ue={getAll:function(e,t){var n=ce(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return ue.create(e,t)})),ce(e)):[]},get:function(e,t){var n=ue.getAll(e);return n.length?n.find((function(e){return e[ie]===t})):null},create:function(e,t){var n,r,o,i=ue.getAll(e),a=Object.assign(Object.assign({},t),(n={},r=ie,o=t[ie]||(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 i.push(a),ae(e,i),a},update:function(e,t){var n=ue.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[ie]===t[ie]}));return n[r]=t,ae(e,n),t},delete:function(e,t){var n=ue.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[ie]===e}));n.splice(t,1)})),ae(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof oe.a.first(a)&&(a=ue.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:ue.create(r,e)})),u=ue.getAll(e);if(u.length){var s=u.find((function(e){return e.id===t}));if(s)return c.forEach((function(e){if(s[n])if(Array.isArray(s[n])){if(s[n].find((function(t){return t.id===e.id})))return;s[n].push(e)}else s[n]=e;else s[n]=i?[e]:e})),ae(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:oe.a.first(c)}},dissoc:function(e,t,n,r){var o=ue.getAll(e);if(o.length){var i=o.find((function(e){return e.id===t}));if(i){var a=i[n];if(a)return Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach((function(e){var t=a.findIndex((function(t){return t.id===e}));a.splice(t,1)})),i[n]=a,ae(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}};n.d(t,"Actions",(function(){return o.a})),n.d(t,"RequestStatus",(function(){return r})),n.d(t,"ajaxRequest",(function(){return u})),n.d(t,"normalize",(function(){return v})),n.d(t,"denormalize",(function(){return w})),n.d(t,"emptyResponse",(function(){return j})),n.d(t,"getResponse",(function(){return N})),n.d(t,"getFetch",(function(){return I})),n.d(t,"fetch",(function(){return D})),n.d(t,"useGetFetch",(function(){return U})),n.d(t,"useGetResponse",(function(){return M})),n.d(t,"useBasicFetch",(function(){return z})),n.d(t,"createMiddleware",(function(){return K})),n.d(t,"FlightReducer",(function(){return re})),n.d(t,"Simulator",(function(){return ue}))},function(e,t,n){"use strict";var r=n(2),o=n(7),i=n(1),a=n(245),c=n.n(a);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 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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(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 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&&l(e,t)}(a,e);var t,n,r,o=f(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"getImageClass",value:function(){return this.options.customImageClass}},{key:"getHeading",value:function(){return i.isFunction(this.options.heading)?this.options.heading():this.options.heading}},{key:"getDescription",value:function(){return i.isFunction(this.options.description)?this.options.description():this.options.description}},{key:"viewOptions",value:function(){return{imageUrl:this.options.imageUrl,imageClass:this.getImageClass(),heading:this.getHeading(),description:this.getDescription()}}},{key:"name",get:function(){return"EmptyStateComponent"}},{key:"className",get:function(){var e="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(e+=" ".concat(this.options.customClass)),e}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{imageSize:"lg",paddedContainer:!0}}},{key:"appLinks",get:function(){return this.options.appLink||{}}}])&&s(t.prototype,n),r&&s(t,r),a}(r.a.Component),y={isCollectionEmpty:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collection";return e[t]&&!e[t].length}};function v(e){return(v="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){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 b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==v(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k,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&&b(e,t)}(a,e);var t,n,r,o=w(a);function a(){return m(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"shouldRender",value:function(){return!!i.isFunction(this.options.shouldRender)&&this.options.shouldRender()}},{key:"getComponent",value:function(){var e=this.options.emptyStateComponents[this.options.type](this);return new d(e)}},{key:"renderEmptyState",value:function(){if(this.shouldRender()){var e=this.getComponent();this.view.showChildView(this.options.region,e)}}},{key:"onRender",value:function(){this.renderEmptyState()}},{key:"defaults",get:function(){return{type:0,shouldRender:y.isCollectionEmpty.bind(null,this.view)}},set:function(e){}}])&&g(t.prototype,n),r&&g(t,r),a}(r.a.Behavior);!function(e){e[e.Notifications=0]="Notifications"}(k||(k={}));var E=n(6),R=n(21),P=n(104),x=n.n(P);var _,A,T,L,j=(_={},A=k.Notifications,T=function(e){var t={imageUrl:E.a.getInstance(R.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:e.options.componentOptions.noNotificationsText,customClass:"".concat(x.a.paddedContainer," ").concat(e.options.componentOptions.customClass),customImageClass:"sm"===e.options.componentOptions.imageSize?x.a.imageSmall:x.a.imageLarge};return E.a.releaseInstance(R.a.NOTIFICATIONS),t},A in _?Object.defineProperty(_,A,{value:T,enumerable:!0,configurable:!0,writable:!0}):_[A]=T,_),N=n(5),I=n(53),D=n(10),U=n(14),M=n(30);!function(e){e[e.Other=0]="Other",e[e.Alert=1]="Alert",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Success=4]="Success"}(L||(L={}));var z,F,V,H="notifications.utils",q=/^marketing-/,B=function(e){switch(e){case L.Success:return"success";case L.Alert:return"danger";case L.Warning:return"warning";case L.Info:case L.Other:default:return"dark"}},J=function(e){switch(e){case L.Success:return D.b.CheckCircle;case L.Alert:case L.Warning:return D.b.Warning;case L.Info:case L.Other:default:return D.b.Info}},G=function(e){return e===M.a.VideoProcessingFailed||e===M.a.VideoRequestDenied?"danger":e.match(q)?"warning":void 0},K=function(e){if(e.match(q))return D.b.Star},W=function(e){switch(e){case M.a.VideoReviewAddedToLibrary:case M.a.WorkspaceVideoAvailable:case M.a.ExchangeVideoAvailable:case M.a.EditedVideoAvailable:return o.a.getPhrase(H,"viewVideo");case M.a.VideoReviewReminder:return o.a.getPhrase(H,"reviewVideos");case M.a.VideoReviewAddedToLibrary:return o.a.getPhrase(H,"viewNewContent");case M.a.CustomLibraryVideoAvailable:return o.a.getPhrase(H,"viewVideoDetails");case M.a.StaffRequest:return o.a.getPhrase(H,"reviewVideo");default:return o.a.getPhrase(H,"seeNow")}},Y=n(56),Q=n(102);function $(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||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,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 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 Z(){return E.a.getInstance(R.a.NOTIFICATIONS,this)}function ee(e,t,n){return e===V.Module?function(e,t){var n=Z();return t===F.ContentUpdates?n.appLinks.pastReleases:t===F.LibraryReview?n.appLinks.awaitingReview:void 0}(0,t):e===V.Video?function(e,t,n){return Object.assign(Object.assign({},Z().appLinks.videoDetails),{args:[t]})}(0,t):e===V.StaffRequest?function(e,t,n){return Object.assign(Object.assign({},Z().appLinks.editStaffRequest),{args:[t],params:{referrer:z.Notification}})}(0,t):void 0}!function(e){e.Notification="notification"}(z||(z={})),function(e){e.LibraryReview="libraryreview",e.ContentUpdates="newcontent"}(F||(F={})),function(e){e.Video="video",e.Url="url",e.Module="module",e.App="app",e.StaffRequest="staff_request"}(V||(V={}));var te=function(e){return i.contains(Z().notificationTypesWithAppLinks,e)},ne=function(e,t){if(e&&t){var n=$(e.split(":"),2);return ee(n[0],n[1])}},re=n(114),oe=n.n(re),ie=n(246),ae=n.n(ie);function ce(e){return(ce="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 ue(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 se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){return!t||"object"!==ce(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 pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he,de=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&&se(e,t)}(i,e);var t,n,r,o=le(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){return N.Radio.channel(U.a.NOTIFICATIONS).trigger(Q.a.Read,this.model.get("id")),this.model.set("notificationStatus",Y.a.Read),!0}},{key:"getAppLink",value:function(){var e=this.model.get("appLink");if(!e)return null;var t=this.model.get("notificationType");return te(t)?ne(e,t):null}},{key:"updateReadStatus",value:function(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}},{key:"getReadStatus",value:function(){switch(this.model.get("notificationStatus")){case Y.a.Read:return"read";default:case Y.a.Received:return"unread"}}},{key:"viewOptions",value:function(){var e=G(this.model.get("notificationType"))||B(this.model.get("alertType")),t=K(this.model.get("notificationType"))||J(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:I(this.model.get("dateCreated")).fromNow(),icon:D.a.getSvg(t),iconClass:"text-".concat(e),styles:oe.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==L.Warning,actionText:W(this.model.get("notificationType"))}}},{key:"name",get:function(){return"NotificationItemComponent"}},{key:"template",get:function(){return ae.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}},{key:"className",get:function(){return"notification ".concat(oe.a.item," px-1 py-2 ").concat(this.getReadStatus())}},{key:"appLinks",get:function(){var e=this.getAppLink();return e?{"[this]":e}:{}}}])&&ue(t.prototype,n),r&&ue(t,r),i}(r.a.Component),ye=n(247),ve=n.n(ye);function me(e){return(me="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 ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(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 we(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),e}function Se(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&&Oe(e,t)}function Oe(e,t){return(Oe=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ce(this,n)}}function Ce(e,t){return!t||"object"!==me(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 Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return Pe})),function(e){e[e.Default=0]="Default",e[e.Popover=1]="Popover"}(he||(he={}));var Re=function(e){Se(n,e);var t=ke(n);function n(e){return ge(this,n),t.call(this,e)}return we(n,[{key:"name",get:function(){return"NotificationComponentCollection"}},{key:"className",get:function(){return this.options.isPopover&&"popover-list-body-sm"}},{key:"childView",get:function(){return de}},{key:"childViewOptions",get:function(){return{showActionText:!this.options.isPopover}}}]),n}(r.a.ComponentCollection),Pe=function(e){Se(n,e);var t=ke(n);function n(e){return ge(this,n),t.call(this,e)}return we(n,[{key:"regions",value:function(){return{notifications:{el:".notifications-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.isPopover?{customClass:"px-0 py-3",imageSize:"sm",noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}}},{key:"onRender",value:function(){this.showChildView("notifications",new Re(this.options))}},{key:"name",get:function(){return"NotificationListComponent"}},{key:"template",get:function(){return ve.a}},{key:"lang",get:function(){return"notifications.notificationList"}},{key:"behaviors",get:function(){return[{behaviorClass:C,region:"notifications",type:k.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:j}]}}]),n}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(24),o=n(87),i=n(1),a=n(5),c=n(22),u=n(23);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)}}var l=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,(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)}}])&&s(t.prototype,n),r&&s(t,r),e}(),f=n(19),p=n(8),h=n(44),d=n(15);function y(e){return(y="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 v(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 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 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=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function w(e,t){return(w=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==y(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=/([A-Z])/g,E=/(^|:)(\w)/gi,R=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&&w(e,t)}(s,e);var t,n,o,c=S(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=s,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(d.a.SHELL,f.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(o,i){return r.a.buildRoute(t,{application:n.channelName,action:e,args:o,params:i})}))}},{key:"processInternalRoutes",value:function(){var e=this;i.each(i.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(n,r){r&&r.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=i.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,h.a.UpdateUrl(t,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&i.each(i.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],o=e.toEventName(n);e.addRouteLookup(o,t),e.listenTo(e.channelName,o,(function(e,t){t&&t.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),h.a.PageLoad(r.a.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&i.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var o=this;this.validateAppLink(e);var c=this.toMethodName(e.action);r.b.routingStarted();var u=a.Radio.channel(d.a.SHELL);if(this.options.shell.isNavLocked())return u.trigger(f.a.NAV_IS_LOCKED,e),void r.b.routingEnded();var s=new l;i.each(this.filters,(function(e){return s.use(e)})),s.go(e,(function(){u.trigger(f.a.ROUTE,e,t),o.createApp();var a=o.controller;if(i.isFunction(a[c])||(r.b.routingEnded(),p.c.throw(new p.b("".concat(c," does not exist on the ").concat(i.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void r.b.routingEnded();a.triggerMethod("load:layout"),a[c].apply(a,[].concat(v(e.args||[]),[e.params||{}])),i.isFunction(n)&&n(),r.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 r=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a={application:r.channelName,action:r.toEventName(n),args:t.slice(0,t.length-1),params:h.a.DeserializeQueryParams(t[t.length-1])};r.executeRoute(a,{isAppRoute:!0},(function(){h.a.UpdateQuery(i.extend(r.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(C,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(E,(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||(r.b.routingEnded(),p.c.throw(new p.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return u.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(k(s.prototype),"listenTo",this))}}])&&g(t.prototype,n),o&&g(t,o),s}(c.AppRouter);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 x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(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 A(e,t,n){return(A="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=N(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function T(e,t){return(T=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(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 N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=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&&T(e,t)}(i,e);var t,n,r,o=L(i);function i(){return x(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],A(N(i.prototype),"listenTo",this))}}])&&_(t.prototype,n),r&&_(t,r),i}(c.Behavior),D=n(62);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 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 z(e,t,n){return(z="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 o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?q(e):t}function q(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 J=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)}(a,e);var t,n,r,o=V(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=o.call(this,e),i.result(q(t),"name")||p.c.throw(new p.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=a,(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 u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],z(B(a.prototype),"listenTo",this))}}])&&M(t.prototype,n),r&&M(t,r),a}(c.CollectionView),G=n(88),K=n(70),W=n(38),Y=n(43),Q=n(69);function $(e){return($="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 X(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 Z(e,t,n){return(Z="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=re(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==$(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 re(e){return(re=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&&ee(e,t)}(a,e);var t,n,r,o=te(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=o.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=a,(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]||p.c.throw(new p.b("".concat(t," was not registered as a template.")));var o=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===o&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=o,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){i.each(this.requiredRegions,(function(t){i.has(i.result(e.prototype,"regions"),t)||p.c.throw(new p.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Z(re(a.prototype),"listenTo",this))}}])&&X(t.prototype,n),r&&X(t,r),a}(c.Object);function ie(e){return(ie="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 ae(e,t,n){return(ae="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=le(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){return!t||"object"!==ie(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 le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(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 he(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}var de=function(){function e(t,n){fe(this,e),this.application=t,this.options=n||{}}return he(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),ye=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&&ce(e,t)}(n,e);var t=ue(n);function n(){return fe(this,n),t.apply(this,arguments)}return he(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(d.a.SHELL,f.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(d.a.SHELL,f.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(d.a.SHELL,f.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(d.a.SHELL,f.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=a.Radio.channel(d.a.SHELL);t.reply(f.a.HAS_ACTIVE_ROUTE,i.bind(this.hasActiveRoute,this)),t.reply(f.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){r.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=a.Radio.channel(d.a.SHELL);this.listenTo(e,f.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;a.Radio.channel(d.a.SHELL).reply(f.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 de(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return d.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(r,o){t.runStartUpSteps(t,e,(function(r,o,i){ae(le(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;i.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(),h.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,o){return t(n,r,(function(){return e(n,r,o)}))}),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||p.c.throw(new p.b("An error must have a name in order to register a handler for it.")),i.any(this.errorHandlers,(function(t){return t.errorType===e}))&&p.c.throw(new p.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=i.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 u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],ae(le(n.prototype),"listenTo",this))}}]),n}(c.Application);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b})),n.d(t,"Application",(function(){return o.a})),n.d(t,"AppRouter",(function(){return R})),n.d(t,"Behavior",(function(){return I})),n.d(t,"Collection",(function(){return D.a})),n.d(t,"CollectionView",(function(){return J})),n.d(t,"ComponentCollection",(function(){return J})),n.d(t,"Error",(function(){return p.a})),n.d(t,"ErrorHelper",(function(){return p.c})),n.d(t,"SilentError",(function(){return p.d})),n.d(t,"LayoutView",(function(){return G.a})),n.d(t,"NestedModel",(function(){return K.a})),n.d(t,"Service",(function(){return W.a})),n.d(t,"Model",(function(){return Y.a})),n.d(t,"View",(function(){return Q.b})),n.d(t,"Component",(function(){return Q.a})),n.d(t,"EventNames",(function(){return f.a})),n.d(t,"LayoutService",(function(){return oe})),n.d(t,"Middleware",(function(){return l})),n.d(t,"LocationUtils",(function(){return h.a})),n.d(t,"Shell",(function(){return ye}))},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g}));var r=n(42),o=n(6),i=n(9),a=n(14),c=n(20),u=n(41);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(s,e);var t,n,r,o=h(s);function s(){return l(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:c.a.CURRENT_USER,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:c.a.WORKSPACE,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return i.a.User}},{key:"channelName",get:function(){return a.b.USER}}])&&f(t.prototype,n),r&&f(t,r),s}(r.a),m={dataServiceName:i.a.User,dataChannelName:a.b.USER},g={getCurrentUserFetchOptions:function(e,t){return Object.assign(Object.assign({},m),{eventPrefix:c.a.CURRENT_USER,fetchData:function(e){return e.getCurrentUser()},setData:e,onError:t})},currentUser:{dataServiceName:i.a.User,eventName:"".concat(c.a.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return o.a.getInstance(i.a.User,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),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"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPDATE:"UPDATE_VIEW_MODEL"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ANALYTICS:"global:analytics"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Read="notification:read"}(r||(r={}))},function(e,t,n){e.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(e,t,n){e.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(e,t,n){e.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(e,t,n){e.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(e,t,n){e.exports={searchSvgContainer:"_1-crd",tipsContainer:"_15HAy",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(e,t,n){e.exports={appLink:"_1SFgo",seasonEpisodeContainer:"_1YAi8"}},function(e,t){e.exports=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(27);var r=Object.assign(Object.assign({},{VIDEO:"series,season,rating,producers,glance,distributors,resources,tags,productionCompanies,directors,links,thumbnail,interactives[owner[customers[organisation]]],clips",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}"}),{VIDEO_COLLECTION:"thumbnail,tags,rating,series,season",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover,subjectpresentationaudiences"})},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(224),o=n(85),i=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var c=a(),u=a("@"),s=a(":"),l=a("."),f=a(),p=a(),h=a("\n"),d=a(),y=a("+"),v=a("#"),m=a(),g=a("mailto:"),b=a("?"),w=a("/"),S=a("_"),O=a(),k=a(),C=a(),E=a("{"),R=a("["),P=a("<"),x=a("("),_=a("}"),A=a("]"),T=a(">"),L=a(")"),j=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=h,t.NUM=d,t.PLUS=y,t.POUND=v,t.QUERY=b,t.PROTOCOL=m,t.MAILTO=g,t.SLASH=w,t.UNDERSCORE=S,t.SYM=O,t.TLD=k,t.WS=C,t.OPENBRACE=E,t.OPENBRACKET=R,t.OPENANGLEBRACKET=P,t.OPENPAREN=x,t.CLOSEBRACE=_,t.CLOSEBRACKET=A,t.CLOSEANGLEBRACKET=T,t.CLOSEPAREN=L,t.AMPERSAND=j},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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(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}n.d(t,"a",(function(){return u}));var i={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 5.0/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function a(e,t,n){var o=r(t.exec(n)||[],3),i=(o[0],o[1],o[2]);return i||(i="Unknown"),{browser:e,version:i}}function c(e,t,n){if(!t)return{os:e,version:"Unknown"};var r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():"Unknown"}}var u={getDeviceType:function(){var e=window.navigator.userAgent;return i.mobileDevice.test(e)?i.iphone.test(e)?"iPhone":i.ipad.test(e)?"iPad":i.android.test(e)?"Android":i.blackberry.test(e)?"Blackberry":i.windowsPhone.test(e)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem:function(){var e=window.navigator.userAgent;return i.linux.test(e)?c("Linux",null,e):i.unix.test(e)?c("Unix",null,e):i.mac.test(e)?c("Macintosh",i.osxVersion,e):i.windows.test(e)?function(e,t){var n={os:e};return i.win2000.test(t)&&(n.version="2000"),i.winXP.test(t)&&(n.version="XP"),i.winVista.test(t)&&(n.version="Vista"),i.win7.test(t)&&(n.version="7"),i.win8.test(t)&&(n.version="8"),i.win81.test(t)&&(n.version="8.1"),i.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):i.iphone.test(e)||i.ipad.test(e)?c("iOS",i.iosVersion,e):i.android.test(e)?c("Android",i.androidVersion,e):i.blackberry.test(e)?c("Android",i.blackberryVersion,e):i.windowsPhone.test(e)?c("Android",i.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},getBrowser:function(){var e=window.navigator.userAgent;return i.chrome.test(e)?a("Chrome",i.generalVersion,e):i.firefox.test(e)?a("Firefox",i.generalVersion,e):i.safari.test(e)?a("Safari",i.generalVersion,e):i.ie.test(e)?a("Internet Explorer",i.ieVersion,e):i.edge.test(e)?a("Edge",i.edgeVersion,e):i.opera.test(e)?a("Opera",i.operaVersion,e):{browser:"Unknown",version:"Unknown"}},isTouchScreen:function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)}}},function(e,t){e.exports=h},function(e,t,n){e.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(e,t){e.exports=d},function(e,t,n){e.exports={coverImage:"_1_Tx-",coverContainer:"_3Qf-6",textContainer:"_34VXV"}},function(e,t,n){"use strict";(function(e){var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t,a=!0,c=0;for(i=a?i:i[Symbol.iterator]();;){var u;if(a){if(c>=i.length)break;u=i[c++]}else{if((c=i.next()).done)break;u=c.value}var s=u;s.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){var o=n[r];if(o===t){n.splice(r,1);break}}return this}}]),e}(),i=function(e){function i(e,t){r(this,i);var o,a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),c=void 0;if(a.element=e,a.version=i.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(a),a.element.dropzone=a;var u,s=null!=(o=i.optionsForElement(a.element))?o:{};if(a.options=i.extend({},a.defaultOptions,s,null!=t?t:{}),a.options.forceFallback||!i.isBrowserSupported())return u=a.options.fallback.call(a),n(a,u);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(c=a.getExistingFallback())&&c.parentNode&&c.parentNode.removeChild(c),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=i.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=i.getElements(a.options.clickable,"clickable")),a.init(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=o,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");;){if(t>=n.length)break;var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var o=e.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*i:null==n&&(n=t/i);var a=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===r)i>a?(o.srcHeight=e.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=e.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>a?n=t/i:t=n*i}return o.srcX=(e.width-o.srcWidth)/2,o.srcY=(e.height-o.srcHeight)/2,o.trgWidth=t,o.trgHeight=n,o},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=i.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var o=r[n++];o.textContent=e.name}for(var a=0,c=c=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=c.length);)(o=c[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var u=function(n){return n.preventDefault(),n.stopPropagation(),e.status===i.UPLOADING?i.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?i.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},s=0,l=l=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(s>=l.length)break;l[s++].addEventListener("click",u)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var o=r[n++];o.alt=e.name,o.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,o=o=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=o.length)break;var i=o[r++];"PROGRESS"===i.nodeName?i.value=t:i.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value: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 o=n,i=!0,a=0;for(o=i?o:o[Symbol.iterator]();;){var c;if(i){if(a>=o.length)break;c=o[a++]}else{if((a=o.next()).done)break;c=a.value}var u=c;for(var s in u){var l=u[s];e[s]=l}}return e}}]),t(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===i.UPLOADING||e.status===i.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",i.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,o=o=n;;){if(r>=o.length)break;var i=o[r++];e.addFile(i)}return e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;;){if(t>=n.length)break;var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var o=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return o(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return o(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||i.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,o=o=this.getActiveFiles();;){if(r>=o.length)break;var i=o[r++];t+=i.upload.bytesSent,n+=i.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=i.createElement(n);return"FORM"!==this.element.tagName?(t=i.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,o=t[n];if(r=e(this.element.getElementsByTagName(o)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],o=0;o<r.length;o++){var i=r[o];if(e>=Math.pow(this.options.filesizeBase,4-o)/10){t=e/Math.pow(this.options.filesizeBase,4-o),n=i;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var r=e.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,o=o=e;;){if(r>=o.length)break;var i,a=o[r++];null!=a.webkitGetAsEntry&&(i=a.webkitGetAsEntry())?i.isFile?n.push(t.addFile(a.getAsFile())):i.isDirectory?n.push(t._addFilesFromDirectory(i,i.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),o=function(e){return t=console,n="log",r=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var o=0,i=i=r;;){if(o>=i.length)break;var a=i[o++];a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null}),o)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:i.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=i.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==i.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===i.UPLOADING&&this.cancelUpload(e),this.files=a(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();;){if(t>=n.length)break;var r=n[t++];(r.status!==i.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,o){var a=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return o(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var c=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(c=s.restore(e.dataURL,c)),o(i.dataURItoBlob(c))}))}},{key:"createThumbnail",value:function(e,t,n,r,o,i){var a=this,c=new FileReader;return c.onload=function(){if(e.dataURL=c.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,o,i);null!=i&&i(c.result)},c.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,o,i,a){var c=this,s=document.createElement("img");return a&&(s.crossOrigin=a),s.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(e){return EXIF.getData(s,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(o){e.width=s.width,e.height=s.height;var a=c.options.resize.call(c,e,t,n,r),l=document.createElement("canvas"),f=l.getContext("2d");switch(l.width=a.trgWidth,l.height=a.trgHeight,o>4&&(l.width=a.trgHeight,l.height=a.trgWidth),o){case 2:f.translate(l.width,0),f.scale(-1,1);break;case 3:f.translate(l.width,l.height),f.rotate(Math.PI);break;case 4:f.translate(0,l.height),f.scale(1,-1);break;case 5:f.rotate(.5*Math.PI),f.scale(1,-1);break;case 6:f.rotate(.5*Math.PI),f.translate(0,-l.width);break;case 7:f.rotate(.5*Math.PI),f.translate(l.height,-l.width),f.scale(-1,1);break;case 8:f.rotate(-.5*Math.PI),f.translate(-l.height,0)}u(f,s,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var p=l.toDataURL("image/png");if(null!=i)return i(p,l)}))},null!=i&&(s.onerror=i),s.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===i.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;;){if(n>=r.length)break;r[n++].status=i.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var o=0,a=a=t;;){if(o>=a.length)break;var c=a[o++];this.emit("canceled",c)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==i.ADDED&&e.status!==i.QUEUED||(e.status=i.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],o=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*t.options.chunkSize,c=Math.min(a+t.options.chunkSize,r.size),u={name:t._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,c):o.slice(a,c),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:u,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[u])}};if(r.upload.finishedChunkUpload=function(n){var o=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var c=0;c<r.upload.totalChunkCount;c++){if(void 0===r.upload.chunks[c])return a();r.upload.chunks[c].status!==i.SUCCESS&&(o=!1)}o&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var c=0;c<r.upload.totalChunkCount;c++)a();else a()}else{for(var u=[],s=0;s<e.length;s++)u[s]={name:t._getParamName(s),data:n[s],filename:e[s].upload.filename};t._uploadData(e,u)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,o=0,a=a=e;;){if(o>=a.length)break;a[o++].xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var c=this.resolveOption(this.options.method,e),u=this.resolveOption(this.options.url,e);r.open(c,u,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var s={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var l in this.options.headers&&i.extend(s,this.options.headers),s){var f=s[l];f&&r.setRequestHeader(l,f)}var p=new FormData;if(this.options.params){var h=this.options.params;for(var d in"function"==typeof h&&(h=h.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),h){var y=h[d];p.append(d,y)}}for(var v=0,m=m=e;;){if(v>=m.length)break;var g=m[v++];this.emit("sending",g,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,p),this._addFormElementData(p);for(var b=0;b<t.length;b++){var w=t[b];p.append(w.name,w.data,w.filename)}this.submitRequest(r,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],o=0,i=function(i){n.options.transformFile.call(n,e[i],(function(n){r[i]=n,++o===e.length&&t(r)}))},a=0;a<e.length;a++)i(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var r=n[t++],o=r.getAttribute("name"),i=r.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=o)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,c=c=r.options;;){if(a>=c.length)break;var u=c[a++];u.selected&&e.append(o,u.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&e.append(o,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var o=e[0],i=this._getChunk(o,t);i.progress=r,i.total=n.total,i.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var a=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else for(var c=0,u=u=e;;){if(c>=u.length)break;var s=u[c++];s.upload.progress=r,s.upload.total=n.total,s.upload.bytesSent=n.loaded}for(var l=0,f=f=e;;){if(l>=f.length)break;var p=f[l++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var h=!0;r=100;for(var d=0,y=y=e;;){if(d>=y.length)break;var v=y[d++];100===v.upload.progress&&v.upload.bytesSent===v.upload.total||(h=!1),v.upload.progress=r,v.upload.bytesSent=v.upload.total}if(h)return;for(var m=0,g=g=e;;){if(m>=g.length)break;var b=g[m++];this.emit("uploadprogress",b,r,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=0,a=a=e;;){if(o>=a.length)break;a[o++];this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,o=o=e;;){if(r>=o.length)break;var a=o[r++];a.status=i.SUCCESS,this.emit("success",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,o=o=e;;){if(r>=o.length)break;var a=o[r++];a.status=i.ERROR,this.emit("error",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),i}(o);i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(e){return e.getAttribute("id")?i.options[c(e.getAttribute("id"))]:void 0},i.instances=[],i.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},i.autoDiscover=!0,i.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,o=o=t;;){if(r>=o.length)break;var i=o[r++];/(^| )dropzone($| )/.test(i.className)?n.push(e.push(i)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;;){if(n>=r.length)break;var o=r[n++];!1!==i.optionsForElement(o)?t.push(new i(o)):t.push(void 0)}return t}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=i.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},i.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0,a=t.length,c=0<=a;c?i<=a:i>=a;c?i++:i--)o[i]=t.charCodeAt(i);return new Blob([r],{type:n})};var a=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},c=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};i.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},i.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},i.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var o=0,i=i=e;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,c=c=document.querySelectorAll(e);!(a>=c.length);)n=c[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},i.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),o=0,i=i=t;;){if(o>=i.length)break;var a=i[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new i(this,e)}))}),null!==e?e.exports=i:window.Dropzone=i,i.ADDED="added",i.QUEUED="queued",i.ACCEPTED=i.QUEUED,i.UPLOADING="uploading",i.PROCESSING=i.UPLOADING,i.CANCELED="canceled",i.ERROR="error",i.SUCCESS="success";var u=function(e,t,n,r,o,i,a,c,u,s){var l=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var o=r.getImageData(1,0,1,t).data,i=0,a=t,c=t;c>i;){0===o[4*(c-1)+3]?a=c:i=c,c=a+i>>1}var u=c/t;return 0===u?1:u}(t);return e.drawImage(t,n,r,o,i,a,c,u,s/l)},s=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,o="",i=void 0,a=void 0,c=void 0,u="",s=0;i=(n=e[s++])>>2,a=(3&n)<<4|(r=e[s++])>>4,c=(15&r)<<2|(o=e[s++])>>6,u=63&o,isNaN(r)?c=u=64:isNaN(o)&&(u=64),t=t+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(c)+this.KEY_STR.charAt(u),n=r=o="",i=a=c=u="",s<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),o=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),o=r.indexOf(255,3),i=r.slice(0,o),a=r.slice(o),c=i;return c=(c=c.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,o=e.slice(t,r);n.push(o),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",o=void 0,i=void 0,a="",c=0,u=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(c++))<<2|(o=this.KEY_STR.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(i=this.KEY_STR.indexOf(e.charAt(c++)))>>2,r=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(c++))),u.push(t),64!==i&&u.push(n),64!==a&&u.push(r),t=n=r="",o=i=a="",c<e.length;);return u}}]),e}();s.initClass();i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(e,t){var n=!1,r=!0,o=e.document,i=o.documentElement,a=o.addEventListener?"addEventListener":"attachEvent",c=o.addEventListener?"removeEventListener":"detachEvent",u=o.addEventListener?"":"on",s=function r(i){if("readystatechange"!==i.type||"complete"===o.readyState)return("load"===i.type?e:o)[c](u+i.type,r,!1),!n&&(n=!0)?t.call(e,i.type||i):void 0};if("complete"!==o.readyState){if(o.createEventObject&&i.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{i.doScroll("left")}catch(t){return void setTimeout(e,50)}return s("poll")}()}o[a](u+"DOMContentLoaded",s,!1),o[a](u+"readystatechange",s,!1),e[a](u+"load",s,!1)}}(window,i._autoDiscoverFunction)}).call(this,n(403)(e))},function(e,t,n){"use strict";var r=n(0),o=n(28),i=n(26);function a(){return r.createElement("div",{className:"text-center p-5"},r.createElement(o.Spinner,{as:"div",animation:"border",role:"status"}))}function c(e){var t=e.title,n=e.closeButton,c=void 0===n||n,u=e.closePopup,s=e.onEntered,l=e.showLoadingSpinner,f=Object.assign({show:!0,onHide:u},i.a.isFunction(s)?{onEntered:s}:{});return r.createElement(o.Modal,Object.assign({},f),!!t&&r.createElement(o.Modal.Header,{closeButton:c},r.createElement(o.Modal.Title,null,t)),l?r.createElement(a,null):r.createElement(o.Modal.Body,null,e.children))}n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n(33),i=n(34),a=n(75),c=n.n(a);function u(e){var t=e.svgName,n=e.children,a=e.appLink,u=e.className,s=e.onClick,l="".concat(u," ").concat(c.a.iconButton);l+=" ".concat(n?c.a.iconWithText:c.a.iconOnly);var f=r.createElement(o.a,{svgName:t,className:c.a.svg});return a?r.createElement(i.a,{appLink:a,className:l,onClick:s},f,n):r.createElement("button",{className:l,onClick:s},f,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={currentUser:{url:"/api/currentUser",key:"currentuser"},workspace:{url:"api/domain/v2/me/workspace",key:"workspace"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r,o,i=n(59),a=n(36),c=n(2),u=n(80);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"}(o||(o={}));var l=(s(r={},u.b.Banners,o.Banner),s(r,u.b.Thumbnails,o.Thumbnail),r),f=function(e){return"/v1/category-map/".concat(e)},p={createUrl:function(e,t){return p._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?p._createUrl(e.url,n):p._createCategoryMappedUrl(t,n)},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,o=e.type,a=i.a.safeUrlConcat(n,"".concat(f(l[o]))),c=Object.assign({name:p.Rfc3986EncodeURIComponent(r)},t);return p._createUrl(a,c)},_createUrl:function(e,t){if(e){if(a.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return i.a.safeUrlConcat(e,"".concat(r).concat(n))}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof c.a.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:u.a.Small,bgColor:"000"},t);return p._createUrl(n,r)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(12),o=n(59),i=n(16);function a(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 u={getAll:function(){return{url:"/api/domain/v1/classrooms",key:"classrooms",successResponse:function(){return r.a.Simulator.getAll("classrooms")},timeout:1e3}},getClassroom:function(e){return{url:"/api/domain/v1/classrooms/".concat(e),key:"classroom:".concat(e),invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.get("classrooms",e)},timeout:5e3}},createClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"create:classroom",type:i.a.POST,invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.create("classrooms",Object.assign(Object.assign({},e),{students:[],groups:[],activities:[],isFavourited:!1}))},success:t,error:n}},editClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"update:classroom",type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",e)},success:t,error:n}},deleteClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"delete:classroom",type:i.a.DELETE,invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.delete("classrooms",e),{}},success:t,error:n}},addStudents:function(e,t,n,o){return{url:"/api/domain/v1/classrooms/".concat(t,"/students"),key:"add:students:classroom",type:i.a.POST,invalidationKeys:["classroom:".concat(t),"students","groups:with:all:students"],successResponse:function(){return r.a.Simulator.assoc("classrooms",t,"students","school:students",e)},success:n,error:o}},removeStudents:function(e,t,n,o){return{url:"/api/domain/v1/classrooms/".concat(t,"/students"),key:"remove:students:classroom",type:i.a.DELETE,invalidationKeys:["classroom:".concat(t)].concat(a(e.map((function(e){return"students:".concat(e)}))),["groups:with:all:students"]),successResponse:function(){return r.a.Simulator.dissoc("classrooms",t,"students",e)},success:n,error:o}},addGroupToClassroom:function(e,t,n,o){return{url:"/api/domain/v1/classrooms/".concat(t,"/groups"),key:"add:classroom:group",type:i.a.POST,invalidationKeys:["classroom:".concat(t)],successResponse:function(){return r.a.Simulator.assoc("classrooms",t,"groups","groups",e)},success:n,error:o}},editGroup:function(e,t,n,o){return{url:"/api/domain/v1/groups/".concat(e.id),key:"group:".concat(e.id),type:i.a.PUT,invalidationKeys:["groups","classroom:".concat(t.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},t),{groups:t.groups.map((function(t){return t.id!==e.id?t:e}))})),r.a.Simulator.update("groups",e)},success:n,error:o}},deleteGroup:function(e,t,n,o){return{url:"/api/domain/v1/groups/".concat(e),key:"delete:group",type:i.a.DELETE,invalidationKeys:["groups","classroom:".concat(t)],successResponse:function(){return r.a.Simulator.dissoc("classrooms",t,"groups",e),r.a.Simulator.delete("groups",e),{}},success:n,error:o}},addStudentsToGroup:function(e,t,n,o){return{url:"/api/domain/v1/groups/".concat(t,"/students"),key:"add:student:group",data:e,type:i.a.POST,invalidationKeys:["group:".concat(t)].concat(a(e.map((function(e){return"user:".concat(e,":groups")}))),["groups:with:all:students"]),successResponse:function(){return e.forEach((function(e){r.a.Simulator.assoc("groups",t,"students","school:students",[e])})),r.a.Simulator.get("groups",t)},success:n,error:o}},removeStudentsFromGroup:function(e,t,n,c){return{url:o.a.urlBuilder("/api/domain/v1/groups/".concat(t,"/students"),{id:e}),key:"remove:student:group",type:i.a.DELETE,invalidationKeys:["group:".concat(t),"groups:with:all:students"].concat(a(e.map((function(e){return"user:".concat(e,":groups")})))),successResponse:function(){return e.forEach((function(e){r.a.Simulator.dissoc("groups",t,"students",e)})),r.a.Simulator.get("groups",t)},success:n,error:c}},getStarredClassrooms:function(){return{url:"/api/domain/v1/me/starred-classrooms",key:"starred:classrooms",successResponse:function(){return r.a.Simulator.getAll("classrooms").filter((function(e){return e.isFavourited}))}}},starClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/star"),key:"star:classroom:".concat(e.id),type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!0}))},success:t,error:n}},unstarClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/unstar"),key:"unstar:classroom:".concat(e.id),type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!1}))},success:t,error:n}},getGroupsWithAllStudents:function(e){var t=e.map((function(e){return e.id}));return{url:"i highly doubt this will be a real request",key:"groups:with:all:students",successResponse:function(){return r.a.Simulator.getAll("groups").filter((function(e){var n=!0,r=0,o=function(){var o=t[r];e.students.find((function(e){return e.id===o}))||(n=!1),r++};do{o()}while(r<t.length);return n}))}}}}},function(e,t,n){"use strict";var r=n(8),o=n(13);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)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,o=e.cursor;n&&(this.id=n),r&&(this.sort=r),o&&(this.cursor=o),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new o.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&i(t.prototype,n),a&&i(t,a),e}();n(63);n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(16),o=n(98),i=n(110),a=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(i.a.VIDEO)},c=function(e,t){var n="{orderbydesc:datecreated}".concat(i.a.VIDEO_COLLECTION).concat(function(e){return e?"&cursor=".concat(e):""}(t));return"api/domain/v2/objects/".concat(e,"/videos?query=").concat(n)},u=function(e){var t=e.map((function(e){return"id=".concat(e)}));return"/api/domain/v2/objects?".concat(t.join("&"))},s={video:function(e){return{url:a(e),key:"videos:".concat(e)}},workspace:function(e,t){return{url:c(e,t),key:"workspace:".concat(e,":").concat(t)}},videos:function(e,t){return{url:u(e),key:"videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t){return{key:"update:video:".concat(e.id),url:"/api/domain/v2/objects/".concat(e.id),type:r.a.PUT,data:e,success:t}},videoRatings:function(e){var t=e.map((function(e){return"id=".concat(e)}));return{url:"/api/domain/v2/objects?query=rating&".concat(t.join("&")),key:"video:ratings:by:id:".concat(e.join(","))}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(o.a.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(28),i=n(127),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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function c(e){var t=e.buttons;return r.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,c=e.type,u=void 0===c?"button":c,s=e.isSpinnerButton,l=e.showSpinner,f=void 0!==l&&l,p=e.className,h=a(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),d=Object.assign({key:t,type:u,className:"ml-2".concat(p?" ".concat(p):"")},h);return s?r.createElement(i.a,Object.assign({showSpinner:f},d),n):r.createElement(o.Button,Object.assign({},d),n)}(e,t)})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={config:{url:"/api/config",key:"config"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n(28);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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}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 c=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function u(e){var t=e.showSpinner,n=e.children,a=c(e,["showSpinner","children"]),u=r.useRef(),s=i(r.useState({}),2),l=s[0],f=s[1];return r.useEffect((function(){var e=l.width,t=l.height;if(!e||!t){var n=u.current,r=n.offsetHeight,o=n.offsetWidth;r&&o&&f({width:o,height:r})}})),r.useEffect((function(){var e=l.width,t=l.height;if(e&&t){var n=u.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[l]),r.createElement(o.Button,Object.assign({ref:u,disabled:t},a),t?r.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}},function(e,t,n){"use strict";var r=n(0),o=n(35),i=function(e,t){var n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n},a=n(34),c=n(108),u=n.n(c);function s(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return r.createElement(r.Fragment,null);var o=i(n.number,2),a=i(t.episodeNumber,2);return r.createElement("span",{className:"d-inline-block ".concat(u.a.seasonEpisodeContainer)}," ",!!o&&"S".concat(o," • "),"E",a)}function l(e){var t=e.appLink,n=e.video.series,i=e.className;if(!n||!n.id)return r.createElement(r.Fragment,null);var c=t&&Object.assign(Object.assign({},t),{args:[n.id,o.a.slugify(n.name)]});return c?r.createElement(a.a,{appLink:c,className:"text-uppercase ".concat(u.a.appLink," ").concat(i)},n.name,r.createElement(s,Object.assign({},e))):r.createElement("span",{className:"text-uppercase ".concat(u.a.appLink," ").concat(i)},n.name,r.createElement(s,Object.assign({},e)))}n.d(t,"a",(function(){return l}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=r.createContext({})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45),o={getFilterFromSort:function(e){switch(e){case r.a.RecentlyUpdated:return"orderbydesc:timestamp";case r.a.AtoZ:return"orderby:name";case r.a.Newest:default:return"orderbydesc:datecreated"}},getSortTypeFromName:function(e){switch(e){case"recentlyupdated":return r.a.RecentlyUpdated;case"atoz":return r.a.AtoZ;case"newest":default:return r.a.Newest}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={getRandomInt:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},i={ToDisplayDuration:function(e){if(!r.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),i=o(t.getUTCMinutes(),2,"0"),a=o(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(i,":").concat(a):"".concat(i,":").concat(a)}}},function(e,t,n){"use strict";var r,o=n(27);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(r||(r={})),n.d(t,"a",(function(){return l}));var i=function(){return"/api/domain/v1/subjects?query=".concat(o.a.CLASSIFICATION)},a=function(e,t){return"/api/domain/v1/subjects/".concat(e,"?query=").concat(o.b.ClassificationWithFollowersAndMemberCount(t))},c=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},u=function(e){return"/api/domain/v1/subjects/".concat(e,"/children?query=").concat(o.a.CLASSIFICATION)},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="/api/domain/v1/subjects/".concat(e,"/").concat(t),i=[];n&&i.push("query=".concat(n)),r&&i.push("cursor=".concat(r));var a=i.join("&");return a&&(o+="?".concat(a)),o},l={presentation:function(){return{url:"/api/domain/v1/subjects/presentation",key:"presentation",bootstrapName:"presentation"}},classifications:function(){return{url:i(),key:"classifications"}},classification:function(e,t,n){return{url:a(e,t),key:"classification:".concat(e),error:n}},path:function(e){return{url:c(e),key:"classification:".concat(e,":path")}},children:function(e){return{url:u(e),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var i="limit:100";n.length&&(i+=",".concat(o.b.SubjectPresentationActiveAudienceFilter(n)));var a="{".concat(i,"}").concat(o.a.VIDEO_COLLECTION)+",".concat(o.b.SubjectPresentationAudienceFilter(t));return{url:s(e,r.Videos,a),key:"classification:".concat(e,":").concat(r.Videos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var i="limit:100,orderby:name";n.length&&(i+=",".concat(o.b.SubjectPresentationActiveAudienceFilter(n)));var a="{".concat(i,"}").concat(o.a.PLAYLIST_COLLECTION)+",".concat(o.b.SubjectPresentationAudienceFilter(t));return{url:s(e,r.Playlists,a),key:"classification:".concat(e,":").concat(r.Playlists,":").concat(n.join(":"))}}},series:function(e,t,n){if(t){var i="limit:100";n.length&&(i+=",".concat(o.b.SubjectPresentationActiveAudienceFilter(n)));var a="{".concat(i,"}").concat(o.a.SERIES)+",".concat(o.b.SubjectPresentationAudienceFilter(t));return{url:s(e,r.Series,a),key:"classification:".concat(e,":").concat(r.Series,":").concat(n.join(":"))}}}}},function(e,t,n){"use strict";var r=n(5),o=n(29),i=n(13),a=n(2),c=n(6),u=n(37),s=n(7),l=n(49),f=n(14),p=n(53),h=n(58),d="upload.utils",y={getStatus:function(e){if(y.hasError(e))return s.a.getPhrase(d,"videoProcessingError");if(!e.get("foregroundComplete")){var t=y.getProgress(e);return 0===t?s.a.getPhrase(d,"waiting"):s.a.getPhrase(d,"processing",{progress:t})}return y.isDone(e)?s.a.getPhrase(d,"complete"):s.a.getPhrase(d,"readyToWatch")},hasError:function(e){return e.get("pendingProcessStatus")===h.a.Error},isDone:function(e){return 2===e.get("pendingProcessStatus")},getProgress:function(e){return e.get("foregroundProgress")},hasExpired:function(e,t){var n=e.get("timeInitialized");return p().diff(n,"days")>=t}},v=n(25),m=n(32),g=n(4),b=n(11),w=n(35);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 O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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&&k(e.prototype,t),n&&k(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&&R(e,t)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==S(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){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return j}));var A,T=s.a.encloseNamespace("upload.services"),L=function(e){E(n,e);var t=P(n);function n(){return O(this,n),t.apply(this,arguments)}return C(n,[{key:"modelId",value:function(e){return e.pendingProcessId||e.id}},{key:"comparator",get:function(){return function(e,t){var n=e.get("status"),r=t.get("status");return n===A.Errored?1:r===A.Errored?-1:0}}}]),n}(a.a.Collection);!function(e){e[e.Uploading=0]="Uploading",e[e.Processing=1]="Processing",e[e.Errored=2]="Errored"}(A||(A={}));var j=function(e){E(n,e);var t=P(n);function n(){return O(this,n),t.apply(this,arguments)}return C(n,[{key:"initialize",value:function(){this.initializeServices(),this.initializeCollections(),this.bindListeners()}},{key:"initializeServices",value:function(){this.videoUploadService=c.a.getInstance(m.b.VideoUpload,this),this.pendingItemsService=c.a.getInstance(m.b.PendingItems,this),this.alertService=c.a.getInstance(u.a.ALERT,this)}},{key:"initializeCollections",value:function(){this.uploads=this.videoUploadService.getCollection(),this.pendingItems=this.pendingItemsService.getPendingItems(),this.combined=new L,this.erroredVideos=new a.a.Collection,this.uploads.each(this.addUpload,this),this.pendingItems.each(this.addPendingItem,this)}},{key:"bindListeners",value:function(){this.listenTo(this.uploads,"add",this.addUpload),this.listenTo(this.pendingItems,"add",this.addPendingItem),this.listenTo(this.uploads,"remove",this.removeUpload),this.listenTo(this.pendingItems,"remove",this.removePendingItem),this.listenTo(this.uploads,"change",this.onChangeUpload),this.listenTo(this.pendingItems,"change",this.onChangePendingItem),this.listenTo(f.c.PENDING_ITEMS,v.a.PENDING_ITEM_READY_TO_WATCH,this.onPendingItemReadyToWatch)}},{key:"getUploadAttrs",value:function(e){return{id:e.get("id"),name:e.get("name"),progress:e.get("progress"),status:A.Uploading,pendingProcessId:e.get("pendingProcessId")}}},{key:"getPendingItemAttrs",value:function(e){return{id:e.get("pendingProcessId"),name:e.get("video").get("name"),progress:e.get("foregroundProgress"),status:y.hasError(e)?A.Errored:A.Processing,pendingProcessId:e.get("pendingProcessId"),videoId:e.get("video").get("id")}}},{key:"addUpload",value:function(e){this.combined.add(this.getUploadAttrs(e))}},{key:"addPendingItem",value:function(e){var t=this.combined.findWhere({pendingProcessId:e.get("pendingProcessId")});t?t.set(this.getPendingItemAttrs(e)):this.combined.add(this.getPendingItemAttrs(e))}},{key:"removeUpload",value:function(e){var t=this.combined.get(e.get("id"));this.combined.remove(t),this.erroredVideos.remove(t)}},{key:"removePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));this.combined.remove(t),this.erroredVideos.remove(t),r.Radio.channel(this.channelName).trigger(v.a.PROCESSING_CANCELLED)}},{key:"onChangeUpload",value:function(e){this.combined.get(e.get("id")).set(this.getUploadAttrs(e))}},{key:"onChangePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));t.set(this.getPendingItemAttrs(e)),y.hasError(e)&&this.onPendingItemError(t)}},{key:"onPendingItemError",value:function(e){if(!this.erroredVideos.findWhere({id:e.get("id")})){this.erroredVideos.add(e);var t={heading:o.c.Fail,type:o.a.Fail,message:T("errorAlertMessage",{videoName:e.get("name")})};l.a.getCurrentContext().appLink.application!==g.a.UPLOAD&&(t.appLinkText=T("errorAlertAppLinkText"),t.appLinkClassName="info-link",t.appLink={application:g.a.UPLOAD,action:b.a.Upload.MY_UPLOADS}),this.alertService.createAlert(t)}}},{key:"onPendingItemReadyToWatch",value:function(e){var t=e.get("video"),n={application:g.a.DEFAULT,action:b.a.Default.PLAY_VIDEO,args:[t.get("id"),w.a.slugify(t.get("name"))]};this.alertService.createAlert({type:o.a.Success,heading:T("completeUploadAlertHeading",{videoName:t.get("name")}),message:T("completeUploadAlertMessage",{videoName:t.get("name")}),appLink:n,appLinkText:T("completeUploadAlertAppLinkText",{videoName:t.get("name")}),appLinkClassName:"info-link"})}},{key:"cancelUpload",value:function(e){this.videoUploadService.cancelUpload(e)}},{key:"cancelProcessing",value:function(e){var t=this.pendingItems.findWhere({pendingProcessId:e});this.pendingItemsService.clearPendingItem(t)}},{key:"retryItem",value:function(e){var t=this;e.status===A.Uploading&&a.a.ErrorHelper.throw(new i.a("Cannot retry uploading items.")),this.erroredVideos.remove(e);var n=this.pendingItems.findWhere({pendingProcessId:e.id});this.pendingItemsService.retryPendingItem(n,(function(){t.pendingItemsService.forceFetchPendingItems()}))}},{key:"editUpload",value:function(e){e.status===A.Uploading&&(this.uploads.get(e.id).get("sending")||a.a.AppLinkHelper.trigger({application:g.a.UPLOAD,action:b.a.Upload.EDIT_UPLOAD,args:[e.id]}))}},{key:"updateUploadMetadata",value:function(e,t){var n=this.combined.findWhere({videoId:e});n&&n.set({name:t})}},{key:"getCollection",value:function(){return this.combined}},{key:"name",get:function(){return m.b.CombineUploads}},{key:"channelName",get:function(){return g.b.COMBINE_UPLOADS}}]),n}(a.a.Service)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(265),a=n.n(i);function c(e){var t=e.imageUrl;return o.a.createElement("span",{className:a.a.avatar,style:{backgroundImage:"url('".concat(t,"')")}}," ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),i=n(5),a=n(15),c=n(2),u=n(7),s=n(67),l=n(14),f=n(25),p=n(137);function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||y(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 d(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||y(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 y(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(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 m=u.a.encloseNamespace("shared.hooks"),g=function(){var e=d(o.a.useState([]),2),t=e[0],n=e[1],r=i.Radio.channel(a.a.SHELL);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.find((function(t){return t.id===e.id}))||(e.allowAppLinks||r.trigger(c.a.EventNames.LOCK_NAV),n([].concat(h(t),[e])))}function y(e){var o=t.filter((function(t){return t.id!==e}));0!==o.length&&o.find((function(e){return!e.allowAppLinks}))||r.trigger(c.a.EventNames.UNLOCK_NAV),n(o)}function v(e){if(t.length){var n=t.find((function(e){return!e.allowAppLinks})),i=[{buttonText:m("cancel"),className:"btn btn-secondary"},{buttonText:m("discard"),className:"btn btn-danger",onClick:n.onConfirmUnlock?n.onConfirmUnlock:function(){},success:!0}];p.a.render(o.a.createElement("p",null,n.text),{title:n.title,buttons:i,success:function(){return function(e){r.trigger(c.a.EventNames.NAV_UNLOCKED_BY_USER),t.forEach((function(e){e.allowAppLinks||y(e.id)})),c.a.AppLinkHelper.trigger(e)}(e)}})}}function g(e){var n=t.find((function(e){return e.allowAppLinks}));return n||(n=s.a.first(t)),e.returnValue=n.text,n.text}return o.a.useEffect((function(){return t.find((function(e){return!e.allowAppLinks}))&&r.on(c.a.EventNames.NAV_IS_LOCKED,v),t.length&&window.addEventListener("beforeunload",g),function(){r.off(c.a.EventNames.NAV_IS_LOCKED,v),window.removeEventListener("beforeunload",g)}}),[t]),o.a.useEffect((function(){function e(){u({id:"upload",title:m("uploadLockTitle"),text:m("uploadLockBody"),allowAppLinks:!0})}var t=i.Radio.channel(l.c.VIDEO_UPLOAD);return t.on(f.a.FILES_ADDED,e),t.on(f.a.UNLOCK_NAV,y),function(){t.off(f.a.FILES_ADDED,e),t.off(f.a.UNLOCK_NAV,y)}}),[]),{lock:u,unlock:y}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n.n(r),i=n(57),a=n(26),c=n(7),u=n(125),s=n(118);var l={render:function(e,t){var n=document.getElementById("dialog-region");function r(){a.a.isFunction(t.cancel)&&t.cancel(),Object(i.unmountComponentAtNode)(n)}var c=(t.buttons||[l.getConfirmDefault(),l.getCancelDefault()]).map((function(e){var o=e.success;return delete e.success,Object.assign(Object.assign({},e),{onClick:function(){o&&(a.a.isFunction(t.success)&&t.success(),Object(i.unmountComponentAtNode)(n)),r(),a.a.isFunction(e.onClick)&&e.onClick()}})}));Object(i.render)(o.a.createElement(s.a,{title:t.title,closePopup:r},e,o.a.createElement(u.a,{buttons:c})),n)},getCancelDefault:function(){return{variant:"light",buttonText:c.a.getPhrase("shared.utils","cancel")}},getConfirmDefault:function(){return{variant:"dark",success:!0,buttonText:c.a.getPhrase("shared.utils","confirm")}}}},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",[],"",""]}},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:"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.458 12c0 .944.514 1.722 1.542 2.333a10.98 10.98 0 0 1-.667 1.584c-.944-.223-1.805.055-2.583.833-.694.694-.917 1.556-.667 2.583A10.98 10.98 0 0 1 14.5 20c-.611-1.028-1.444-1.542-2.5-1.542s-1.889.514-2.5 1.542c-.5-.167-1.042-.389-1.625-.667.25-1.055.042-1.916-.625-2.583-.667-.667-1.528-.875-2.583-.625C4.389 15.542 4.167 15 4 14.5c1.028-.611 1.542-1.444 1.542-2.5 0-.944-.514-1.722-1.542-2.333a8.484 8.484 0 0 1 .667-1.584c.944.223 1.805-.055 2.583-.833.667-.667.875-1.528.625-2.583C8.458 4.389 9 4.167 9.5 4c.611 1.028 1.444 1.542 2.5 1.542S13.889 5.028 14.5 4c.5.167 1.042.389 1.625.667-.25 1.055-.042 1.916.625 2.583.778.778 1.639 1.056 2.583.833.306.611.528 1.14.667 1.584-1.028.61-1.542 1.389-1.542 2.333zM12 16.083c1.111 0 2.07-.402 2.875-1.208.806-.806 1.208-1.764 1.208-2.875s-.402-2.07-1.208-2.875c-.806-.806-1.764-1.208-2.875-1.208s-2.07.402-2.875 1.208c-.806.806-1.208 1.764-1.208 2.875s.402 2.07 1.208 2.875c.806.806 1.764 1.208 2.875 1.208z"]}},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",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c4.001-4.053 1.158-11.055-4.532-11.055-3.417 0-4.985 2.511-5.596 2.98-.614-.471-2.172-2.98-5.596-2.98-5.672 0-8.55 6.984-4.531 11.055z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c2.491-2.523 2.491-6.63 0-9.154-1.21-1.226-2.819-1.901-4.532-1.901s-3.321.675-4.531 1.9l-1.065 1.08-1.065-1.079c-1.21-1.226-2.819-1.901-4.531-1.901-1.713 0-3.322.675-4.532 1.901-2.491 2.524-2.491 6.631 0 9.153zm-8.527-17.822c.926-.937 2.157-1.454 3.464-1.454 1.308 0 2.538.517 3.463 1.455l1.599 1.62c.281.285.786.285 1.067 0l1.599-1.621c.928-.937 2.158-1.454 3.465-1.454 1.308 0 2.538.517 3.464 1.454 1.917 1.943 1.917 5.104 0 7.048l-9.06 9.181-9.061-9.182c-1.917-1.942-1.917-5.104 0-7.047z"]}},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,19.0049107 C4,19.5548349 4.44525903,20 4.99508929,20 L19.0049107,20 C19.5548349,20 20,19.554741 20,19.0049107 L20,4.99508929 C20,4.44516513 19.554741,4 19.0049107,4 L4.99508929,4 C4.44516513,4 4,4.44525903 4,4.99508929 L4,19.0049107 Z M4.99508929,3 L19.0049107,3 C20.1067681,3 21,3.8926228 21,4.99508929 L21,19.0049107 C21,20.1067681 20.1073772,21 19.0049107,21 L4.99508929,21 C3.8932319,21 3,20.1073772 3,19.0049107 L3,4.99508929 C3,3.8932319 3.8926228,3 4.99508929,3 Z M17.5,17.3 C17.7761424,17.3 18,17.0761424 18,16.8 C18,16.5238576 17.7761424,16.3 17.5,16.3 L9.5,16.3 C9.22385763,16.3 9,16.5238576 9,16.8 C9,17.0761424 9.22385763,17.3 9.5,17.3 L17.5,17.3 Z M17.5,12.7 C17.7761424,12.7 18,12.4761424 18,12.2 C18,11.9238576 17.7761424,11.7 17.5,11.7 L9.5,11.7 C9.22385763,11.7 9,11.9238576 9,12.2 C9,12.4761424 9.22385763,12.7 9.5,12.7 L17.5,12.7 Z M8.07195299,7.22930174 L6.86542219,6.50538326 C6.38401051,6.21653625 6,6.43413716 6,6.98678206 L6,8.51032805 C6,9.06455544 6.38746271,9.27850253 6.86542219,8.99172685 L8.07195299,8.26780837 C8.55336467,7.97896136 8.54991246,7.51607743 8.07195299,7.22930174 Z M8.07195299,11.7293017 L6.86542219,11.0053833 C6.38401051,10.7165363 6,10.9341372 6,11.4867821 L6,13.010328 C6,13.5645554 6.38746271,13.7785025 6.86542219,13.4917268 L8.07195299,12.7678084 C8.55336467,12.4789614 8.54991246,12.0160774 8.07195299,11.7293017 Z M8.07195299,16.2293017 L6.86542219,15.5053833 C6.38401051,15.2165363 6,15.4341372 6,15.9867821 L6,17.510328 C6,18.0645554 6.38746271,18.2785025 6.86542219,17.9917268 L8.07195299,17.2678084 C8.55336467,16.9789614 8.54991246,16.5160774 8.07195299,16.2293017 Z M17.5,8.3 C17.7761424,8.3 18,8.07614237 18,7.8 C18,7.52385763 17.7761424,7.3 17.5,7.3 L9.5,7.3 C9.22385763,7.3 9,7.52385763 9,7.8 C9,8.07614237 9.22385763,8.3 9.5,8.3 L17.5,8.3 Z"]}},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.055a.768.768 0 0 1 .72 0l3.767 1.998-.806-4.602 3.357-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601 3.768-1.998zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","M7.89 19.203a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},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",[],"","M4.5 6a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-15zm0-1h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11A1.5 1.5 0 0 1 4.5 5zM10 9.26v5.48a.256.256 0 0 0 .39.218l4.482-2.74a.256.256 0 0 0 0-.436l-4.483-2.74a.256.256 0 0 0-.389.219z"]}},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",[],"","M12,-1.71862524e-13 C13.3893905,-1.71862524e-13 14.5197317,1.12166968 14.5197317,2.50040137 C14.5197317,2.8215332 14.4594938,3.13263028 14.3442115,3.42156921 C16.2349366,3.84633285 17.9748233,4.78862459 19.3866372,6.17539419 L19.4316433,6.22680193 C21.3267651,8.11265804 22.5,10.713205 22.5,13.5805516 C22.5,19.3258216 17.7897333,24 12,24 L12,24 C6.21026669,24 1.5,19.3258216 1.5,13.5805516 L1.50006052,13.5243182 C1.50002021,13.5212739 1.5,13.5182249 1.5,13.5151711 L1.501,13.503 L1.50378159,13.2988768 C1.57785421,10.543134 2.73548466,8.05071265 4.56835673,6.22680193 L4.61336276,6.17539419 C6.02517671,4.78862459 7.76506343,3.84633285 9.65748913,3.42018903 C9.54056383,3.13263028 9.48031555,2.8215332 9.48031555,2.50040137 C9.48031555,1.12166968 10.6106095,-1.71862524e-13 12,-1.71862524e-13 Z M12,4.52624116 L11.6809164,4.53170146 C11.6454989,4.53291535 11.610132,4.53433052 11.5748169,4.53594584 L11.6816694,4.53162088 C11.5883913,4.53477816 11.4953516,4.53932139 11.4025747,4.54524062 L11.5748169,4.53594584 C11.4679256,4.54083509 11.3615084,4.54755809 11.2555967,4.55608379 L11.4025747,4.54524062 C11.3068176,4.55134999 11.2113405,4.55892518 11.1161702,4.56795525 L11.2555967,4.55608379 C11.095392,4.56897997 10.9363438,4.5860008 10.7785603,4.60703883 C10.7467123,4.6104578 10.7154515,4.61475211 10.6842289,4.61920452 L10.7785603,4.60703883 C10.6768565,4.62059949 10.5756781,4.63582921 10.4750543,4.65269924 L10.6842289,4.61920452 C10.600263,4.63117821 10.5165735,4.64429522 10.4331795,4.65854779 L10.4750543,4.65269924 C9.11485909,4.88074187 7.85598275,5.40850943 6.77005357,6.16492738 L8.00490498,7.39068924 C8.27354347,7.65726684 8.27354347,8.0894535 8.00490498,8.35612485 C7.87046765,8.48939021 7.69450873,8.55604633 7.5184081,8.55604633 C7.34230747,8.55604633 7.16634856,8.48943709 7.03200569,8.35612485 L5.70204148,7.03485023 C4.13204115,8.52299364 3.09475895,10.5601022 2.90659433,12.8322227 L4.30759576,12.8325787 C4.68743083,12.8325787 4.99546522,13.1382031 4.99546522,13.5151711 C4.99546522,13.892186 4.68747807,14.1977635 4.30764299,14.1977635 L2.89670934,14.1976473 C3.02371908,16.0609257 3.72135566,17.7714185 4.81716961,19.1579915 L4.97167812,19.3482139 C5.26113447,19.6949337 5.57609243,20.0199666 5.91367078,20.3204536 L7.03200569,19.2111609 C7.30069142,18.9445833 7.73612479,18.9445833 8.00490498,19.2111609 C8.27354347,19.4777385 8.27354347,19.9099252 8.00490498,20.1765497 L7.01386949,21.160078 C8.44796715,22.0922041 10.1613427,22.6346745 12,22.6346745 L12,22.6346745 C13.8583409,22.6346745 15.5887033,22.0805272 17.0320921,21.1300078 L16.0701299,20.1765497 C15.8014914,19.909972 15.8014914,19.4777854 16.0701299,19.2111609 C16.3388156,18.9445833 16.774249,18.9445833 17.042982,19.2111609 L18.1252566,20.2856043 C18.4481451,19.9948825 18.7500205,19.681572 19.0283219,19.3482139 L19.1828304,19.1579915 C20.2466397,17.8119151 20.9351906,16.1605635 21.0907063,14.3605101 L21.1032907,14.1976527 L21.1032907,14.1976527 L19.4302507,14.1977635 C19.0504157,14.1977635 18.7423813,13.8921391 18.7423813,13.5151711 C18.7423813,13.1381562 19.0504157,12.8325787 19.4302507,12.8325787 L21.0934057,12.8322227 C20.9067892,10.5787961 19.8849698,8.55653016 18.3366017,7.07169263 L17.0430292,8.35607798 C16.9085919,8.48943709 16.732633,8.55604633 16.5565323,8.55604633 C16.3804317,8.55604633 16.2044728,8.48943709 16.0701299,8.35612485 C15.8014914,8.08954725 15.8014914,7.65736059 16.0701299,7.39068924 L17.2742569,6.19598696 C16.1894526,5.4308071 14.9295636,4.89482891 13.5669368,4.65983993 C13.5528409,4.65615858 13.538853,4.65380129 13.5248569,4.65147595 L13.5669368,4.65983993 C13.4834378,4.64544029 13.3995531,4.63217086 13.3152992,4.62004816 L13.5248569,4.65147595 C13.4243139,4.63477151 13.3233471,4.61971567 13.2219896,4.60632197 L13.3152992,4.62004816 C13.1723723,4.59948341 13.0283832,4.58221861 12.8834131,4.56833442 C12.8374466,4.56355426 12.7909906,4.55949885 12.7444647,4.55579028 L12.8834131,4.56833442 C12.7886701,4.55926062 12.6935082,4.5516307 12.5979499,4.54546716 L12.7444647,4.55579028 C12.6381278,4.54731418 12.5314263,4.5406499 12.4243976,4.53581255 L12.5979499,4.54546716 C12.5053597,4.53949506 12.4123973,4.53489967 12.3190836,4.53170146 L12.4243976,4.53581255 C12.2834709,4.52944313 12.1419768,4.52624116 12,4.52624116 Z M12.2098775,18.4456908 C12.3524617,18.4551964 12.4902931,18.464702 12.6328773,18.4884661 C12.6851582,18.4932189 12.7421919,18.5074773 12.7944727,18.5169829 C12.8039783,18.5169829 12.813484,18.5169829 12.8229896,18.5217357 C12.8990345,18.5692638 12.984585,18.5740166 13.0701355,18.5930278 C13.0938996,18.5977806 13.1224164,18.6025334 13.1509332,18.612039 C13.1746973,18.6215447 13.1984613,18.6310503 13.2174725,18.6500615 C13.2364838,18.6690727 13.255495,18.6833311 13.2887647,18.688084 C13.3172815,18.6928368 13.3362927,18.7213536 13.3362927,18.7546232 C13.3362927,18.7831401 13.3315399,18.8116569 13.3267871,18.835421 C13.3077759,18.9304771 13.2887647,19.030286 13.2650006,19.1253422 C13.2602478,19.153859 13.2507422,19.1823759 13.2412366,19.2108927 C13.2174725,19.277432 13.2127197,19.3487241 13.1937085,19.4152634 C13.1794501,19.4532859 13.1746973,19.4960611 13.1556861,19.5340836 C13.1414276,19.5673532 13.131922,19.6006229 13.1034052,19.6386453 C13.0891468,19.6529038 13.084394,19.6766678 13.0796411,19.7004318 C13.0606299,19.7527127 13.0321131,19.7717239 12.9750794,19.7622183 L12.9750794,19.7622183 L12.960821,19.7622183 C12.8562592,19.7384543 12.7564503,19.7194431 12.6566413,19.6909262 C12.5473268,19.6624094 12.4380122,19.6529038 12.3286977,19.6576566 C12.3001808,19.6576566 12.271664,19.6671622 12.2431471,19.6766678 C12.2051247,19.6909262 12.1956191,19.7194431 12.1956191,19.7574655 C12.1956191,19.7764767 12.2003719,19.7907352 12.2193831,19.795488 C12.2811696,19.8287576 12.3382033,19.8620273 12.419001,19.8762857 C12.442765,19.8810385 12.4617762,19.8952969 12.4807875,19.9048025 C12.5045515,19.9190609 12.5235627,19.9285666 12.542574,19.9380722 C12.689911,20.0093643 12.8467536,20.0711508 12.9798322,20.1709597 C13.084394,20.2422518 13.1604389,20.3325551 13.2032141,20.4513753 L13.2032141,20.4513753 L13.3077759,20.7745662 C13.3410455,20.8933864 13.3362927,21.0217122 13.3315399,21.1452851 C13.3267871,21.2403413 13.3125287,21.3401502 13.279259,21.4304535 C13.2745062,21.4352064 13.2745062,21.4399592 13.2745062,21.4494648 C13.2840118,21.5587793 13.2507422,21.6585883 13.1889557,21.7441388 C13.084394,21.8962286 12.9513154,22.0293072 12.7897199,22.1291162 C12.6851582,22.1956555 12.5710908,22.2336779 12.4475178,22.257442 C12.3239448,22.281206 12.1956191,22.3144756 12.0672933,22.3287341 C11.9579787,22.3429925 11.8486642,22.3429925 11.7441024,22.3382397 C11.6157766,22.3239812 11.4922036,22.3002172 11.3638778,22.2764532 C11.3448666,22.2764532 11.3258554,22.2669476 11.3068442,22.2621948 C11.2165408,22.2194195 11.1262375,22.2051611 11.0311814,22.1956555 C10.9076084,22.1766442 10.7887882,22.1481274 10.6652152,22.1243634 C10.6366984,22.1196106 10.6081815,22.0958465 10.6081815,22.0625769 C10.6081815,21.9675207 10.5844175,21.8677118 10.5986759,21.7726556 C10.6129344,21.6015546 10.62244,21.4257007 10.6414512,21.2545997 C10.6509568,21.1642964 10.6747208,21.073993 10.6984849,20.9789369 C10.7127433,20.9219032 10.7507658,20.8981392 10.8125522,20.902892 C10.9028556,20.9123976 10.9931589,20.9171504 11.0787094,20.9314088 C11.188024,20.9456672 11.2925857,20.9599257 11.3971475,20.9931953 C11.4541812,21.0074537 11.5112149,21.0169593 11.5682485,21.0217122 C11.6633047,21.026465 11.753608,21.026465 11.8439113,21.026465 C11.8866866,21.026465 11.9294619,20.9836897 11.9342147,20.9456672 C11.9389675,20.9123976 11.9152034,20.8696223 11.8724282,20.8553639 C11.8391585,20.8458583 11.7963833,20.8363527 11.7583608,20.8315999 C11.7345968,20.8268471 11.7108328,20.8220943 11.6870687,20.8220943 C11.6015182,20.8173415 11.5254733,20.7935774 11.4446756,20.7650606 C11.3638778,20.7317909 11.2783273,20.7127797 11.1975296,20.6795101 C11.088215,20.6414876 10.9884061,20.5797011 10.8981028,20.508409 C10.817305,20.4466225 10.7792826,20.361072 10.7507658,20.2707687 C10.7079905,20.1234316 10.6937321,19.9713418 10.7127433,19.819252 C10.7270017,19.7051846 10.7317545,19.5911173 10.7507658,19.4818027 C10.793541,19.2441624 10.8885972,19.030286 11.0596982,18.859185 C11.2070352,18.711848 11.3876419,18.612039 11.5920126,18.5550054 C11.7060799,18.5217357 11.8249001,18.4932189 11.9437203,18.4694548 C12.0340236,18.4551964 12.124327,18.4551964 12.2098775,18.4456908 Z M14.7328664,9.61765309 C15.1590885,9.61765309 15.5675493,9.84298078 15.7988231,10.2056519 C16.0296718,10.5678544 16.0563136,11.0171504 15.8699625,11.4074308 L14.1147664,15.0838768 C13.9903906,15.3443138 13.7774449,15.5556727 13.5149472,15.6790944 L9.80998461,17.4209191 C9.63676546,17.5022939 9.45419332,17.5435907 9.2670864,17.5435907 C8.84086431,17.5435907 8.43240343,17.3182631 8.20112965,16.9555919 C7.97028099,16.5933895 7.94363916,16.1440935 8.12999028,15.753813 L9.88518638,12.077367 C10.0095622,11.81693 10.2225079,11.6055242 10.4850055,11.4821494 L14.1899681,9.74032473 C14.3631873,9.65894988 14.5457594,9.61765309 14.7328664,9.61765309 Z M14.4894526,11.1101033 L11.1110414,12.6984127 L9.51045294,16.050953 L12.8888641,14.4626436 L14.4894526,11.1101033 Z M13.0226075,6.1644377 C13.0938996,6.1691905 13.1651917,6.1691905 13.2364838,6.1691905 L13.2364838,6.1691905 L13.5121466,6.18344892 C13.5596746,6.18344892 13.5929443,6.21196577 13.5976971,6.26424664 C13.6309667,6.56842629 13.6547308,6.87260593 13.6357196,7.17678557 C13.5976971,7.72335837 13.6262139,8.27468397 13.6167083,8.82125677 C13.6167083,9.03513308 13.6214611,9.24900939 13.6452252,9.46763851 L13.6452252,9.46763851 L13.6452252,9.59121149 C13.6404724,9.6625036 13.6024499,9.69102044 13.5359106,9.68626763 C13.526405,9.68626763 13.5121466,9.69102044 13.502641,9.69102044 C13.4836297,9.69577324 13.4598657,9.70527886 13.4408545,9.70052605 C13.3695624,9.68626763 13.2935175,9.69102044 13.2222254,9.69102044 C13.1414276,9.68626763 13.0606299,9.69577324 12.9798322,9.70052605 C12.837248,9.71003166 12.689911,9.71953728 12.542574,9.72429009 C12.4997987,9.72904289 12.4760347,9.70527886 12.4570234,9.6672564 L12.4570234,9.6672564 L12.271664,9.34881834 C12.1195741,9.07315554 11.9532259,8.81175116 11.8201473,8.52658274 L11.8201473,8.52658274 L11.8011361,8.49331309 L11.8011361,8.53608835 C11.7916305,8.81650396 11.777372,9.09216676 11.7821249,9.37258237 C11.7821249,9.4628857 11.777372,9.55318904 11.7726192,9.64349237 C11.7678664,9.71478447 11.729844,9.75280693 11.6585519,9.76231254 L11.6585519,9.76231254 L11.5112149,9.77657096 C11.4066531,9.78607658 11.3068442,9.76231254 11.2070352,9.75280693 L11.2070352,9.75280693 L10.8077994,9.75280693 C10.7555186,9.75280693 10.6747208,9.78132377 10.6557096,9.72429009 C10.646204,9.70527886 10.6414512,9.69102044 10.646204,9.61972833 C10.646204,9.58170588 10.6509568,9.56269465 10.6509568,9.51991939 L10.6509568,9.51991939 L10.6604624,9.31079588 L10.6794736,8.66441414 C10.6889793,8.33171766 10.7032377,7.99902117 10.6937321,7.66632469 C10.6889793,7.45720118 10.6794736,7.24807768 10.669968,7.04370698 C10.669968,7.03420136 10.669968,7.01994294 10.6652152,7.01043733 C10.6319456,6.81081944 10.6366984,6.60644874 10.6557096,6.40207804 C10.6604624,6.39257243 10.6557096,6.37831401 10.6604624,6.36405559 C10.6604624,6.32603313 10.6984849,6.28801068 10.7365073,6.28325787 C10.769777,6.28325787 10.8077994,6.28801068 10.8410691,6.28801068 L10.8410691,6.28801068 L10.8838443,6.28801068 C11.0216757,6.26424664 11.1595071,6.24048261 11.3020914,6.24523541 L11.3020914,6.24523541 L11.458934,6.2357298 C11.5444845,6.23097699 11.630035,6.22622419 11.7155856,6.22622419 C11.729844,6.22622419 11.7488552,6.23097699 11.7631136,6.24048261 C11.7821249,6.25474103 11.8011361,6.25949384 11.8249001,6.25474103 C11.877181,6.24523541 11.9056978,6.25949384 11.9247091,6.30702191 C11.9864956,6.47812295 12.0767989,6.63971839 12.171855,6.79180821 C12.2478999,6.91538119 12.3001808,7.04370698 12.3477089,7.17678557 C12.3952369,7.29085294 12.4475178,7.4001675 12.5093043,7.50948206 L12.5093043,7.50948206 L12.5235627,7.52849329 C12.5235627,7.52849329 12.5283155,7.52849329 12.5330683,7.52374048 L12.5330683,7.52374048 L12.5330683,7.50472925 C12.5330683,7.28134733 12.5330683,7.0579654 12.5283155,6.83458347 C12.5283155,6.69199927 12.5188099,6.55416787 12.5188099,6.41633646 L12.5188099,6.41633646 L12.5188099,6.38781962 C12.5093043,6.30702191 12.5473268,6.24998822 12.6091133,6.20721296 C12.6328773,6.18344892 12.6613941,6.17394331 12.689911,6.17869612 C12.8039783,6.18344892 12.9132929,6.1644377 13.0226075,6.1644377 Z M12,1.36518483 C11.3691932,1.36518483 10.8560545,1.87443384 10.8560545,2.50035449 C10.8560545,2.7121822 10.9139202,2.91435368 11.0223297,3.09018146 C11.3472278,3.06046277 11.6746768,3.04536905 12,3.04536905 C12.3250871,3.04536905 12.6524415,3.06046277 12.977623,3.09027521 C13.0860798,2.91444743 13.1439455,2.7121822 13.1439455,2.50035449 C13.1439455,1.87438696 12.6308068,1.36518483 12,1.36518483 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","M12,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 C0,5.372583 5.372583,0 12,0 Z M12,2.05714286 C6.50871163,2.05714286 2.05714286,6.50871163 2.05714286,12 C2.05714286,17.4912884 6.50871163,21.9428571 12,21.9428571 C17.4912884,21.9428571 21.9428571,17.4912884 21.9428571,12 C21.9428571,6.50871163 17.4912884,2.05714286 12,2.05714286 Z M12,5.82857143 C12.5680643,5.82857143 13.0285714,6.28907854 13.0285714,6.85714286 L13.0285714,11.5739518 L17.0130241,15.5584045 C17.4147062,15.9600866 17.4147062,16.611342 17.0130241,17.0130241 C16.611342,17.4147062 15.9600866,17.4147062 15.5584045,17.0130241 L11.2726902,12.7273098 C11.0797956,12.5344153 10.9714286,12.2727941 10.9714286,12 L10.9714286,6.85714286 C10.9714286,6.28907854 11.4319357,5.82857143 12,5.82857143 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:"quality-240",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm1 4.818C4 9.644 4.94 8.8 6.261 8.8c1.272 0 2.182.777 2.182 1.81 0 .76-.45 1.334-1.285 2.178L5.58 14.347v.022h2.96v.932H4.062v-.769L6.407 12.2c.724-.737.923-1.064.923-1.54 0-.526-.473-.946-1.104-.946-.663 0-1.157.468-1.157 1.1v.017H4v-.013zm8.426 4.483v-1.206h-3.18v-.98c.553-1.043 1.264-2.178 2.646-4.187h1.62v4.235h.857v.932h-.856v1.206h-1.087zm-2.146-2.142v.03h2.164V9.773h-.018c-1.029 1.492-1.638 2.433-2.146 3.387zm7.234 2.27c-1.564 0-2.496-1.277-2.496-3.321 0-2.036.941-3.308 2.496-3.308 1.55 0 2.486 1.263 2.486 3.303s-.927 3.326-2.486 3.326zm0-.932c.843 0 1.333-.888 1.333-2.39 0-1.488-.499-2.375-1.333-2.375-.84 0-1.347.896-1.347 2.371 0 1.502.499 2.394 1.347 2.394z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-480",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm3.964 9.269v-1.2H3.8v-.976c.55-1.037 1.257-2.166 2.632-4.166h1.613v4.215h.853v.927h-.853v1.2h-1.08zm-2.136-2.132v.031h2.154V9.767h-.018c-1.024 1.485-1.63 2.421-2.136 3.37zm7.185 2.26c-1.467 0-2.47-.761-2.47-1.842 0-.822.58-1.468 1.442-1.63v-.022c-.72-.185-1.19-.743-1.19-1.433 0-.962.926-1.67 2.218-1.67 1.297 0 2.215.703 2.215 1.674 0 .681-.466 1.235-1.186 1.429v.022c.861.167 1.446.813 1.446 1.63 0 1.085-1.016 1.841-2.475 1.841zm0-.867c.76 0 1.297-.448 1.297-1.059 0-.62-.536-1.063-1.297-1.063-.76 0-1.296.448-1.296 1.063 0 .611.536 1.06 1.296 1.06zm0-2.988c.638 0 1.095-.395 1.095-.94 0-.55-.453-.945-1.095-.945-.646 0-1.098.395-1.098.945 0 .545.452.94 1.098.94zm5.709 3.854c-1.556 0-2.483-1.27-2.483-3.304 0-2.026.936-3.292 2.483-3.292 1.542 0 2.474 1.257 2.474 3.287 0 2.03-.923 3.31-2.474 3.31zm0-.927c.84 0 1.327-.883 1.327-2.377 0-1.481-.497-2.365-1.327-2.365-.835 0-1.34.892-1.34 2.36 0 1.494.496 2.382 1.34 2.382z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-hd",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm2 2.25h1.31v2.976h3.406V8.25h1.31v7.482h-1.31v-3.374H6.31v3.374H5V8.25zm7.597 0H15.7c.573 0 1.069.098 1.488.293.42.196.762.463 1.027.802.266.339.463.735.592 1.19.13.454.194.939.194 1.456a5.3 5.3 0 0 1-.194 1.457 3.43 3.43 0 0 1-.592 1.189 2.765 2.765 0 0 1-1.027.802c-.419.195-.915.293-1.488.293h-3.102V8.25zm1.31 6.413h1.29c.51 0 .927-.068 1.251-.204.325-.136.58-.325.765-.566.185-.241.311-.524.378-.849.066-.325.1-.676.1-1.053 0-.377-.034-.728-.1-1.053a2.043 2.043 0 0 0-.378-.849 1.832 1.832 0 0 0-.765-.566c-.324-.136-.742-.204-1.252-.204h-1.289v5.344z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm5.486 9.759c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C6.635 8.337 7.548 8 8.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397zm7 0c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C13.635 8.337 14.548 8 15.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397z"]}},function(e,t){e.exports={prefix:"cv",iconName:"contract",icon:["24","24",[],"","M8.5 8.5V5H10v5H5V8.5h3.5zm0 7H5V14h5v5H8.5v-3.5zm7-7H19V10h-5V5h1.5v3.5zm0 7V19H14v-5h5v1.5h-3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"full-screen",icon:["24","24",[],"","M6.5 6.5V10H5V5h5v1.5H6.5zm0 11H10V19H5v-5h1.5v3.5zm11-11H14V5h5v5h-1.5V6.5zm0 11V14H19v5h-5v-1.5h3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"mute",icon:["24","24",[],"","M16.733 12.018l-1.57-1.57a.555.555 0 1 1 .785-.785l1.57 1.57 1.57-1.57a.555.555 0 1 1 .785.785l-1.57 1.57 1.57 1.57a.555.555 0 1 1-.785.785l-1.57-1.57-1.57 1.57a.555.555 0 1 1-.785-.785l1.57-1.57zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"next",icon:["24","24",[],"","M16 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11zm-10.86.005a.5.5 0 0 1 .761-.427l9.003 5.5a.5.5 0 0 1 0 .853l-9.003 5.5a.5.5 0 0 1-.76-.426v-11z"]}},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:"pause",icon:["24","24",[],"","M8 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 8 17.5v-11zm6 0c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"previous",icon:["24","24",[],"","M5 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 5 17.5v-11zm13.602.005v11a.5.5 0 0 1-.76.426l-9.003-5.5a.5.5 0 0 1 0-.853l9.002-5.5a.5.5 0 0 1 .761.427z"]}},function(e,t){e.exports={prefix:"cv",iconName:"volume",icon:["24","24",[],"","M15.8 11.25c-.137-.815-.44-1.549-.727-2.009a.48.48 0 0 1 .167-.67.507.507 0 0 1 .687.163c.35.56.7 1.41.86 2.359.24 1.439.001 2.866-.866 4.183a.508.508 0 0 1-.691.147.48.48 0 0 1-.15-.674c.724-1.1.922-2.285.72-3.5zm1.86 5.959c1.856-3.7 1.676-7.108 0-10.416a.558.558 0 0 1 .201-.728.483.483 0 0 1 .678.215c1.828 3.61 2.028 7.398.001 11.438a.483.483 0 0 1-.677.218.557.557 0 0 1-.203-.727zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},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:"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){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(85);var o=function(e){this.j=[],this.T=e||null};o.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],o=n[1];if(this.test(e,r))return o}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)(o,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,r.inherits)(o,(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=a,t.stateify=function(e,t,n,r){for(var o=0,a=e.length,c=t,u=[],s=void 0;o<a&&(s=c.next(e[o]));)c=s,o++;if(o>=a)return[];for(;o<a-1;)s=new i(r),u.push(s),c.on(e[o],s),c=s,o++;return s=new i(n),u.push(s),c.on(e[a-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";n.d(t,"a",(function(){return i}));var r=n(0),o=n(6);function i(e){var t=o.a.getInstance(e);return r.useEffect((function(){return function(){return o.a.releaseInstance(e)}})),t}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(r||(r={}))},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-2"><a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+" - "+u("function"==typeof(i=null!=(i=n.libraryName||(null!=t?t.libraryName:t))?i:c)?i.call(a,{name:"libraryName",hash:{},data:o}):i)+"</a></div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+u("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:c)?i.call(a,{name:"templateText",hash:{},data:o}):i)+'</span>\r\n <span class="query-text">'+u("function"==typeof(i=null!=(i=n.query||(null!=t?t.query:t))?i:c)?i.call(a,{name:"query",hash:{},data:o}):i)+"</span>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="tt-not-found"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataset||(null!=t?t.dataset:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataset",hash:{},data:o}):i)+"</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(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 s}));var s=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&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t="".concat(e.webPlayerHost,"home/ev?vid=").concat(e.id);return r.createElement("div",{className:"embed-responsive ".concat(e.className?e.className:"")},r.createElement("iframe",{src:t,className:"embed-responsive-item",allowFullScreen:!0,allow:"autoplay; fullscreen"}))}},function(e,t,n){"use strict";var r,o,i,a=n(1),c=n(5),u=n(3),s=n(31),l=n(65),f=n(2),p=n(60),h=n(7),d=n(6),y=n(14),v=n(21),m=n(9),g=n(97),b=n(91),w=n(10),S={showMask:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetSelector,n=e.additionalClasses,r=e.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(S.getTarget(t)),$(S.getTarget(t)).addClass("mask-lock"),a}},hideMask:function(e){var t=e||$(".".concat("mask"));t.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),t.remove())},getTarget:function(e){var t=$(e||"#app");if(t.length)return t}},O={libraries:{dataServiceName:m.a.Library,eventName:"libraries:sync",getData:function(e){return e.getLibraries()},getInstance:function(e){return d.a.getInstance(m.a.Library,e)},beforeOnBeforeRender:!0}};!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(r||(r={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(o||(o={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Classification="subjects"}(i||(i={}));var k=function(e){return e&&e.get("filterParam")?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.get("filterParam"),e.get("filterValue")):{}},C=n(228),E=1,R={Min:1,Default:3,Folder:3,Recent:3},P=R,x={prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(e+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(t.url,"?q=").concat(e);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(e,t){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:a.partial(x.prepareQuery,a,a,t),transform:a.partial(x.handleResult,a,e)}}},handleResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t===i.Classification?x.processSubjectResult(e[t],t,n):t===i.Video?x.processVideoResult(e[t],t,n):n.showFolder&&t===i.Folder?x.processFolderResult(e[t],t,n):t===i.Series?x.processSeriesResult(e[t],t,n):t===i.Tags?x.processTagsResult(e[t],t,n):[]},processSubjectResult:function(e,t,n){return e?(e=x.processCollection(e),a.map(e,(function(e){return e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e}))):[]},processVideoResult:function(e,t,n){return e?(e=x.processCollection(e),a.map(e,(function(e){return e.cached||(e.topics=a.map(e.topics,(function(e){return{name:e}})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e}))):[]},processTagsResult:function(e,t,n){if(!e)return[];var r=d.a.getInstance(v.a.SEARCH,this);return e=x.processCollection(e),a.map(e,(function(e){return e.cached||(e.url=f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},r.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e}))},processSeriesResult:function(e,t,n){return e?(e=x.processCollection(e),a.map(e,(function(e){var t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=a.first(e.folder)),a.extend({},e,{collectionType:void 0,collection:t})}))):[]},processFolderResult:function(e,t){return e?(e=x.processCollection(e,{limit:P.Folder}),a.map(e,(function(e){var t=e.library,n=void 0===t?{}:t;return n.type===C.a.Exchange&&(n.name="Exchange"),a.extend({},e,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?P.Default:n;return e.slice(0,r)}},_={getRecentSearches:function(e,t){var n=t.cacheGet(e);return a.isArray(n)||(n=[]),n},setRecentSearches:function(e,t,n){a.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches:function(e,t,n){var r=n.add,o=n.remove,i=n.query,c=n.limit,u=void 0===c?5:c,s=_.getRecentSearches(e,t),l=a.indexOf(s,i);return r&&-1===l&&s.unshift(i),o&&l>-1&&s.splice(l,1),s.length>u&&(s=s.slice(0,u)),_.setRecentSearches(e,s,t),s}},A=n(115),T=n(251),L=n.n(T),j=n(105),N=n.n(j);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 D(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 M(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(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 F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=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)}(i,e);var t,n,r,o=M(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return{styles:N.a,confirmSelectionText:h.a.getPhrase("shared.utils","confirmSelection",{svg:'<kbd><span class="'.concat(N.a.svgContainer,'">').concat(w.a.getSvg(w.b.Enter),"</span></kbd>")})}}},{key:"name",get:function(){return"ConfirmSelectionComponent"}},{key:"template",get:function(){return L.a}},{key:"className",get:function(){return"suggestion-footer empty-suggestion px-2 ".concat(N.a.selectionContainer," clearfix")}}])&&D(t.prototype,n),r&&D(t,r),i}(f.a.Component);function H(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}var B,J={handleQuery:function(e,t){return function(n,r,i){if(t||(t={}),n&&t.ignoreOnQuery)return r([]);var a=n&&n.length>=E;return t.fetchType!==o.Local||a?a?e instanceof A?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())}},getTemplate:function(e){var t=arguments,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fallbackTemplate,o=n.templateText;return function(n){var i=n.query;if(!i)return r.apply(void 0,H(t));if(i.length&&i.length<E)return r.apply(void 0,H(t));var c=a.extend(n,{templateText:o});return e(c)}},getSearchSources:function(e){return a.map(e,(function(e,t){var n,r=e.typeaheadConfig,o=e.bloodhoundConfig,i=e.name,a=e.options;return o&&(n=J.buildBloodhound(o(i,a))),r({bloodhound:n,name:i},t,a)}))},buildBloodhound:function(e){return new A(e)},selectFirstResult:function(e,t,n,r){if(n&&!this.$el.find(".tt-cursor").length){var o=a.first(t);if(o&&!a.isEmpty(o)){var i=this.$el.find(".add-new");!i||o.id?(i&&i.hasClass("tt-cursor")&&i.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):i.addClass("tt-cursor")}else this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion")}},emitEventOnInput:function(e,t,n,r){if(e)return function(o,i){c.Radio.channel(e).trigger(t,o,n,a.extend({},r,i))}},resetAssociationOnBlur:function(e){return function(t,n){var r=this.model.get(n),o=a.isNumber(this.model.id);return e[n]||o?"string"==typeof r&&r.length?o?void(e.id===this.model.id&&(this.model.set(e),c.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(c.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void c.Radio.channel(t).trigger("typeahead:clear:input"))}},getConfirmSelectionTemplate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return new V(e).render().el}},clearInputOnBlur:function(e){c.Radio.channel(e).trigger("typeahead:clear:input")}};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 K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(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 Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(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 Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(B||(B={}));var ee=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&&Y(e,t)}(i,e);var t,n,r,o=Q(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickOutside",value:function(e){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}},{key:"defaults",get:function(){return{title:"",placement:B.bottom,size:"popover-md"}},set:function(e){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&W(t.prototype,n),r&&W(t,r),i}(f.a.Behavior),te=n(252),ne=n.n(te),re=n(253),oe=n.n(re),ie=n(106),ae=n.n(ie);function ce(e){return(ce="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 ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(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&&se(e.prototype,t),n&&se(e,n),e}function fe(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 he(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return de(this,n)}}function de(e,t){return!t||"object"!==ce(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 ve=function(e){fe(n,e);var t=he(n);function n(){return ue(this,n),t.apply(this,arguments)}return le(n,[{key:"viewOptions",value:function(){return{styles:ae.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return oe.a}},{key:"className",get:function(){return"py-2 ".concat(ae.a.tip)}}]),n}(f.a.Component),me=function(e){fe(n,e);var t=he(n);function n(){return ue(this,n),t.apply(this,arguments)}return le(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return ve}}]),n}(f.a.ComponentCollection),ge=function(e){fe(n,e);var t=he(n);function n(){return ue(this,n),t.apply(this,arguments)}return le(n,[{key:"initialize",value:function(){this.collection=new f.a.Collection([{term:["".concat(h.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(h.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(h.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(h.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fourthTerm1")),"".concat(h.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(h.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(h.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(e){this.showChildView(e,new me({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:ae.a,searchInfoSvg:w.a.getSvg(w.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return ne.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:ee,containerSelector:".popover-container",title:h.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(t){return e.renderTips(t)}}]}}]),n}(f.a.Component);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 we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(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 Oe(e,t){return(Oe=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ce(this,n)}}function Ce(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 Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=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&&Oe(e,t)}(i,e);var t,n,r,o=ke(i);function i(){return we(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getElement",value:function(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}},{key:"getOptions",value:function(){var e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}},{key:"onRender",value:function(){var e=this.getElement();e.length&&e.tooltip(this.getOptions())}},{key:"onBeforeDetach",value:function(){var e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}},{key:"defaults",get:function(){return{placement:"top"}},set:function(e){}},{key:"ui",get:function(){return this.options.selector?{tooltip:this.options.selector}:{}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&Se(t.prototype,n),r&&Se(t,r),i}(f.a.Behavior),Pe=n(254),xe=n.n(Pe),_e=n(61),Ae=n.n(_e);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 Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 Ie(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ue(e);if(t){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}function De(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 Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=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,o=Ie(i);function i(){return Le(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(y.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(e){var t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(Ae.a.tagFocus):t.removeClass(Ae.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:Ae.a,closeSvg:w.a.getSvg(w.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return xe.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return Ae.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:Re,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(Ae.a.searchContextTag),clearSvg:".".concat(Ae.a.svgContainer)}}}])&&je(t.prototype,n),r&&je(t,r),i}(f.a.Component),ze=n(255),Fe=n.n(ze),Ve=n(256),He=n.n(Ve);function qe(e){return(qe="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 Be(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 Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=We(e);if(t){var o=We(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==qe(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 We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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&&Je(e,t)}(i,e);var t,n,r,o=Ge(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:He.a,closeSvg:w.a.getSvg(w.b.Close)}}},{key:"onClick",value:function(e){var t=this;return e.stopPropagation(),setTimeout((function(){c.Radio.channel(t.options.channelName).trigger("remove:recent",t.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return Fe.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&Be(t.prototype,n),r&&Be(t,r),i}(f.a.Component),Qe=n(257),$e=n.n(Qe);function Xe(e){return(Xe="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 Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(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 tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ot(e);if(t){var o=ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rt(this,n)}}function rt(e,t){return!t||"object"!==Xe(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 ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=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&&tt(e,t)}(i,e);var t,n,r,o=nt(i);function i(){return Ze(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return $e.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&et(t.prototype,n),r&&et(t,r),i}(f.a.Component),at=n(258),ct=n.n(at);function ut(e){return(ut="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 st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(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 ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(e,t){return!t||"object"!==ut(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 dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yt=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&&ft(e,t)}(i,e);var t,n,r,o=pt(i);function i(){return st(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return ct.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&<(t.prototype,n),r&<(t,r),i}(f.a.Component),vt="lazy:load:behavior",mt=n(121),gt=n(132),bt=n(259),wt=n.n(bt),St=n(73),Ot=n.n(St);function kt(e){return(kt="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 Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(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 Rt(e,t){return(Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_t(e);if(t){var o=_t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(e,t){return!t||"object"!==kt(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 _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=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&&Rt(e,t)}(i,e);var t,n,r,o=Pt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"showPlayIcon",value:function(){this.$el.find(".".concat(Ot.a.playSvgContainer)).show()}},{key:"onClick",value:function(e){if(!this.options.appLink&&a.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}},{key:"onImageLoad",value:function(){this.options.channelName&&c.Radio.channel(this.options.channelName).trigger("thumbnail:load")}},{key:"viewOptions",value:function(){var e=this.model.get("duration");return{styles:Ot.a,url:mt.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&>.a.ToDisplayDuration(e),playSvg:w.a.getSvg(w.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}},{key:"onRender",value:function(){if(c.Radio.channel(vt).trigger("update:loader"),this.options.lazyload&&this.options.channelName){var e=this.getUI("img");e.length&&(e[0].onload=a.bind(this.onImageLoad,this))}}},{key:"name",get:function(){return"ThumbnailComponent"}},{key:"template",get:function(){return wt.a}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){if(this.options.classNameOverride)return this.options.classNameOverride;var e="".concat(Ot.a.thumbnailContainer," responsive-img");return this.options.onClickHandler&&(e+=" cursor-pointer"),e}},{key:"elements",get:function(){var e;return Ct(e={},".".concat(Ot.a.playSvgContainer),"showPlayIcon"),Ct(e,"img","img"),e}},{key:"appLinks",get:function(){return this.options.appLink?{"[this]":this.options.appLink}:{}}},{key:"attributes",get:function(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}}])&&Et(t.prototype,n),r&&Et(t,r),i}(f.a.Component),Tt=n(260),Lt=n.n(Tt);function jt(e){return(jt="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 Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(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 Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ut(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){return!t||"object"!==jt(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 zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ft=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&&Dt(e,t)}(i,e);var t,n,r,o=Ut(i);function i(){return Nt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(v.a.SEARCH,this)}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getCollection",value:function(){var e=this.model,t=e.categories,n=e.series;return t&&t.length?{name:t.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return Lt.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&It(t.prototype,n),r&&It(t,r),i}(f.a.Component),Vt=n(116),Ht=n(261),qt=n.n(Ht);function Bt(e){return(Bt="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 Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(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 Kt(e,t){return(Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qt(e);if(t){var o=Qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){return!t||"object"!==Bt(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 Qt(e){return(Qt=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&&Kt(e,t)}(i,e);var t,n,r,o=Wt(i);function i(){return Jt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(v.a.SEARCH,this)}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model,classNameOverride:"".concat(Vt.coverImage," responsive-img")});this.showChildView("cover",e)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:Vt}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return qt.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&Gt(t.prototype,n),r&&Gt(t,r),i}(f.a.Component),Xt=n(229),Zt=n.n(Xt),en=n(230),tn=n.n(en),nn=n(231),rn=n.n(nn),on=n(232),an=n.n(on),cn=n(233),un=n.n(cn),sn=n(234),ln=n.n(sn),fn=n(235),pn=n.n(fn),hn=n(236),dn=n.n(hn),yn=n(262),vn=n.n(yn),mn=n(107),gn=n.n(mn),bn=n(263),wn=n.n(bn),Sn=n(264),On=n.n(Sn);function kn(e){return function(e){if(Array.isArray(e))return Cn(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 Cn(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 Cn(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 Cn(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 En(e){return(En="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 Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(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 xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _n(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tn(e);if(t){var o=Tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return An(this,n)}}function An(e,t){return!t||"object"!==En(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 Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return jn}));var Ln=R,jn=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&&xn(e,t)}(P,e);var t,n,C,R=_n(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=R.call(this,e)).viewCache={},t}return t=P,(n=[{key:"initialize",value:function(){this.contextualSearchService=d.a.getInstance(m.b.ContextualSearch,this),this.appVariables=d.a.getInstance(v.a.SEARCH,this),this.storageHelper=p.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){var e;return Rn(e={submit:"onSubmit"},"click .".concat(gn.a.searchSvgContainer),"onClickSearch"),Rn(e,"click a","onTypeaheadSelect"),Rn(e,"keydown","onKeydown"),e}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:b.a.Component,options:{template:On.a,className:"w-100",viewOptions:{styles:wn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(y.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(y.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(e,t){var n=t.ctor,r=t.viewOptions;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}},{key:"clearViewCache",value:function(){a.each(this.viewCache,(function(e){return e.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(e){var t=this;return e===r.Recent?function(e){return t.getOrCacheView("recent:".concat(e),{ctor:Ye,viewOptions:{model:new f.a.Model({name:e}),channelName:t.channelName}}).render().el}:e===i.Classification?function(e){return t.getOrCacheView(e.id,{ctor:$t,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Video?function(e){return t.getOrCacheView(e.id,{ctor:Ft,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Folder?Zt.a:e===i.Series?function(e){return t.getOrCacheView(e.id,{ctor:it,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Tags?function(e){return t.getOrCacheView(e.id,{ctor:yt,viewOptions:{model:new f.a.Model(e)}}).render().el}:void 0}},{key:"getLimits",value:function(e){return i.Folder,Ln.Folder}},{key:"updateSearchHistory",value:function(e){var t=e.add,n=e.remove,r=e.query;r=r.trim();var o=_.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:Ln.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch){var e=this.getUI("input").typeahead("val");if(e)this.$el.find(".tt-menu").removeClass("hide-results");else{var t=_.getRecentSearches(this.recentSearchKey,this.storageHelper);if(t.length)return;this.$el.find(".tt-menu").addClass("hide-results")}}}},{key:"onDeleteRecentSearch",value:function(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(e,t){return t===i.Series?Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[e.id]}):t===i.Video?Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[e.id]}):t===i.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===i.Classification?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id]}):void 0}},{key:"onTypeaheadSelect",value:function(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),"object"===En(t)&&t.id){var o=this.getInstantSearchAppLink(t,n);if(!o)return!1;var i=s.a.buildInstantSearchEvent(this.model.get("query"),t,n),a=i.data,p=i.action;return l.a.log(u.n.InstantSearch,a,p),this.model.clear(),this.getUI("input").typeahead("close"),c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(o),!1}var h="string"==typeof t?t:t.query;this.model.set({query:h});var d=n===r.Recent?u.c.Recent:u.c.ShowAll;return this.submitQuery(d),!1}},{key:"onClickSearch",value:function(e){return e.stopPropagation(),this.submitQuery(u.c.SearchIcon),!1}},{key:"onSubmit",value:function(e){return e.preventDefault(),this.submitQuery(u.c.Submit),!1}},{key:"submitQuery",value:function(e){this.updateInitialQuery();var t=this.model.get("query");if(t){this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=k(this.searchContext);c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(e,t){var n=s.a.buildSearchEvent(e,t),r=n.data,o=n.action;l.a.log(u.n.Search,r,o)}},{key:"onTypeaheadOpen",value:function(e){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var t=this.model.get("query");t&&t.length>=E&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),S.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||S.hideMask()}},{key:"alignTypeahead",value:function(){var e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(e,t,n,o){o===r.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var e=this.getUI("input");e.on("typeahead:select",a.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",a.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",a.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",a.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",a.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var e=this,t=this.getUI("input");t.on("typeahead:open",a.bind(this.showMask,this)),t.on("typeahead:close",a.bind(this.hideMask,this)),t.on("typeahead:select",a.bind((function(){f.a.AppLinkHelper.trigger(e.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(e){8!==e.keyCode||this.model.get("query")||c.Radio.channel(y.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var e=_.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}},{key:"getDynamicBloodhoundConfig",value:function(){return x.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var e=this,t=J.getTemplate(ln.a,{fallbackTemplate:an.a}),n=J.getTemplate(rn.a,{fallbackTemplate:an.a,templateText:h.a.getPhrase(this.lang,"findingResults")});return function(r,i){return{name:e.getConfigName(r.name),source:J.handleQuery(r.bloodhound,{fetchType:o.Remote}),limit:e.getLimits(r.name),display:function(e){return e.name},async:!0,templates:{header:t,pending:0===i?n:an.a,notFound:an.a,suggestion:e.getDynamicTemplate(r.name),footer:un.a}}}}},{key:"getConfigName",value:function(e){switch(e){case i.Classification:return h.a.getPhrase(this.lang,"classifications");case i.Video:return h.a.getPhrase(this.lang,"videos");case i.Tags:return h.a.getPhrase(this.lang,"tags");case i.Series:return h.a.getPhrase(this.lang,"series")}return e}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var e=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:r.Recent,source:J.handleQuery(this.recentSearchEngine,{fetchType:o.Local,ignoreOnQuery:!0}),limit:Ln.Default,templates:{header:function(){return pn.a({templateText:h.a.getPhrase(e.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(r.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:r.Direct,source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(tn.a,{fallbackTemplate:an.a,templateText:h.a.getPhrase(this.lang,"allResults")}),footer:un.a}}]}},{key:"getDynamicSearchSources",value:function(){var e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return J.getSearchSources([{name:i.Classification,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}},{key:"getSources",value:function(){var e=[].concat(kn(this.getDirectSearchSources()),kn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&e.push.apply(e,kn(this.getRecentSearchSources())),e}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(dn.a,{fallbackTemplate:an.a,templateText:h.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(e){return e.id}))}},{key:"viewOptions",value:function(){return{styles:gn.a,svg:w.a.getSvg(w.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:h.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.showChildView("searchTips",new ge)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),c.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new Me({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),c.Validation.unbind(this)}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return vn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(gn.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"requiredResources",get:function(){return{currentUser:g.b.currentUser,libraryCollection:O.libraries}}}])&&Pn(t.prototype,n),C&&Pn(t,C),P}(f.a.View)},function(e,t,n){"use strict";var r,o=n(123);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 a(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){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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));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,o,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a);n.d(t,"a",(function(){return p}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(397).default},function(e,t){e.exports=v},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<img src="'+c(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+c(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+c(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,t))+'">'+s(u(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+s(e.lambda(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.termContainer:c,t))+'">\r\n'+(null!=(c=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=t?t.description:t))?u:e.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<a class="row" href="'+c(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="w-100 h-100 align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<button type="submit" tabindex="-1" style="display:none"></button>\r\n<span class="search-tips-region '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tipsContainer:i,t))+'"></span>\r\n'},3:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_3RyZE"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,c=t||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=e[o]<<8*(s+r*(a%4));return{value:c,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,c;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,c,u,s,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,c=0;c<e.length;c+=1)for(a=[],128>(i=e.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,c=0;c<e.length;c+=1){for(i=e.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(u=e.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=t.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,c,u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",c=t/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=e[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?e[i+1>>>2]:0,s=i+2<f?e[i+2>>>2]:0,c=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(c+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n){return e^t^n}function u(e,t,n){return e&t^e&n^t&n}function s(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,d,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)y[h]=h<16?e[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,y[h]):l(a(n,5),c(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=s(n,t[0]),t[1]=s(r,t[1]),t[2]=s(o,t[2]),t[3]=s(i,t[3]),t[4]=s(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(t=0;t<c;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,c=i(t);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(e,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return u(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.14"}')},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function p(){}function h(){}var d={};d[o]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(C([])));v&&v!==t&&n.call(v,o)&&(d=v);var m=h.prototype=f.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=m.constructor=h,h.constructor=p,p.displayName=c(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,a,"Generator"),m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,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(398));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(e){return e.replace(/"/g,""")}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=o(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,h=f.formattedHref,d=f.tagName,y=f.className,v=f.target,m=f.attributes,g="<"+d+' href="'+c(h)+'"';y&&(g+=' class="'+c(y)+'"'),v&&(g+=' target="'+c(v)+'"'),m&&(g+=" "+u(m)),g+=">"+a(p)+"</"+d+">",r.push(g)}else r.push(a(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(85),o=c(n(399)),i=c(n(400)),a=c(n(401));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 a.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=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=o,t.parser=a,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},o={defaultProtocol:"http",events:null,format:a,formatHref:a,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:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,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,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},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(223),o=n(111),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}(o);var a="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(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),v=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,v),v.on(s,v);for(var m=0;m<a.length;m++){var g=(0,r.stateify)(a[m],p,o.TLD,o.DOMAIN);l.push.apply(l,g)}var b=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,S),l.push.apply(l,O);var k=b.pop(),C=w.pop(),E=S.pop(),R=O.pop(),P=f(o.DOMAIN),x=f(o.PROTOCOL),_=f(o.MAILTO);C.on("s",P).on(":",x),E.on("s",P).on(":",x),l.push(P),k.on(":",x),P.on(":",x),R.on(":",_);var A=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,A),p.on(c,h),h.on("-",y).on(c,h).on(u,d),d.on("-",y).on(u,d);for(var T=0;T<l.length;T++)l[T].on("-",y).on(u,d);y.on("-",y).on(c,d).on(u,d),p.defaultTransition=f(o.SYM);var L=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=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(e.substr(o-c,c)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(223),o=n(402),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}(o),a=n(111);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),d=c(),y=c(o.URL),v=c(),m=c(o.URL),g=c(o.URL),b=c(),w=c(),S=c(),O=c(),k=c(),C=c(o.URL),E=c(o.URL),R=c(o.URL),P=c(o.URL),x=c(),_=c(),A=c(),T=c(),L=c(),j=c(),N=c(o.EMAIL),I=c(),D=c(o.EMAIL),U=c(o.MAILTOEMAIL),M=c(),z=c(),F=c(),V=c(),H=c(o.NL);u.on(a.NL,H).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),h.on(a.DOT,d),L.on(a.DOT,j),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),j.on(a.TLD,N).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),N.on(a.DOT,j),y.on(a.COLON,v).on(a.SLASH,g),v.on(a.NUM,m),m.on(a.SLASH,g),N.on(a.COLON,I),I.on(a.NUM,D);var q=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],B=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,k),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,k),w.on(a.CLOSEBRACE,g),S.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),C.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),R.on(a.CLOSEANGLEBRACKET,g),P.on(a.CLOSEPAREN,g),x.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),A.on(a.CLOSEANGLEBRACKET,g),T.on(a.CLOSEPAREN,g),w.on(q,C),S.on(q,E),O.on(q,R),k.on(q,P),w.on(B,x),S.on(B,_),O.on(B,A),k.on(B,T),C.on(q,C),E.on(q,E),R.on(q,R),P.on(q,P),C.on(B,C),E.on(B,E),R.on(B,R),P.on(B,P),x.on(q,C),_.on(q,E),A.on(q,R),T.on(q,P),x.on(B,x),_.on(B,_),A.on(B,A),T.on(B,T),g.on(q,g),b.on(q,g),g.on(B,b),b.on(B,b),l.on(a.TLD,U).on(a.DOMAIN,U).on(a.NUM,U).on(a.LOCALHOST,U),U.on(q,U).on(B,M),M.on(q,U).on(B,M);var J=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(J,z).on(a.AT,F),y.on(J,z).on(a.AT,F),d.on(J,z),z.on(J,z).on(a.AT,F).on(a.DOT,V),V.on(J,z),F.on(a.TLD,L).on(a.DOMAIN,L).on(a.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 a=u,c=null,s=null,l=0,f=null,p=-1;n<t&&!(c=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(s=c||a.next(e[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.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(224),o=n(85),i=n(111);function a(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,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.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,o=[],c=0;r[c]instanceof i.PROTOCOL;)t=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},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){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.r(t);n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396);var r=n(2),o=n(0),i=n.n(o),a=n(5),c=n(87),u=n(15);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return(p=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&p(e,t)}(c,e);var t,n,r,i=h(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(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,o.createElement(t,{alerts:r,removeAlert:function(e){return a.Radio.channel(u.a.ALERT).trigger("remove:alert",e)}}))}}}])&&f(t.prototype,n),r&&f(t,r),c}(c.a),m="content",g="popup",b="alert",w="TeacherLayout",S="EmbedLayout",O=n(4),k=n(3);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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 P(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),e}function x(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,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(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 L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){x(n,e);var t=A(n);function n(){return E(this,n),t.apply(this,arguments)}return P(n,[{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/manage":"manageClassroom"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup"]}}]),n}(r.a.AppRouter),N=function(e){x(r,e);var t=A(r);function r(){return E(this,r),t.apply(this,arguments)}return P(r,[{key:"index",value:function(){var e=this;n.e(21).then(n.bind(null,657)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(m,i.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(28).then(n.bind(null,655)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(m,i.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,o=t.tab;["students","groups"].includes(o)||(o="students"),Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(16)]).then(n.bind(null,651)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(m,i.a.createElement(n,{id:e,activeTab:o}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(32)]).then(n.bind(null,620)).then((function(t){var n=t.CreateClassroomView,r={actionType:k.n.Create,entity:k.d.Classroom,workflowPhase:k.o.Complete,location:k.j.Popup};e.layout.showChildView(g,i.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(33)]).then(n.bind(null,621)).then((function(n){var r=n.EditClassroomView,o={actionType:k.n.Edit,entity:k.d.Classroom,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(48).then(n.bind(null,622)).then((function(n){var r=n.DeleteClassroomView,o={actionType:k.n.Delete,entity:k.d.Classroom,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(23)]).then(n.bind(null,623)).then((function(n){var r=n.AddStudentsToClassroomView,o={actionType:k.n.Associate,entity:k.d.Classroom,location:k.j.Popup,descriptor:k.a.User,workflowPhase:k.o.Complete};t.layout.showChildView(g,i.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:o}))}))}},{key:"removeStudents",value:function(e,t){var r=this,o=t.studentIds;n.e(49).then(n.bind(null,624)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:k.n.Dissociate,entity:k.d.Classroom,location:k.j.Popup,descriptor:k.a.User,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(n,{classroomId:e,studentIds:o,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,o=t.addStudents,a=void 0===o?[]:o;Promise.all([n.e(1),n.e(18)]).then(n.bind(null,625)).then((function(t){var n=t.CreateClassroomGroupView,o={entity:k.d.ClassroomGroup,location:k.j.Popup,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(19)]).then(n.bind(null,626)).then((function(n){var o=n.EditClassroomGroupView,a={entity:k.d.ClassroomGroup,actionType:k.n.Edit,location:k.j.Popup,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(47).then(n.bind(null,627)).then((function(n){var o=n.DeleteClassroomGroupView,a={entity:k.d.ClassroomGroup,actionType:k.n.Delete,location:k.j.Popup,workflowPhase:k.o.Complete};r.layout.showChildView(g,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return j}}]),r}(v),I=n(129),D=n(68),U="content",M="popup",z="alert",F=n(35),V=n(11),H={getVideoAppLink:function(e){return{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO,args:[e.id,F.a.slugify(e.name)]}},getSeriesAppLink:function(e){return{application:O.a.DEFAULT,action:V.a.Default.SERIES,args:[e.id,F.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:O.a.CONTENT_UPDATES,action:V.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,F.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:O.a.SUBJECT,action:V.a.Subjects.CLASSIFICATION,args:[e.id,F.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:O.a.DEFAULT,action:V.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},contentUpdatesAppLink:{application:O.a.CONTENT_UPDATES,action:V.a.ContentUpdates.CONTENT_UPDATES}};function q(e){return(q="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 B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(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 G(e,t,n){return t&&J(e.prototype,t),n&&J(e,n),e}function K(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&&W(e,t)}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(e,t){return!t||"object"!==q(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 X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=function(e){K(n,e);var t=Y(n);function n(){return B(this,n),t.apply(this,arguments)}return G(n,[{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}}]),n}(r.a.AppRouter),ee=function(e){K(r,e);var t=Y(r);function r(){return B(this,r),t.apply(this,arguments)}return G(r,[{key:"contentUpdates",value:function(){var e=this,t=[D.a.Share,D.a.AddToPlaylist],r=function(e,t){switch(t){case D.a.AddToPlaylist:return H.getAddToPlaylistAppLink(e);case D.a.Share:return H.getShareAppLink(e)}};Promise.all([n.e(0),n.e(25)]).then(n.bind(null,664)).then((function(n){var i=n.ContentUpdatesView;e.layout.showChildView(U,o.createElement(I.a.Provider,{value:{videoActions:t,getActionAppLink:r}},o.createElement(i,{appLinks:H})))}))}},{key:"classificationUpdate",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(26)]).then(n.bind(null,628)).then((function(t){var n=t.ClassificationUpdateView;r.layout.showChildView(U,o.createElement(n,{classificationId:e,appLinks:H}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return Z}}]),r}(v);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 ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(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 oe(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ie(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&&ae(e,t)}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(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 se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){ie(n,e);var t=ce(n);function n(){return ne(this,n),t.apply(this,arguments)}return oe(n,[{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"dashboard/:id(/:name/)":"dashboard","(/)":"index"}}}]),n}(r.a.AppRouter),fe=function(e){ie(r,e);var t=ce(r);function r(){return ne(this,r),t.apply(this,arguments)}return oe(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(2),n.e(12)]).then(n.bind(null,654)).then((function(t){var n=t.DashboardView;e.layout.showChildView(U,o.createElement(n,null))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0}}}}],[{key:"router",get:function(){return le}}]),r}(r.a.Application),pe=n(89);function he(e){return(he="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 de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(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 ve(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),e}function me(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&&ge(e,t)}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Se(e);if(t){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==he(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 Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){me(n,e);var t=be(n);function n(){return de(this,n),t.apply(this,arguments)}return ve(n,[{key:"channelName",get:function(){return O.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","my-uploads(/)":"myUploads","series/:id(/:slug)":"series","share/:shortCode(/)":"playSharedVideo","favourited-videos(/)":"favouriteVideos","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","editUpload","share"]}}]),n}(r.a.AppRouter),ke=function(e){me(i,e);var t=be(i);function i(){return de(this,i),t.apply(this,arguments)}return ve(i,[{key:"share",value:function(e,t){var r=this;n.e(13).then(n.bind(null,656)).then((function(n){var i=n.ShareView;r.layout.showChildView(M,o.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"playVideo",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(5),n.e(58)]).then(n.bind(null,629)).then((function(t){var n=t.PlayView;r.layout.showChildView(U,o.createElement(n,{id:e}))}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(5),n.e(51)]).then(n.bind(null,630)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(U,o.createElement(r,{shortCode:e}))}))}},{key:"myUploads",value:function(e){var t=this;Promise.all([n.e(0),n.e(8)]).then(n.bind(null,658)).then((function(n){var r=n.MyUploadsView;t.layout.showChildView(U,o.createElement(r,{cursor:e.cursor}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(37)]).then(n.bind(null,631)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(M,o.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(9)]).then(n.bind(null,632)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(M,o.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var i=this;Promise.all([n.e(0),n.e(27)]).then(n.bind(null,666)).then((function(t){var n,a=t.SeriesView;i.layout.showChildView(U,o.createElement(a,{id:e,cursor:null===(n=r)||void 0===n?void 0:n.cursor}))}))}},{key:"favouriteVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,633)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(U,o.createElement(r,{cursor:e.cursor}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new pe.a)}},{key:"notFound",value:function(){var e=this;n.e(55).then(n.bind(null,634)).then((function(t){var n=t.NotFoundView;e.layout.showChildView(U,o.createElement(n,null))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(54).then(n.bind(null,635)).then((function(n){var r=n.ErrorView;e.layout.showChildView(U,o.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(52).then(n.bind(null,636)).then((function(n){var i=n.DialogView;e.layout.showChildView(M,o.createElement(i,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(53).then(n.bind(null,637)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(U,o.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.DEFAULT}}],[{key:"router",get:function(){return Oe}}]),i}(v);function Ce(e){return(Ce="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 Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(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 Pe(e,t,n){return t&&Re(e.prototype,t),n&&Re(e,n),e}function xe(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 Ae(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Le(e);if(t){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==Ce(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 Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){xe(n,e);var t=Ae(n);function n(){return Ee(this,n),t.apply(this,arguments)}return Pe(n,[{key:"channelName",get:function(){return O.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shortCode":"embedVideo"}}}]),n}(r.a.AppRouter),Ne=function(e){xe(r,e);var t=Ae(r);function r(){return Ee(this,r),t.apply(this,arguments)}return Pe(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.a,a=void 0!==i&&i;n.e(46).then(n.bind(null,638)).then((function(n){var r=n.EmbedView;t.layout.showChildView(U,o.createElement(r,{id:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:S}}},{key:"channelName",get:function(){return O.a.EMBED}}],[{key:"router",get:function(){return je}}]),r}(v),Ie=n(72);function De(e){return(De="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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(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 ze(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),e}function Fe(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&&Ve(e,t)}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==De(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 Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Je=function(e){Fe(n,e);var t=He(n);function n(){return Ue(this,n),t.apply(this,arguments)}return ze(n,[{key:"channelName",get:function(){return O.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}}]),n}(r.a.AppRouter),Ge=function(e){Fe(r,e);var t=He(r);function r(){return Ue(this,r),t.apply(this,arguments)}return ze(r,[{key:"index",value:function(e){var t=this;n.e(45).then(n.bind(null,667)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(m,o.createElement(Ie.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}},{key:"channelName",get:function(){return O.a.NOTIFICATIONS}}],[{key:"router",get:function(){return Je}}]),r}(v),Ke=n(130),We=n(45);function Ye(e){return(Ye="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 Qe(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 Xe(e,t,n){return t&&$e(e.prototype,t),n&&$e(e,n),e}function Ze(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&&et(e,t)}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==Ye(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 rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){Ze(n,e);var t=tt(n);function n(){return Qe(this,n),t.apply(this,arguments)}return Xe(n,[{key:"channelName",get:function(){return O.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist"]}}]),n}(r.a.AppRouter),it=function(e){Ze(r,e);var t=tt(r);function r(){return Qe(this,r),t.apply(this,arguments)}return Xe(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:k.j.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.PLAYLIST,args:[e.id,F.a.slugify(e.name)]}},i=function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME,params:{sort:e}}};this.setDefaultQueryParams({sort:e.sort||We.a.Newest}),Promise.all([n.e(6),n.e(14)]).then(n.bind(null,659)).then((function(n){var a=n.PlaylistsView;t.layout.showChildView(U,o.createElement(a,{getPlaylistAppLink:r,key:e.sort,getSortAppLink:i,sort:Ke.a.getSortTypeFromName(e.sort)}))}))}},{key:"playlist",value:function(e,t){var r=this,i=function(e){return{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO,args:[e.id,F.a.slugify(e.name)]}},a=function(e){return{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME}};Promise.all([n.e(0),n.e(6),n.e(34)]).then(n.bind(null,652)).then((function(t){var n=t.PlaylistView;r.layout.showChildView(U,o.createElement(n,{key:e,playlistId:e,application:O.a.PLAYLISTS,getVideoAppLink:i,getSeriesAppLink:a,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(7),n.e(57)]).then(n.bind(null,639)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(M,o.createElement(n,Object.assign({application:O.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(7),n.e(56)]).then(n.bind(null,640)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(M,o.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(42).then(n.bind(null,641)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(M,o.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(29).then(n.bind(null,660)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(M,o.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(43).then(n.bind(null,642)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(M,o.createElement(i,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.PLAYLISTS}}],[{key:"router",get:function(){return ot}}]),r}(v);function at(e){return(at="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 ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(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 st(e,t,n){return t&&ut(e.prototype,t),n&&ut(e,n),e}function lt(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&&ft(e,t)}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(e,t){return!t||"object"!==at(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 dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yt=function(e){lt(n,e);var t=pt(n);function n(){return ct(this,n),t.apply(this,arguments)}return st(n,[{key:"channelName",get:function(){return O.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}}]),n}(r.a.AppRouter),vt=function(e){lt(r,e);var t=pt(r);function r(){return ct(this,r),t.apply(this,arguments)}return st(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(17)]).then(n.bind(null,661)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(U,o.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0}}}},{key:"channelName",get:function(){return O.a.SEARCH}}],[{key:"router",get:function(){return yt}}]),r}(r.a.Application);function mt(e){return(mt="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 gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(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 wt(e,t,n){return t&&bt(e.prototype,t),n&&bt(e,n),e}function St(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&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ct(this,n)}}function Ct(e,t){return!t||"object"!==mt(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 Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rt=function(e){St(n,e);var t=kt(n);function n(){return gt(this,n),t.apply(this,arguments)}return wt(n,[{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences?step=subjects":"preferences","subjects/:id(/:slug)/series":"classificationSeries","subjects/:id(/:slug)":"classification"}}}]),n}(r.a.AppRouter),Pt=function(e){St(r,e);var t=kt(r);function r(){return gt(this,r),t.apply(this,arguments)}return wt(r,[{key:"classification",value:function(e,t){var r=this;Promise.all([n.e(2),n.e(4),n.e(11)]).then(n.bind(null,653)).then((function(t){var n=t.ClassificationView;r.layout.showChildView(m,o.createElement(n,{key:e,id:e}))}))}},{key:"classificationSeries",value:function(e,t,r){var i=this;Promise.all([n.e(4),n.e(44)]).then(n.bind(null,643)).then((function(t){var n=t.ClassificationSeriesListView;i.layout.showChildView(m,o.createElement(n,{id:e,queryParams:r}))}))}},{key:"preferences",value:function(e){var t=this,r=e.step,i=void 0===r?"subjects":r;n.e(15).then(n.bind(null,650)).then((function(e){var n=e.PreferencesView;t.layout.showChildView(m,o.createElement(n,{application:O.a.SUBJECT,step:i}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Rt}}]),r}(v);function xt(e){return(xt="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 _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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 Tt(e,t,n){return t&&At(e.prototype,t),n&&At(e,n),e}function Lt(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&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dt(e);if(t){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(e,t){return!t||"object"!==xt(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 Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){Lt(n,e);var t=Nt(n);function n(){return _t(this,n),t.apply(this,arguments)}return Tt(n,[{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"appRoutes",get:function(){return{"my-uploads(/)":"myUploads"}}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}}]),n}(r.a.AppRouter),Mt=function(e){Lt(r,e);var t=Nt(r);function r(){return _t(this,r),t.apply(this,arguments)}return Tt(r,[{key:"myUploads",value:function(e){var t=this;Promise.all([n.e(0),n.e(8)]).then(n.bind(null,658)).then((function(n){var r=n.MyUploadsView;t.layout.showChildView(m,o.createElement(r,{cursor:e.cursor}))}))}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(9)]).then(n.bind(null,632)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(g,o.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(50).then(n.bind(null,644)).then((function(n){var i=n.CancelUploadView;r.layout.showChildView(g,o.createElement(i,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Ut}}]),r}(v);function zt(e){return(zt="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 Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(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 Ht(e,t,n){return t&&Vt(e.prototype,t),n&&Vt(e,n),e}function qt(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&&Bt(e,t)}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==zt(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 Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=function(e){qt(n,e);var t=Jt(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/teachers(/)":"teacherManager","user-manager/students/upload/review":"studentUploadReview","user-manager/teachers/upload/review":"teacherUploadReview"}}},{key:"appLinks",get:function(){return["newStudent","editStudent","newTeacher","editTeacher","removeUsers"]}}]),n}(r.a.AppRouter),Yt=function(e){qt(r,e);var t=Jt(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Ht(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(20)]).then(n.bind(null,668)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(m,o.createElement(r,{queryParams:e}))}))}},{key:"teacherManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(22)]).then(n.bind(null,669)).then((function(n){var r=n.SchoolTeacherManagerView;t.layout.showChildView(m,o.createElement(r,{queryParams:e}))}))}},{key:"studentUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(24)]).then(n.bind(null,662)).then((function(t){var n=t.StudentUploadReviewView,r={entity:k.d.User,location:k.j.StudentManager,actionType:k.n.Create};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"teacherUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(30)]).then(n.bind(null,663)).then((function(t){var n=t.TeacherUploadReviewView,r={entity:k.d.User,location:k.j.TeacherManager,actionType:k.n.Create};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"newStudent",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(35)]).then(n.bind(null,645)).then((function(t){var n=t.CreateStudentView,r={actionType:k.n.Create,entity:k.d.User,workflowPhase:k.o.Complete,descriptor:k.k.Single,location:k.j.Popup};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editStudent",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(36)]).then(n.bind(null,646)).then((function(n){var r=n.EditStudentView,i={actionType:k.n.Edit,entity:k.d.User,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newTeacher",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(39)]).then(n.bind(null,647)).then((function(t){var n=t.CreateTeacherView,r={actionType:k.n.Create,entity:k.d.User,workflowPhase:k.o.Complete,descriptor:k.k.Single,location:k.j.Popup};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editTeacher",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(40)]).then(n.bind(null,648)).then((function(n){var r=n.EditTeacherView,i={actionType:k.n.Edit,entity:k.d.User,workflowPhase:k.o.Complete,location:k.j.Popup};t.layout.showChildView(g,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeUsers",value:function(e){var t=this,r=e.userIds,i=void 0===r?[]:r,a=e.userType;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(41)]).then(n.bind(null,649)).then((function(e){var n=e.RemoveUserView,r={actionType:k.n.Delete,entity:k.d.User,workflowPhase:k.o.Complete,descriptor:1===i.length?k.k.Single:k.k.Bulk,location:k.j.Popup};t.layout.showChildView(g,o.createElement(n,{userIds:i,userType:a,closePopup:function(){return t.layout.closePopup()},analyticsOptions:r}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Wt}}]),r}(v);function Qt(e){return(Qt="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 $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(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 Zt(e,t,n){return t&&Xt(e.prototype,t),n&&Xt(e,n),e}function en(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&&tn(e,t)}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=on(e);if(t){var o=on(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==Qt(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 on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=function(e){en(n,e);var t=nn(n);function n(){return $t(this,n),t.apply(this,arguments)}return Zt(n,[{key:"channelName",get:function(){return O.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"appLinks",get:function(){return[]}}]),n}(r.a.AppRouter),cn=function(e){en(r,e);var t=nn(r);function r(){return $t(this,r),t.apply(this,arguments)}return Zt(r,[{key:"index",value:function(){var e=this;n.e(38).then(n.bind(null,665)).then((function(t){var n=t.SettingsView;e.layout.showChildView(U,i.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:w,options:{showNav:!0,alertRegion:z}}}},{key:"channelName",get:function(){return O.a.SETTINGS}}],[{key:"router",get:function(){return an}}]),r}(v);var un,sn=n(6),ln=n(1),fn=n(13);!function(e){e.Fifo="FifoMemoryCache"}(un||(un={}));var pn=n(38),hn=n(8);function dn(e){return(dn="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 yn(e){return function(e){if(Array.isArray(e))return vn(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 vn(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 vn(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 vn(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 mn(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 gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wn(this,n)}}function wn(e,t){return!t||"object"!==dn(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 Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var On=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&&gn(e,t)}(i,e);var t,n,r,o=bn(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=o.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=ln.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||hn.c.throw(new fn.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=ln.object(this.cachedkeys,this.cachedkeys),o=[];ln.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),i=ln.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,yn(i))})),o.length&&(o=ln.uniq(o),ln.each(o,(function(e){delete n.cache[e],ln.isFunction(t)&&t(e)})),this.cachedkeys=ln.without.apply(ln,[this.cachedkeys].concat(yn(o))))}},{key:"name",get:function(){return un.Fifo}}])&&mn(t.prototype,n),r&&mn(t,r),i}(pn.a);var kn,Cn=n(22),En=n(63),Rn=n(16),Pn=n(55);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(kn||(kn={}));var xn=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 _n(e){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function An(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 Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ln(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jn(this,n)}}function jn(e,t){return!t||"object"!==_n(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 Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var In=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&&Tn(e,t)}(i,e);var t,n,r,o=Ln(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=o.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:"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=Rn.a.GET);var o=ln.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===Rn.a.POST||n===Rn.a.PUT?JSON.stringify(t):t),o.forceHttps&&(i.url=this.makeHttps(i.url)),o.traditional&&(i.traditional=o.traditional);var a=$.ajax(i);return ln.keys(this.successMiddleware).length&&a.done(ln.values(this.successMiddleware)),ln.keys(this.errorMiddleware).length&&a.fail(ln.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Rn.a.POST).done((function(e,t,n){return r.trigger(o,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,o=t.errorEvent;this.base(e,null,Rn.a.GET).done((function(e,t,o){n.trigger(r,e,t,o)})).fail((function(e,t,r){n.trigger(o,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Rn.a.PUT).done((function(e,t,n){return r.trigger(o,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,o=t.errorEvent;this.base(e,null,Rn.a.DELETE).done((function(e,t,o){return n.trigger(r,e,t,o)})).fail((function(e,t,r){return n.trigger(o,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,t,n){var r=e.responseJSON,o=En.a;switch(o.code=e.status,o.message=xn(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=Pn.a.BadRequest;break;case 401:o.type=Pn.a.Unauthorized;break;case 403:o.type=Pn.a.Forbidden;break;case 404:o.type=Pn.a.NotFound;break;case 500:o.type=Pn.a.InternalServer}return o}},{key:"name",get:function(){return kn.Ajax}}])&&An(t.prototype,n),r&&An(t,r),i}(Cn.Object);var Dn=n(29),Un=n(37),Mn=n(42),zn=n(9),Fn=n(20),Vn=n(14),Hn="locale",qn="phrases",Bn="version",Jn=n(41);function Gn(e){return(Gn="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 Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wn(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 Yn(e,t){return(Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(e,t){return!t||"object"!==Gn(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 Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn=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&&Yn(e,t)}(i,e);var t,n,r,o=Qn(i);function i(){return Kn(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getConfig",value:function(e,t){return this.get({resource:"/api/config",eventPrefix:Fn.a.CONFIG,expiryTime:Jn.a.STANDARD,callback:e,errorCallback:t})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:Bn,callback:e,expiryTime:Jn.a.STANDARD})}},{key:"name",get:function(){return zn.a.Config}},{key:"channelName",get:function(){return Vn.b.CONFIG}}])&&Wn(t.prototype,n),r&&Wn(t,r),i}(Mn.a),er=(zn.a.Config,Vn.b.CONFIG,n(97));function tr(e){return(tr="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 nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(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 or(e,t){return(or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cr(e);if(t){var o=cr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ar(this,n)}}function ar(e,t){return!t||"object"!==tr(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 cr(e){return(cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ur=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&&or(e,t)}(i,e);var t,n,r,o=ir(i);function i(){return nr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:Fn.a.LOCALE,expiryTime:Jn.a.STANDARD,bootstrapName:Hn,callback:function(n){t.locale=n,t.phrases&&ln.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:Fn.a.PHRASES,expiryTime:Jn.a.STANDARD,bootstrapName:qn,callback:function(n){t.phrases=n,t.locale&&ln.isFunction(e)&&e(t)}})}},{key:"name",get:function(){return zn.a.Language}},{key:"channelName",get:function(){return Vn.b.LANGUAGE}}])&&rr(t.prototype,n),r&&rr(t,r),i}(Mn.a);function sr(e){return(sr="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 lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fr(e,t){return(fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dr(e);if(t){var o=dr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hr(this,n)}}function hr(e,t){return!t||"object"!==sr(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 dr(e){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yr=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&&fr(e,t)}(n,e);var t=pr(n);function n(){return lr(this,n),t.apply(this,arguments)}return n}(r.a.Model);function vr(e){return(vr="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 mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(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 br(e,t){return(br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Or(e);if(t){var o=Or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sr(this,n)}}function Sr(e,t){return!t||"object"!==vr(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 Or(e){return(Or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kr=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&&br(e,t)}(i,e);var t,n,r,o=wr(i);function i(){return mr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new yr(e)},resource:"notify",eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return zn.a.NotificationSocket}},{key:"channelName",get:function(){return Vn.b.NOTIFICATIONS_SOCKET}}])&&gr(t.prototype,n),r&&gr(t,r),i}(Mn.a),Cr=n(53),Er=n(7),Rr=n(59),Pr=n(56);function xr(e){return(xr="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ar(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 Tr(e,t){return(Tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nr(e);if(t){var o=Nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jr(this,n)}}function jr(e,t){return!t||"object"!==xr(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 Nr(e){return(Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ir=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&&Tr(e,t)}(i,e);var t,n,r,o=Lr(i);function i(){return _r(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return yr}}])&&Ar(t.prototype,n),r&&Ar(t,r),i}(r.a.Collection);function Dr(e){return(Dr="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 Ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(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 zr(e,t){return(zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hr(e);if(t){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}function Vr(e,t){return!t||"object"!==Dr(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 Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,o=t.cursor,i=t.before,a=[],c=Rr.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},Br=function(e){return"/api/notifications/v1/notifications/".concat(e)},Jr="/api/notifications/v1/notifications",Gr="/api/domain/v1/notifications",Kr=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&&zr(e,t)}(i,e);var t,n,r,o=Fr(i);function i(){return Ur(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:qr(e,t),expiryTime:Jn.a.STANDARD,eventPrefix:n,formatData:function(e){return new Ir(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Pr.a.Read},resource:Br(e),eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Cr().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Pr.a.Seen},resource:"".concat(Jr,"?to=").concat(t,"¬ificationStatus=").concat(Pr.a.Received),eventPrefix:"".concat(Fn.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(Gr),eventPrefix:"".concat(Fn.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(Er.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return zn.a.Notification}},{key:"channelName",get:function(){return Vn.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&Mr(t.prototype,n),r&&Mr(t,r),i}(Mn.a),Wr=n(113),Yr=n(10),Qr=n(96),$r=n(33),Xr=n(34),Zr=n(47),eo=n.n(Zr);function to(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,a=t.message,c=t.heading,u=t.appLink,s=t.appLinkText,l=t.appLinkClassName,f=void 0===l?"":l,p=Object(Qr.sanitize)(a);return o.createElement(o.Fragment,null,o.createElement("div",{className:"d-inline-block ".concat(eo.a.icon)},o.createElement($r.a,{svgName:n,className:"svg-container ".concat(r)})),o.createElement("div",{className:"pl-2 d-inline-block ".concat(eo.a.alertContent)},o.createElement("p",{className:"p-0 m-0 pb-1 ".concat(eo.a.heading)},c),o.createElement("p",{className:"p-0 m-0 ".concat(eo.a.message),dangerouslySetInnerHTML:{__html:p}}),!!u&&o.createElement(Xr.a,{className:f,appLink:u},s)),o.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button","aria-hidden":"true",onClick:i},"×"))}function no(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(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}var oo=function(e){switch(e.type){case Dn.a.Success:return Yr.b.CheckCircleOutline;case Dn.a.Fail:case Dn.a.Warning:return Yr.b.Warning;case Dn.a.Info:default:return Yr.b.Info}};function io(e){var t=e.alert,n=e.closeAlert,r=no(o.useState(!0),2),i=r[0],a=r[1],c=o.useRef();o.useEffect((function(){i?c.current=window.setTimeout(n,3e3):clearTimeout(c.current)}),[i]);var u="text-".concat(t.type.toLowerCase());return o.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(eo.a.alertItem),onMouseEnter:function(){return a(!1)},onMouseLeave:function(){return a(!0)}},o.createElement(to,{alert:t,svgName:oo(t),svgClassName:u,closeAlert:n}))}function ao(e){var t=e.alerts,n=e.removeAlert;return o.createElement("div",{className:eo.a.alertBox},o.createElement(Wr.TransitionGroup,{component:"ul",className:"".concat(eo.a.alertList," list-unstyled")},t&&t.map((function(e,t){return o.createElement(Wr.CSSTransition,{key:t,timeout:200,classNames:"alert"},o.createElement(io,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var co=n(12),uo=n(27);function so(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 lo=function(e){return{url:"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary",key:"libraries",success:e,normalize:!1}},fo=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(uo.a.FOLDER),key:"folder:".concat(e),success:t}},po=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=lo((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),o=co.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&co.a.fetch(this.store.dispatch,n),o.data&&new r.a.Collection(o.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=fo(e,(function(e){return t&&t(new r.a.Model(e))})),o=co.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&co.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return zn.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&so(t.prototype,n),o&&so(t,o),e}();function ho(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 yo=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(uo.a.SERIES),key:"series:".concat(e),success:t}},vo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=yo(e,(function(e){return t&&t(new r.a.Model(e))})),o=co.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&co.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return zn.a.Series}},{key:"channelName",get:function(){return Vn.b.SERIES}}])&&ho(t.prototype,n),o&&ho(t,o),e}(),mo="Success! 🙌",go="Oops...";function bo(e){return("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 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 So(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Co(e);if(t){var o=Co(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return ko(this,n)}}function ko(e,t){return!t||"object"!==bo(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(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}hn.a;function Eo(e){return(Eo="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 Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Po(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 xo(e,t){return(xo=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=To(e);if(t){var o=To(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ao(this,n)}}function Ao(e,t){return!t||"object"!==Eo(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 To(e){return(To=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lo=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&&xo(e,t)}(i,e);var t,n,r,o=_o(i);function i(){return Ro(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&Po(t.prototype,n),r&&Po(t,r),i}(r.a.SilentError);function jo(e){return(jo="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 Io(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 Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zo(e);if(t){var o=zo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(e,t){return!t||"object"!==jo(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 zo(e){return(zo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fo=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&&Do(e,t)}(i,e);var t,n,r,o=Uo(i);function i(){return No(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&Io(t.prototype,n),r&&Io(t,r),i}(r.a.SilentError);function Vo(e){return(Vo="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 Ho(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 qo(e,t){return(qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Go(e);if(t){var o=Go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jo(this,n)}}function Jo(e,t){return!t||"object"!==Vo(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 Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ko=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&&qo(e,t)}(a,e);var t,n,o,i=Bo(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)).dialogOptions||r.a.ErrorHelper.throw(new fn.a("Please provide DialogOptions for your implementation of DialogError")),t}return t=a,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&Ho(t.prototype,n),o&&Ho(t,o),a}(r.a.SilentError);function Wo(e){sn.a.getInstance(Un.a.ALERT).createAlert({heading:go,type:Dn.a.Fail,message:e.message})}function Yo(e){r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:V.a.Default.NOT_FOUND})}function Qo(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:V.a.Default.ERROR})}function $o(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:V.a.Default.DIALOG_ERROR})}var Xo=n(57),Zo=n(39);function ei(e){return(ei="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 ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ni(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 ri(e,t){return(ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ai(e);if(t){var o=ai(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ii(this,n)}}function ii(e,t){return!t||"object"!==ei(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 ai(e){return(ai=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ci=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&&ri(e,t)}(a,e);var t,n,r,i=oi(a);function a(){return ti(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"isReactComponent",value:function(e){return o&&o.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"),Xo.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return Xo.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return Xo.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return o.createElement(Zo.Provider,{store:this.options.store},e)}}])&&ni(t.prototype,n),r&&ni(t,r),a}(n(88).a),ui=n(243),si=n(78),li=n(51),fi=n(31),pi=n(81),hi=n(79),di=n(40),yi=n(120),vi=n(21),mi=n(244),gi=n.n(mi),bi=n(103),wi=n.n(bi);function Si(e){return(Si="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 Oi(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 ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ci(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ei(this,n)}}function Ei(e,t){return!t||"object"!==Si(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 Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pi=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&&ki(e,t)}(i,e);var t,n,r,o=Ci(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:wi.a,svg:Yr.a.getSvg(Yr.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(wi.a.notificationIcon," ").concat(wi.a[this.options.color])}},{key:"template",get:function(){return gi.a}}])&&Oi(t.prototype,n),r&&Oi(t,r),i}(r.a.Component),xi=n(94),_i=n(91),Ai=n(240),Ti=n(248),Li=n.n(Ti),ji=n(226),Ni=n.n(ji),Ii=n(227),Di=n.n(Ii);function Ui(e){return(Ui="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 Mi(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 zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vi(this,n)}}function Vi(e,t){return!t||"object"!==Ui(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 Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qi=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&&zi(e,t)}(i,e);var t,n,r,o=Fi(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:_i.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:Ni.a,className:"px-1 py-2",viewOptions:{styles:Di.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=sn.a.getInstance(zn.b.Notification,this),this.appVariables=sn.a.getInstance(vi.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new Ai.a({collectionPrefix:Fn.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new xi.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}},{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return Li.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&Mi(t.prototype,n),r&&Mi(t,r),i}(r.a.View),Bi=n(249),Ji=n.n(Bi),Gi=n(250),Ki=n.n(Gi);function Wi(e){return(Wi="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 Yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(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 $i(e,t){return($i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ea(e);if(t){var o=ea(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zi(this,n)}}function Zi(e,t){return!t||"object"!==Wi(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 ea(e){return(ea=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&&$i(e,t)}(i,e);var t,n,r,o=Xi(i);function i(){return Yi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=sn.a.getInstance(vi.a.NOTIFICATIONS)}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new qi({childType:xi.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=sn.a.getInstance(zn.b.Notification),t=new Pi({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return Ki.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return Ji.a}}])&&Qi(t.prototype,n),r&&Qi(t,r),i}(r.a.View),na=n(239),ra=n(133),oa=n(237),ia=n(52),aa=n(28),ca=n(48),ua=n(135),sa=n(74),la=n.n(sa),fa=o.memo((function(e){var t=e.user;if(!t)return o.createElement(aa.Button,{variant:"primary",className:"mx-2 px-2"},"Log in");var n=t.avatar,r=t.displayName,i=t.customerName;return o.createElement(ca.a.Provider,{value:"shared.userOptions"},o.createElement("div",{className:"cursor-pointer mx-2 px-2 position-relative","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},o.createElement(ua.a,{imageUrl:n}),o.createElement("nav",{className:"dropdown-menu dropdown-arrow dropdown-menu-right ".concat(la.a.dropdownMenu)},o.createElement("div",{className:"dropdown-item"},o.createElement("div",{className:"m-0"},o.createElement("strong",null,r)),o.createElement("div",{className:"m-0 text-muted"},i)),o.createElement(Xr.a,{className:"dropdown-item",appLink:null},o.createElement("span",{className:"".concat(la.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),o.createElement(ca.b,{phrase:"myProfile"})),o.createElement(Xr.a,{className:"dropdown-item",appLink:null},o.createElement("span",{className:"".concat(la.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),o.createElement(ca.b,{phrase:"myPreferences"})),o.createElement(Xr.a,{className:"dropdown-item",appLink:null},o.createElement("span",{className:"".concat(la.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),o.createElement(ca.b,{phrase:"signOut"})))))}),(function(e,t){var n,r,o,i,a,c,u,s;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(o=e.user)||void 0===o?void 0:o.avatar)===(null===(i=t.user)||void 0===i?void 0:i.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(c=t.user)||void 0===c?void 0:c.displayName)&&(null===(u=e.user)||void 0===u?void 0:u.customerName)===(null===(s=t.user)||void 0===s?void 0:s.customerName)})),pa=n(119),ha=n(32),da=o.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(si.a)(ha.b.VideoUpload),i=o.useRef(null),a=o.useCallback((function(e){e&&(i.current=e)}),[]);return o.createElement(o.Fragment,null,o.createElement(pa.a,{svgName:Yr.b.Upload,className:"btn btn-secondary",onClick:function(e){i.current.value=null,i.current.click(null)}},!n&&o.createElement(ca.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})),o.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!0,accept:"video/*",ref:a,onChange:function(e){return t=e.target.files,r.addFiles(t,{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Start,descriptor:fi.a.mapInteractionType(k.h.FileSelect)});var t}}))})),ya=n(66),va=n.n(ya);function ma(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ga(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 ga(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 ga(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 ba(){return o.createElement("svg",{viewBox:"0 0 434 71"},o.createElement("g",null,o.createElement("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),o.createElement("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})))}function wa(e){var t,n=co.a.useBasicFetch(yi.a.currentUser,{optimize:!0}).data,r=co.a.useBasicFetch(ra.a.presentation()),i=ma(Object(li.a)(ia.a.SEARCH_BAR_LOCATION,!0),1)[0];return o.createElement("nav",{className:"navbar navbar-expanded sticky-top ".concat(va.a.nav)},o.createElement("div",{className:"justify-content-start"},e.showLeftNavToggle&&o.createElement($r.a,{svgName:Yr.b.Handle,className:"".concat(va.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),o.createElement("a",{className:"navbar-brand text-hide align-top ".concat(va.a.logoContainer," d-inline-block'"),href:"/"},o.createElement(ba,null))),i&&o.createElement("div",{className:"justify-content-center"},o.createElement(Ie.a,{className:"container ".concat(va.a.searchBarNavContainer),view:na.a,options:{model:di.a.get("search",{ctor:oa.a}),disableMask:!0,presentationId:null===(t=r.data)||void 0===t?void 0:t.id}})),o.createElement("div",{className:"d-flex align-items-center justify-content-end pr-1 ".concat(va.a.actionButtons)},!!n&&o.createElement(da,{hideButtonText:i}),o.createElement(Ie.a,{view:ta,className:"ml-2 pl-2"}),o.createElement(fa,{user:n})))}var Sa=n(92),Oa=n(122),ka=n(26),Ca=n(83);function Ea(e){var t=e.children,n=e.className,r=void 0===n?"d-inline-block svg-container":n,i=e.tagName,a=void 0===i?"span":i,c=e.size,u=void 0===c?$r.b.Standard:c,s=e.onClick,l=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,h=a,d={className:"".concat(r," ").concat(u),onClick:ka.a.isFunction(s)?s:null};return l?o.createElement(Ca.a,{title:l,placement:p},o.createElement(h,Object.assign({},d),t)):o.createElement(h,Object.assign({},d),t)}var Ra=n(49),Pa=n(17),xa=n.n(Pa);function _a(e){var t=e.application,n=e.action,r=Ra.a.getCurrentRoute();return r||(r=Ra.a.getCurrentContext()),t===r.appLink.application&&n===r.appLink.action}function Aa(e){var t=_a(e.appLink),n=!e.collapsed||t,r=e.collapsed&&t,o=e.icon;return i.a.createElement(Xr.a,{className:"".concat(xa.a.leftNavAnchor," ").concat(e.className," ").concat(n?xa.a.active:xa.a.iconGrey," mt-3"),appLink:e.appLink},i.a.createElement("span",{className:"".concat(xa.a.leftNavIcon)},e.icon?i.a.createElement(Ea,{size:$r.b.Large},i.a.createElement(o,null)):i.a.createElement($r.a,{svgName:e.svgName,size:$r.b.Large})),i.a.createElement("span",{className:"".concat(xa.a.leftNavText," ").concat(r?xa.a.highlightText:"")},e.name))}function Ta(){return i.a.createElement("div",{className:"".concat(xa.a.leftNavAnchor," mt-3")},i.a.createElement("span",{className:"".concat(xa.a.iconGrey," partial-loading-background")}),i.a.createElement("span",{className:"".concat(xa.a.leftNavText," ").concat(xa.a.partialLeftNavItem," mx-1 partial-loading-background")}))}var La=Er.a.encloseNamespace("shared.leftNav");function ja(){return i.a.createElement("svg",{viewBox:"0 0 24 24"},i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("g",{transform:"translate(0.000000, 2.000000)"},i.a.createElement("text",{id:"ABC",fontFamily:"Rubik-Black, Rubik Black",fontSize:"6.6",fontWeight:"700",fill:"#ffffff"},i.a.createElement("tspan",{x:"4.5",y:"10.8"},"ABC")),i.a.createElement("rect",{id:"Rectangle",stroke:"#ffffff",strokeWidth:"1.2",x:"3",y:"1.8",width:"18",height:"13.2",rx:"1.2"}),i.a.createElement("line",{x1:"0.6",y1:"15",x2:"23.4",y2:"15",id:"Line-2",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("circle",{id:"Oval",stroke:"#ffffff",strokeWidth:"1.2",fill:"#000000",cx:"12",cy:"1.2",r:"1"}),i.a.createElement("line",{x1:"11.4",y1:"15",x2:"7.8",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("line",{x1:"16.2",y1:"15",x2:"12.6",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round",transform:"translate(14.400000, 16.800000) scale(-1, 1) translate(-14.400000, -16.800000) "}))))}var Na,Ia={discover:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},playlists:{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME},myUploads:{application:O.a.DEFAULT,action:V.a.Upload.MY_UPLOADS},favouritedVideos:{application:O.a.DEFAULT,action:V.a.Default.FAVOURITE_VIDEOS},classrooms:{application:O.a.CLASSROOMS,action:V.a.Classrooms.HOME},classroom:{application:O.a.CLASSROOMS,action:V.a.Classrooms.CLASSROOM},watchHistory:{application:O.a.DEFAULT,action:V.a.Default.WATCH_HISTORY},settings:{application:O.a.SETTINGS,action:V.a.Settings.HOME}},Da=i.a.memo((function(){var e=co.a.useBasicFetch(Oa.a.getStarredClassrooms());return i.a.createElement("nav",{className:"".concat(xa.a.leftNav," ").concat(xa.a.leftNavExpanded)},i.a.createElement(Sa.Scrollbars,{height:"100%"},i.a.createElement(Aa,{name:La("discover"),appLink:Ia.discover,className:xa.a.discover,svgName:Yr.b.Compass}),i.a.createElement(Aa,{name:La("playlists"),appLink:Ia.playlists,className:xa.a.playlists,svgName:Yr.b.Playlist}),i.a.createElement(Aa,{name:La("myUploads"),appLink:Ia.myUploads,className:xa.a.myUploads,svgName:Yr.b.Upload}),i.a.createElement(Aa,{name:La("favouritedVideos"),appLink:Ia.favouritedVideos,className:xa.a.favouritedVideos,svgName:Yr.b.Heart}),i.a.createElement("hr",null),i.a.createElement(Aa,{name:La("classrooms"),appLink:Ia.classrooms,className:xa.a.classrooms,icon:ja}),e.data?e.data.map((function(e){return i.a.createElement(Aa,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Ia.classroom),{args:[e.id]}),className:xa.a.classroom,svgName:Yr.b.Star})})):i.a.createElement(Ta,null),i.a.createElement("div",{className:xa.a.leftNavBottom},i.a.createElement(Aa,{name:La("watchHistory"),appLink:Ia.watchHistory,className:xa.a.watchHistory,svgName:Yr.b.History}),i.a.createElement(Aa,{name:La("settings"),appLink:Ia.settings,className:xa.a.settings,svgName:Yr.b.Cog}))))})),Ua=Er.a.encloseNamespace("shared.leftNav"),Ma={discover:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},playlists:{application:O.a.PLAYLISTS,action:V.a.Playlists.HOME},myUploads:{application:O.a.DEFAULT,action:V.a.Upload.MY_UPLOADS},favouritedVideos:{application:O.a.DEFAULT,action:V.a.Default.FAVOURITE_VIDEOS},watchHistory:{application:O.a.DEFAULT,action:V.a.Default.WATCH_HISTORY}};function za(){return i.a.createElement("nav",{className:"".concat(xa.a.leftNav," ").concat(xa.a.leftNavCollapsed)},i.a.createElement(Sa.Scrollbars,{height:"100%"},i.a.createElement(Aa,{name:Ua("discover"),appLink:Ma.discover,className:xa.a.discover,svgName:Yr.b.Compass,collapsed:!0}),i.a.createElement(Aa,{name:Ua("playlists"),appLink:Ma.playlists,className:xa.a.playlists,svgName:Yr.b.Playlist,collapsed:!0}),i.a.createElement(Aa,{name:Ua("myUploads"),appLink:Ma.myUploads,className:xa.a.myUploads,svgName:Yr.b.Upload,collapsed:!0}),i.a.createElement(Aa,{name:Ua("favouritedVideos"),appLink:Ma.favouritedVideos,className:xa.a.favouritedVideos,svgName:_a(Ma.favouritedVideos)?Yr.b.Heart:Yr.b.HeartOutline,collapsed:!0}),i.a.createElement(Aa,{name:Ua("watchHistory"),appLink:Ma.watchHistory,className:xa.a.watchHistory,svgName:Yr.b.History,collapsed:!0})))}function Fa(e){return e.navState===Na.Hidden?i.a.createElement(i.a.Fragment,null):e.navState===Na.Collapsed?i.a.createElement(za,null):i.a.createElement(Da,null)}!function(e){e[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(Na||(Na={}));var Va=n(128),Ha=n(238),qa=n(126);function Ba(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ja(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 Ja(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 Ja(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 Ga=n(76),Ka=n.n(Ga);function Wa(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ya(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 Ya(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 Ya(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 Qa(e){return{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO,args:[e.id,F.a.slugify(e.name)]}}function $a(e){var t,n=e.video;return o.createElement("h2",{className:"mb-0 h6"},!!n.series&&o.createElement(Va.a,{video:n,appLink:(t=n.series,{application:O.a.DEFAULT,action:V.a.Default.SERIES,args:[t.id,F.a.slugify(t.name)]})}),o.createElement(Xr.a,{appLink:Qa(n)},n.name))}function Xa(){var e;!function(){var e,t,n=co.a.useBasicFetch(qa.a.config),r=Ba(Object(li.a)(ia.a.WEB_PLAYER_DATA,{webPlayerUrl:(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)||"",video:null,viewportPosition:null,isOnPlayPage:!1}),2)[1];i.a.useEffect((function(){var e;(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)&&r("webPlayerUrl",n.data.webPlayerUrl)}),[null===(t=n.data)||void 0===t?void 0:t.webPlayerUrl])}();var t=Wa(Object(li.a)(ia.a.WEB_PLAYER_DATA),2),n=t[0],r=t[1];if(!(null===(e=n)||void 0===e?void 0:e.video))return o.createElement(o.Fragment,null);var a={},c=Ka.a.fixed;return n.viewportPosition&&(c=Ka.a.inline,a=n.viewportPosition),n.viewportPosition||(c+=" shadow"),o.createElement("div",{style:a,className:"".concat(c)},o.createElement(Ha.a,{id:n.video.id,webPlayerHost:n.webPlayerUrl,className:"embed-responsive-16by9",key:n.video.id}),!n.viewportPosition&&o.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},o.createElement($a,{video:n.video}),o.createElement("span",{className:"".concat(Ka.a.buttons," flex-shrink-1")},o.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){fi.a.logUserAction({id:n.video.id},{location:k.j.FloatingPlayer,entity:k.d.Video,actionType:k.n.Click,descriptor:k.b.Close}),r("video",null)}},o.createElement($r.a,{svgName:Yr.b.Close})),o.createElement(Xr.a,{onClick:function(){fi.a.logUserAction({id:n.video.id},{location:k.j.FloatingPlayer,entity:k.d.Video,actionType:k.n.Click,descriptor:k.b.Open})},appLink:Qa(n.video)},!n.isOnPlayPage&&o.createElement($r.a,{svgName:Yr.b.NewWindow,className:"".concat(Ka.a.flippedIcon," d-inline-block svg-container float-right")})))))}var Za=n(136),ec=n(77),tc=n.n(ec);function nc(){return o.createElement(o.Fragment,null,o.createElement("div",{className:tc.a.dropMask}),o.createElement("div",{className:tc.a.dropContent},o.createElement("div",{className:tc.a.border},o.createElement("h1",null,o.createElement(ca.b,{namespace:"shared.dragMask",phrase:"message"})))),o.createElement("div",{className:tc.a.dropArea}))}var rc=n(50),oc=n.n(rc);function ic(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,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ac(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 ac(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 ac(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 cc=function(e){var t,n=e.showNav,r=e.contentChild,i=e.popupChild,a=e.alertChild,c=ic(o.useState(!1),2),u=c[0],s=c[1];Object(Za.a)();var l=Object(pi.a)(hi.a.XS),f=Object(pi.a)(hi.a.SM),p=Object(pi.a)(hi.a.XXL),h=ic(Object(li.a)(ia.a.WEB_PLAYER_DATA),1)[0];o.useEffect((function(){s(!p)}),[p]);var d=function(e,t,n){return t?{state:e?Na.Hidden:Na.Open,showMask:!e,contentClass:oc.a.hiddenNavContent}:n?{state:e?Na.Collapsed:Na.Open,showMask:!e,contentClass:oc.a.collapsedNavContent}:{state:e?Na.Collapsed:Na.Open,showMask:!1,contentClass:e?oc.a.collapsedNavContent:oc.a.openNavContent}}(u,l,f),y=Object(si.a)(ha.b.VideoUpload),v=o.useCallback((function(e){y.addFiles(e,{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Start,descriptor:fi.a.mapInteractionType(k.h.DragDrop),location:k.j.VideoUpload})}),[]),m=Object(ui.useDropzone)({onDrop:v,noClick:!0,noKeyboard:!0}),g=m.getRootProps,b=m.getInputProps,w=m.isDragActive,S="d-flex flex-column align-items-end",O="";return(null===(t=h)||void 0===t?void 0:t.viewportPosition)?O=oc.a.fixedBottomRightContainer:S+=" ".concat(oc.a.fixedBottomRightContainer),o.createElement("div",Object.assign({},g()),o.createElement(wa,{toggleLeftNav:function(){s(!u)},showLeftNavToggle:n}),n&&o.createElement(Fa,{navState:d.state}),o.createElement("div",{className:"".concat(oc.a.content," ").concat(d.contentClass)},o.createElement("div",{className:"container overflow-hidden-x"},r)),i,d.showMask&&o.createElement("div",{className:"modal-backdrop show ".concat(oc.a.mask)}),o.createElement("div",{className:S},!!a&&o.createElement("div",{className:O},a),o.createElement(Xa,null)),w&&o.createElement(nc,null),o.createElement("input",Object.assign({},b())))};function uc(e){return o.createElement(Zo.Provider,{store:e.store},o.createElement(cc,Object.assign({},e)))}var sc=n(266),lc=n.n(sc);function fc(e){return(fc="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 pc(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 hc(e,t,n){return(hc="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=mc(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function dc(e,t){return(dc=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mc(e);if(t){var o=mc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vc(this,n)}}function vc(e,t){return!t||"object"!==fc(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 gc=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&&dc(e,t)}(a,e);var t,n,r,i=yc(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){return"".concat(w,":").concat(e.showNav)}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[U],popupChild:this.childComponents[M],alertChild:this.childComponents[z],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(M)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){hc(mc(a.prototype),"showChildView",this).call(this,"layout",o.createElement(uc,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return lc.a}}])&&pc(t.prototype,n),r&&pc(t,r),a}(ci);function bc(e){var t=e.contentChild;return o.createElement(o.Fragment,null,t)}function wc(e){var t=e.store;return o.createElement(Zo.Provider,{store:t},o.createElement(bc,Object.assign({},e)))}var Sc=n(267),Oc=n.n(Sc);function kc(e){return(kc="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 Cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ec(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 Rc(e,t,n){return(Rc="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=Ac(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Pc(e,t){return(Pc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ac(e);if(t){var o=Ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _c(this,n)}}function _c(e,t){return!t||"object"!==kc(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 Ac(e){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tc=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&&Pc(e,t)}(a,e);var t,n,r,i=xc(a);function a(){var e;return Cc(this,a),(e=i.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return S}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[U],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(M)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){Rc(Ac(a.prototype),"showChildView",this).call(this,"layout",o.createElement(wc,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return Oc.a}}])&&Ec(t.prototype,n),r&&Ec(t,r),a}(ci);var Lc=n(46);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)}}var Nc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,r;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&jc(t.prototype,n),r&&jc(t,r),e}();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 Dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(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 Mc(e,t,n){return t&&Uc(e.prototype,t),n&&Uc(e,n),e}function zc(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&&Fc(e,t)}function Fc(e,t){return(Fc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qc(e);if(t){var o=qc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hc(this,n)}}function Hc(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 qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bc,Jc=function(e){zc(n,e);var t=Vc(n);function n(){return Dc(this,n),t.apply(this,arguments)}return Mc(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),Gc=function(e){zc(n,e);var t=Vc(n);function n(){return Dc(this,n),t.apply(this,arguments)}return Mc(n,[{key:"model",get:function(){return Jc}}]),n}(r.a.Collection),Kc=n(58);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(Bc||(Bc={}));var Wc=n(25);function Yc(e){return(Yc="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 $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 Xc(e,t){return(Xc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tu(e);if(t){var o=tu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eu(this,n)}}function eu(e,t){return!t||"object"!==Yc(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 tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=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&&Xc(e,t)}(c,e);var t,n,o,i=Zc(c);function c(){return Qc(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.videoDataService=sn.a.getInstance(zn.a.Video,this),this.videoUploadDataService=sn.a.getInstance(zn.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case Kc.a.Completed:case Kc.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),ln.isFunction(t)&&t()}));break;case Kc.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),ln.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){a.Radio.channel(this.channelName).trigger(Wc.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new Gc,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&a.Radio.channel(e.channelName).trigger(Wc.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===Kc.a.Completed&&e.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=ln.map(n,(function(e){return e.masterVideoId.toString()})),i=function(r){ln.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Bc.Processing&&t.set("status",Bc.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&window.setTimeout(ln.bind(e.fetchPendingItems,e),e.getTimeoutLength()),ln.isFunction(t.callback)&&t.callback()};o.length?e.videoDataService.getVideos(o,i):i(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=di.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;ln.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===Kc.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return zn.b.PendingItems}},{key:"channelName",get:function(){return Vn.c.PENDING_ITEMS}}])&&$c(t.prototype,n),o&&$c(t,o),c}(r.a.Service),ru=n(102);function ou(e){return(ou="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 iu(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 au(e,t){return(au=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=su(e);if(t){var o=su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uu(this,n)}}function uu(e,t){return!t||"object"!==ou(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 su(e){return(su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lu=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&&au(e,t)}(i,e);var t,n,r,o=cu(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return t=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=sn.a.getInstance(zn.a.Notification,this),this.notificationSocketService=sn.a.getInstance(zn.a.NotificationSocket,this),this.userDataService=sn.a.getInstance(zn.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=Fn.a.NOTIFICATIONS;this.listenTo(Vn.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(Vn.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(Vn.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(Vn.a.NOTIFICATIONS,ru.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,Fn.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=di.a.get(Fn.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),di.a.get(Fn.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}},{key:"name",get:function(){return zn.b.Notification}}])&&iu(t.prototype,n),r&&iu(t,r),i}(r.a.Service);function fu(e){return(fu="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 pu(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 hu(e,t){return(hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function du(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vu(e);if(t){var o=vu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yu(this,n)}}function yu(e,t){return!t||"object"!==fu(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 vu(e){return(vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mu(e){return(mu="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 bu(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 wu(e,t){return(wu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Su(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var o=ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ou(this,n)}}function Ou(e,t){return!t||"object"!==mu(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 ku(e){return(ku=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cu=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&&wu(e,t)}(i,e);var t,n,r,o=Su(i);function i(){return gu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return kn.Notifications}}])&&bu(t.prototype,n),r&&bu(t,r),i}(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&&hu(e,t)}(i,e);var t,n,r,o=du(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=o.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=$.hubConnection(e.endpoint),t.hub=t.connection.createHubProxy(e.hubName),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=i,(n=[{key:"setProviderOptions",value:function(e){e.logging&&(this.connection.logging=!0),e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(0),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.hub.invoke(this.subscribeEvent,e.Token).done((function(){return t.setConnectionState(1)})).fail((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(e,t){this.isConnectedOrConnecting()&&this.connection.stop(e,t)}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.disconnected((function(){return e.onConnectionError})),this.connection.reconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):this.connection.lastError?console.log("Connection Error. Reason: ".concat(this.connection.lastError)):console.log("Connection Error."),this.setConnectionState(4),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){1===e&&console.log("Connected!"),4===e&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return 0===this.connectionState||1===this.connectionState||2===this.connectionState}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return En.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.hub.invoke(e,t).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;t.errorEvent,this.hub.on(e,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];n.trigger.apply(n,[r].concat(t))}))}}])&&pu(t.prototype,n),r&&pu(t,r),i}(Cn.Object));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 Ru(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pu(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 xu(e,t){return(xu=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tu(e);if(t){var o=Tu(this).constructor;n=Reflect.construct(r,arguments,o)}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 Tu(e){return(Tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lu=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&&xu(e,t)}(c,e);var t,n,o,i=_u(c);function c(){return Ru(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(Vn.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(Vn.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(e,t){t.isAppRoute&&this.setSearchContext(e)}},{key:"onTypeaheadToggle",value:function(e){if(!e.open&&!this.searchContext.get("filterValue")){var t=Ra.a.getCurrentContext().appLink;this.setSearchContext(t)}}},{key:"setSearchContext",value:function(e){var t=this.isValidSearchContext(e);t?this.updateSearchContext(t,e.args):this.inSearchView(e)||a.Radio.channel(Vn.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}},{key:"setFilterValue",value:function(e){var t={filterValue:e,title:e};this.searchContext.set(t)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(e){return this.appVariables||(this.appVariables=sn.a.getInstance(vi.a.SEARCH,this)),ln.find((t=this.lang,n=this.appVariables.appLinks,r=[],n.folder&&r.push({appLink:n.folder,searchTag:Er.a.getPhrase(t,"folderTag"),filterParam:"folder",setFilterValue:function(e,t){sn.a.getInstance(zn.a.Library,t).getFolder(ln.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.get("name")),sn.a.releaseInstance(zn.a.Library)}))}}),n.series&&r.push({appLink:n.series,searchTag:Er.a.getPhrase(t,"seriesTag"),filterParam:"series",setFilterValue:function(e,t){sn.a.getInstance(zn.a.Series,t).getSeries(ln.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.name),sn.a.releaseInstance(zn.a.Series)}))}}),r),(function(t){return e.application===t.appLink.application&&e.action===t.appLink.action}));var t,n,r}},{key:"inSearchView",value:function(e){var t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}},{key:"name",get:function(){return zn.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Pu(t.prototype,n),o&&Pu(t,o),c}(r.a.Service),ju=n(124);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)}}var Iu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:co.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){ka.a.isFunction(t)&&t(new r.a.Collection(e))},o=ju.a.videos(e,n),i=co.a.getResponse(this.store.getState(),o.key);return i.shouldFetch?co.a.fetch(this.store.dispatch,o):n(i.data),new r.a.Collection(i.data)}},{key:"name",get:function(){return ha.a.Video}}])&&Nu(t.prototype,n),o&&Nu(t,o),e}();function Du(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 Uu,Mu,zu=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Rn.a.DELETE}},Fu=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Rn.a.DELETE}},Vu=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Rn.a.POST}},Hu=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},qu=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},Bu=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:Rn.a.POST,success:t,data:e}},Ju=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){co.a.fetch(this.store.dispatch,zu(e,t))}},{key:"cancelPendingItems",value:function(e,t){co.a.fetch(this.store.dispatch,Fu(e,t))}},{key:"retryPendingItems",value:function(e,t){co.a.fetch(this.store.dispatch,Vu(e,t))}},{key:"getPendingItem",value:function(e,t){co.a.fetch(this.store.dispatch,Hu(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){co.a.fetch(this.store.dispatch,qu(e))}},{key:"completeVideoUpload",value:function(e,t){co.a.fetch(this.store.dispatch,Bu(e,t))}},{key:"name",get:function(){return ha.a.VideoUpload}}])&&Du(t.prototype,n),o&&Du(t,o),e}(),Gu=n(134);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(Uu||(Uu={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Mu||(Mu={}));var Ku=["pdf"],Wu=["doc","docx","dotx","dot","rtf","docm","odt"],Yu=["csv","txt"],Qu=["xls","xlt","xlsx"],$u=["jpg","tif","png","bmp","gif","jpeg"],Xu=["zip","rar"],Zu=["ppt","pot","pps","pptx"],es=["srt"],ts={IMAGES:".".concat($u.join(",.")),RESOURCES:".".concat([].concat(Wu,Qu,Zu,Ku,Yu,$u,Xu).join(",.")),SUBTITLES:".".concat(es.join(",."))};function ns(e){return(ns="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 rs(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 os(e,t){return(os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function is(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cs(e);if(t){var o=cs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return as(this,n)}}function as(e,t){return!t||"object"!==ns(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 cs(e){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var us=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&&os(e,t)}(i,e);var t,n,r,o=is(i);function i(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:Er.a.getPhrase(this.lang,"heading"),text:Er.a.getPhrase(this.lang,"body"),buttons:[{text:Er.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:Er.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&rs(t.prototype,n),r&&rs(t,r),i}(Ko),ss=n(117);function ls(e){return(ls="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 fs(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 ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hs(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ys(e);if(t){var o=ys(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ds(this,n)}}function ds(e,t){return!t||"object"!==ls(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 ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vs=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&&ps(e,t)}(i,e);var t,n,r,o=hs(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Er.a.getPhrase("upload.internetConnectivityError","title"))}return t=i,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:Er.a.getPhrase("upload.internetConnectivityError","heading"),text:Er.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:Er.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&fs(t.prototype,n),r&&fs(t,r),i}(Ko);function ms(e){return(ms="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 gs(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 bs(e,t){return(bs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ws(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Os(e);if(t){var o=Os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(e,t){return!t||"object"!==ms(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 Os(e){return(Os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ks,Cs,Es=[],Rs=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&&bs(e,t)}(c,e);var t,n,o,i=ws(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,o=[{key:"isValidFile",value:function(e,t){return ss.isValidFile(e,t)}}],(n=[{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=a.Radio.channel(e.channelName),o=this;this.dropzone=new ss(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(ln.each(Es,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(t,o,n)}))})),this.on("uploadprogress",(function(e,t,r){var i=r/e.size*100;n.trigger("progress",o.getId(e),i,r)})),this.on("success",(function(e){var t=e.upload.chunks,r=ln.last(t),o=r.xhr;o||(o=r.file.xhr);var i=JSON.parse(o.response);e.cvUpload.fileUrl=i.url,n.trigger("upload:success",e,i)})),this.on("error",(function(e,t,n){n&&0===n.status?r.a.ErrorHelper.throw(new vs):"canceled"!==e.status&&r.a.ErrorHelper.throw(new Lo(Er.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}},{key:"name",get:function(){return"DropzoneWrapper"}}])&&gs(t.prototype,n),o&&gs(t,o),c}(r.a.Service);function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xs(e){return(xs="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 As(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 Ts(e,t,n){return t&&As(e.prototype,t),n&&As(e,n),e}function Ls(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&&js(e,t)}function js(e,t){return(js=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ns(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ds(e);if(t){var o=Ds(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Is(this,n)}}function Is(e,t){return!t||"object"!==xs(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 Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Us,Ms=function(e){Ls(n,e);var t=Ns(n);function n(){return _s(this,n),t.call(this,{dataProvider:sn.a.getInstance(kn.Ajax),cache:sn.a.getInstance(un.Fifo),alertService:sn.a.getInstance(Un.a.ALERT)})}return Ts(n,[{key:"requestUploads",value:function(e,t,n,r){var o=this,i=this.chain();ln.each(e,(function(e){i.create({resource:"/api/upload",eventPrefix:"request:upload",data:o.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),i.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){sn.a.releaseInstance(kn.Ajax).releaseInstance(un.Fifo)}},{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}}]),n}(Mn.a);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(Us||(Us={}));var zs,Fs,Vs=(Ps(ks={},Us.Video,"video/*"),Ps(ks,Us.LearningResource,ts.RESOURCES),Ps(ks,Us.Subtitle,ts.SUBTITLES),ks),Hs=(Ps(Cs={},Us.Video,Vn.c.VIDEO_UPLOAD),Ps(Cs,Us.LearningResource,Vn.c.RESOURCE_UPLOAD),Ps(Cs,Us.Subtitle,Vn.c.SUBTITLE_UPLOAD),Cs),qs=function(e){Ls(n,e);var t=Ns(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ts(n,[{key:"initialize",value:function(){this.uploadDataService=new Ms,this.progressViewModel=di.a.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new Rs({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new r.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return Rs.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;ln.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new us(Er.a.getPhrase(this.lang,"invalidFileType"),e,this.getAcceptedFiles())):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),o=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===Us.Video&&(r=r.replace(/\.[^/.]+$/,"")),o.add({id:n.uploader.getId(e),file:e,name:r},{at:o.length-1})}),(function(){t&&fi.a.logUserAction({uploadCount:e.length},t),a.Radio.channel(n.channelName).trigger(Wc.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var o=r.get("file");this.uploader.removeFile(o),n.remove(r),this.uploadDataService.cancelUpload(o.cvUpload.uploadId,o.cvUpload.ingestUrl,(function(){fi.a.logUserAction({id:o.cvUpload.uploadId},{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Discard,descriptor:k.k.Single,location:k.j.MyUploads}),a.Radio.channel(t.channelName).trigger(Wc.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),fi.a.logUserAction({id:e.cvUpload.uploadId},{entity:k.d.Video,actionType:k.n.Upload,workflowPhase:k.o.Complete,descriptor:k.k.Single,location:k.j.VideoUpload}),a.Radio.channel(this.channelName).trigger(Wc.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));ln.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return Vs[this.uploadType]}},{key:"channelName",get:function(){return Hs[this.uploadType]}},{key:"lang",get:function(){return"upload.services"}}]),n}(r.a.Service),Bs=function(e){Ls(n,e);var t=Ns(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ts(n,[{key:"uploadType",get:function(){return Us.Video}},{key:"name",get:function(){return zn.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Mu.Temporary}}]),n}(qs);function Js(e){return(Js="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 Gs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ks(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 Ws(e,t,n){return(Ws="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=Xs(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Ys(e,t){return(Ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qs(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xs(e);if(t){var o=Xs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $s(this,n)}}function $s(e,t){return!t||"object"!==Js(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 Xs(e){return(Xs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(zs||(zs={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Fs||(Fs={}));var Zs=Er.a.encloseNamespace("upload.services"),el=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,o=Qs(i);function i(){return Gs(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Ws(Xs(i.prototype),"initialize",this).call(this),this.videoUploadDataService=sn.a.getInstance(ha.a.VideoUpload,this),this.pendingItemsService=sn.a.getInstance(ha.b.PendingItems,this),this.userDataService=sn.a.getInstance(ha.a.User,this),this.alertService=sn.a.getInstance(Un.a.ALERT,this),this.listenTo(this.channelName,Wc.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,Wc.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,Wc.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:Dn.a.Success,heading:Zs("startUploadAlertHeading"),message:1===e.length?Zs("startUploadSingleAlertBody",{videoName:e[0].name}):Zs("startUploadMultipleAlertBody",{uploadCount:e.length})};Ra.a.getCurrentContext().appLink.application===O.a.UPLOAD||(t.appLinkText=Zs("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:O.a.UPLOAD,action:V.a.Upload.MY_UPLOADS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||a.Radio.channel(this.channelName).trigger(Wc.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(o){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:o.id,categoryId:o.categoryTree.id,pendingProcessOrigin:Uu.Upload,origin:zs.Lite,fileUrl:t.url,subtitleOptions:{subtitleExtractOptions:Fs.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Ws(Xs(i.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&Ks(t.prototype,n),r&&Ks(t,r),i}(Bs);function tl(e){return(tl="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 nl(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 rl(e,t){return(rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ol(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=al(e);if(t){var o=al(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return il(this,n)}}function il(e,t){return!t||"object"!==tl(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 al(e){return(al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cl=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&&rl(e,t)}(i,e);var t,n,r,o=ol(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=o.call(this,e)).imageUrls=e.imageUrls,t}return t=i,(n=[{key:"getImageUrls",value:function(){return this.imageUrls}},{key:"name",get:function(){return zn.b.ImageUrl}}])&&nl(t.prototype,n),r&&nl(t,r),i}(r.a.Service),ul={EmptyStates:{VIDEOS:""},ErrorViews:{DEFAULT:""}};var sl=n(109),ll=n(36),fl=n(90);function pl(e,t){return ll.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var hl={version:null};function dl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hl,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case fl.a.API_REPONSE:return pl(e,t)}return e}var yl=n(99);function vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ml(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),vl({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),vl({},t.payload.dataOrKey,t.payload.keyData)))):Object.assign(Object.assign({},e),vl({},t.payload.viewModelKey,t.payload.dataOrKey))}function gl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case yl.a.UPDATE:return ml(e,t)}return e}var bl=n(93),wl=n(86);function Sl(e,t){var n,r,o,i=Object(sl.combineReducers)({flightData:co.a.FlightReducer,applicationData:dl,viewModelData:gl}),a=co.a.createMiddleware({fetchData:co.a.ajaxRequest,bootstrappedData:window.bootstrapData,defaultExpiryTime:Jn.a.STANDARD}),c=(n={oldVersionError:new fn.a("A new version is available"),authenticationError:new fn.a("Authentication Error")},r=n.oldVersionError,o=n.authenticationError,function(e){return function(t){return function(n){var i,a,c,u;if(n.type===bl.Actions.API_REPONSE){var s=n,l=e.getState().applicationData.version,f=null===(a=null===(i=s)||void 0===i?void 0:i.xhr)||void 0===a?void 0:a.getResponseHeader("X-App-Version");r&&l&&f&&f!==l&&hn.c.throw(r),o&&(null===(u=null===(c=s)||void 0===c?void 0:c.xhr)||void 0===u?void 0:u.status)===wl.a.Unauthorized&&hn.c.throw(o),t(n)}else t(n)}}});var u,s=Object(sl.createStore)(i,Object(sl.applyMiddleware)(a,c));u=s,e.registerStore(u),t(),delete window.bootstrapData}var Ol=n(82);function kl(e){return(kl="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 Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(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 Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pl(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_l(e);if(t){var o=_l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xl(this,n)}}function xl(e,t){return!t||"object"!==kl(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 _l(e){return(_l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Al=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&&Rl(e,t)}(i,e);var t,n,r,o=Pl(i);function i(){return Cl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:O.a.SEARCH,action:V.a.Search.HOME},series:{application:O.a.DEFAULT,action:V.a.Default.SERIES},videoDetails:{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO},tagSearch:{application:O.a.SEARCH,action:V.a.Search.HOME},classification:{application:O.a.SUBJECT,action:V.a.Subjects.CLASSIFICATION}}}}])&&El(t.prototype,n),r&&El(t,r),i}(Ol.b),Tl=n(30);function Ll(e){return(Ll="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 jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(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 Il(e,t){return(Il=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dl(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ml(e);if(t){var o=Ml(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ul(this,n)}}function Ul(e,t){return!t||"object"!==Ll(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 Ml(e){return(Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zl=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&&Il(e,t)}(i,e);var t,n,r,o=Dl(i);function i(){return jl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:O.a.DEFAULT,action:V.a.Default.PLAY_VIDEO},notifications:{application:O.a.NOTIFICATIONS,action:V.a.Notifications.HOME},pastReleases:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},awaitingReview:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME},editStaffRequest:{application:O.a.DASHBOARD,action:V.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Tl.a.VideoReviewReminder,Tl.a.VideoReviewAddedToLibrary,Tl.a.CustomLibraryVideoAvailable,Tl.a.WorkspaceVideoAvailable,Tl.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return""}},{key:"bellIconColor",get:function(){return"dark"}}])&&Nl(t.prototype,n),r&&Nl(t,r),i}(Ol.a);var Fl=n(18);function Vl(e){return(Vl="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)}var Hl={register:function(){var e=this;Fl.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return Er.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new fn.a("No language key provided.")),!1):"object"!==Vl(t)?(r.a.ErrorHelper.throw(new fn.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!ln.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new fn.a("No `lang` property provided.")),!1)}};var ql,Bl=n(84);function Jl(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[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other"}(ql||(ql={}));var Gl={curriculum:!1},Kl=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({onlineModules:Gl},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return zn.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Bl.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Jl(t.prototype,n),r&&Jl(t,r),e}();var Wl=n(54),Yl=n(101),Ql=n(100);function $l(e){return("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 Xl(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 Zl(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ef(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nf(e);if(t){var o=nf(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return tf(this,n)}}function tf(e,t){return!t||"object"!==$l(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(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.a.Service;function rf(e){return("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 of(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 af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cf(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&&uf(e,t)}function uf(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ff(e);if(t){var o=ff(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return lf(this,n)}}function lf(e,t){return!t||"object"!==rf(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 ff(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Cn.Object;function pf(e){return(pf="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 hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function df(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 yf(e,t){return(yf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gf(e);if(t){var o=gf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mf(this,n)}}function mf(e,t){return!t||"object"!==pf(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 bf=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&&yf(e,t)}(i,e);var t,n,r,o=vf(i);function i(){return hf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===i.type}}])&&df(t.prototype,n),r&&df(t,r),i}(r.a.Service);bf.type="BaseAnalyticsEnricher";n(112);var wf="URLSearchParams"in self,Sf="Symbol"in self&&"iterator"in Symbol,Of="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),kf="FormData"in self,Cf="ArrayBuffer"in self;if(Cf)var Ef=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Rf=ArrayBuffer.isView||function(e){return e&&Ef.indexOf(Object.prototype.toString.call(e))>-1};function Pf(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function xf(e){return"string"!=typeof e&&(e=String(e)),e}function _f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Sf&&(t[Symbol.iterator]=function(){return t}),t}function Af(e){this.map={},e instanceof Af?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Tf(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Lf(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function jf(e){var t=new FileReader,n=Lf(t);return t.readAsArrayBuffer(e),n}function Nf(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function If(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Of&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:kf&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:wf&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Cf&&Of&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Nf(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Cf&&(ArrayBuffer.prototype.isPrototypeOf(e)||Rf(e))?this._bodyArrayBuffer=Nf(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):wf&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Of&&(this.blob=function(){var e=Tf(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Tf(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(jf)}),this.text=function(){var e,t,n,r=Tf(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Lf(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},kf&&(this.formData=function(){return this.text().then(Mf)}),this.json=function(){return this.text().then(JSON.parse)},this}Af.prototype.append=function(e,t){e=Pf(e),t=xf(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Af.prototype.delete=function(e){delete this.map[Pf(e)]},Af.prototype.get=function(e){return e=Pf(e),this.has(e)?this.map[e]:null},Af.prototype.has=function(e){return this.map.hasOwnProperty(Pf(e))},Af.prototype.set=function(e,t){this.map[Pf(e)]=xf(t)},Af.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Af.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),_f(e)},Af.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),_f(e)},Af.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),_f(e)},Sf&&(Af.prototype[Symbol.iterator]=Af.prototype.entries);var Df=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Uf(e,t){var n,r,o=(t=t||{}).body;if(e instanceof Uf){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Af(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Af(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Df.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Mf(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function zf(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new Af(t.headers),this.url=t.url||"",this._initBody(e)}Uf.prototype.clone=function(){return new Uf(this,{body:this._bodyInit})},If.call(Uf.prototype),If.call(zf.prototype),zf.prototype.clone=function(){return new zf(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Af(this.headers),url:this.url})},zf.error=function(){var e=new zf(null,{status:0,statusText:""});return e.type="error",e};var Ff=[301,302,303,307,308];zf.redirect=function(e,t){if(-1===Ff.indexOf(t))throw new RangeError("Invalid status code");return new zf(null,{status:t,headers:{location:e}})};var Vf=self.DOMException;try{new Vf}catch(e){(Vf=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Vf.prototype.constructor=Vf}function Hf(e,t){return new Promise((function(n,r){var o=new Uf(e,t);if(o.signal&&o.signal.aborted)return r(new Vf("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Af,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new zf(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new Vf("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(Of?i.responseType="blob":Cf&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Hf.polyfill=!0,self.fetch||(self.fetch=Hf,self.Headers=Af,self.Request=Uf,self.Response=zf);n(268),n(269);function qf(e){return(qf="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)}var Bf,Jf=function(e){var t=qf(e);return"function"===t||"object"===t&&!!e};!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(Bf||(Bf={}));var Gf,Kf;Bf.CvApSoutheast1,Bf.CvApSoutheast2,Bf.CvEuWest1;function Wf(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.AU="au",e.NZ="nz",e.UK="uk"}(Gf||(Gf={}));Wf(Kf={},Gf.AU,Bf.CvApSoutheast1),Wf(Kf,Gf.NZ,Bf.CvApSoutheast2),Wf(Kf,Gf.UK,Bf.CvEuWest1);function Yf(e){return(Yf="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 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 $f(e,t){return($f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xf(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ep(e);if(t){var o=ep(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zf(this,n)}}function Zf(e,t){return!t||"object"!==Yf(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 ep(e){return(ep=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tp=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,o=Xf(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===i.type}}])&&Qf(t.prototype,n),r&&Qf(t,r),i}(r.a.Service);tp.type="BaseAnalyticsClient";var np=function(){return!0},rp=function(){return!1};var op=function(e){return e};function ip(e){if(e&&e.code)return e.code}function ap(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.id){var n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}}function cp(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var up,sp,lp,fp=function(e){var t=e.model,n={id:t.id,year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=ip(t.rating),o=ap(t.series),i=cp(t.categories),a=ap(t.owner,{ignoreTitle:!0}),c=ap(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},pp={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===k.d.Video)return pp.formatVideoUpload(e,t);if(n===k.d.Resource||n===k.d.Subtitle)return pp.formatResourceUpload(e);if(n===k.d.Banner||n===k.d.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===k.o.Start?pp.getStartVideoUploadData(e):n===k.o.Discard?pp.getDiscardVideoUploadData(e):n===k.o.Complete?pp.getCompleteUploadData(e):void 0},getStartVideoUploadData:function(e){return e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map((function(t){return{fileName:t.name,size:t.size,type:t.type,count:e.length}}))):[]},getDiscardVideoUploadData:function(e){var t=function(t){var n=t.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(e)?e.length:1,type:r,status:i};return t.progress&&(c.progress=t.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(e)?e.map((function(e){return t(e)})):[t(e)]},getCompleteUploadData:function(e){return e&&e.length?e.map((function(t){return{fileName:t.fileName,libraryId:t.libraryId,folderId:t.folderId,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return Jf(e.metadata)&&(t.type=e.metadata.type),t}};function hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dp;hp(up={},k.n.Navigate,rp),hp(up,k.n.Click,np),hp(up,k.n.Search,np),hp(up,k.n.InstantSearch,np),hp(up,k.n.Play,np),hp(up,k.n.Stream,np),hp(up,k.n.Rename,np),hp(up,k.n.Move,np),hp(up,k.n.Create,np),hp(up,k.n.Delete,np),hp(up,k.n.Associate,np),hp(up,k.n.Dissociate,np),hp(up,k.n.Filter,np),hp(up,k.n.Sort,np),hp(up,k.n.Approve,np),hp(up,k.n.Reject,np),hp(up,k.n.Disable,np),hp(up,k.n.Upload,np),hp(up,k.n.Download,rp),hp(up,k.n.SetAccess,np),hp(up,k.n.AddToLocalCache,rp),hp(up,k.n.Share,np),hp(up,k.n.Edit,np),hp(up,k.n.Suggest,np),hp(up,k.n.ResolveWarning,np),hp(up,k.n.DismissWarning,np),hp(up,k.n.EditAssoc,np),hp(sp={},k.n.Search,op),hp(sp,k.n.InstantSearch,op),hp(sp,k.n.Play,op),hp(sp,k.n.Stream,fp),hp(sp,k.n.Click,op),hp(sp,k.n.Filter,op),hp(sp,k.n.Sort,op),hp(sp,k.n.SetAccess,op),hp(sp,k.n.Approve,op),hp(sp,k.n.Reject,op),hp(sp,k.n.Create,op),hp(sp,k.n.Delete,op),hp(sp,k.n.Rename,op),hp(sp,k.n.Move,op),hp(sp,k.n.Edit,op),hp(sp,k.n.Share,op),hp(sp,k.n.Disable,op),hp(sp,k.n.Suggest,op),hp(sp,k.n.Upload,pp.getUploadData),hp(sp,k.n.ResolveWarning,op),hp(sp,k.n.DismissWarning,op),hp(lp={},k.n.Search,"search"),hp(lp,k.n.InstantSearch,"search"),hp(lp,k.n.Filter,"filter");!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(dp||(dp={}));var yp=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});yp.addInitializationStep(Sl).addInitializationStep((function(e,t){e.registerLayout(w,gc).registerLayout(S,Tc),t(e)})).addInitializationStep((function(e,t){sn.a.registerInstance(On,{size:100}),t(e)})).addInitializationStep((function(e,t){sn.a.registerInstance(Al).registerInstance(zl),t(e)})).addInitializationStep((function(e,t){sn.a.registerInstance(In,{}),t(e)})).addInitializationStep(Sl).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:mo,type:Dn.a.Success},defaultErrorAlert:{heading:go,type:Dn.a.Fail},alertViewCtor:ao};sn.a.registerSingleton(new Dn.b(n));var r=sn.a.getInstance(Un.a.ALERT),o={cache:un.Fifo,dataProvider:kn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};sn.a.registerDataService(Zn,o).registerDataService(er.a,o).registerDataService(ur,o).registerDataService(Kr,o);var i={store:e.store};sn.a.registerInstance(po,i).registerInstance(vo,i);var a={cache:un.Fifo,dataProvider:kn.Notifications,alertService:r};sn.a.registerDataService(kr,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new Lu;sn.a.registerInstance(cl,{imageUrls:ul}).registerInstance(el).registerInstance(Iu,{store:e.store}).registerInstance(Ju,{store:e.store}).registerInstance(nu).registerInstance(Gu.a).registerInstance(lu).registerSingleton(n);var r=new Nc(2),o=function(){r.decrement(),r.getValue()>0||(sn.a.releaseInstance(zn.a.Language),sn.a.releaseInstance(zn.a.Config),t(e))};sn.a.getInstance(zn.a.Language).getLanguageConfig((function(e){Er.a.setConfig(e),o()})),sn.a.getInstance(zn.a.Config).getConfig((function(e){sn.a.registerInstance(Cu,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notificationHub",logging:!0}),o()}))})).addInitializationStep((function(e,t){e.registerApplication(ke).registerApplication(it).registerApplication(fe).registerApplication(Pt).registerApplication(Ne).registerApplication(Ge).registerApplication(vt).registerApplication(ee).registerApplication(Yt).registerApplication(Mt).registerApplication(N).registerApplication(cn),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:ln.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Hl.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Fo,Qo).registerErrorHandler(Ko,$o).registerErrorHandler(Lo,Wo).registerErrorHandler(pe.a,Yo),t()})).addInitializationStep((function(e,t){sn.a.registerSingleton(new Kl({onlineRole:Bl.a.Staff,customerType:ql.Primary})),t(e)})),yp.addStartUpStep((function(e,t,n){sn.a.getInstance(zn.a.Config).getConfig((function(r){Lc.a.setUpVariables({isDevelopment:!1}),n(e,t),sn.a.releaseInstance(zn.a.Config)}))})),yp.start()},function(e,t){e.exports=m},function(e,t){e.exports=g},function(e,t){e.exports=b},function(e,t){e.exports=w},function(e,t){e.exports=S},function(e,t){e.exports=O}])}));
|