@clickview/library-editor 1.1.23 → 1.1.24-rc.1
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/css/13.chunk.css +2 -2
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +38 -2
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +4 -0
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +3 -3
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +9 -0
- package/dist/libs/shared/src/constants/AppVariables.d.ts +1 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +15 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +7 -3
- package/dist/libs/shared/src/interfaces/models/User.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +2 -0
- package/dist/libs/shared/src/services/UserDataService.d.ts +4 -3
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -0
- package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
- package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -1
- package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +6 -2
- package/dist/projects/library-editor/src/shared/utils/SettingsHelper.d.ts +1 -1
- package/dist/scripts/{0-09e1e33a5c.chunk.js → 0-64f8709b77.chunk.js} +1 -1
- package/dist/scripts/1-8f3f74d7ab.chunk.js +1 -0
- package/dist/scripts/{10-6c79d8c6f9.chunk.js → 10-c34a9f8786.chunk.js} +1 -1
- package/dist/scripts/{11-cecf8d22f0.chunk.js → 11-3dec7d2c7e.chunk.js} +1 -1
- package/dist/scripts/{12-dbffa50a92.chunk.js → 12-83486e66d2.chunk.js} +1 -1
- package/dist/scripts/13-91676908be.chunk.js +1 -0
- package/dist/scripts/{14-b524fbd295.chunk.js → 14-b4fd2ae68c.chunk.js} +1 -1
- package/dist/scripts/15-5fa4a707b6.chunk.js +1 -0
- package/dist/scripts/{16-b27142fe98.chunk.js → 16-1854ee8917.chunk.js} +1 -1
- package/dist/scripts/{17-c3bbe50816.chunk.js → 17-15af3147a3.chunk.js} +1 -1
- package/dist/scripts/{2-e6d104415e.chunk.js → 2-7cc9176e8a.chunk.js} +1 -1
- package/dist/scripts/{20-6d9086f5db.chunk.js → 20-c4b56b90a7.chunk.js} +1 -1
- package/dist/scripts/{21-2f10553302.chunk.js → 21-0ff3390fd0.chunk.js} +1 -1
- package/dist/scripts/{22-59ae44b448.chunk.js → 22-a266d3ebaf.chunk.js} +1 -1
- package/dist/scripts/23-a1bedc2abf.chunk.js +1 -0
- package/dist/scripts/{24-7f21e384d2.chunk.js → 24-5395319afd.chunk.js} +1 -1
- package/dist/scripts/{25-f0f7fa16a4.chunk.js → 25-d328075704.chunk.js} +1 -1
- package/dist/scripts/{26-e65533bd94.chunk.js → 26-c07a67c304.chunk.js} +1 -1
- package/dist/scripts/{27-9dc0f5a4df.chunk.js → 27-7c19dc0e07.chunk.js} +1 -1
- package/dist/scripts/{28-26e5c371c7.chunk.js → 28-8453c6a1a5.chunk.js} +1 -1
- package/dist/scripts/29-251320ec94.chunk.js +1 -0
- package/dist/scripts/{3-5eff8c9df5.chunk.js → 3-b5f655359f.chunk.js} +1 -1
- package/dist/scripts/{30-6075c28972.chunk.js → 30-2040afe178.chunk.js} +1 -1
- package/dist/scripts/31-c78e492fff.chunk.js +1 -0
- package/dist/scripts/{32-d5a50a7592.chunk.js → 32-1fbaf64553.chunk.js} +1 -1
- package/dist/scripts/{33-5ae90ed7d7.chunk.js → 33-7f74b15daa.chunk.js} +1 -1
- package/dist/scripts/34-06182d71ca.chunk.js +1 -0
- package/dist/scripts/{35-ec8c190357.chunk.js → 35-de846cd9ba.chunk.js} +1 -1
- package/dist/scripts/36-969e374669.chunk.js +1 -0
- package/dist/scripts/{37-37e8965783.chunk.js → 37-813a5d5c2c.chunk.js} +1 -1
- package/dist/scripts/{38-3dc24b8867.chunk.js → 38-0ac4079552.chunk.js} +1 -1
- package/dist/scripts/{39-350ff66a2b.chunk.js → 39-1af2b966bb.chunk.js} +1 -1
- package/dist/scripts/{4-b3f3c7c71c.chunk.js → 4-3782853ccc.chunk.js} +1 -1
- package/dist/scripts/{40-3443f99cb2.chunk.js → 40-de9b14c11c.chunk.js} +1 -1
- package/dist/scripts/{41-b5dfd35e9e.chunk.js → 41-a86a413701.chunk.js} +1 -1
- package/dist/scripts/{42-103fecb7b6.chunk.js → 42-c6f77d1281.chunk.js} +1 -1
- package/dist/scripts/{43-57b07579f7.chunk.js → 43-cacf93c4ef.chunk.js} +1 -1
- package/dist/scripts/{44-210d64dffe.chunk.js → 44-4e4902588e.chunk.js} +1 -1
- package/dist/scripts/{45-632b07e926.chunk.js → 45-303cff19b8.chunk.js} +1 -1
- package/dist/scripts/{46-82cce63cbf.chunk.js → 46-e0150c3a5b.chunk.js} +1 -1
- package/dist/scripts/{47-595b4aae87.chunk.js → 47-ed8bb29d9a.chunk.js} +1 -1
- package/dist/scripts/{48-fcf6378889.chunk.js → 48-64fe2b207d.chunk.js} +1 -1
- package/dist/scripts/{49-d8a4899eb1.chunk.js → 49-b21e03b234.chunk.js} +1 -1
- package/dist/scripts/{5-06bc197b1e.chunk.js → 5-eb5ed1d890.chunk.js} +1 -1
- package/dist/scripts/{50-11b1a49916.chunk.js → 50-fb3a755d2d.chunk.js} +1 -1
- package/dist/scripts/{51-72a75e0265.chunk.js → 51-9df5032226.chunk.js} +1 -1
- package/dist/scripts/{52-195f73bcd6.chunk.js → 52-8675ecad38.chunk.js} +1 -1
- package/dist/scripts/{53-bb4f37ee25.chunk.js → 53-4f3affc027.chunk.js} +1 -1
- package/dist/scripts/{54-7a201d8285.chunk.js → 54-67e3a031f0.chunk.js} +1 -1
- package/dist/scripts/{55-be3d7b8805.chunk.js → 55-e62c862627.chunk.js} +1 -1
- package/dist/scripts/{56-6aeece1bf1.chunk.js → 56-27ef75b33c.chunk.js} +1 -1
- package/dist/scripts/{57-59ee15161b.chunk.js → 57-f761652a6b.chunk.js} +1 -1
- package/dist/scripts/{58-8ff58b194a.chunk.js → 58-ac57438815.chunk.js} +1 -1
- package/dist/scripts/{59-3d33954fcb.chunk.js → 59-edc8e6eb72.chunk.js} +1 -1
- package/dist/scripts/{6-a469872b10.chunk.js → 6-179cf36d4d.chunk.js} +1 -1
- package/dist/scripts/{60-f092baa91c.chunk.js → 60-8922b491bc.chunk.js} +1 -1
- package/dist/scripts/{61-bd9ef62ccd.chunk.js → 61-eb56d033b9.chunk.js} +1 -1
- package/dist/scripts/{62-f15b3bf74c.chunk.js → 62-aa812b2bf2.chunk.js} +1 -1
- package/dist/scripts/{63-92757f75e7.chunk.js → 63-7c22b91a88.chunk.js} +1 -1
- package/dist/scripts/{64-c5a1c55521.chunk.js → 64-ef6892572c.chunk.js} +1 -1
- package/dist/scripts/{65-6bb10ae23b.chunk.js → 65-d818bfb54a.chunk.js} +1 -1
- package/dist/scripts/{66-f047027f7d.chunk.js → 66-bba14bbd56.chunk.js} +1 -1
- package/dist/scripts/{67-2e1a011200.chunk.js → 67-9ceaced9d2.chunk.js} +1 -1
- package/dist/scripts/{68-d5c0ab3fc1.chunk.js → 68-f479a22705.chunk.js} +1 -1
- package/dist/scripts/{69-fc8325afc9.chunk.js → 69-0b2b108bf9.chunk.js} +1 -1
- package/dist/scripts/{7-58dd909fa3.chunk.js → 7-05174a139c.chunk.js} +1 -1
- package/dist/scripts/{70-ceda95013e.chunk.js → 70-19812e042e.chunk.js} +1 -1
- package/dist/scripts/{71-6e8fc95beb.chunk.js → 71-0c55aa228f.chunk.js} +1 -1
- package/dist/scripts/{72-53fe3338bf.chunk.js → 72-c1ef717851.chunk.js} +1 -1
- package/dist/scripts/{8-6974afed28.chunk.js → 8-556650fab2.chunk.js} +1 -1
- package/dist/scripts/9-54ec14d3b3.chunk.js +1 -0
- package/dist/scripts/bundle-99208a7a66.min.js +8 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-73e2407954.min.js +1 -0
- package/package.json +3 -3
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css +0 -137
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css +0 -20
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/2.chunk.css +0 -145
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -21
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css +0 -20
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css +0 -14
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css +0 -35
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -66
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/55.chunk.css.map +0 -1
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css +0 -18
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -170
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -78
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -17
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -17
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -23
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -40
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -16
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -37
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/74.chunk.css +0 -29
- package/dist/css/74.chunk.css.map +0 -1
- package/dist/css/75.chunk.css +0 -6
- package/dist/css/75.chunk.css.map +0 -1
- package/dist/css/76.chunk.css +0 -6
- package/dist/css/76.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/library-editor-app.css.map +0 -1
- package/dist/projects/library-editor/src/shared/enums/Settings.d.ts +0 -18
- package/dist/scripts/0-f604eee110.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -1034
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1-056bd8c79b.chunk.js +0 -1
- package/dist/scripts/1-a66bb44471.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -442
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10-028c6001e1.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -820
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/11-6eef9e160e.chunk.js +0 -11
- package/dist/scripts/11.chunk.js +0 -4091
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12-d3f51f4e06.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -555
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-37e5cfab3e.chunk.js +0 -1
- package/dist/scripts/13-4029d31569.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -373
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14-4c94f97e4e.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -2386
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15-1ff1252d1a.chunk.js +0 -1
- package/dist/scripts/15-ec9aa4878b.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -314
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16-5bc8299e14.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -1290
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17-9fe035f9e2.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -381
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18.chunk.js +0 -393
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19.chunk.js +0 -364
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2-2cc3988222.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -523
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20-60e4eee833.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -317
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21-a7fffe8852.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -531
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22-f670791432.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -354
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23-11e008ee63.chunk.js +0 -1
- package/dist/scripts/23-4d26d6300a.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -604
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24-813ef82099.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -318
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25-023d08a591.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -365
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26-a9fcf0d596.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -442
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-84f7bbade6.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -3630
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28-cdf603f4cf.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -3173
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29-61415c2af0.chunk.js +0 -1
- package/dist/scripts/29-8278d23f9b.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -3088
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3-1fa81c9d9b.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -833
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30-7ab880728c.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -1852
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31-aa4cd0f45e.chunk.js +0 -1
- package/dist/scripts/31-e35ae4e153.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -958
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32-7717941f1d.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -1235
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33-6da33143ea.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -792
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34-27e40f4d4b.chunk.js +0 -1
- package/dist/scripts/34-50402c1835.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -990
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35-3260300446.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -518
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36-4d467bc42e.chunk.js +0 -1
- package/dist/scripts/36-bec0c74d05.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -335
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37-3916177181.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -236
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38-89f7c22ea8.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -315
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39-9456631219.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -116
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4-a7f6d378e0.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -335
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40-f65196723f.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -2493
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41-70b16d99d0.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -1782
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-e17f214d6c.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -2116
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43-6826fbc7d4.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -2243
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44-593e820fa2.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -1024
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45-8231a03833.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -1065
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46-682ca88fd9.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -656
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47-aec7cf95e8.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -735
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48-7b09165697.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -994
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49-0e6ceb191f.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -759
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5-e2e64bc05f.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -15
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50-fa6f6fd1dc.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -528
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51-1c9fca4604.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -932
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52-ebce0c9f12.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -408
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53-c6807d4e0b.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -754
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54-e6195aa62a.chunk.js +0 -1
- package/dist/scripts/54.chunk.js +0 -681
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55-f9f9a251af.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -645
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56-20f27f96db.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -346
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57-b25862dbf0.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -422
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58-edf06f18f9.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -437
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59-241a666e49.chunk.js +0 -1
- package/dist/scripts/59.chunk.js +0 -342
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6-c631df7bda.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -484
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60-ac631fa385.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -254
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61-360e50b6cb.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -409
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62-22ee1d2a94.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -142
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63-25413d744e.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -147
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64-1b027092be.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -439
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65-c8a9aae545.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -582
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66-20aec598ca.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -442
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67-d8d1cb35a4.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -295
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68-869ea333d9.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -165
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69-c4ff3e5568.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -248
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7-1d94e0bb0c.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -309
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70-171dcf9fe1.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -207
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71-33e7082ca2.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -237
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72-2eef8b13b0.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -331
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73.chunk.js +0 -404
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -301
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -231
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -157
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -307
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -249
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -282
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8-34ae87490f.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -307
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80.chunk.js +0 -308
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81.chunk.js +0 -366
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -314
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -328
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -313
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -291
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -119
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -219
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -194
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -522
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9-0d7004dd33.chunk.js +0 -1
- package/dist/scripts/9-9279038caa.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -222
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -337
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -131
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -266
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/bundle-06dc1f4908.min.js +0 -8
- package/dist/scripts/bundle-8498807388.min.js +0 -1
- package/dist/scripts/bundle-891db89400.min.js +0 -1
- package/dist/scripts/bundle-f4a423ce34.min.js +0 -1
- package/dist/scripts/bundle.js +0 -66631
- package/dist/scripts/bundle.js.map +0 -1
- package/dist/scripts/polyfills-21eaf1215c.min.js +0 -1
- package/dist/scripts/polyfills-efb4d7caa3.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -14866
- package/dist/scripts/polyfills.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("_"),require("Backbone"),require("Handlebars"),require("moment"),require("Marionette"),require("Bloodhound"),require("FontAwesome"),require("Polyglot"),require("DOMPurify"),require("CVEvents"),require("ClipboardJS")):"function"==typeof define&&define.amd?define(["_","Backbone","Handlebars","moment","Marionette","Bloodhound","FontAwesome","Polyglot","DOMPurify","CVEvents","ClipboardJS"],e):"object"==typeof exports?exports["@clickview/library-editor"]=e(require("_"),require("Backbone"),require("Handlebars"),require("moment"),require("Marionette"),require("Bloodhound"),require("FontAwesome"),require("Polyglot"),require("DOMPurify"),require("CVEvents"),require("ClipboardJS")):t["@clickview/library-editor"]=e(t._,t.Backbone,t.Handlebars,t.moment,t.Marionette,t.Bloodhound,t.FontAwesome,t.Polyglot,t.DOMPurify,t.CVEvents,t.ClipboardJS)}(window,(function(t,e,n,r,o,i,a,c,u,s,l){return function(t){function e(e){for(var n,r,i=e[0],a=e[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)&&(t[n]=a[n]);for(s&&s(e);u.length;)u.shift()()}var n={},r={18:0},o={18:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[];r[t]?e.push(r[t]):0!==r[t]&&{0:1,1:1,3:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,13:1,14:1,16:1,17:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,50:1,51:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1}[t]&&e.push(r[t]=new Promise((function(e,n){for(var o="css/"+t+".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 e()}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 e()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=e,p.onerror=function(e){var o=e&&e.target&&e.target.src||a,i=new Error("Loading CSS chunk "+t+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[t],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[t]=0})));var n=o[t];if(0!==n)if(n)e.push(n[2]);else{var a=new Promise((function(e,r){n=o[t]=[e,r]}));e.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(t){return i.p+"scripts/"+t+"-"+{0:"f604eee110",1:"056bd8c79b",2:"e6d104415e",3:"1fa81c9d9b",4:"a7f6d378e0",5:"e2e64bc05f",6:"c631df7bda",7:"1d94e0bb0c",8:"34ae87490f",9:"0d7004dd33",10:"028c6001e1",11:"cecf8d22f0",12:"d3f51f4e06",13:"4029d31569",14:"4c94f97e4e",15:"ec9aa4878b",16:"5bc8299e14",17:"9fe035f9e2",20:"60e4eee833",21:"a7fffe8852",22:"f670791432",23:"4d26d6300a",24:"813ef82099",25:"023d08a591",26:"a9fcf0d596",27:"84f7bbade6",28:"cdf603f4cf",29:"8278d23f9b",30:"7ab880728c",31:"aa4cd0f45e",32:"7717941f1d",33:"6da33143ea",34:"27e40f4d4b",35:"3260300446",36:"bec0c74d05",37:"3916177181",38:"89f7c22ea8",39:"9456631219",40:"f65196723f",41:"70b16d99d0",42:"e17f214d6c",43:"6826fbc7d4",44:"593e820fa2",45:"8231a03833",46:"682ca88fd9",47:"aec7cf95e8",48:"7b09165697",49:"0e6ceb191f",50:"fa6f6fd1dc",51:"1c9fca4604",52:"ebce0c9f12",53:"c6807d4e0b",54:"e6195aa62a",55:"f9f9a251af",56:"20f27f96db",57:"b25862dbf0",58:"edf06f18f9",59:"241a666e49",60:"ac631fa385",61:"360e50b6cb",62:"22ee1d2a94",63:"25413d744e",64:"1b027092be",65:"c8a9aae545",66:"20aec598ca",67:"d8d1cb35a4",68:"869ea333d9",69:"c4ff3e5568",70:"171dcf9fe1",71:"33e7082ca2",72:"2eef8b13b0"}[t]+".chunk.js"}(t);var s=new Error;c=function(e){u.onerror=u.onload=null,clearTimeout(l);var n=o[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[t]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i.oe=function(t){throw console.error(t),t};var a=window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[],c=a.push.bind(a);a.push=e,a=a.slice();for(var u=0;u<a.length;u++)e(a[u]);var s=c;return i(i.s=1008)}([function(t,e,n){"use strict";var r,o,i=n(206),a=n(140),c=n(170),u=n(143),s={Filters:{OPTION_SELECTED:"option:selected",APPLY_FILTER:"apply:filter",FILTER_CHANGED:"filter:changed"},ContentUpdates:{DISABLE_REVIEW:"disable:review"},MigrationWizard:{SORT_VIDEOS:"sort:videos",TOGGLE_MIGRATED:"toggle:migrated",SELECTED_CHANGED:"selected:changed",CLOSE_BANNER:"close:banner"}};!function(t){t.Folder="folder",t.Exchange="exchange",t.HostedLibrary="hosted_library",t.CustomLibrary="custom_library",t.Workspace="workspace"}(r||(r={})),function(t){t.Video="videos",t.Folder="categories",t.Series="series",t.Channel="channels",t.Distributors="companies",t.Producers="people",t.Tags="tags",t.Language="languages",t.TagsRaw="tag",t.ChannelRaw="channel",t.Recent="recent",t.Direct="direct",t.ProductionCompanies="companies",t.Directors="people",t.Season="season"}(o||(o={}));var l,f=n(31),p=n(1),y=n(23),h=n(6),d=n(231),b=n.n(d),v=n(149),m=n.n(v),g=n(459),S=n.n(g),O=n(460),w=n.n(O),k=n(261),C=n.n(k),E=n(262),R=n.n(E),_=n(461),P=n.n(_),T=n(232),x=n.n(T),j=n(462),D=n.n(j),L=n(263),A=n.n(L),N=n(463),I=n.n(N),V=n(464),M=n.n(V),U=n(292),F=n.n(U),H=n(465),z=n.n(H),B=n(466),q=n.n(B),G=n(264),W=n.n(G),Y=n(265),J=n.n(Y),K=n(467),Q=n.n(K),Z=n(468),$=n.n(Z),X=n(469),tt=n.n(X),et=n(470),nt=n.n(et),rt=n(471),ot=n.n(rt),it=n(472),at=n.n(it),ct=n(473),ut=n.n(ct),st=n(474),lt=n.n(st),ft=n(475),pt=n.n(ft),yt=n(476),ht=n.n(yt),dt=n(477),bt=n.n(dt),vt=n(478),mt=n.n(vt),gt=n(479),St=n.n(gt),Ot=n(480),wt=n.n(Ot),kt=n(481),Ct=n.n(kt),Et=n(482),Rt=n.n(Et),_t=n(483),Pt=n.n(_t),Tt=n(484),xt=n.n(Tt),jt=n(485),Dt=n.n(jt),Lt=n(266),At=n.n(Lt),Nt=n(293),It=n.n(Nt),Vt=n(486),Mt=n.n(Vt),Ut=n(487),Ft=n.n(Ut),Ht=n(294),zt=n.n(Ht),Bt=n(295),qt=n.n(Bt),Gt=n(488),Wt=n.n(Gt),Yt=n(489),Jt=n.n(Yt),Kt=n(490),Qt=n.n(Kt),Zt=n(491),$t=n.n(Zt),Xt=n(492),te=n.n(Xt),ee=n(260),ne=n.n(ee),re=n(296),oe=n.n(re),ie=n(493),ae=n.n(ie),ce=n(494),ue=n.n(ce),se=n(495),le=n.n(se),fe=n(496),pe=n.n(fe),ye=n(497),he=n.n(ye),de=n(498),be=n.n(de),ve=n(499),me=n.n(ve),ge=n(500),Se=n.n(ge),Oe=n(501),we=n.n(Oe),ke=n(502),Ce=n.n(ke),Ee=n(503),Re=n.n(Ee),_e=n(504),Pe=n.n(_e);function Te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xe,je=(Te(l={},h.j.VideoList,{component:y.a.ComponentCollection,options:{childOptions:{template:b.a,className:"border-bottom position-relative px-3",viewOptions:{styles:m.a}}}}),Te(l,h.j.VideoListWithBulkActions,{component:y.a.ComponentCollection,options:{childOptions:{template:b.a,className:"".concat(m.a.contentContainerWithBulkActions," border-bottom position-relative px-3"),viewOptions:{styles:m.a}}}}),Te(l,h.j.VideoGroupList,{component:y.a.ComponentCollection,options:{className:S.a.videoGroupList,childOptions:{template:b.a,className:"".concat(m.a.partialVideoItem," border-bottom position-relative px-3"),viewOptions:{styles:m.a}}}}),Te(l,h.j.SubFolder,{component:y.a.ComponentCollection,options:{collectionLength:1,className:"p-3 border-bottom",childOptions:{template:"<div></div>",className:"".concat(w.a.partialSubFolder," d-inline-block rounded mr-3 partial-loading-background")}}}),Te(l,h.j.NotificationPopover,{component:y.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:C.a,className:"px-1 py-2",viewOptions:{styles:R.a}}}}),Te(l,h.j.StaffRequestList,{component:y.a.ComponentCollection,options:{className:x.a.list,collectionLength:6,childOptions:{template:P.a,className:"p-3 border-bottom ".concat(x.a.item),viewOptions:{styles:x.a}}}}),Te(l,h.j.StaffRequestDetails,{component:y.a.Component,options:{template:D.a,className:"p-3 border-bottom ".concat(A.a.actions),viewOptions:{styles:A.a}}}),Te(l,h.j.DashboardNotifications,{component:y.a.ComponentCollection,options:{collectionLength:7,childOptions:{template:C.a,className:"py-2",viewOptions:{styles:R.a}}}}),Te(l,h.j.DashboardActionTile,{component:y.a.Component,options:{template:I.a,className:"d-flex flex-column align-items-end",viewOptions:{styles:M.a}}}),Te(l,h.j.Banner,{component:y.a.Component,options:{template:"<div></div>",className:"".concat(F.a.banner," partial-loading-background")}}),Te(l,h.j.VideoListHeader,{component:y.a.Component,options:{template:z.a,className:"px-3 py-2 border-bottom clearfix",viewOptions:{styles:q.a}}}),Te(l,h.j.SearchFilter,{component:y.a.ComponentCollection,options:{collectionLength:6,childOptions:{template:W.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:J.a}}}}),Te(l,h.j.PastReleasesSearchFilter,{component:y.a.ComponentCollection,options:{collectionLength:3,childOptions:{template:W.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:J.a}}}}),Te(l,h.j.AwaitingReviewHeader,{component:y.a.Component,options:{template:ae.a,className:"p-3 border-bottom text-right",viewOptions:{styles:ue.a}}}),Te(l,h.j.VideoHeader,{component:y.a.Component,options:{template:tt.a,className:"w-100 p-2",viewOptions:{styles:nt.a}}}),Te(l,h.j.VideoBasicInfo,{component:y.a.Component,options:{template:ot.a,viewOptions:{styles:at.a}}}),Te(l,h.j.VideoSidebarInfo,{component:y.a.Component,options:{template:Q.a,className:"pt-3 pb-3 pl-2 pr-3",viewOptions:{styles:$.a}}}),Te(l,h.j.EditVideoTabs,{component:y.a.Component,options:{template:ut.a,className:"w-100",viewOptions:{styles:lt.a}}}),Te(l,h.j.EditVideoDetails,{component:y.a.Component,options:{template:pt.a,className:"w-100",viewOptions:{styles:ht.a}}}),Te(l,h.j.EditVideoChapterList,{component:y.a.Component,options:{template:bt.a,className:"w-100",viewOptions:{styles:mt.a}}}),Te(l,h.j.EditVideoChaptersForm,{component:y.a.Component,options:{template:St.a,className:"w-100 mt-3",viewOptions:{styles:wt.a}}}),Te(l,h.j.WebPlayer,{component:y.a.Component,options:{template:Ct.a,className:"w-100",viewOptions:{styles:Rt.a}}}),Te(l,h.j.EditVideoUploadArea,{component:y.a.Component,options:{template:Pt.a,className:"mt-3",viewOptions:{styles:xt.a}}}),Te(l,h.j.Share,{component:y.a.Component,options:{template:Dt.a,className:At.a.container,viewOptions:{styles:At.a}}}),Te(l,h.j.PublisherArchiveSearchBar,{component:y.a.Component,options:{template:'<div><h5 class="m-0">Add videos from Publisher Archive</h5></div>',className:"container col-12 m-0 p-3 ".concat(It.a.containerWithBottomBorder)}}),Te(l,h.j.PublisherArchiveSectionHeader,{component:y.a.Component,options:{template:Wt.a,className:"row no-gutters ".concat(oe.a.currentHeader),viewOptions:{styles:Jt.a}}}),Te(l,h.j.PublisherArchiveLeftNav,{component:y.a.ComponentCollection,options:{collectionLength:10,childOptions:{template:Qt.a,viewOptions:{styles:$t.a}}}}),Te(l,h.j.PublisherArchiveVideoList,{component:y.a.Component,options:{template:Mt.a,viewOptions:{styles:p.extend({},Ft.a,zt.a,qt.a),videoItems:new Array(19).fill("")}}}),Te(l,h.j.PublisherArchiveStatusBar,{component:y.a.Component,options:{template:te.a,className:"p-2 w-100 ".concat(ne.a.statusBar),viewOptions:{styles:ne.a}}}),Te(l,h.j.LeftNav,{component:y.a.Component,options:{template:le.a,viewOptions:{styles:pe.a}}}),Te(l,h.j.LibraryFolders,{component:y.a.ComponentCollection,options:{collectionLength:7,className:"row mt-4 pt-2",noExtraClass:!0,tagName:"div",childOptions:{template:he.a,className:"col-3 p-2",viewOptions:{styles:be.a}}}}),Te(l,h.j.VideoItemPreview,{component:y.a.Component,options:{className:"w-100",template:me.a,viewOptions:{styles:Se.a}}}),Te(l,h.j.EditResourcesCVContent,{component:y.a.Component,options:{className:"w-100",template:we.a,viewOptions:{styles:Ce.a}}}),Te(l,h.j.TagFilter,{component:y.a.Component,options:{template:Re.a,viewOptions:{styles:Pe.a}}}),l),De=n(46),Le=n(16),Ae={LIBRARY_EDITOR:"hc/sections/360001974533",VIDEO_ACCESS:"hc/articles/360000153947",ADD_FROM_ONLINE:"hc/articles/360011718234",UPLOAD:"hc/articles/360012069334",PUBLISHER_ARCHIVE:"hc/articles/360011150174",PBT_ERROR_CODES:"hc/articles/360012421153",MANUAL_REVIEW:"hc/en-us/articles/360020004534",LIBRARY_REVIEW:"hc/articles/360000163788",PUBLISHER_SERVER:"hc/en-us/articles/360023108873",MIGRATION_OPTIONS:"hc/en-us/articles/360023109033"};function Ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ie,Ve=(Ne(xe={},h.f.Thumbnails,{width:640,height:360}),Ne(xe,h.f.Banners,{width:1200,height:222}),xe),Me=Ne({},h.f.Thumbnails,{width:1280,height:720}),Ue={EmptyStates:{Default:"/images/empty-states/illo-empty@2x.png",LibraryEditor:"/images/empty-states/no-library@2x.png",Library:"/images/empty-states/pointing-boy@2x.png",Folder:"/images/empty-states/illo-emptyfolder@2x.png",Search:"/images/empty-states/illo-no-results@2x.png",VideoAccess:"/images/empty-states/illo-empty3@2x.png",AwaitingReview:"/images/empty-states/illo-empty2@2x.png",PastReleases:"/images/empty-states/illo-empty-past-releases-large@2x.png",StaffRequests:"/images/empty-states/illo-empty@2x.png",StaffRequestsDashboardTile:"/images/empty-states/illo-empty-staffreq@2x.png",ContentUpdatesDashboardTile:"/images/empty-states/illo-empty-past-releases@2x.png"},Shared:{GeneratePdf:"/images/pdf-email-filled@2x.png",GenerateCsv:"/images/csv-email-filled.png"}},Fe=n(3),He=n(39),ze=n.n(He);function Be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qe,Ge=(Be(Ie={},h.c.Default,(function(t){return{imageUrl:Ue.EmptyStates.Default,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.LibraryEditor,(function(t){return{imageUrl:Ue.EmptyStates.LibraryEditor,heading:t.options.componentOptions.heading,description:'<button class="add-library btn btn-secondary position-relative '.concat(ze.a.addLibraryButton,'">\n <span class="d-inline-block position-absolute ').concat(ze.a.addLibraryPlus,'">\n ').concat(t.options.componentOptions.plusSvg,"</span> ").concat(t.options.componentOptions.btnText,"</button>"),appLink:{".add-library":{application:a.a.LIBRARY_EDITOR,action:u.a.LibraryEditor.NEW_LIBRARY}},customClass:"".concat(ze.a.paddedContainer," bg-white"),customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.Library,(function(t){return{imageUrl:Ue.EmptyStates.Library,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,appLink:{".add-folder":{application:a.a.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[t.options.componentOptions.libraryId]}},customClass:"".concat(ze.a.paddedContainer," bg-white"),customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.Folder,(function(t){return{imageUrl:Ue.EmptyStates.Folder,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.Series,(function(t){return{imageUrl:Ue.EmptyStates.Folder,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.Search,(function(t){return{imageUrl:Ue.EmptyStates.Search,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.AwaitingReview,(function(t){return{imageUrl:Ue.EmptyStates.AwaitingReview,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,appLink:{".disable-review":{application:a.a.CONTENT_UPDATES,action:u.a.ContentUpdates.DISABLE_REVIEW}},customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.PastReleases,(function(t){return{imageUrl:Ue.EmptyStates.PastReleases,heading:t.options.componentOptions.heading,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.StaffRequests,(function(t){return{imageUrl:Ue.EmptyStates.StaffRequests,heading:t.options.componentOptions.emptyState,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.VideoAccess,(function(t){return{imageUrl:Ue.EmptyStates.VideoAccess,heading:t.options.componentOptions.heading,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(Ie,h.c.StaffRequestsDashboardTile,(function(t){return{imageUrl:Ue.EmptyStates.StaffRequestsDashboardTile,customImageClass:"".concat(t.options.componentOptions.imageClass," ").concat(ze.a.imageLarge)}})),Be(Ie,h.c.ContentUpdatesDashboardTile,(function(t){return{imageUrl:Ue.EmptyStates.ContentUpdatesDashboardTile,customImageClass:"".concat(t.options.componentOptions.imageClass," ").concat(ze.a.imageLarge)}})),Be(Ie,h.c.ManualReviewVideos,(function(t){var e=Fe.a.getPhrase("shared.emptyState","migrationWarnings");return{imageUrl:Ue.EmptyStates.Default,heading:e,customClass:"p-3",customImageClass:ze.a.imageLarge}})),Ie);function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ye=(We(qe={},h.m.StudentWorkspaceSharing,(function(){return Fe.a.getPhrase("shared.constants","studentWorkspaceSharing")})),We(qe,h.m.StudentToStudentMessaging,(function(){return Fe.a.getPhrase("shared.constants","studentMessaging")})),We(qe,h.m.HideResourcesForStudents,(function(){return Fe.a.getPhrase("shared.constants","hideResources")})),We(qe,h.m.LibraryReview,(function(){return Fe.a.getPhrase("shared.constants","libraryReview")})),We(qe,h.m.SchoolMessaging,(function(){return Fe.a.getPhrase("shared.constants","schoolMessaging")})),We(qe,h.m.StaffRequest,(function(){return Fe.a.getPhrase("shared.constants","staffRequests")})),qe),Je=n(153),Ke={NAME:"Webplayer"},Qe=n(96),Ze={UploadingUserContent:"terms-and-conditions/#uploading-user-content"},$e={VERIFY_EMAIL:"/settings/account",UPLOAD_LOGO:"/settings/school"},Xe=n(15),tn=(n(171),{edge:16});n.d(e,"o",(function(){return i.a})),n.d(e,"e",(function(){return a.b})),n.d(e,"w",(function(){return a.c})),n.d(e,"b",(function(){return a.a})),n.d(e,"A",(function(){return c.a})),n.d(e,"a",(function(){return u.a})),n.d(e,"i",(function(){return s})),n.d(e,"q",(function(){return r})),n.d(e,"v",(function(){return o})),n.d(e,"f",(function(){return f.a})),n.d(e,"u",(function(){return je})),n.d(e,"n",(function(){return De.a})),n.d(e,"x",(function(){return Le.b})),n.d(e,"g",(function(){return Le.a})),n.d(e,"y",(function(){return Ae})),n.d(e,"k",(function(){return Ve})),n.d(e,"m",(function(){return Me})),n.d(e,"l",(function(){return Ue})),n.d(e,"h",(function(){return Ge})),n.d(e,"y",(function(){return Ae})),n.d(e,"j",(function(){return Ye})),n.d(e,"s",(function(){return Je.a})),n.d(e,"z",(function(){return Ke})),n.d(e,"c",(function(){return Qe.a})),n.d(e,"r",(function(){return Ze})),n.d(e,"c",(function(){return Qe.a})),n.d(e,"t",(function(){return $e})),n.d(e,"d",(function(){return Xe.a})),n.d(e,"p",(function(){return tn}))},function(e,n){e.exports=t},function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"AppLinkHelper",(function(){return d})),n.d(r,"AppLinkUtility",(function(){return y})),n.d(r,"Application",(function(){return T})),n.d(r,"AppRouter",(function(){return B})),n.d(r,"Behavior",(function(){return X})),n.d(r,"Collection",(function(){return tt.a})),n.d(r,"CollectionView",(function(){return st})),n.d(r,"ComponentCollection",(function(){return st})),n.d(r,"Error",(function(){return m.a})),n.d(r,"ErrorHelper",(function(){return m.c})),n.d(r,"SilentError",(function(){return m.d})),n.d(r,"LayoutView",(function(){return At})),n.d(r,"NestedModel",(function(){return Nt.a})),n.d(r,"Service",(function(){return It.a})),n.d(r,"Model",(function(){return Vt.a})),n.d(r,"View",(function(){return Rt})),n.d(r,"Component",(function(){return _t})),n.d(r,"EventNames",(function(){return a.a})),n.d(r,"LayoutService",(function(){return Gt})),n.d(r,"Middleware",(function(){return j})),n.d(r,"LocationUtils",(function(){return u})),n.d(r,"Shell",(function(){return ne}));var o=n(1),i=n(7),a=n(33),c=n(11),u={GetQuery:function(){return u.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(t){if(t){var e=u.GetQuery(),n=u.SerializeQueryParams(o.extend(e,t));n&&(n="?".concat(n)),u.UpdateUrl("".concat(u.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(t,e,n){var r=d.buildRoute(t,e);i.history.navigate(r,n),i.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,e,n)},SerializeQueryParams:function(t){return t?"string"==typeof t?t:$.param(t,!0):""},DeserializeQueryParams:function(t){return t?o.reduce(t.split("&"),(function(t,e){var n=e.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return t[r]?t[r]instanceof Array?(t[r].push(o),t):(t[r]=[t[r],o],t):(t[r]=o,t)}),{}):{}},StartHistory:function(){i.History.started&&i.history.stop(),i.history.start({pushState:!0})},PageLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?window.open(t,"_blank"):window.location.href=t},Redirect:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return e?window.location.replace(t):window.location.href=t};y.hasActiveRoute()?i.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(t)},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(t){document.title=t}},s=/((\(\?)?:\w+)|(\*\w+)/,l=/[\(\)]/g,f=/\(\/\)/g,p=/\/$/,y={routingStarted:function(){i.Radio.channel(c.a.SHELL).trigger(a.a.ROUTING_START)},routingEnded:function(){y.hasActiveRoute()&&i.Radio.channel(c.a.SHELL).trigger(a.a.ROUTING_END)},hasActiveRoute:function(){return i.Radio.channel(c.a.SHELL).request(a.a.HAS_ACTIVE_ROUTE)}},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.usedHelper=!0;var n=t.application,r=t.action;i.Radio.channel(n).trigger(r,t,e)},d={getHref:function(t){if(!t)return"";var e=t.application,n=t.action,r=t.args,o=t.params,u=i.Radio.channel(c.a.SHELL);return"/".concat(u.request(a.a.ROUTE_LOOKUP,"".concat(e,":").concat(n),r,o))},buildRoute:function(t,e){if(!e)return t;var n=e.args,r=e.params;if(o.each(n,(function(e){t=t.replace(s,e||"")})),t=(t=(t=t.replace(f,"")).replace(l,"")).replace(p,""),!r)return t;var i=u.SerializeQueryParams(r);return i.length?"".concat(t,"?").concat(i):t},trigger:function(t,e){t&&(y.hasActiveRoute()?i.Radio.channel(c.a.SHELL).once("routing:end",(function(){h(t,e)})):h(t,e))},getCurrentAppLink:function(){return i.Radio.channel(c.a.SHELL).request(a.a.CURRENT_ROUTE)}},b=n(49),v=n(53),m=n(10);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(t)||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 O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=P(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=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(t){return!1}}();return function(){var n,r=P(t);if(e){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}(u,t);var e,n,r,c=E(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=c.call(this,t)).mergeOptions(t,[].concat(S(e.defaultProps),S(e.props||[]))),o.result(_(e),"name")||m.c.throw(new m.b("BaseApplication must define a name")),o.result(_(e),"channelName")||m.c.throw(new m.b("BaseApplication must define a channelName")),e.listenTo(e.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,e.onShowPopup),e.listenTo(e.getGlobalRadioChannel("alert"),"show:alert",e.onShowAlert),e}return e=u,(n=[{key:"getGlobalRadioChannel",value:function(t){var e=this.shell.getGlobalRadioChannels()[t.toUpperCase()];return e||m.c.throw(new m.b("Global channel ".concat(e," does not exist"))),i.Radio.channel(e)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var t=o.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(o.extend(this.layoutOptions,{options:t})),this.layout||m.c.throw(new m.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(t){this.layout.getRegion("popup")||m.c.throw(new m.b("Your application layout must define a popup region")),this.layout.showChildView("popup",t)}},{key:"onShowAlert",value:function(t){var e=t.ctor,n=t.collection,r=this.layout.getRegion("alert");r||m.c.throw(new m.b("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new e({collection:n}))}},{key:"setDefaultQueryParams",value:function(t){this.defaultQueryParams&&(t=o.extend(this.defaultQueryParams,t)),this.defaultQueryParams=t}},{key:"getAndClearDefaultQueryParams",value:function(){var t=this.defaultQueryParams;return delete this.defaultQueryParams,t||{}}},{key:"listenTo",value:function(){return v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],k(P(u.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&w(e.prototype,n),r&&w(e,r),u}(b.Application);function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var j=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"use",value:function(t){var e;this.go=(e=this.go,function(n,r){return e(n,(function(){return t(n,r)}))})}},{key:"go",value:function(t,e){e(t)}}])&&x(e.prototype,n),r&&x(e,r),t}();function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t,e,n){return(I="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=F(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function V(t,e){return(V=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function M(t){var e=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(t){return!1}}();return function(){var n,r=F(t);if(e){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return U(this,n)}}function U(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var H=/([A-Z])/g,z=/(^|:)(\w)/gi,B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&V(t,e)}(l,t);var e,n,r,s=M(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this,t)).bindDisposal(),e.processInternalRoutes(),e.processExternalRoutes(),e.processAppLinks(),e}return e=l,(n=[{key:"bindDisposal",value:function(){var t=this;this.listenTo(c.a.SHELL,a.a.ROUTE,(function(e){e.application!==t.channelName&&t.destroyApp()}))}},{key:"addRouteLookup",value:function(t,e){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(t),(function(r,o){return d.buildRoute(e,{application:n.channelName,action:t,args:r,params:o})}))}},{key:"processInternalRoutes",value:function(){var t=this;o.each(o.keys(this.appRoutes),(function(e){var n=t.appRoutes[e],r=t.toEventName(n);t.addRouteLookup(r,e),t.listenTo(t.channelName,r,(function(n,r){r&&r.usedHelper||m.c.throw(new m.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),t.executeRoute(n,{isAppRoute:!0},(function(){var i=o.extend({},t.controller.getAndClearDefaultQueryParams(),n.params);n.params=i,u.UpdateUrl(e,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var t=this;this.externalRoutes&&o.each(o.keys(this.externalRoutes),(function(e){var n=t.externalRoutes[e],r=t.toEventName(n);t.addRouteLookup(r,e),t.listenTo(t.channelName,r,(function(t,e){e&&e.usedHelper||m.c.throw(new m.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),u.PageLoad(d.getHref(t))}))}))}},{key:"processAppLinks",value:function(){var t=this;this.appLinks&&o.each(this.appLinks,(function(e){var n=t.toEventName(e);t.listenTo(t.channelName,n,(function(e,n){n&&n.usedHelper||m.c.throw(new m.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),t.executeRoute(e,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(t,e,n){var r=this;this.validateAppLink(t);var u=this.toMethodName(t.action);y.routingStarted();var s=i.Radio.channel(c.a.SHELL);if(this.options.shell.isNavLocked())return s.trigger(a.a.NAV_IS_LOCKED,t),void y.routingEnded();var l=new j;o.each(this.filters,(function(t){return l.use(t)})),l.go(t,(function(){s.trigger(a.a.ROUTE,t,e),r.createApp();var i=r.controller;if(o.isFunction(i[u])||(y.routingEnded(),m.c.throw(new m.b("".concat(u," does not exist on the ").concat(o.result(i,"name"),".")))),!1===i.triggerMethod("before:action"))return i.triggerMethod("action:cancelled"),void y.routingEnded();i.triggerMethod("load:layout"),i[u].apply(i,[].concat(L(t.args||[]),[t.params||{}])),o.isFunction(n)&&n(),y.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(t,e,n){var r=this;this.route(e,n,(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var a={application:r.channelName,action:r.toEventName(n),args:e.slice(0,e.length-1),params:u.DeserializeQueryParams(e[e.length-1])};r.executeRoute(a,{isAppRoute:!0},(function(){u.UpdateQuery(o.extend(r.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(t){return t.replace(H,":$1").toLowerCase()}},{key:"toMethodName",value:function(t){var e=t.replace(z,(function(t,e,n){return n.toUpperCase()}));return e[0].toLowerCase()+e.slice(1,e.length)}},{key:"validateAppLink",value:function(t){t.application&&t.action||(y.routingEnded(),m.c.throw(new m.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],I(F(l.prototype),"listenTo",this))}}])&&N(e.prototype,n),r&&N(e,r),l}(b.AppRouter);function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Y(t,e,n){return(Y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Z(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){var e=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(t){return!1}}();return function(){var n,r=Z(t);if(e){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(t,e){return!e||"object"!==q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var X=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(i,t);var e,n,r,o=K(i);function i(){return G(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"listenTo",value:function(){return v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Y(Z(i.prototype),"listenTo",this))}}])&&W(e.prototype,n),r&&W(e,r),i}(b.Behavior),tt=n(139);function et(t){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rt(t,e,n){return(rt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ut(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ot(t,e){return(ot=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function it(t){var e=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(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return at(this,n)}}function at(t,e){return!e||"object"!==et(e)&&"function"!=typeof e?ct(t):e}function ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ot(t,e)}(a,t);var e,n,r,i=it(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=i.call(this,t),o.result(ct(e),"name")||m.c.throw(new m.b("Error: View with cid:".concat(e.cid," requires a name."))),e}return e=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 v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],rt(ut(a.prototype),"listenTo",this))}}])&&nt(e.prototype,n),r&&nt(e,r),a}(b.CollectionView),lt=n(18),ft=n(58);function pt(t){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yt(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ht(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ht(t,e)}(t)||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 ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vt(t,e,n){return e&&bt(t.prototype,e),n&&bt(t,n),t}function mt(t,e,n){return(mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ct(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function gt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&St(t,e)}function St(t,e){return(St=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=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(t){return!1}}();return function(){var n,r=Ct(t);if(e){var o=Ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wt(this,n)}}function wt(t,e){return!e||"object"!==pt(e)&&"function"!=typeof e?kt(t):e}function kt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ct(t){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Et=function(t){gt(n,t);var e=Ot(n);function n(t){var r;dt(this,n),r=e.call(this,t);var i=[].concat(yt(r.defaultProps),yt(r.props||[]));return r.mergeOptions(t,i),o.result(kt(r),"name")||m.c.throw(new m.b("Error: View with cid:".concat(r.cid," requires a name."))),r}return vt(n,[{key:"_setOptions",value:function(t){this.options=o.extend({},o.result(this,"defaults"),t)}},{key:"_setAttributes",value:function(t){var e,n,r;ft.a.isDevelopment&&o.extend(t,(e={},n="cv-classname",r=this.name,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e)),this.$el.attr(t)}},{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",o.result(this,"className"))}},{key:"serializeData",value:function(){var t=this,e=mt(Ct(n.prototype),"serializeData",this).call(this),r=o.result(this,"viewOptions"),i=o.extend({},e,{options:r});return n.ViewDataExtensions.length?o.extend.apply(o,[i].concat(yt(o.map(n.ViewDataExtensions,(function(e){return e instanceof Function?e(t):e}))))):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 t=this,e=this.appLinks;e&&(e=this.normalizeUIKeys(e),this.undelegateAppLinks(),o.each(o.keys(e),(function(n){var r=n,o=e[n],i=d.getHref(o);"[this]"===r&&(r=null);var a=r?t.$el.find(n):t.$el;(a.is("a")||a.is("button"))&&(i&&"/"!==i&&a.attr("href",i),t.delegate("click.appLinks".concat(t.cid),r,(function(t){t.preventDefault(),d.trigger(o)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=o.some(this.regions,(function(t){return o.has(t,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(t){i.Radio.channel(c.a.SHELL).trigger("render:partial:loading",this,t)}},{key:"listenTo",value:function(){return v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],mt(Ct(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var t=this.processRequriedResources(!0);return t&&(t=this.triggerMethod("before:render",this)),!1!==t&&(t=!0),!1===(t=t&&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(t){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(t){this.uiStorage=t}},{key:"elements",get:function(){return null}}],[{key:"AddViewDataExtension",value:function(t){n.ViewDataExtensions.push(t)}}]),n}(b.View);Et.ViewDataExtensions=[];var Rt=function(t){gt(n,t);var e=Ot(n);function n(t){var r;return dt(this,n),(r=e.call(this,t)).boundListeners={},r.resourceInstances={},r}return vt(n,[{key:"processRequriedResources",value:function(t){var e=this,n=o.keys(this.requiredResources);if(!n.length)return!0;var r=this,i=!0;return o.each(n,(function(n){var o=e.requiredResources[n];if(o.beforeOnBeforeRender===t){var a=o.dataServiceName;e.resourceInstances[a]||(e.resourceInstances[a]=o.getInstance(e)),e.boundListeners["".concat(a,":").concat(o.eventName)]||(e.listenTo(e.resourceInstances[a].channelName,o.eventName,e.render),e.boundListeners["".concat(a,":").concat(o.eventName)]=!0),r[n]=o.getData(e.resourceInstances[a]),i=i&&!!r[n]}})),i}},{key:"setTitle",value:function(){o.isString(this.title)||!1===this.title||m.c.throw(new lt.a("Must define a title for ".concat(this.name,"."))),i.Radio.channel(c.a.SHELL).trigger("set:page:title",this.title)}}]),n}(Et),_t=function(t){gt(n,t);var e=Ot(n);function n(){return dt(this,n),e.apply(this,arguments)}return n}(Et);function Pt(t){return(Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xt(t,e){return(xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jt(t){var e=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(t){return!1}}();return function(){var n,r=Lt(t);if(e){var o=Lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dt(this,n)}}function Dt(t,e){return!e||"object"!==Pt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Lt(t){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xt(t,e)}(i,t);var e,n,r,o=jt(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,r=[{key:"getCacheKey",value:function(t){m.c.throw(new lt.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(t){this.trigger("unmount:".concat(t))}}])&&Tt(e.prototype,n),r&&Tt(e,r),i}(Rt),Nt=n(169),It=n(57),Vt=n(77);function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ft(t,e,n){return(Ft="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=qt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ht(t,e){return(Ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zt(t){var e=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(t){return!1}}();return function(){var n,r=qt(t);if(e){var o=qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bt(this,n)}}function Bt(t,e){return!e||"object"!==Mt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qt(t){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ht(t,e)}(a,t);var e,n,r,i=zt(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).layouts={},e.requiredRegions=t.requiredRegions,e}return e=a,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(t,e){return this.checkRequiredRegions(e),this.layouts[t]=e,this}},{key:"getLayout",value:function(t){var e=t.name,n=t.options,r=void 0===n?{}:n;this.layouts[e]||m.c.throw(new m.b("".concat(e," was not registered as a template.")));var o=this.layouts[e].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[e](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(t){o.each(this.requiredRegions,(function(e){o.has(o.result(t.prototype,"regions"),e)||m.c.throw(new m.b("Layout: ".concat(t.prototype.name," must define an ").concat(e," region.")))}))}},{key:"listenTo",value:function(){return v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Ft(qt(a.prototype),"listenTo",this))}}])&&Ut(e.prototype,n),r&&Ut(e,r),a}(b.Object);function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yt(t,e,n){return(Yt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Zt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Jt(t,e){return(Jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kt(t){var e=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(t){return!1}}();return function(){var n,r=Zt(t);if(e){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qt(this,n)}}function Qt(t,e){return!e||"object"!==Wt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zt(t){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function te(t,e,n){return e&&Xt(t.prototype,e),n&&Xt(t,n),t}var ee=function(){function t(e,n){$t(this,t),this.application=e,this.options=n||{}}return te(t,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),t}(),ne=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jt(t,e)}(n,t);var e=Kt(n);function n(){return $t(this,n),e.apply(this,arguments)}return te(n,[{key:"initialize",value:function(t){this.mergeOptions(t,["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 t=this;this.listenTo(c.a.SHELL,a.a.LOCK_NAV,(function(){return t.shellState.navLock=!0})),this.listenTo(c.a.SHELL,a.a.UNLOCK_NAV,(function(){return t.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var t=this;this.listenTo(c.a.SHELL,a.a.ROUTING_START,(function(){return t.shellState.activeRoute=!0})),this.listenTo(c.a.SHELL,a.a.ROUTING_END,(function(){return t.shellState.activeRoute=!1})),this.listenTo(c.a.SHELL,a.a.ROUTE,(function(e){return t.shellState.currentAppLink=e}));var e=i.Radio.channel(c.a.SHELL);e.reply(a.a.HAS_ACTIVE_ROUTE,o.bind(this.hasActiveRoute,this)),e.reply(a.a.CURRENT_ROUTE,(function(){return t.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){y.routingEnded()}))}},{key:"bindErrorListener",value:function(){var t=i.Radio.channel(c.a.SHELL);this.listenTo(t,a.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var t=this;i.Radio.channel(c.a.SHELL).reply(a.a.ROUTE_LOOKUP,(function(e,n,r){return t.routeLookup[e]?t.routeLookup[e](n,r):""}),this)}},{key:"addRouteLookup",value:function(t,e){this.routeLookup[t]=e}},{key:"registerApplication",value:function(t,e){return this.applications.push(new ee(t,e)),this}},{key:"getGlobalRadioChannels",value:function(){return c.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(t){var e=this;t||(t={}),this.runInitializationSteps(this,(function(r,o){e.runStartUpSteps(e,t,(function(r,o,i){Yt(Zt(n.prototype),"start",e).call(e,t)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var t=this;o.each(this.applications,(function(e){var n={appConstructor:e.Application,shell:t,appOptions:Object.assign({region:"",shell:t,layoutService:t.layoutService},e.Options)};new e.Application.router(n)})),this.bindListeners(),u.StartHistory()}},{key:"addInitializationStep",value:function(t){var e;return this.runInitializationSteps=(e=this.runInitializationSteps,function(n,r){return e(n,(function(){return t(n,r)}))}),this}},{key:"runInitializationSteps",value:function(t,e){e(t)}},{key:"addStartUpStep",value:function(t){var e;return this.runStartUpSteps=(e=this.runStartUpSteps,function(n,r,o){return e(n,r,(function(){return t(n,r,o)}))}),this}},{key:"runStartUpSteps",value:function(t,e,n){n(t,e)}},{key:"registerLayout",value:function(t,e){return this.layoutService.registerLayout(t,e),this}},{key:"registerErrorHandler",value:function(t,e){return t||m.c.throw(new m.b("An error must have a name in order to register a handler for it.")),o.any(this.errorHandlers,(function(e){return e.errorType===t}))&&m.c.throw(new m.b("An error handler for ".concat(t.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:t,handler:e}),this}},{key:"handleError",value:function(t){var e=o.find(this.errorHandlers,(function(e){return t instanceof e.errorType}));e&&e.handler&&e.handler(t)}},{key:"registerStore",value:function(t){this.store=t}},{key:"listenTo",value:function(){return v.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Yt(Zt(n.prototype),"listenTo",this))}}]),n}(b.Application);n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(505),o=n(1),i=n(506),a=n(57),c=n(10),u=n(108),s=n(18),l=n(58);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(b,t);var e,n,a,f=d(b);function b(){return p(this,b),f.apply(this,arguments)}return e=b,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(t){this.polyglot=new r({locale:t.locale,phrases:t.phrases.rootElement||t.phrases}),this.cache={}}},{key:"getPhrase",value:function(t,e,n){var r="".concat(t,".").concat(e);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"),y={};for(var h in p)y[h]=i.sanitize(p[h]);o.isNumber(n.smartCount)&&(y.smart_count=n.smartCount);var d="".concat(r,":").concat(o.values(Object.assign({},y)).join(":")),b=this.cache[d];if(b)return b;var v=this.polyglot.t(r,y);return this.cache[d]=v,v}},{key:"encloseNamespace",value:function(t){var e=this;return function(n,r){return e.getPhrase(t,n,r)}}},{key:"name",get:function(){return u.a.LANGUAGE}}])&&y(e.prototype,n),a&&y(e,a),b}(a.a).Instance},function(t,e,n){"use strict";var r,o,i,a,c,u,s,l,f,p,y,h,d,b,v,m,g,S,O,w;!function(t){t.Stream="cv_product_stream",t.StreamRaw="cv_product_stream_raw",t.WebPlayerStream="cv_product_webplayer_stream",t.StreamProgress="cv_product_stream_progress",t.Login="cv_product_login",t.LoginSsoRedirect="cv_product_login_sso_redirect",t.LoginFailed="cv_product_login_failed",t.Search="cv_product_search",t.InstantSearch="cv_product_search",t.SearchEmptyResult="cv_product_search_empty_result",t.Filter="cv_product_search_filter",t.SearchLanding="cv_product_search_landing",t.Share="cv_product_share",t.WorkspaceAdd="cv_product_tv_add",t.Rename="cv_product_rename",t.Move="cv_product_move",t.Sort="cv_product_sort",t.Create="cv_product_create",t.Delete="cv_product_delete",t.Associate="cv_product_associate",t.Dissociate="cv_product_dissociate",t.Edit="cv_product_edit",t.Approve="cv_product_approve",t.Reject="cv_product_reject",t.Disable="cv_product_disable",t.Upload="cv_product_upload",t.Download="cv_product_download",t.Navigate="cv_product_navigate",t.Click="cv_product_click",t.Suggest="cv_product_suggest",t.EditAssoc="cv_product_edit_assoc",t.Play="cv_product_play",t.Favourite="cv_product_favourite",t.Follow="cv_product_follow",t.Prefer="cv_product_prefer",t.SetAccess="cv_product_set_access",t.AddToLocalCache="cv_product_add_to_lc",t.ResolveWarning="cv_product_resolve_warning",t.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(t){t.Folder="folder",t.Video="video",t.Rating="rating",t.Series="series",t.Library="library",t.Resource="resource",t.Tag="tag",t.Subtitle="subtitle",t.Chapter="chapter",t.Restriction="restriction",t.Interactive="interactive",t.PDF="pdf",t.CustomerSetting="customer_setting",t.StaffRequest="staff_request",t.Logo="logo",t.Pagination="pagination",t.Thumbnail="thumbnail",t.Banner="banner",t.Link="link",t.Playlist="playlist",t.Person="person",t.Company="company",t.Classroom="classroom",t.ClassroomGroup="classroom_group",t.Classification="classification",t.ShareLink="share_link",t.Upload="upload",t.SearchResults="search_results",t.Audience="audience",t.User="user"}(o||(o={})),function(t){t.TopNav="top_nav",t.LeftNav="left_nav",t.Popup="popup",t.Banner="banner",t.VideoList="video_list",t.VideoListItem="video_list_item",t.VideoListHeader="video_header",t.VideoThumbnail="video_thumbnail",t.VideoItemPreview="video_item_preview",t.VideoDetails="video_details",t.VideoDetailsHeader="video_details_header",t.EditVideoDetails="edit_video_details",t.EditVideoChapters="edit_video_chapters",t.EditVideoResources="edit_video_resources",t.VideoUpload="video_upload",t.VideoRequest="video_request",t.Pagination="pagination",t.SearchBar="search_bar",t.InstantSearch="instant_search",t.SearchFilters="search_filters",t.LibraryHeader="library_header",t.LibraryTiles="library_tiles",t.StaffRequestDetails="staff_request_details",t.SubFolderList="sub_folder_list",t.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",t.AwaitingReviewVideoItem="awaiting_review_video_item",t.PastReleasesHeader="past_releases_header",t.MigrationWarnings="migration_warnings",t.PlaylistListHeader="playlist_list_header",t.PlaylistListItem="playlist_list_item",t.TeacherManager="teacher_manager",t.TeacherManagerListItem="teacher_manager_list_item",t.StudentManager="student_manager",t.StudentManagerListItem="student_manager_list_item",t.ClassroomsList="classrooms_list",t.ClassroomsListItem="classrooms_list_item",t.ClassroomOverview="classroom_overview",t.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",t.ManageClassroomStudents="manage_classroom_students",t.ManageClassroomStudentListItem="manage_classroom_student_list_item",t.ManageClassroomGroups="manage_classroom_groups",t.ManageClassroomGroupListItem="manage_classroom_group_list_item",t.PlayPage="play_page",t.FloatingPlayer="floating_player",t.InteractivePlayer="interactive_player",t.EmbeddedPlayer="embedded_player",t.ContentUpdatesClassificationBanner="content_updates_classification_banner",t.PreferencesSettings="preferences_settings",t.MyUploads="my_uploads"}(i||(i={})),function(t){t.Start="start",t.Complete="complete",t.Save="save",t.Discard="discard"}(a||(a={})),function(t){t.PageLoad="page_load"}(c||(c={})),function(t){t.Single="single",t.Bulk="bulk",t.All="all"}(u||(u={})),function(t){t.ProductionYear="production_year",t.Alphabetical="alphabetical"}(s||(s={})),function(t){t.Content="content",t.Quality="quality",t.Duration="duration",t.Reset="reset"}(l||(l={})),function(t){t.Submit="submit",t.ShowAll="show_all",t.Recent="recent",t.SearchIcon="search_icon"}(f||(f={})),function(t){t.Start="start",t.Finish="finish",t.Terminate="terminate",t.Play="play",t.Pause="pause",t.Playback="playback",t.NextChapter="next_chapter",t.PreviousChapter="previous_chapter",t.FullScreenEnter="full_screen_enter",t.FullScreenExit="full_screen_exit"}(p||(p={})),function(t){t.TogglePreview="toggle_preview",t.NavigateHome="navigate_home",t.OpenInStaffView="open_in_staff_view",t.Thumbnail="thumbnail",t.Title="title",t.ToggleHideValidListings="toggle_hide_valid_listings",t.LaunchImmersiveReader="launch_immersive_reader",t.CopyEmbedHtml="copy_embed_html",t.Close="close",t.Open="open"}(y||(y={})),function(t){t.LibraryReview="library_review"}(h||(h={})),function(t){t.FileSelect="file_select",t.DragDrop="drag_drop"}(d||(d={})),function(t){t.Edit="edit"}(b||(b={})),function(t){t.Image="image",t.User="user"}(v||(v={})),function(t){t.On="on",t.Off="off"}(m||(m={})),function(t){t.EntityRemoved="cv_entity_removed",t.ValueUpdated="cv_value_updated"}(g||(g={})),function(t){t.FileSelect="file_select",t.DragDrop="drag_drop"}(S||(S={})),function(t){t.Video="videos",t.Folder="categories",t.Series="series",t.Tags="tags"}(O||(O={})),function(t){t[t.V1=1]="V1"}(w||(w={}));n(209);n.d(e,"q",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"k",(function(){return i})),n.d(e,"r",(function(){return a})),n.d(e,"m",(function(){return c})),n.d(e,"l",(function(){return u})),n.d(e,"h",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return h})),n.d(e,"j",(function(){return d})),n.d(e,"p",(function(){return b})),n.d(e,"a",(function(){return v})),n.d(e,"f",(function(){return g})),n.d(e,"i",(function(){return S})),n.d(e,"o",(function(){return O})),n.d(e,"g",(function(){return w}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(1),o=n(18),i=n(57),a=n(10);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,i,c=l(f);function f(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(t=c.call(this)).constructors={},t.destructors={},t.instances={},t.singletonInstances={},t.referenceCounts={},t}return e=f,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"registerDataService",value:function(t,e){var n=this;this.validateConstructor(t);var r=t.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new t({dataProvider:n.getInstance(e.dataProvider),cache:n.getInstance(e.cache),bootstrapData:e.bootstrapData,defaultErrorHandler:e.defaultErrorHandler,alertService:e.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(e.dataProvider),n.releaseInstance(e.cache)},this}},{key:"registerInstance",value:function(t,e){var n=this;this.validateConstructor(t);var o=t.prototype.name;return this.referenceCounts[o]=0,this.constructors[o]=function(){return new t(e)},this.destructors[o]=function(){return r.isFunction(n.instances[o].destroy)&&n.instances[o].destroy()},this}},{key:"registerSingleton",value:function(t){var e=t.name;return this.singletonInstances[e]=t,this}},{key:"getInstance",value:function(t,e){var n=this;return this.singletonInstances[t]?this.singletonInstances[t]:(this.constructors[t]||a.c.throw(new o.a("".concat(t," was not registered with ").concat(this.name))),this.referenceCounts[t]++,e&&this.listenTo(e,"destroy",(function(){return n.releaseInstance(t)})),this.instances[t]||(this.instances[t]=this.constructors[t]()),this.instances[t])}},{key:"releaseInstance",value:function(t){var e=this;if(this.instances[t])return window.setTimeout((function(){e.referenceCounts[t]--,e.referenceCounts[t]<1&&(e.destructors[t](),delete e.instances[t])}),0),this}},{key:"validateConstructor",value:function(t){var e=t.prototype.name;e||a.c.throw(new o.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[e]&&a.c.throw(new o.a("A class with the name: ".concat(e," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&u(e.prototype,n),i&&u(e,i),f}(i.a).Instance},function(t,e,n){"use strict";var r,o,i,a,c;function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.MostRecent=0]="MostRecent",t[t.LeastRecent=1]="LeastRecent",t[t.AtoZ=2]="AtoZ",t[t.ZtoA=3]="ZtoA",t[t.OrderIndex=4]="OrderIndex",t[t.ProductionYear=5]="ProductionYear",t[t.Newest=6]="Newest",t[t.SeriesSort=7]="SeriesSort"}(r||(r={})),function(t){t[t.Banner=0]="Banner",t[t.VideoListHeader=1]="VideoListHeader",t[t.VideoList=2]="VideoList",t[t.VideoListWithBulkActions=3]="VideoListWithBulkActions",t[t.VideoGroupList=4]="VideoGroupList",t[t.SubFolder=5]="SubFolder",t[t.NotificationPopover=6]="NotificationPopover",t[t.StaffRequestList=7]="StaffRequestList",t[t.StaffRequestDetails=8]="StaffRequestDetails",t[t.DashboardNotifications=9]="DashboardNotifications",t[t.DashboardActionTile=10]="DashboardActionTile",t[t.SearchBar=11]="SearchBar",t[t.SearchFilter=12]="SearchFilter",t[t.PastReleasesSearchFilter=13]="PastReleasesSearchFilter",t[t.AwaitingReviewHeader=14]="AwaitingReviewHeader",t[t.VideoSidebarInfo=15]="VideoSidebarInfo",t[t.VideoBasicInfo=16]="VideoBasicInfo",t[t.VideoHeader=17]="VideoHeader",t[t.EditVideoTabs=18]="EditVideoTabs",t[t.EditVideoDetails=19]="EditVideoDetails",t[t.EditVideoChapterList=20]="EditVideoChapterList",t[t.EditVideoChaptersForm=21]="EditVideoChaptersForm",t[t.EditVideoUploadArea=22]="EditVideoUploadArea",t[t.WebPlayer=23]="WebPlayer",t[t.Share=24]="Share",t[t.PublisherArchiveSearchBar=25]="PublisherArchiveSearchBar",t[t.PublisherArchiveSectionHeader=26]="PublisherArchiveSectionHeader",t[t.PublisherArchiveLeftNav=27]="PublisherArchiveLeftNav",t[t.PublisherArchiveVideoList=28]="PublisherArchiveVideoList",t[t.PublisherArchiveStatusBar=29]="PublisherArchiveStatusBar",t[t.LeftNav=30]="LeftNav",t[t.LibraryFolders=31]="LibraryFolders",t[t.EditResourcesCVContent=32]="EditResourcesCVContent",t[t.TagFilter=33]="TagFilter",t[t.VideoItemPreview=34]="VideoItemPreview",t[t.Unselected=35]="Unselected"}(o||(o={})),function(t){t.AU="AU",t.UK="UK",t.NZ="NZ"}(i||(i={})),function(t){t[t.Unclassified=0]="Unclassified",t[t.Primary=1]="Primary",t[t.Secondary=2]="Secondary",t[t.K12=3]="K12",t[t.Tertiary=4]="Tertiary",t[t.NonEducational=5]="NonEducational",t[t.Partners=6]="Partners",t[t.Internal=7]="Internal",t[t.Other=8]="Other",t[t.HostedLibrary=9]="HostedLibrary"}(c||(c={}));var s,l,f,p,y,h;u(a={},c.Unclassified,{hasYearGroups:!0}),u(a,c.Primary,{hasYearGroups:!0}),u(a,c.Secondary,{hasYearGroups:!0}),u(a,c.K12,{hasYearGroups:!0}),u(a,c.Tertiary,{hasYearGroups:!1}),u(a,c.NonEducational,{hasYearGroups:!1}),u(a,c.Partners,{hasYearGroups:!0}),u(a,c.Internal,{hasYearGroups:!0}),u(a,c.Other,{hasYearGroups:!0}),u(a,c.HostedLibrary,{hasYearGroups:!0});!function(t){t[t.All=0]="All",t[t.Kindergarten=1]="Kindergarten",t[t.Year1=2]="Year1",t[t.Year2=3]="Year2",t[t.Year3=4]="Year3",t[t.Year4=5]="Year4",t[t.Year5=6]="Year5",t[t.Year6=7]="Year6",t[t.Year7=8]="Year7",t[t.Year8=9]="Year8",t[t.Year9=10]="Year9",t[t.Year10=11]="Year10",t[t.Year11=12]="Year11",t[t.Year12=13]="Year12",t[t.Year13=14]="Year13",t[t.Students=15]="Students",t[t.Staff=16]="Staff"}(s||(s={})),function(t){t[t.Permanent=0]="Permanent",t[t.Temporary=1]="Temporary"}(l||(l={})),function(t){t.StudentWorkspaceSharing="student_ws_sharing",t.StudentToStudentMessaging="student_to_student_messaging",t.HideResourcesForStudents="hide_resources_for_students",t.LibraryReview="library_review",t.SchoolMessaging="school_messaging",t.LegacyTvNaming="legacy_tv_naming",t.LegacyAlbertCustomer="legacy_albert_customer",t.HideHostedLibraries="hide_hosted_libraries",t.StaffRequest="staff_request",t.MaxCustomLibraries="max_custom_libraries",t.CustomLibrariesBetaAccess="custom_libraries_beta_access",t.AutoCaptioning="auto_captioning"}(f||(f={})),function(t){t[t.Private=1]="Private",t[t.SchoolOnly=2]="SchoolOnly",t[t.Public=3]="Public"}(p||(p={})),function(t){t[t.Default=0]="Default",t[t.LibraryEditor=1]="LibraryEditor",t[t.Library=2]="Library",t[t.Folder=3]="Folder",t[t.Series=4]="Series",t[t.Search=5]="Search",t[t.Notifications=6]="Notifications",t[t.VideoAccess=7]="VideoAccess",t[t.AwaitingReview=8]="AwaitingReview",t[t.PastReleases=9]="PastReleases",t[t.StaffRequests=10]="StaffRequests",t[t.StaffRequestsDashboardTile=11]="StaffRequestsDashboardTile",t[t.ContentUpdatesDashboardTile=12]="ContentUpdatesDashboardTile",t[t.ManualReviewVideos=13]="ManualReviewVideos"}(y||(y={})),function(t){t[t.Video=11]="Video",t[t.CustomMediaObjectCollection=19]="CustomMediaObjectCollection"}(h||(h={}));var d,b,v,m=n(59);!function(t){t[t.AdminOnly=0]="AdminOnly",t[t.StaffRequest=1]="StaffRequest",t[t.Teachers=2]="Teachers"}(d||(d={})),function(t){t[t.Thumbnails=0]="Thumbnails",t[t.Banners=1]="Banners",t[t.Avatars=2]="Avatars"}(b||(b={})),function(t){t[t.None=0]="None",t[t.ImageAPIv1=1]="ImageAPIv1",t[t.FileAPIv1=2]="FileAPIv1"}(v||(v={}));var g,S,O,w,k=n(64);!function(t){t.FULL_YEAR="D MMMM YYYY",t.YEAR="YYYY"}(g||(g={})),function(t){t.FileSelect="file-select",t.DragDrop="drag-drop"}(S||(S={})),function(t){t[t.TermUpdate=1]="TermUpdate",t[t.RestrictedByAdmin=2]="RestrictedByAdmin"}(O||(O={})),function(t){t.Producer="producers",t.Director="directors",t.ProductionCompany="productionCompanies",t.Distributor="distributors"}(w||(w={})),n.d(e,"d",(function(){return r})),n.d(e,"j",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"r",(function(){return s})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"c",(function(){return y})),n.d(e,"i",(function(){return h})),n.d(e,"h",(function(){return m.a})),n.d(e,"o",(function(){return d})),n.d(e,"f",(function(){return b})),n.d(e,"e",(function(){return v})),n.d(e,"q",(function(){return k.a})),n.d(e,"p",(function(){return g})),n.d(e,"g",(function(){return S})),n.d(e,"k",(function(){return O})),n.d(e,"a",(function(){return w}))},function(t,n){t.exports=e},,function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"d",(function(){return S})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return w}));var r=n(7),o=n(11),i=n(58),a=n(33);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function p(t){var e=b();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){var e="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return d(t,arguments,m(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,t)})(t)}function d(t,e,n){return(d=b()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&v(o,n.prototype),o}).apply(null,arguments)}function b(){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(t){return!1}}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){f(n,t);var e=p(n);function n(t){return l(this,n),e.call(this,t)}return n}(h(Error)),S=function(t){f(n,t);var e=p(n);function n(){return l(this,n),e.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"SilentError"}}]),n}(g),O=function(t){f(n,t);var e=p(n);function n(){return l(this,n),e.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"CoreError"}}]),n}(h(Error)),w={throw:function(t){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,t),!(t instanceof S||i.a.isDevelopment))throw t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(t,e,n){"use strict";var r=n(217),o=n(28),i=n(1),a={GetViewModel:function(t,e){var n=o.a.get("current:bulkactions");return n.get(e)!==t&&o.a.clear(t),n.set(e,t),o.a.get(t)},GetSelectedIds:function(t){return i.map(a.GetSelectedModels(t),(function(t){return t.get("id")}))},GetSelectedModels:function(t){var e=a.GetViewModel(t.key,t.type).toJSON(),n={};if(i.isFunction(t.excludePredicate)&&(n=i.groupBy(t.collection.filter(t.excludePredicate),(function(t){return t.id}))),e.all){var r=t.collection.filter((function(t){return!1!==e[t.id]}));return i.filter(r,(function(t){return!n[t.id]}))}var o=t.collection.filter((function(t){return!0===e[t.id]}));return i.filter(o,(function(t){return!n[t.id]}))}},c=n(2),u=n(3),s=n(35),l=n(6),f="shared.utils",p={GetCurrentSortType:function(){var t=p.GetSortViewModel();return p.GetSortTypeFromName(t.get("sortName"))},GetSortViewModel:function(){return o.a.get("video:sorting",p.GetDefaultSort())},GetFilterFromSort:function(t){switch(t){case s.a.MostRecent:return"orderbydesc:timestamp";case s.a.AtoZ:return"orderby:name";case s.a.ProductionYear:return"orderbydesc:productionyear";case s.a.Newest:return"orderbydesc:datecreated";case s.a.SeriesSort:return"orderby:seriessort";default:return""}},GetDefaultSort:function(){return p.CreateSortObject(s.a.MostRecent)},CreateSortObject:function(t){return{sortType:t,name:p.GetSortName(t),sortName:s.a[t].toLowerCase()}},CreateSortCollection:function(){var t=new c.a.Collection;for(var e in s.a)"number"==typeof s.a[e]&&t.push(new c.a.Model(p.CreateSortObject(s.a[e])));return t},GetSortName:function(t){switch(t){case s.a.MostRecent:return u.a.getPhrase(f,"recentlyAdded");case s.a.AtoZ:return u.a.getPhrase(f,"atoz");case s.a.ProductionYear:return u.a.getPhrase(f,"productionYear");case s.a.Newest:return u.a.getPhrase(f,"newest");case s.a.SeriesSort:return u.a.getPhrase(f,"seriesTitle");default:return""}},GetSortTypeFromName:function(t){switch(t){case"mostrecent":return s.a.MostRecent;case"atoz":return s.a.AtoZ;case"productionyear":return s.a.ProductionYear;case"newest":return s.a.Newest;case"seriessort":return s.a.SeriesSort;default:return s.a.MostRecent}},MapSortTypeToExportServiceSortType:function(t){switch(t){case s.a.MostRecent:return l.d.MostRecent;case s.a.AtoZ:return l.d.AtoZ;case s.a.ProductionYear:return l.d.ProductionYear;case s.a.Newest:return l.d.Newest;case s.a.SeriesSort:return l.d.SeriesSort;default:return l.d.MostRecent}}},y=n(27),h={mapYearGroupToName:function(t){var e=l.r[t],n=e.split(/(\d+)/);return n[1]?"".concat(n[0]," ").concat(n[1]," ").concat(u.a.getPhrase("shared.utils","andBelow")):t===l.r.All?u.a.getPhrase("shared.utils","studentsAndStaff"):e},hasRestriction:function(t){return!i.isUndefined(t.get("restrictions"))},hasAdminRestriction:function(t){var e=t.restrictions;return!!e&&!e.last().get("expiresOn")},isAwaitingReview:function(t){var e=t.restrictions;return!!e&&!!e.last().get("expiresOn")},getRestrictionMessage:function(t){return t.includes("Year")||t.includes("Kindergarten")?u.a.getPhrase("shared.utils","students",{yearGroup:t}):u.a.getPhrase("shared.utils","nonStudents",{group:t})},getReviewBadgeClassName:function(t,e,n){if(!t.restrictions||!t.restrictions.length)return"";var r=y().add(7,"days"),o=t.restrictions.first().get("expiresOn");return y(o).isSameOrBefore(r)?n:e},getRestrictionTooltipMessage:function(t){if(!t.restrictions)return"";if(h.isAwaitingReview(t))return h.getReviewTimeMessage(t);var e=t.restrictions.last(),n=h.mapYearGroupToName(e.get("groupId"));return h.getRestrictionMessage(n)},getReviewTimeMessage:function(t){var e=t.restrictions.first().get("expiresOn"),n=y(e).fromNow(!0);return"".concat(n," ").concat(u.a.getPhrase("shared.utils","leftToReview"))}},d={trimToMinutes:function(t){for(;("0"===t.charAt(0)||":"===t.charAt(0))&&t.length>5;)t=t.substr(1);return t},toSeconds:function(t){return y.duration(t).asSeconds()},secondsToHoursFormatted:function(t){return y.utc(1e3*t).format("HH:mm:ss")},getHoursComponent:function(t){return y.duration(t,"seconds").hours()},getMinutesComponent:function(t){return y.duration(t,"seconds").minutes()},getSecondsComponent:function(t){return y.duration(t,"seconds").seconds()},millisecondsToSeconds:function(t){return t/1e3},parseTime:function(t){var e=d.validateRawTime(t),n=e.hours,r=e.minutes,o=e.seconds,a=parseInt(n,10),c=parseInt(r,10),u=parseInt(o,10);return i.isNumber(a)||i.isNumber(c)||i.isNumber(u)?a<0||c<0||u<0?-1:d.toSeconds("".concat(a,":").concat(c,":").concat(u)):-1},validateRawTime:function(t){var e=t.hours,n=t.minutes,r=t.seconds;return(i.isUndefined(e)||i.isNaN(e))&&(e=0),(i.isUndefined(n)||i.isNaN(e))&&(n=0),(i.isUndefined(r)||i.isNaN(e))&&(r=0),{hours:e,minutes:n,seconds:r}}},b={getLibraryReviewOptions:function(t){return{kind:l.l.Permanent,name:l.m.LibraryReview,value:t}}},v=n(47),m=n(291),g=n(59),S=n(90),O=n(0),w=n(152);function k(t){return t.libraries&&t.libraries.every((function(t){return t.get("type")===g.a.CustomLibrary}))}var C,E={canEditVideo:function(t){return k(t)},canPublicShare:function(t){return k(t)},canDownloadVideo:function(t){return t.libraries&&t.libraries.every((function(t){return t.get("type")!==g.a.HostedLibrary}))},canAddToExchange:function(t){return t.libraries&&t.libraries.every((function(t){return t.get("type")!==g.a.HostedLibrary&&t.get("type")!==g.a.Exchange}))},canShareVideo:function(t,e){return e===O.b.CONTENT_UPDATES||t.libraries&&!!t.libraries.where({type:g.a.CustomLibrary,status:S.a.Published}).length},getSuggestAnEditPermissionsMessage:function(t){if(!E.canEditVideo(t))return u.a.getPhrase("shared.utils","suggestEdit")},getSharePermissionsMessage:function(t,e){if(!E.canShareVideo(t,e))return e===O.b.LIBRARY_EDITOR?u.a.getPhrase("shared.utils","share"):""},filterObjectsByOwnerType:function(t,e,n){var r=t.filter((function(t){var r=t.get("customer")&&t.get("customer").id;return!r&&e===w.b.ClickView||r===n&&e===w.b.Customer}));return new c.a.Collection(r)}},R=n(83),_=n(146);function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T,x={size:"small",bgColor:"000"};!function(t){t.Avatar="avatar",t.Banner="banner",t.Thumbnail="thumbnail"}(T||(T={}));var j=(P(C={},l.f.Avatars,T.Avatar),P(C,l.f.Banners,T.Banner),P(C,l.f.Thumbnails,T.Thumbnail),C),D=function(t){return"v1/category-map/".concat(t)},L={createUrl:function(t,e){return L._createUrl(t,e)},Rfc3986EncodeURIComponent:function(t){return encodeURIComponent(t).replace(/[!'()*]/g,escape)},createThumbnailUrl:function(t,e){var n=t instanceof R.a?t.get("url"):t;if(n){var r=i.extend({},x,e);return L._createUrl(n,r)}},createBannerUrl:function(t,e,n){var r=t instanceof _.a?t.get("url"):t;return r?L._createUrl(r,n):L._createCategoryMappedUrl(e,n)},createFolderThumbnailUrl:function(t,e,n){return"string"==typeof t||t instanceof R.a&&t.get("url")?L.createThumbnailUrl(t,n):L._createCategoryMappedUrl(e,i.extend({},x,n))},_createCategoryMappedUrl:function(t,e){var n=t.fallbackBaseUrl,r=t.fallbackCategoryName,o=t.type,a="".concat(n).concat(D(j[o])),c=i.extend({name:L.Rfc3986EncodeURIComponent(r)},e);return L._createUrl(a,c)},_createUrl:function(t,e){if(t){if(i.isEmpty(e))return t;var n=$.param(e),r=-1===t.indexOf("?")?"?":"&";return"".concat(t).concat(r).concat(n)}}},A={setRating:function(t,e){if(e)if(t&&t.id){var n=e.findWhere({selected:!0}),r=e.findWhere({id:t.id});J.deselectAll(e,{silent:!1}),(n||r)&&(n?r.id!==n.id&&r.set("selected",!0):r.set("selected",!0))}else J.deselectAll(e)}},N=n(229),I={getDevicesUserCanManage:function(t,e){return t&&new N.a(t.where({customerId:e}))},getNewestDeviceUserCanManage:function(t,e){var n=I.getDevicesUserCanManage(t,e);if(n||n.length)return n.max((function(t){return new Date(t.get("dateCreated"))}))},customerHasLocalCache:function(t,e){return t&&!!I.getDevicesUserCanManage(t,e).length}},V={generateUniqueChannelName:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"customCid",n=t[e]||t.cid||(t[e]=i.uniqueId("custom"));return"".concat(t.name).concat(n)}},M=function(t,e,n){var r=e-(t=t.toString()).length;return r<=0?t:new Array(r+1).join(n)+t},U={ToDisplayDuration:function(t){if(!i.isNumber(t))return"";var e=new Date(t),n=e.getUTCHours(),r=M(e.getUTCMinutes(),2,"0"),o=M(e.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(r,":").concat(o):"".concat(r,":").concat(o)}},F=n(7),H=(n(11),{name:[{required:!0,msg:function(){return u.a.getPhrase("shared.utils","selectLanguage")}}]}),z=n(280),B=n(88),q=n(179),G={getEditVideoTabs:function(t,e){return[{name:function(){return u.a.getPhrase("shared.utils","videoDetails")},link:{selector:".edit-video-applink",appLink:{application:O.b.LIBRARY_EDITOR,action:O.a.LibraryEditor.EDIT_VIDEO,args:[t]}}},{name:function(){return u.a.getPhrase("shared.utils","chapters")},link:{selector:".edit-chapters-applink",appLink:{application:O.b.LIBRARY_EDITOR,action:O.a.LibraryEditor.EDIT_VIDEO_CHAPTERS,args:[t]}},hide:e&&e.hideChaptersTab},{name:function(){return u.a.getPhrase("shared.utils","resourcesSubtitlesLinks")},link:{selector:".edit-resources-subtitles-applink",appLink:{application:O.b.LIBRARY_EDITOR,action:O.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t]}}}]},initBackButton:function(){var t=B.a.getPreviousRoute();t&&!i.contains(q.b,t.appLink.action)&&o.a.get(q.c).set({appLink:t.appLink})},getBackButton:function(t){var e={application:O.b.LIBRARY_EDITOR,action:O.a.LibraryEditor.VIDEO_DETAILS,args:[t]},n=o.a.get(q.c).get("appLink")||e;return{name:this.getBackButtonText(n),link:{selector:".go-back-applink",appLink:n}}},getBackButtonText:function(t){if(!t)return u.a.getPhrase("shared.utils","backToVideoDetails");switch(t.action){case O.a.LibraryEditor.FOLDER:return u.a.getPhrase("shared.utils","backFolder");case O.a.LibraryEditor.SERIES:return u.a.getPhrase("shared.utils","backSeries");case O.a.Search.HOME:return u.a.getPhrase("shared.utils","backSearch");case O.a.ContentUpdates.PAST_RELEASES:return u.a.getPhrase("shared.utils","backPastReleases");case O.a.LibraryEditor.VIDEO_DETAILS:return u.a.getPhrase("shared.utils","backDetails");default:return u.a.getPhrase("shared.utils","back")}}},W={hasLibraryOfType:function(t,e){var n=t.libraries;return!(!n||!n.length)&&n.any((function(t){return t.get("type")===e}))},hasCustomLibrary:function(t){return W.hasLibraryOfType(t,l.h.CustomLibrary)},getSourceTypes:function(t){return t.libraries?t.libraries.map((function(t){return t.get("type")})):[]},isExchangeVideo:function(t){return t.libraries&&t.libraries.any((function(t){return t.get("type")===l.h.Exchange}))}},Y={generateDialog:function(t,e,n,o){new r.a({title:u.a.getPhrase("shared.utils","cancelProcessingHeading"),text:u.a.getPhrase("shared.utils","cancelProcessingBody",{videoTitle:t}),buttons:[{text:u.a.getPhrase("shared.utils","yes"),className:"btn btn-primary",success:!0},{text:u.a.getPhrase("shared.utils","no"),className:"btn btn-link",close:!0}]}).render().done((function(){return F.Radio.channel(e).trigger(n,o)}))}},J={setSelected:function(t,e){if(e&&t){J.deselectAll(e);var n=e.findWhere({id:t});n&&n.set("selected",!0)}},getSelected:function(t){return t.findWhere({selected:!0})},deselectAll:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.silent,r=void 0===n||n;t.each((function(t){return t.set("selected",!1,{silent:r})}))},findModelByName:function(t,e){return e.find((function(e){return e.get("name").toLowerCase()===t.toLowerCase()}))},getIds:function(t){return t.map((function(t){return t.get("id")}))}},K=n(176),Q={isLazyLoadSupported:function(t){if(!t)return!1;var e=K.a.getBrowser(),n=e.browser&&e.browser.toLowerCase(),r=e.version&&parseInt(e.version);return!(n&&r&&i.isNumber(r)&&i.has(t,n))||r>=t[n]}},Z=n(173);n.d(e,"d",(function(){return r.a})),n.d(e,"a",(function(){return a})),n.d(e,"p",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"w",(function(){return d})),n.d(e,"o",(function(){return b})),n.d(e,"f",(function(){return v.a})),n.d(e,"v",(function(){return m.a})),n.d(e,"j",(function(){return E})),n.d(e,"g",(function(){return L})),n.d(e,"l",(function(){return A})),n.d(e,"i",(function(){return I})),n.d(e,"k",(function(){return V})),n.d(e,"e",(function(){return U})),n.d(e,"t",(function(){return H})),n.d(e,"m",(function(){return z.a})),n.d(e,"u",(function(){return G})),n.d(e,"x",(function(){return W})),n.d(e,"b",(function(){return Y})),n.d(e,"c",(function(){return J})),n.d(e,"h",(function(){return Q})),n.d(e,"r",(function(){return Z.b})),n.d(e,"s",(function(){return Z.c})),n.d(e,"q",(function(){return Z.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(1),o=n(7),i=n(57),a=n(10),c=n(18);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(l,t);var e,n,i,u=y(l);function l(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),e=u.call(this,t),r.result(d(e),"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(d(e),"channelName")||a.c.throw(new c.a("Must provide a channelName for ".concat(r.result(d(e),"name"))));var n=[].concat(s(e.defaultProps),s(e.props||[]));return e.dataRequestSignatures={},e.mergeOptions(t,n),e}return e=l,(n=[{key:"getCursors",value:function(t){var e=this.cache.get(t);return e?e.cursors:{}}},{key:"clearCacheAndGet",value:function(t){var e=this,n=t.callback,o=t.errorCallback,i=t.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(t){r.isFunction(o)&&e.stopListening(e.getChannel(),u,o),r.isFunction(n)&&n(t)})),void this.listenToOnce(this.getChannel(),u,(function(){r.isFunction(n)&&e.stopListening(e.getChannel(),c,n),r.isFunction(o)&&o()}));this.cache.remove(t.eventPrefix),this.get(t)}},{key:"get",value:function(t){var e=this,n=t.callback,o=t.errorCallback,i=t.eventPrefix,a=t.resource,c=t.formatData,u=t.expiryTime,s=t.successHandler,l=t.errorHandler,f=t.bootstrapName,p=this.getEventNames(i),y=p.syncEvent,h=p.requestEvent,d=p.successEvent,b=p.errorEvent,v=this.getChannel(),m=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(i,this.bootstrapData[f],c,{openRequest:!1,timestamp:m}),delete this.bootstrapData[f]);var g,S=this.cache.get(i);S&&(g=S.data);var O=S&&S.openRequest,w=this.isExpired(i,u);if(O&&(this.listenToOnce(v,y,(function(t){r.isFunction(o)&&e.stopListening(e.getChannel(),b,o),r.isFunction(n)&&n(t)})),this.listenToOnce(v,b,(function(){r.isFunction(n)&&e.stopListening(e.getChannel(),y,n),r.isFunction(o)&&o()}))),this.cache.has(i)&&!w||(v.trigger(h),this.listenToResponse({eventPrefix:i,formatData:c,cacheOptions:{timestamp:m},callback:n,errorCallback:o,successHandler:s,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:m}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:d,errorEvent:b})),g&&r.isFunction(n)&&!w&&n(g),g)return g}},{key:"create",value:function(t){var e=t.eventPrefix,n=t.resource,r=t.data,o=t.formatData,i=t.callback,a=t.errorCallback,c=t.invalidationKeys,u=t.successHandler,s=t.errorHandler,l=this.getEventNames(t.eventPrefix),f=l.requestEvent,p=l.successEvent,y=l.errorEvent,h=this.getChannel(),d=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:e,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:d,successEvent:p,errorEvent:y})}},{key:"update",value:function(t){var e=t.data,n=t.callback,r=t.errorCallback,o=t.resource,i=t.formatData,a=t.eventPrefix,c=t.invalidationKeys,u=t.errorHandler,s=t.successHandler,l=this.getEventNames(t.eventPrefix),f=l.requestEvent,p=l.successEvent,y=l.errorEvent,h=this.getChannel(),d=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,e,{channel:d,successEvent:p,errorEvent:y})}},{key:"delete",value:function(t){var e=t.eventPrefix,n=t.resource,r=t.callback,o=t.errorCallback,i=t.invalidationKeys,a=t.successHandler,c=t.errorHandler,u=this.getEventNames(e),s=u.successEvent,l=u.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:e,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(t){var e=this,n=t.eventPrefix,o=t.formatData,i=t.callback,a=t.errorCallback,c=t.successHandler,u=t.errorHandler,s=t.invalidationKeys,l=t.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),y=p.syncEvent,h=(p.requestEvent,p.successEvent),d=p.errorEvent,b=p.successAlertEvent,v=p.errorAlertEvent,m=this.getChannel(),g=this.getTransportChannel(),S=this.getAlertChannel();r.isFunction(i)&&this.listenToOnce(m,y,i),r.isFunction(a)&&this.listenToOnce(m,d,a),this.stopListening(S,b),this.stopListening(S,v),r.isFunction(c)&&this.listenToOnce(S,b,c),r.isFunction(u)&&this.listenToOnce(S,v,u),!r.isFunction(u)&&!1!==u&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(S,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,h,(function(t){e.stopListening(m,d,a);for(var r=arguments.length,i=new Array(r>1?r-1:0),c=1;c<r;c++)i[c-1]=arguments[c];S.trigger.apply(S,[b,t].concat(i));var u=f.noCache?e.formatData(t,o):e.cacheData(n,t,o);f.clearCacheKey&&e.cache.remove(n),m.trigger(y,u),s&&s.length&&e.cache.invalidate(s,(function(t){return m.trigger("".concat(t,":invalidate"))}))})),this.listenTo(g,d,(function(){var t;e.stopListening(m,y,i);var r=(t=e.dataProvider).parseError.apply(t,arguments);S.trigger(v,r),m.trigger(d,r),f.noCache||e.cacheData(n,null,null)})))}},{key:"cacheData",value:function(t,e,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(e),u=this.formatData(e,n);return this.cache.set(t,{data:u,timestamp:a,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(t){if(t){var e=t.pagination;if(e)return e.cursors?e.cursors:r.isUndefined(e.offset)||r.isUndefined(e.pageSize)?e.page?this.convertLegacyPaginationToCursors(e):void 0:this.convertOffsetPaginationToCursors(e)}}},{key:"formatData",value:function(t,e){return r.isFunction(e)?e(t):t}},{key:"chain",value:function(){var t=this,e=[],n=function(t,e){r.isFunction(t)&&t(e)},o=function(r,o){return e.push((function(){var i=r.callback;r.callback=function(t){n(i,t),n(e.shift())},t[o](r)})),i},i={func:function(t){return e.push((function(){t(e.shift()||function(){})})),i},get:function(t){return o(t,"get")},create:function(t){return o(t,"create")},update:function(t){return o(t,"update")},delete:function(t){return o(t,"delete")},run:function(){n(e.shift())}};return i}},{key:"invalidateCache",value:function(t){t&&t.length&&this.cache.invalidate(t)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(t,e){if(!e)return!1;var n=this.cache.get(t);if(!n||!n.timestamp)return!0;var r=1e3*e;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(t){return{syncEvent:"".concat(t,":sync"),requestEvent:"".concat(t,":request"),successEvent:"".concat(t,":success"),errorEvent:"".concat(t,":error"),successAlertEvent:"".concat(t,":success:alert"),errorAlertEvent:"".concat(t,":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(t){this.dataRequestSignatures[t]=t}},{key:"hasRequestSignature",value:function(t){return!!this.dataRequestSignatures[t]}},{key:"convertOffsetPaginationToCursors",value:function(t){var e=t.offset,n=t.pageSize,o=t.totalItems,i=o>0&&e<o&&e+n,a=o>0&&e>0&&Math.max(e-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(t){var e=t.page,n=t.totalPages,o=r.isNumber(e)&&e>0&&e<n&&e+1,i=r.isNumber(e)&&e>1&&e-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(e.prototype,n),i&&f(e,i),l}(i.a)},function(t,e,n){"use strict";var r,o,i=n(147),a=n(1),c=n(311),u=n.n(c),s=n(312),l=n.n(s),f=n(313),p=n.n(f),y=n(314),h=n.n(y),d=(n(315),n(316),n(317)),b=n.n(d),v=n(318),m=n.n(v),g=n(319),S=n.n(g),O=n(320),w=n.n(O),k=n(321),C=n.n(k),E=n(322),R=n.n(E),_=n(323),P=n.n(_),T=n(324),x=n.n(T),j=n(325),D=n.n(j),L=n(326),A=n.n(L),N=n(327),I=n.n(N),V=n(328),M=n.n(V),U=n(329),F=n.n(U),H=n(330),z=n.n(H),B=n(331),q=n.n(B),G=n(332),W=n.n(G),Y=n(333),J=n.n(Y),K=n(334),Q=n.n(K),Z=n(335),$=n.n(Z),X=n(336),tt=n.n(X),et=(n(337),n(338)),nt=n.n(et),rt=n(339),ot=n.n(rt),it=n(340),at=n.n(it),ct=(n(341),n(342),n(343)),ut=n.n(ct),st=n(344),lt=n.n(st),ft=n(345),pt=n.n(ft),yt=n(346),ht=n.n(yt),dt=n(347),bt=n.n(dt),vt=n(348),mt=n.n(vt),gt=(n(349),n(350)),St=n.n(gt),Ot=n(351),wt=n.n(Ot),kt=n(352),Ct=n.n(kt),Et=n(353),Rt=n.n(Et),_t=n(354),Pt=n.n(_t),Tt=n(355),xt=n.n(Tt),jt=n(356),Dt=n.n(jt),Lt=(n(357),n(358)),At=n.n(Lt),Nt=n(359),It=n.n(Nt),Vt=n(360),Mt=n.n(Vt),Ut=n(361),Ft=n.n(Ut),Ht=n(362),zt=n.n(Ht),Bt=n(363),qt=n.n(Bt),Gt=n(364),Wt=n.n(Gt),Yt=n(365),Jt=n.n(Yt),Kt=n(366),Qt=n.n(Kt),Zt=n(367),$t=n.n(Zt),Xt=n(368),te=n.n(Xt),ee=n(369),ne=n.n(ee),re=n(370),oe=n.n(re),ie=n(371),ae=n.n(ie),ce=n(372),ue=n.n(ce),se=n(373),le=n.n(se),fe=(n(374),n(375),n(376),n(377)),pe=n.n(fe),ye=(n(378),n(379),n(380),n(381),n(382)),he=n.n(ye),de=n(383),be=n.n(de),ve=(n(384),n(385),n(386),n(387)),me=n.n(ve),ge=n(388),Se=n.n(ge),Oe=n(389),we=n.n(Oe),ke=n(390),Ce=n.n(ke),Ee=n(391),Re=n.n(Ee),_e=n(392),Pe=n.n(_e),Te=n(393),xe=n.n(Te),je=(n(394),n(395),n(396),n(397)),De=n.n(je),Le=n(398),Ae=n.n(Le),Ne=[u.a,p.a,h.a,b.a,w.a,C.a,R.a,P.a,S.a,l.a,x.a,D.a,A.a,I.a,M.a,m.a,F.a,z.a,q.a,tt.a,W.a,J.a,Q.a,$.a,nt.a,pt.a,$t.a,ne.a,te.a,le.a,oe.a,ae.a,ue.a,Rt.a,xt.a,Pt.a,ot.a,at.a,wt.a,Ct.a,St.a,ut.a,ht.a,It.a,Mt.a,bt.a,mt.a,Ft.a,lt.a,At.a,zt.a,qt.a,Dt.a,Wt.a,Qt.a,Jt.a,he.a,be.a,pe.a,we.a,Se.a,me.a,Ce.a,Pe.a,Re.a,xe.a,Ae.a,De.a];function Ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}!function(t){t.AddToPlaylists="add-to-playlist",t.Caret="caret",t.Delete="delete",t.Edit="edit",t.NoEdit="no-edit",t.Close="close",t.Folder="folder",t.Resources="resources",t.More="more",t.Bell="bell",t.Plus="plus",t.Search="search",t.Share="share",t.Upload="upload",t.Preview="preview",t.CircleCheck="circle-check",t.Down="down",t.Right="right",t.UpDown="up-down",t.ChevronUp="chevron-up",t.ChevronDown="chevron-down",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.VisibleOff="visible-off",t.VisibleOn="visible-on",t.PublisherArchive="publisher-archive",t.Play="play",t.PlayCircle="play-circle",t.ArrowLeft="arrow-left",t.CheckCircleOutline="check-circle-o",t.CheckCircle="check-circle",t.Check="check",t.Lock="lock",t.Link="link",t.Info="info",t.Question="question",t.Star="star",t.StarOutline="star-o",t.Archive="archive",t.Warning="warning",t.WarningOutline="warning-o",t.NewWindow="new-window",t.File="file",t.FilePDF="file-pdf",t.FileExcel="file-excel",t.FilePowerpoint="file-ppt",t.FileWord="file-word",t.FileImg="file-img",t.FileZip="file-zip",t.Enter="enter",t.Calendar="calendar",t.CloseCaption="close-caption",t.CloseCaptionBadge="close-caption-badge",t.Playlist="playlist",t.Handle="handle",t.Subject="subject",t.Series="series",t.EditClickView="edit-clickview",t.Heart="heart",t.HeartOutline="heart-outline",t.WhiteWave="white-wave",t.Cog="cog",t.Video="video",t.Compass="compass",t.History="history",t.Tag="tag",t.Email="email",t.YearLevel="year-level",t.Subjects="subjects"}(r||(r={}));var Ve;function Me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,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(t){if(Array.isArray(t))return Ie(t)}(Ve=Ne)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(Ve)||function(t,e){if(t){if("string"==typeof t)return Ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(t,e):void 0}}(Ve)||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(e,"a",(function(){return Ue})),n.d(e,"b",(function(){return Fe}));var Ue=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(t,e),r=this.getIcon(n,e);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(t,e){return i.icon(t,e.iconOptions||{})}},{key:"faIconLookup",value:function(t,e){var n=e.prefix,r=void 0===n?"cv":n;return i.findIconDefinition({prefix:r,iconName:t})}}])&&Me(e.prototype,n),r&&Me(e,r),t}().Instance,Fe=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));var r=n(20),o=Object.assign({Notifications:"NotificationService",PartialLoading:"PartialLoadingService",NavLock:"NavLockService",DialogHelper:"DialogHelper",Analytics:"AnalyticsService",VideoDragDrop:"VideoDragDropService",FolderDragDrop:"FolderDragDropService",SelectedVideo:"SelectedVideoService",FolderCache:"FolderCacheService",LocalOptions:"LocalOptionsService",ContextService:"ContextService",VideoMixin:"VideoMixinService",PageVisibility:"PageVisibility",PageTitle:"PageTitle",Language:"LanguageService",ContextualSearch:"ContextualSearchService",Intercom:"IntercomService"},r.b),i=Object.assign({Config:"ConfigDataService",User:"UserDataService",Customer:"CustomerDataService",Library:"LibraryDataService",Search:"SearchDataService",Notifications:"NotificationDataService",NotificationsSocket:"NotificationSocketService",Settings:"SettingsDataService",StaffRequests:"StaffRequestDataService",MigrationVideo:"MigrationVideoDataService",Tags:"TagDataService",Series:"SeriesDataService",ImageUpload:"ImageUploadDataService",Chapter:"ChapterDataService",Export:"ExportDataService",LocalCache:"LocalCacheDataService",RestrictedVideo:"RestrictedVideoDataService",Ratings:"RatingsDataService",Language:"LanguageDataService",ContentUpdates:"ContentUpdatesDataService",DownloadProxy:"DownloadProxyDataService",Resource:"ResourceDataService",Subtitle:"SubtitleDataService",Link:"LinkDataService",Company:"CompanyDataService",Person:"PersonDataService",Fields:"FieldsDataService"},r.a)},,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return l}));var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(s,t);var e,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"name",get:function(){return"DevError"}}])&&i(e.prototype,n),r&&i(e,r),s}(n(10).a)},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Sources="libraries",t.Folder="folder",t.Tags="tag",t.Ratings="ratings",t.Interactives="interactives",t.Resources="resources",t.Subtitles="subtitles",t.ProductionYear="productionYear",t.ProducedByClickView="producedByClickView",t.HD="hd",t.Duration="duration",t.Series="series"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"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(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"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(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Video="videos",t.Folder="categories",t.Series="series",t.Channel="channels",t.Distributors="companies",t.Producers="people",t.Tags="tags",t.Language="languages",t.TagsRaw="tag",t.ChannelRaw="channel",t.Recent="recent",t.Direct="direct",t.ProductionCompanies="companies",t.Directors="people",t.Season="season",t.Classification="subjects"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Component=1]="Component",t[t.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},,function(t,e,n){"use strict";var r,o;!function(t){t.Libraries="libraries",t.Subjects="subjects",t.ReleaseDate="release-date"}(r||(r={})),function(t){t.ThisMonth="this-month",t.LastMonth="last-month",t.Last3Months="last-3-months",t.Last6Months="last-6-months"}(o||(o={})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},,function(t,e){t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(1),o=n(97),i=n(18),a=n(57),c=n(77),u=n(169),s=n(10);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(h,t);var e,n,a,l=y(h);function h(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(t=l.call(this)).viewObjects={},t}return e=h,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(t,e){var n=this.mergeData(e,t.toJSON());return t instanceof u.a&&t.set(n,{silent:!0}),t instanceof c.a&&!(t instanceof u.a)&&t.set(n,{silent:!0}),t}},{key:"get",value:function(t){var e=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[t];if(i&&o)return this.updateViewModel(i,e);if(i)return i;var a=this.getLocalData(t,n);return this.set(t,e,a,n)}},{key:"set",value:function(t){var e=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(e,n),u=o?new o(a):new c.a(a);return this.viewObjects[t]=u,i&&!n?(this.setLocalData(t,u,null,r),this.setupChangeListeners(t,u,r)):i&&n&&this.setupChangeListeners(t,u,r),u}},{key:"clear",value:function(t){var e=this.viewObjects[t];return!!e&&(this.stopListening(e),e.trigger("destroy"),delete this.viewObjects[t],!0)}},{key:"getLocalData",value:function(t,e){var n=e.storage;if(n)return this.getStorageHelper(n.type).get(t)}},{key:"setLocalData",value:function(t,e,n,r){var o,i=r.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),e instanceof c.a&&(o=e.pick(i.persistProps)),this.getStorageHelper(i.type).set(t,o))}},{key:"setupChangeListeners",value:function(t,e,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(e,"change:".concat(i),r.partial(o.setLocalData,t,r,r,n))})))}},{key:"mergeData",value:function(t,e){return e?r.isObject(t)&&r.isObject(e)?r.extend(t,e):void s.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):t}},{key:"getStorageHelper",value:function(t){switch(t){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}},{key:"name",get:function(){return"ViewModelService"}}])&&f(e.prototype,n),a&&f(e,a),h}(a.a).Instance},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(2),o=n(18);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(l,t);var e,n,i,s=u(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this,t)).dialogOptions||r.a.ErrorHelper.throw(new o.a("Please provide DialogOptions for your implementation of DialogError")),e}return e=l,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&a(e.prototype,n),i&&a(e,i),l}(r.a.SilentError)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={FOLDER:"folder",FOLDER_VIDEOS:"folder:videos",VIDEOS:"videos",SERIES:"series",LIBRARY:"library",MOVE_VIDEOS:"move:videos",VIDEOS_BY_ID:"videos:by:id",VIDEOS_TO_REVIEW:"videos:to:review",RECENT_VIDEOS:"recent:videos",RECENT_VIDEOS_ALL_PAGES:"recent:videos:all:pages",RECENT_SUBJECTS:"recent:subjects",RESTRICTED_VIDEOS:"restricted:videos",RESTRICTED_OBJECTS:"restricted:objects",RATINGS:"ratings",CHANNELS:"channels",PRODUCERS:"producers",NOTIFICATIONS:"notifications",DISTRIBUTORS:"distributors",UPDATE_VIDEO:"update:video",UPDATE_VIDEO_THUMBNAIL:"update:video:thumbnail",DELETE_VIDEO_THUMBNAIL:"delete:video:thumbnail",UPDATE_FOLDER_BANNER:"update:folder:banner",DELETE_FOLDER_BANNER:"delete:folder:banner",DELETE_VIDEO:"delete:video",DISSOC_VIDEO:"dissoc:video",UPDATE_FIELD:"update:field",ADD_FIELD:"add:field",DELETE_FIELD:"delete:field",ASSOC_RATING:"assoc:video",DISSOC_RATING:"dissoc:rating",SEARCH_VIDEOS:"search:videos",SEARCH_FILTERS:"search:filters",SHARED_RESOURCE:"shared:resource",UPDATE_VIDEO_RESTRICTION:"update:video:restriction",SETTINGS:"settings",UPDATE_SETTING:"update:setting",GENERATE_PDF:"generate:pdf",GENERATE_COLLECTION_PDF:"generate:collection:pdf",GENERATE_CUSTOM_PDF:"generate:custom:pdf",STAFF_REQUESTS:"staff:requests",CUSTOMER_VIDEO:"customer:video",CUSTOMER_FOLDERS:"customer:folders",CUSTOMER_VIDEOS:"customer:videos",CUSTOMER_SMART_VIDEOS:"customer:smart:videos",CUSTOMER_METADATA:"customer:metadata",CLOUD_SYNC_STATUS:"cloud:sync:status",STAFF_REQUEST_BY_ID:"staff:requests:by:id",STAFF_REQUEST_MESSAGES:"staff:requests:messages",GET_TAGS:"get:tags",CREATE_TAG:"create:tag",ASSOC_TAG:"assoc:tag",DISSOC_TAG:"dissoc:tag",CREATE_SERIES:"create:series",CURRENT_USER:"currentuser",USER_BY_ID:"user:by:id",CREATE_CHAPTER:"create:chapter",UPDATE_CHAPTER:"update:chapter",DELETE_CHAPTER:"delete:chapter",CONCATENATE_CHAPTERS:"concatenate:chapters",CONCATENATE_STATUS:"concatenate:status",VIDEO_HAS_PHYSICAL_CHAPTERS:"video:has:physical:chapters",UPLOAD_IMAGE:"upload:image",FINALISATION:"finalisation",CUSTOMER:"customer",BACKUP_TOOL:"backup:tool",LOCAL_CACHE_DEVICES:"local:cache:devices",LOCAL_CACHE_DOWNLOADS:"local:cache:downloads",ADD_VIDEO_TO_LOCAL_CACHE:"add:video:to:local:cache",LOCALE:"locale",PHRASES:"phrases",SUGGEST_EDIT:"suggest:edit",UPDATE_FOLDER_THUMBNAIL:"update:folder:thumbnail",DELETE_FOLDER_THUMBNAIL:"delete:folder:thumbnail",LIBRARY_FOLDERS:"library:folders",RESOURCE:"resource",CREATE_RESOURCE:"create:resource",UPDATE_RESOURCE:"update:resource",DELETE_RESOURCE:"delete:resource",CREATE_SUBTITLE:"create:subtitle",DELETE_SUBTITLE:"delete:subtitle",LINK:"link",CREATE_LINK:"create:link",UPDATE_LINK:"update:link",DELETE_LINK:"delete:link",CREATE_COMPANY:"create:company",CREATE_PERSON:"create:person",BULK_DISSOC:"bulk:dissoc",CREATE_SEASON:"create:season"}},,function(t,e,n){"use strict";n.d(e,"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(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.MostRecent=1]="MostRecent",t[t.AtoZ=2]="AtoZ",t[t.ProductionYear=3]="ProductionYear",t[t.Newest=4]="Newest",t[t.SeriesSort=5]="SeriesSort"}(r||(r={}))},,,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return l}));var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(s,t);var e,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&i(e.prototype,n),r&&i(e,r),s}(n(2).a.SilentError)},function(t,e,n){t.exports={addLibraryButton:"fXaTF",addLibraryPlus:"_3Ygal",paddedContainer:"_1uVUJ",imageLarge:"_2-GAI",imageSmall:"_36Ljd"}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(18),a=n(4),c=n(11),u=n(219);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(a,t);var e,n,r,i=y(a);function a(){var t;return l(this,a),(t=i.apply(this,arguments)).contextHistory=[],t}return e=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(t){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t})}},{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(e.prototype,n),r&&f(e,r),a}(o.a.Service)),v=n(112);function m(){var t=b.getCurrentContext().appLink;return r.isObject(t)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),t.application.replace(":","-")}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.location,n=t.entity,r=t.workflowPhase,a=void 0===r?null:r,c=t.descriptor,u=void 0===c?null:c;return e||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:m(),location:e,entity:n,descriptor:u,workflowPhase:a}}function S(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(e,"a",(function(){return O}));var O={logUserAction:function(t,e){if(function(t){return!(!r.isArray(t)||!r.every(t,(function(t){return r.isObject(t)})))||!!r.isObject(t)}(t)&&r.isObject(e)){var n=O.buildUserActionEvent(e),o=n.userAction,i=n.action,a=n.eventVersion;v.a.log(o,t,i,a)}},logNavigate:function(t,e){var n=Object.assign({currentLocation:S(),appLink:t},e);v.a.log(a.q.Navigate,n)},mergeOptions:function(t,e){return r.extend({},t,e)},buildActionContext:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(t)},buildUserActionEvent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.actionType,n=t.eventVersion,r=e,o=g(t);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return S()},buildSearchEvent:function(t,e){return{data:{query:t},action:g({entity:a.e.Video,location:a.k.SearchBar,descriptor:e})}},buildInstantSearchEvent:function(t,e,n){var r;n===a.o.Series&&(r=a.e.Series),n===a.o.Folder&&(r=a.e.Folder),n===a.o.Tags&&(r=a.e.Tag),n===a.o.Video&&(r=a.e.Video);var o={instant:{},query:t};return e.id&&(o.instant.selectedId=e.id),e.name&&(o.instant.selectedName=e.name),{data:o,action:g({entity:r,location:a.k.SearchBar})}},mapInteractionType:function(t){switch(t){case a.i.DragDrop:return a.j.DragDrop;case a.i.FileSelect:return a.j.FileSelect;default:return}}}},function(t,e,n){"use strict";n.d(e,"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(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables"}},function(t,e,n){"use strict";var r,o,i,a,c,u,s;!function(t){t.Title="title",t.Views="viewsLast3Years"}(r||(r={})),function(t){t[t.None=0]="None",t[t.NoPublisher=5]="NoPublisher",t[t.BackupToolProcessesing=1]="BackupToolProcessesing",t[t.BackupToolCompleteWithError=2]="BackupToolCompleteWithError",t[t.BackupToolComplete=3]="BackupToolComplete",t[t.BackupCompleteWithError=8]="BackupCompleteWithError",t[t.BackupComplete=9]="BackupComplete",t[t.PublishingLibrary=6]="PublishingLibrary",t[t.LibraryPublished=7]="LibraryPublished"}(o||(o={})),function(t){t[t.None=0]="None",t[t.Smart=1]="Smart",t[t.Scratch=2]="Scratch",t[t.Full=3]="Full"}(i||(i={})),function(t){t.MigratedHidden="migratedHidden"}(a||(a={})),function(t){t[t.Valid=1]="Valid",t[t.BinaryRemoved=2]="BinaryRemoved",t[t.CloudFileNotFound=8]="CloudFileNotFound",t[t.CloudEmptyChapter=32]="CloudEmptyChapter",t[t.MediaProbingFailure=128]="MediaProbingFailure",t[t.CloudLocalChecksumNotMatch=16384]="CloudLocalChecksumNotMatch",t[t.CloudLocalDurationNotMatch=32768]="CloudLocalDurationNotMatch",t[t.CloudLocalChapterCountNotMatch=65536]="CloudLocalChapterCountNotMatch",t[t.TrackingCodeNotFound=536870912]="TrackingCodeNotFound",t[t.Exception=134217728]="Exception",t[t.CloudDurationDirty=1073741824]="CloudDurationDirty",t[t.LocalFileNotFound=16]="LocalFileNotFound",t[t.DbEmptyChapter=64]="DbEmptyChapter",t[t.DbChapterChecksumNotFound=256]="DbChapterChecksumNotFound",t[t.DbChapterDurationNotFound=512]="DbChapterDurationNotFound",t[t.DbChapterFileSizeNotFound=1024]="DbChapterFileSizeNotFound",t[t.DbChapterChecksumNotMatch=2048]="DbChapterChecksumNotMatch",t[t.DbChapterDurationNotMatch=4096]="DbChapterDurationNotMatch",t[t.DbChapterFileSizeNotMatch=8192]="DbChapterFileSizeNotMatch",t[t.SubtitleUploadFailure=131072]="SubtitleUploadFailure",t[t.ResourceUploadFailure=262144]="ResourceUploadFailure",t[t.ResourceFileNotFound=524288]="ResourceFileNotFound",t[t.ResourceFileInvalid=1048576]="ResourceFileInvalid",t[t.DbResourceChecksumNotFound=2097152]="DbResourceChecksumNotFound",t[t.DbResourceExtensionNotFound=4194304]="DbResourceExtensionNotFound",t[t.DbResourceFileSizeNotFound=8388608]="DbResourceFileSizeNotFound",t[t.DbResourceChecksumNotMatch=16777216]="DbResourceChecksumNotMatch",t[t.DbResourceFileSizeNotMatch=33554432]="DbResourceFileSizeNotMatch",t[t.CoverImageUploadFailure=67108864]="CoverImageUploadFailure",t[t.BackupIgnored=268435456]="BackupIgnored"}(c||(c={})),function(t){t[t.Valid=1]="Valid",t[t.Warning=2]="Warning",t[t.Error=3]="Error"}(u||(u={})),function(t){t.Migrated="migrated",t.Remaining="remaining",t.Errored="errored",t.ContentMatched="content-matched"}(s||(s={})),n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={CONTENT:"content",TOP_NAV:"topNav",PAGE_HEADER:"pageHeader",LEFT_NAV:"leftNav",POPUP:"popup",ALERT:"alert",PAGE_FOOTER:"pageFooter",HIDDEN:"hidden",TOP_BANNER:"topBanner"};r.ALERT,r.POPUP,r.HIDDEN},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(2),o=n(75),i=n(78),a=n(59),c=n(28),u={isSelected:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=u.getSelectedViewModel(t),r=n.get("selected")||"";return r.toString()===e.toString()},isParent:function(t,e){var n=u.getSelectedViewModel(t).get("parents");return!!n&&!!n[e]},getSelectedViewModel:function(t){return c.a.get("foldertreehelper:".concat(t))},deselectAll:function(t,e){e&&u.getSelectedViewModel(t).clear()},setSelected:function(t,e,n,o){if(n&&(e instanceof r.a.Model||(e=u.getModelFromCollection(e,n)),e)){var i=u.getSelectedViewModel(t);o||(u.deselectAll(t,n),i.set("selected",e.get("id")));var a={};e.collection&&function t(e){if(e){var n=e.get("id");n!==i.get("id")&&(a[n]=!0),e.collection&&t(e.collection.parent)}}(e),i.set("parents",a)}},getSelected:function(t,e){var n=u.getSelectedViewModel(t).get("selected");return n?u.getModelFromCollection(n,e):null},newFolder:function(){return new i.a},getModelFromCollection:function(t,e){if(!e)return null;for(var n=function e(n){if(n.get("id")&&t&&n.get("id").toString()===t.toString())return n;var r=n.children;if(!r||!r.length)return null;for(var o=0;o<r.length;o++){var i=e(r.at(o));if(i)return i}},r=0;r<e.length;r++){var o=n(e.at(r));if(o)return o}return null},getParent:function(t,e){var n=u.getModelFromCollection(t,e);if(!n||!n.collection||!n.collection.parent)return null;var r=n.collection.parent;return r.get("type")===a.a.CategoryTree?r.collection.parent:r},addFolder:function(t,e,n){var r,o=n;e&&(r=u.getModelFromCollection(e,o)),r&&(r.children||r.set("children",[]),o=r.children),o.add(t.toJSON())},addFolderToLibrary:function(t,e,n){var r=n.get(e);r&&u.addFolder(t,r.get("id"),n)},flatten:function(t){var e=new o.a(t.toJSON()),n=new r.a.Collection,i=-1;return e.each((function t(e){var r=e.get("type")===a.a.Folder||e.get("type")===a.a.CustomLibrary;r&&(n.add(e),e.set("depth",++i)),e.children&&e.children.length&&e.children.each(t),r&&i--})),n},getFirstType:function(t,e){var n;return t.find((function t(r){return r.get("type")===e?(n=r,!0):!(!r.children||!r.children.length)&&!!r.children.find(t)})),n},getLibrary:function(t,e){var n,r=u.getModelFromCollection(t,e);if(!r)return null;return function t(e){return e.get("type")===a.a.CustomLibrary?(n=e,!0):!(!e.collection||!e.collection.parent)&&t(e.collection.parent)}(r),n},isSubFolder:function(t){return!!(t&&t.collection&&t.collection.parent)&&t.collection.parent.get("type")===a.a.Folder},getFolderDepth:function(t,e){for(var n=u.getModelFromCollection(t,e),r=-1;n;)n=n.collection&&n.collection.parent,r++;return r},getFolderChord:function(t){var e=t,n=[];do{n.unshift(e.get("name")),e=e.collection?e.collection.parent:null}while(e);return n.join("->")},getDepthOfChildren:function(t){var e=0;if(!t.children||!t.children.length)return e;e++;for(var n=0,r=0;r<t.children.length;r++){var o=t.children.models[r],i=u.getDepthOfChildren(o);i>n&&(n=i)}return e+=n},calculateDestinationFolderDepth:function(t,e,n){var r=t&&u.getDepthOfChildren(t)||0;return(n&&u.getFolderDepth(e,n)||0)+1+r}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(91);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e){t.exports=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return m}));var r,o,i=n(1),a=n(7),c=n(139),u=n(77),s=n(57),l=n(11),f=n(108);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.Success="success",t.Warning="warning",t.Fail="danger",t.Info="info"}(r||(r={})),function(t){t.Success="Success! 🙌",t.Warning="Whoops...",t.Fail="Oops...",t.Info="FYI"}(o||(o={}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(s,t);var e,n,r,o=d(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,t)}return e=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 t=a.Radio.channel(l.a.ALERT),e={collection:this.alertCollection};this.options.alertViewCtor&&(e=i.extend({},e,{ctor:this.options.alertViewCtor})),t.trigger("show:alert",e)}},{key:"removeAlert",value:function(t){this.alertCollection.remove(t),this.showAlerts()}},{key:"createAlert",value:function(t){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),t.id||(t=i.extend({},t,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new u.a(t)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(t){var e=this;return"string"==typeof t?i.bind((function(){return e.createAlert(i.extend({},e.options.defaultSuccessAlert,{message:t}))}),this):t.useXHR?i.bind((function(t,n){return e.createAlert(i.extend({},e.options.defaultSuccessAlert,{message:n}))}),this):i.bind((function(){return e.createAlert(i.extend({},e.options.defaultSuccessAlert,t))}),this)}},{key:"error",value:function(t){var e=this;return"string"==typeof t?i.bind((function(){return e.createAlert(i.extend({},e.options.defaultErrorAlert,{message:t}))}),this):t.useXHR?i.bind((function(t){return e.createAlert(i.extend({},e.options.defaultErrorAlert,{message:t.message}))}),this):i.bind((function(){return e.createAlert(i.extend({},e.options.defaultErrorAlertIL_DEFAULT,t))}),this)}},{key:"generateUniqueAlertId",value:function(){return i.uniqueId("alert_")}},{key:"name",get:function(){return f.a.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&y(e.prototype,n),r&&y(e,r),s}(s.a)},function(t,e,n){"use strict";n.d(e,"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(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7);function o(t,e,n,o){var i=t;return"string"==typeof t&&(i=r.Radio.channel(t)),o.call(this,i,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(45),o=n(399),i={isPublishingLibraries:function(t){return a(r.a.PublishingLibrary,t)},librariesPublished:function(t){return a(r.a.LibraryPublished,t)},isInitialMigration:function(t){return c(r.c.None,t)&&!a(r.a.NoPublisher,t)},migrationInitialized:function(t){return!c(r.c.None,t)},backupProcessing:function(t){return a(r.a.BackupToolProcessesing,t)||a(r.a.BackupToolCompleteWithError,t)||a(r.a.BackupToolComplete,t)},backupCompleteWithoutError:function(t){return a(r.a.BackupComplete,t)},backupComplete:function(t){return a(r.a.BackupComplete,t)||a(r.a.BackupCompleteWithError,t)},backupCompleteWithError:function(t){return a(r.a.BackupCompleteWithError,t)},backupNotStarted:function(t){return a(r.a.None,t)},showPublisherArchive:function(t){return!i.noPublisher(t)},noPublisher:function(t){return a(r.a.NoPublisher,t)},fullMigrationInitialized:function(t){return i.migrationInitialized(t)&&t.get("migrationOption")===r.c.Full},isCurrentlyMigratingAll:function(t){return t&&t.finalisationTask&&t.finalisationTask.get("type")===o.a.MigrateAllPhase1}};function a(t,e){return e&&e.get("cloudSyncStatus")===t}function c(t,e){return e&&e.get("migrationOption")===t}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.ExchangeVideoAvailable="exchange-video-available",t.WorkspaceVideoAvailable="workspace-video-available",t.Marketing="marketing",t.EditedVideoAvailable="edited-video-available",t.VideoRequestAvailable="pay-tv-video-available",t.VideoRequestDenied="pay-tv-video-denied",t.VideoReviewReminder="term-update-review-reminder",t.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",t.CustomLibraryVideoAvailable="custom-library-video-available",t.VideoProcessingFailed="video-processing-failed",t.StaffRequest="new-staff-request",t.StaffRequestFulfilled="staff-request-fulfilment",t.ChapterMergeSuccess="media-concatenate-success",t.SuggestEdit="suggest-an-edit"}(r||(r={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(49),o=n(53),i=n(10);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,r,a=l(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=a.call(this,t)).name||i.c.throw(new i.b("Your service must be named.")),e}return e=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(e.prototype,n),r&&c(e,r),f}(r.Object)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",(function(){return o}));var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.variables={}}var e,n,o;return e=t,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(t){return this.variables[t]}},{key:"setUpVariables",value:function(t){this.variables=t}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&r(e.prototype,n),o&&r(e,o),t}().Instance},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Folder="category",t.CategoryTree="category_tree",t.CustomLibrary="custom_library",t.HostedLibrary="hosted_library",t.Exchange="exchange",t.Workspace="workspace"}(r||(r={}))},,,,,function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Guest="Guest",t.User="User",t.Admin="Admin",t.SuperAdmin="SuperAdmin",t.System="System"}(r||(r={}))},,,,,function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Ajax="AjaxDataProvider",t.Notifications="NotificationsSignalRDataProvider"}(r||(r={}))},function(t,e,n){"use strict";var r,o;n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),function(t){t.Direct="direct-search",t.Recent="recent-searches"}(r||(r={})),function(t){t[t.Remote=0]="Remote",t[t.Local=1]="Local"}(o||(o={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Other=0]="Other",t[t.Alert=1]="Alert",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Success=4]="Success"}(r||(r={}))},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(78);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}},{key:"comparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";n(208),n(210);var r=n(211),o=(n(207),n(29)),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.tooManyFiles",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,n,r,o=s(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,i.a.getPhrase(p,"title"))}return e=a,(n=[{key:"name",get:function(){return"TooManyFilesError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"okay"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),r&&c(e,r),a}(o.a),h=n(38),d=n(0);function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(a,t);var e,n,r,o=g(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,i.a.getPhrase("shared.customerSetting","title"))).settingName=t,e}return e=a,(n=[{key:"name",get:function(){return"CustomerSettingError"}},{key:"heading",get:function(){return i.a.getPhrase("shared.customerSetting","heading",{settingName:d.j[this.settingName]})}}])&&v(e.prototype,n),r&&v(e,r),a}(h.a);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(t){var e=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(t){return!1}}();return function(){var n,r=P(t);if(e){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(a,t);var e,n,r,o=R(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,i.a.getPhrase("shared.localCacheDeviceNotFound","title"))}return e=a,(n=[{key:"name",get:function(){return"LocalCacheDeviceNotFoundError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("shared.localCacheDeviceNotFound","heading"),text:i.a.getPhrase("shared.localCacheDeviceNotFound","body")}}}])&&C(e.prototype,n),r&&C(e,r),a}(o.a),x=n(89);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=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(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(t,e){return!e||"object"!==j(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var V=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(a,t);var e,n,r,o=A(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,i.a.getPhrase("shared.emailNotVerified","title"))).onlineUrl=t,e}return e=a,(n=[{key:"name",get:function(){return"EmailNotVerifiedError"}},{key:"heading",get:function(){return i.a.getPhrase("shared.emailNotVerified","heading")}},{key:"description",get:function(){var t=x.a.safeUrlConcat(this.onlineUrl,d.t.VERIFY_EMAIL);return i.a.getPhrase("shared.emailNotVerified","verify",{url:t,linkClasses:"info-link"})}}])&&D(e.prototype,n),r&&D(e,r),a}(h.a);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(a,t);var e,n,r,o=H(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,i.a.getPhrase("shared.noBetaAccess","title"))).marketingSiteUrl=t,e}return e=a,(n=[{key:"name",get:function(){return"NoBetaAccessError"}},{key:"heading",get:function(){return i.a.getPhrase("shared.noBetaAccess","heading")}},{key:"description",get:function(){return"".concat(i.a.getPhrase("shared.noBetaAccess","body"),'\n <a href="').concat(this.marketingSiteUrl,'library-editor">').concat(i.a.getPhrase("shared.noBetaAccess","findOutMore"),"</a>")}}])&&U(e.prototype,n),r&&U(e,r),a}(h.a);n.d(e,"e",(function(){return r.a})),n.d(e,"f",(function(){return y})),n.d(e,"a",(function(){return w})),n.d(e,"c",(function(){return T})),n.d(e,"b",(function(){return V})),n.d(e,"d",(function(){return q}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(1),o=n(7),i=n(53);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,o,a=f(p);function p(){return c(this,p),a.apply(this,arguments)}return e=p,(n=[{key:"mixin",value:function(t){for(var e in t){if(this.hasOwnProperty(e)){var n=this[e];return void(this[e]=r.extend({},n,t[e]))}this[e]=t[e]}}},{key:"addValidation",value:function(t){this.mixin({validation:t})}},{key:"validate",value:function(t,e){s(y(p.prototype),"validate",this).call(this,t,e)}},{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(y(p.prototype),"listenTo",this))}}])&&u(e.prototype,n),o&&u(e,o),p}(o.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(2),o=n(48),i=n(75),a=n(146),c=n(83);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=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(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(y,t);var e,n,r,u=p(y);function y(){return s(this,y),u.apply(this,arguments)}return e=y,(n=[{key:"parse",value:function(t){if(!t.data)return t;var e=t.data;return e.children=t.children,e}},{key:"associations",get:function(){return{banner:a.a,thumbnail:c.a,children:i.a,videos:o.a}}}])&&l(e.prototype,n),r&&l(e,r),y}(r.a.NestedModel)},,,,function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"idAttribute",get:function(){return"videoId"}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Model),g=n(110);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=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(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(n,t);var e=k(n);function n(){return O(this,n),e.apply(this,arguments)}return n}(r.a.Model);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=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(t){return!1}}();return function(){var n,r=L(t);if(e){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(i,t);var e,n,r,o=j(i);function i(){return P(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"associations",get:function(){return{keyContact:g.a,finalisationTask:R}}}])&&T(e.prototype,n),r&&T(e,r),i}(r.a.NestedModel),N=n(78),I=n(225),V=n(1);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H(t,e,n){return(H="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=G(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function z(t,e){return(z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function B(t){var e=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(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var W=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&z(t,e)}(i,t);var e,n,r,o=B(i);function i(){return U(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.id=t.chord,t.children&&!t.children.length&&(t.children=null),t}},{key:"associations",get:function(){return V.extend({},H(G(i.prototype),"associations",this),{children:I.a})}}])&&F(e.prototype,n),r&&F(e,r),i}(N.a);function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){return(K=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Q(t){var e=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(t){return!1}}();return function(){var n,r=$(t);if(e){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(t,e){return!e||"object"!==Y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $(t){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var X=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&K(t,e)}(n,t);var e=Q(n);function n(){return J(this,n),e.apply(this,arguments)}return n}(r.a.Model);function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rt(t){var e=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(t){return!1}}();return function(){var n,r=it(t);if(e){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(t,e){return!e||"object"!==tt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var at=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nt(t,e)}(n,t);var e=rt(n);function n(){return et(this,n),e.apply(this,arguments)}return n}(r.a.Model);function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t){var e=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(t){return!1}}();return function(){var n,r=pt(t);if(e){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pt(t){return(pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}(n,t);var e=lt(n);function n(){return ut(this,n),e.apply(this,arguments)}return n}(r.a.Model);n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return m})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return R})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return X})),n.d(e,"f",(function(){return at})),n.d(e,"h",(function(){return yt}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={LIBRARY_EDITOR:"library:editor",MIGRATION_WIZARD:"migration:wizard"}},,,function(t,e,n){"use strict";var r=n(1),o=n(7),i=n(124),a=n(70),c=n(116),u=n(2),s=n(3),l=n(14),f=n(528),p=n.n(f),y=n(235),h=n.n(y);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=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(t){return!1}}();return function(){var n,r=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(i,t);var e,n,r,o=m(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{styles:h.a,confirmSelectionText:s.a.getPhrase("shared.utils","confirmSelection",{svg:'<kbd><span class="'.concat(h.a.svgContainer,'">').concat(l.a.getSvg(l.b.Enter),"</span></kbd>")})}}},{key:"name",get:function(){return"ConfirmSelectionComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"suggestion-footer empty-suggestion px-2 ".concat(h.a.selectionContainer," clearfix")}}])&&b(e.prototype,n),r&&b(e,r),i}(u.a.Component);function w(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}(t)||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 k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return C}));var C={handleQuery:function(t,e){return function(n,r,o){if(e||(e={}),n&&e.ignoreOnQuery)return r([]);var u=n&&n.length>=c.a.ActivationLength;return e.fetchType!==a.a.Local||u?u?t instanceof i?t.search.call(t,n,r,o):r([{query:n}]):void 0:r(t.index.all())}},getTemplate:function(t){var e=arguments,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.fallbackTemplate,i=n.templateText;return function(n){var a=n.query;if(!a)return o.apply(void 0,w(e));if(a.length&&a.length<c.a.ActivationLength)return o.apply(void 0,w(e));var u=r.extend(n,{templateText:i});return t(u)}},getSearchSources:function(t){return r.map(t,(function(t,e){var n,r=t.typeaheadConfig,o=t.bloodhoundConfig,i=t.name,a=t.options;return o&&(n=C.buildBloodhound(o(i,a))),r({bloodhound:n,name:i},e,a)}))},buildBloodhound:function(t){return new i(t)},selectFirstResult:function(t,e,n,o){if(n&&!this.$el.find(".tt-cursor").length){var i=r.first(e);if(i&&!r.isEmpty(i)){var a=this.$el.find(".add-new");!a||i.id?(a&&a.hasClass("tt-cursor")&&a.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):a.addClass("tt-cursor")}else this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion")}},emitEventOnInput:function(t,e,n,i){if(t)return function(a,c){o.Radio.channel(t).trigger(e,a,n,r.extend({},i,c))}},resetAssociationOnBlur:function(t){return function(e,n){var i=this.model.get(n),a=r.isNumber(this.model.id);return t[n]||a?"string"==typeof i&&i.length?a?void(t.id===this.model.id&&(this.model.set(t),o.Radio.channel(e).trigger("typeahead:set:input",t[n]))):(o.Radio.channel(e).trigger("typeahead:clear:input"),void this.model.set(t)):void 0:(this.model.clear(),void o.Radio.channel(e).trigger("typeahead:clear:input"))}},getConfirmSelectionTemplate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return new O(t).render().el}},clearInputOnBlur:function(t){o.Radio.channel(t).trigger("typeahead:clear:input")}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(11),i=n(20);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,t);var e,n,a,f=l(p);function p(){var t;return c(this,p),(t=f.apply(this,arguments)).routeHistory=[],t.contextHistory=[],t}return e=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(t){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t})}},{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(t){(r.a.AppLinkHelper.getHref(t)||"/"===r.a.LocationUtils.GetCurrentPath())&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:t}))}},{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(e.prototype,n),a&&u(e,a),p}(r.a.Service))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1),o={urlBuilder:function(t,e){var n=r.map(e,(function(t,e){return e&&Array.isArray(t)?t.map((function(t){return"".concat(e,"=").concat(encodeURIComponent(t))})).join("&"):e&&void 0!==t?"".concat(e,"=").concat(encodeURIComponent(t)):""})),o=r.reduce(n,(function(t,e){return e?t?"".concat(t,"&").concat(e):e:t}));return o?"".concat(t,"?").concat(o):t},buildFilter:function(t){var e=[];if(t.limit&&e.push("limit:".concat(t.limit)),t.cursor&&e.push("page:".concat(t.cursor)),t.before&&e.push("dateCreated:...".concat(t.before)),e.length)return e.join(",")},makeHttps:function(t){return r.isString(t)?-1===t.indexOf("http://")?t:t=t.replace("http://","https://"):t},safeUrlConcat:function(t,e){if(t){var n=t;return t.endsWith("/")||(n+="/"),e?n+=e.startsWith("/")?e.slice(1):e:n}}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Draft=0]="Draft",t[t.Published=1]="Published",t[t.Archive=2]="Archive",t[t.Pending=3]="Pending",t[t.Rejected=4]="Rejected",t[t.Processing=5]="Processing"}(r||(r={}))},function(t,e,n){"use strict";var r=n(2),o=n(83),i=n(177),a=n(297),c=n(298);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,t);var e=f(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(r.a.Model);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=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(t){return!1}}();return function(){var n,r=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(n,t);var e=m(n);function n(){return b(this,n),e.apply(this,arguments)}return n}(r.a.Model),w=n(145),k=n(75),C=n(137),E=n(455),R=n(456),_=n(457),P=n(458),T=n(168);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=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(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var V=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(i,t);var e,n,r,o=A(i);function i(){return j(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return T.a}}])&&D(e.prototype,n),r&&D(e,r),i}(r.a.Collection);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(n,t);var e=H(n);function n(){return U(this,n),e.apply(this,arguments)}return n}(r.a.Model);function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){var e=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(t){return!1}}();return function(){var n,r=Z(t);if(e){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(i,t);var e,n,r,o=K(i);function i(){return W(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return q}}])&&Y(e.prototype,n),r&&Y(e,r),i}(r.a.Collection),X=n(299),tt=n(279),et=n(222);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=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(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=at(i);function i(){return rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return et.a}}])&&ot(e.prototype,n),r&&ot(e,r),i}(r.a.Collection),lt=n(300);function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ht(t,e){return(ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dt(t){var e=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(t){return!1}}();return function(){var n,r=vt(t);if(e){var o=vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bt(this,n)}}function bt(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vt(t){return(vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}(i,t);var e,n,r,o=dt(i);function i(){return pt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return lt.a}}])&&yt(e.prototype,n),r&&yt(e,r),i}(r.a.Collection),gt=n(228);function St(t){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kt(t,e){return(kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ct(t){var e=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(t){return!1}}();return function(){var n,r=Rt(t);if(e){var o=Rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Et(this,n)}}function Et(t,e){return!e||"object"!==St(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rt(t){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kt(t,e)}(a,t);var e,n,o,i=Ct(a);function a(){return Ot(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return r.a.Model}}])&&wt(e.prototype,n),o&&wt(e,o),a}(r.a.Collection),Pt=n(175);function Tt(t){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dt(t,e){return(Dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Lt(t){var e=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(t){return!1}}();return function(){var n,r=Nt(t);if(e){var o=Nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return At(this,n)}}function At(t,e){return!e||"object"!==Tt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nt(t){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var It=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dt(t,e)}(i,t);var e,n,r,o=Lt(i);function i(){return xt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return Pt.a}}])&&jt(e.prototype,n),r&&jt(e,r),i}(r.a.Collection);function Vt(t){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ft(t,e){return(Ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ht(t){var e=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(t){return!1}}();return function(){var n,r=Bt(t);if(e){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){return!e||"object"!==Vt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return qt}));var qt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ft(t,e)}(s,t);var e,n,r,u=Ht(s);function s(){return Mt(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"associations",get:function(){return{rating:a.a,series:i.a,season:w.a,categories:k.a,libraries:C.a,resources:V,interactives:$,chapters:X.a,thumbnail:o.a,producers:E.a,distributors:R.a,productionCompanies:_.a,directors:P.a,channel:c.a,tags:tt.a,subtitles:st,restrictions:mt,localCacheDownloads:gt.a,owner:h,playlist:O,fields:_t,links:It}}}])&&Ut(e.prototype,n),r&&Ut(e,r),s}(r.a.NestedModel)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(27),o=n(3),i=n(118),a="upload.utils",c={getStatus:function(t){if(c.hasError(t))return o.a.getPhrase(a,"videoProcessingError");if(!t.get("foregroundComplete")){var e=c.getProgress(t);return 0===e?o.a.getPhrase(a,"waiting"):o.a.getPhrase(a,"processing",{progress:e})}return c.isDone(t)?o.a.getPhrase(a,"complete"):o.a.getPhrase(a,"readyToWatch")},hasError:function(t){return t.get("pendingProcessStatus")===i.a.Error},isDone:function(t){return 2===t.get("pendingProcessStatus")},getProgress:function(t){return t.get("foregroundProgress")},hasExpired:function(t,e){var n=t.get("timeInitialized");return r().diff(n,"days")>=e}}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(19),a=n(130);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,o,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"modelId",value:function(t){return t.type}},{key:"parse",value:function(t){var e=this;return r.map(r.keys(t),(function(n){var o=t[n],i=e.getType(n);return{id:i,type:i,options:r.map(o,(function(t){return{id:t,name:t,value:t}}))}}))}},{key:"getType",value:function(t){return"categories"===t?i.a.Folder:"tags"===t?i.a.Tags:t}},{key:"model",get:function(){return a.a}}])&&s(e.prototype,n),o&&s(e,o),p}(o.a.Collection);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(i,t);var e,n,r,o=g(i);function i(){return b(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return a.b}}])&&v(e.prototype,n),r&&v(e,r),i}(o.a.Collection);n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return w}))},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={CURRENT_USER:"currentUser",CONFIG:"config",VERSION:"version",LOCALE:"locale",PHRASES:"phrases",CUSTOMER_META:"customerMeta"}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}var p;n.d(e,"c",(function(){return p})),n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return v})),function(t){t.LocalStorage="localStorage",t.SessionStorage="sesstionStorage"}(p||(p={}));var y=function(){function t(e){s(this,t),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=e.type,this.hasSupport&&(this.storage=window[this.type])}return f(t,[{key:"get",value:function(t){if(this.hasSupport){var e=this.storage.getItem(t);try{return JSON.parse(e)}catch(t){return e}}}},{key:"set",value:function(t,e){if(this.hasSupport)try{return this.storage.removeItem(t),"string"!=typeof e?(this.storage.setItem(t,JSON.stringify(e)),!0):(this.storage.setItem(t,e),!0)}catch(t){return!1}}},{key:"remove",value:function(t){if(this.hasSupport)return this.storage.removeItem(t)}},{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(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=e&&e};return this.set("".concat(this.cachePrefix).concat(t),r)}},{key:"cacheGet",value:function(t){var e="".concat(this.cachePrefix).concat(t),n=this.get(e);return n?this.isExpired(n)?(this.remove(e),null):n.data:null}},{key:"cacheExists",value:function(t){var e="".concat(this.cachePrefix).concat(t),n=this.get(e);return!!n&&(!this.isExpired(n)||(this.remove(e),!1))}},{key:"cacheRemove",value:function(t){return this.remove("".concat(this.cachePrefix).concat(t))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var t=0;t<this.storage.length;t++){var e=this.storage.key(t);if(0===e.indexOf(this.cachePrefix)){var n=this.get(e);n&&n.time&&this.isExpired(n)&&this.remove(e)}}}},{key:"isExpired",value:function(t){return t.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(t){return!1}}}]),t}(),h=function(t){o(n,t);var e=a(n);function n(){return s(this,n),e.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.LocalStorage}))}}]),n}(y),d=function(t){o(n,t);var e=a(n);function n(){return s(this,n),e.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.SessionStorage}))}}]),n}(y),b=h.Instance,v=d.Instance},function(t,e,n){t.exports={alertItem:"_6L-Rn",fadeIn:"_2ISjU",icon:"_3X3sP",alertContent:"_2_sUY",heading:"_2nrzl",message:"_1UIK0",link:"_2xwcl",svgContainer:"_2yj4z",alertList:"_1O_xv",removing:"_3pw7F",fadeOut:"eLPSS",removed:"OqzPi"}},,,,,,,,,function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Unknown=0]="Unknown",t[t.BadRequest=1]="BadRequest",t[t.Unauthorized=2]="Unauthorized",t[t.Forbidden=3]="Forbidden",t[t.NotFound=4]="NotFound",t[t.InternalServer=5]="InternalServer"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={LAZY_LOAD:"lazy:load:behavior",POPUP:"popup:behavior",IMAGE_SELECT:"image:select:behavior"}},function(t,e,n){"use strict";var r=n(1),o=n(2);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(n,t);var e=u(n);function n(){return a(this,n),e.apply(this,arguments)}return n}(o.a.Model);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(n,t);var e=d(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(o.a.Model);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=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(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return R}));var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(a,t);var e,n,o,i=k(a);function a(){return S(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"parse",value:function(t){var e=["avatar","customerLogo"],n=r.omit(t,e);return r.each(e,(function(e){r.isObject(t[e])?n[e]=t[e]:t[e]&&(n[e]={url:t[e]})})),n}},{key:"associations",get:function(){return{avatar:f,customerLogo:m}}}])&&O(e.prototype,n),o&&O(e,o),a}(o.a.NestedModel)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model),f=n(48);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=b(i);function i(){return y(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"associations",get:function(){return{videos:f.a}}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.NestedModel);n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return g}))},function(t,e,n){"use strict";var r=n(7),o=n(113),i=n(218),a=n(2),c=n(18);function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(4).g.V1,l=function(){function t(e,n,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.data=n,this.actionContext=r,this.eventVersion=o||s}var e,n,r;return e=t,(n=[{key:"isType",value:function(t){return t===this.type}},{key:"enrich",value:function(t,e){this.validateKey(t),this[t]=e}},{key:"get",value:function(t){if(t&&this[t])return this[t]}},{key:"validateKey",value:function(t){"type"!==t&&"data"!==t||a.a.ErrorHelper.throw(new c.a("".concat(t," is not a valid key"))),this[t]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named ".concat(t)))}}])&&u(e.prototype,n),r&&u(e,r),t}();n.d(e,"a",(function(){return f}));var f={log:function(t,e,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new l(t,e,n,a))}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Inlet="event:inlet",t.Outlet="event:outlet"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Fifo="FifoMemoryCache"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={ActivationLength:1,SuggestionLimit:{Min:1,Default:3,Folder:3,Recent:3}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Received=1]="Received",t[t.Seen=2]="Seen",t[t.Read=3]="Read"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Error=-1]="Error",t[t.Processing=1]="Processing",t[t.Completed=2]="Completed"}(r||(r={}))},function(t,e,n){"use strict";var r,o,i,a=n(3),c="search.utils",u=(new Date).getFullYear(),s={DURATION:[{id:"0",value:"0",start:0,end:599999,name:function(){return a.a.getPhrase(c,"short")},description:function(){return a.a.getPhrase(c,"lessThan10Min")}},{id:"600000",value:"600000",start:6e5,end:2399999,name:function(){return a.a.getPhrase(c,"medium")},description:function(){return a.a.getPhrase(c,"11To40Min")}},{id:"2400000",value:"2400000",start:24e5,end:Number.MAX_VALUE,name:function(){return a.a.getPhrase(c,"long")},description:function(){return a.a.getPhrase(c,"greaterThan40Min")}}],PRODUCTION_YEAR:[{id:"...",from:0,to:0,value:"...",name:function(){return a.a.getPhrase(c,"anyYear")},active:!0,isDefault:!0},{id:"".concat(u,"..."),from:u,to:0,value:"".concat(u,"..."),name:function(){return a.a.getPhrase(c,"thisYear")}},{id:"".concat(u-3,"..."),from:u-3,to:0,value:"".concat(u-3,"..."),name:function(){return a.a.getPhrase(c,"last3Years")}},{id:"".concat(u-10,"..."),from:u-10,to:0,value:"".concat(u-10,"..."),name:function(){return a.a.getPhrase(c,"last10Years")}}]};!function(t){t.Video="video",t.Folder="folder",t.Series="series",t.HostedLibrary="hosted_library",t.CustomLibrary="custom_library"}(r||(r={})),function(t){t.Since="since-",t.Before="before-",t.LongerThan="longer-than-",t.ShorterThan="shorter-than-",t.To="-to-",t.Libraries="libraries",t.Ratings="ratings"}(o||(o={})),function(t){t.Inclusive="inclusive",t.Exclusive="exclusive",t.Boolean="boolean",t.Range="range",t.Tag="tag"}(i||(i={}));var l,f=n(1),p=n(27),y=n(19),h=n(93),d=n(0);function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v,m=(b(l={},y.a.Ratings,(function(t){var e=t.options.filter((function(t){return t.get("active")})),n=f.map(e,(function(t){return t.get("value")}));if(!n.length)return null;var r=f.min(n);r===t.options.first().get("value")&&(r=0);var o=f.max(n),i="".concat(r,"...").concat(o);return"rating:".concat(i)})),b(l,y.a.ProductionYear,(function(t){var e=t.options.find((function(t){return t.get("active")}));if(!e)return null;var n=e.get("from")||"",r=e.get("to")||"";if(!n&&!r)return null;var o="".concat(n,"...").concat(r);return"productionYear:".concat(o)})),b(l,y.a.Duration,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!e.length)return null;var n=e.map((function(t){return t.get("start")})),r=e.map((function(t){return t.get("end")})),o=f.min(n),i=f.max(r);i===Number.MAX_VALUE&&(i="");var a="".concat(o,"...").concat(i);return"duration:".concat(a)})),b(l,"boolean",(function(t){return t.get("active")?"".concat(t.get("type"),":true"):""})),l);function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S,O=(g(v={},y.a.Sources,(function(t,e){if(t.options.any((function(t){return t.get("dry")}))){var n=[];return t.options.each((function(t){return n.push(t.get("id"))})),{sources:"".concat(n.join(","))}}var r=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("id")}));if(r.length||(r=t.options.models),r.length===e.length)return{};var i=[];f.every(_.getLibraries(e),(function(t){return f.contains(r,t.id)}))?i.push(o.Libraries):f.each(_.getLibraries(e),(function(t){f.contains(r,t.id)&&i.push("library-".concat(t.id))}));var a=_.getExchange(e),c=_.getWorkspace(e);return a&&f.contains(r,a.id)&&i.push("exchange"),c&&f.contains(r,c.id)&&i.push("workspace"),{libraries:"".concat(i.join(","))}})),g(v,y.a.Ratings,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!f.map(e,(function(t){return t.get("value")})).length)return{};var n=f.min(e,(function(t){return t.get("value")})),r=f.max(e,(function(t){return t.get("value")})),i="".concat(n.get("name")).concat(o.To).concat(r.get("name"));return n.get("name")===r.get("name")&&(i=n.get("name")),{ratings:i}})),g(v,y.a.ProductionYear,(function(t){var e=t.options.find((function(t){return t.get("active")}));if(!e)return{};var n=e.get("from"),r=e.get("to");if(!n&&!r)return{};return{productionYear:n&&!r?"".concat(o.Since).concat(n):r&&!n?"".concat(o.Before).concat(r):"".concat(n).concat(o.To).concat(r)}})),g(v,y.a.Duration,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!e.length||e.length===t.options.length)return{};var n=f.min(e,(function(t){return t.get("start")})),r=f.max(e,(function(t){return t.get("end")})),i=_.toISOString(n.get("start")),a=_.toISOString(r.get("end"));return{duration:i&&!a?"".concat(o.LongerThan).concat(i.toLowerCase()):a&&!i?"".concat(o.ShorterThan).concat(a.toLowerCase()):"".concat(i.toLowerCase()).concat(o.To).concat(a.toLowerCase())}})),g(v,y.a.Tags,(function(t){var e=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("name")}));if(e.length)return{tag:f.map(e,(function(t){return t}))}})),g(v,"boolean",(function(t){return t.get("active")?g({},t.get("type"),!0):{}})),g(v,"default",(function(t){var e=t.options.find((function(t){return t.get("active")}));return e?g({},t.get("type"),e.get("value")):{}})),v),w=n(25);function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C=(k(S={},y.a.Sources,(function(t){var e=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("name")}));return 1===e.length?e[0]:a.a.getPhrase("search.utils","librariesLabel",{count:e.length})})),k(S,y.a.Ratings,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!f.map(e,(function(t){return t.get("value")})).length)return"";var n=f.min(e,(function(t){return t.get("value")})),r=f.max(e,(function(t){return t.get("value")})),o="".concat(n.get("name")," to ").concat(r.get("name"));return n.get("name")===r.get("name")&&(o=n.get("name")),a.a.getPhrase("search.utils","ratingLabel",{ratings:o})})),k(S,y.a.ProductionYear,(function(t){var e=t.options.find((function(t){return t.get("active")}));if(!e)return"";var n=e.get("from"),r=e.get("to");return n||r?n&&!r?a.a.getPhrase("search.utils","productionYearLabelFrom",{from:n}):r&&!n?a.a.getPhrase("search.utils","productionYearLabelTo",{to:r}):a.a.getPhrase("search.utils","productionYearLabelFromTo",{from:n,to:r}):""})),k(S,y.a.Duration,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!e.length)return"";var n=f.min(e,(function(t){return t.get("start")})),r=f.max(e,(function(t){return t.get("end")})),o=_.toISOString(n.get("start")),i=_.toISOString(r.get("end"));return o&&!i?a.a.getPhrase("search.utils","durationLabelLonger",{start:o.toLowerCase()}):i&&!o?a.a.getPhrase("search.utils","durationLabelShorter",{end:i.toLowerCase()}):a.a.getPhrase("search.utils","durationLabelFromTo",{start:o.toLowerCase(),end:i.toLowerCase()})})),k(S,y.a.Tags,(function(t){var e=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("name")}));return 1===e.length?e[0]:a.a.getPhrase("search.utils","tagLabel",{count:e.length})})),k(S,w.a.ReleaseDate,(function(t){var e=t.options.find((function(t){return t.get("active")}));return e?e.get("name"):t.get("title")})),S);function E(t){return function(t){if(Array.isArray(t))return R(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(t,e)}(t)||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 R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _={getFilterCollection:function(t,e){return new h.a([{title:a.a.getPhrase("search.utils","library"),type:y.a.Sources,behavior:i.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!0,minNumOptions:2,prefixWhenActive:!1,options:_.getSourceOptions(t)},{title:a.a.getPhrase("search.utils","folder"),type:y.a.Folder,behavior:i.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Folders",showWhenOnlyOneOption:!1,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","series"),type:y.a.Series,behavior:i.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Series",showWhenOnlyOneOption:!1,minNumOptions:1,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","tag"),type:y.a.Tags,behavior:i.Tag,isDynamic:!0,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","rating"),type:y.a.Ratings,behavior:i.Range,isDynamic:!1,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:1,prefixWhenActive:!1,options:_.getRatings(e)},{title:a.a.getPhrase("search.utils","interactives"),description:"Only display videos with interactives",type:y.a.Interactives,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","resources"),description:a.a.getPhrase("search.utils","resourcesDescription"),type:y.a.Resources,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","subtitles"),description:a.a.getPhrase("search.utils","subtitlesDescription"),type:y.a.Subtitles,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","productionYear"),type:y.a.ProductionYear,behavior:i.Exclusive,isDynamic:!1,showInMoreFilters:!0,minNumOptions:1,prefixWhenActive:!1,options:s.PRODUCTION_YEAR},{title:a.a.getPhrase("search.utils","clickViewContent"),description:a.a.getPhrase("search.utils","clickViewContentDescription"),type:y.a.ProducedByClickView,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","hdVideo"),description:a.a.getPhrase("search.utils","hdVideoDescription"),type:y.a.HD,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","duration"),type:y.a.Duration,behavior:i.Exclusive,showInMoreFilters:!0,minNumOptions:1,isDynamic:!1,prefixWhenActive:!1,options:s.DURATION}])},getSourceOptions:function(t){return t.map((function(t){return{id:t.get("id"),name:t.get("name"),type:t.get("type"),value:t.get("id")}}))},getRatings:function(t){return t.filter((function(t){return!!t.get("value")})).map((function(t){return{value:t.get("value"),name:t.get("code"),fullName:t.get("name")}}))},getDynamicFiltersQueryString:function(t){var e,n=[],r=t.where({isDynamic:!0});return r?(f.each(r,(function(t){(e=t.options.filter((function(t){return t.get("active")}))).length&&e.forEach((function(e){return n.push("".concat(t.get("type"),':"').concat(e.get("value"),'"'))}))})),n.join(" ")):""},getSourceFilterQueryString:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"libraryIds",n=t.get(y.a.Sources),r=n.options.filter((function(t){return t.get("active")}));return r.length||(r=n.options.models),"".concat(e,"=").concat(f.map(r,(function(t){return t.get("id")})).join(","))},getTagFilterQueryString:function(t){var e=t.get(y.a.Tags).options.filter((function(t){return t.get("active")}));return e.length?"".concat(f.map(e,(function(t){return'tags:"'.concat(t.get("name"),'"')})).join(" ")):""},getQueryString:function(t){return t.map((function(t){return _.getFilterQueryString(t)})).filter((function(t){return t})).join(",")},getFilterQueryString:function(t){return _.isBooleanType(t)?m.boolean(t):f.isFunction(m[t.get("type")])?m[t.get("type")](t):""},getRouteQueryParams:function(t,e){var n=O,r={};return t.each((function(t){var o={};o=t.get("type")===y.a.Sources?n[y.a.Sources](t,e):f.isFunction(n[t.get("type")])?n[t.get("type")](t):_.isBooleanType(t)?n.boolean(t):n.default(t),r=f.extend(r,o)})),r},getFilterLabel:function(t){var e=_.createLabel(t);return e=_.truncateLabel(e),e=_.prefixLabel(e,t)},createLabel:function(t){if(t.get("behavior")===i.Boolean)return t.get("title");if(f.isFunction(C[t.get("type")]))return C[t.get("type")](t);var e=t.options.find((function(t){return t.get("active")}));return e?e.get("value"):""},prefixLabel:function(t,e){return e.get("prefixWhenActive")?_.getSelectedOptions(e.get("options")).length>1?t:"".concat(e.get("title"),": ").concat(t):t},truncateLabel:function(t){if(!t||t.length<20)return t;var e=t.slice(0,17);return"".concat(e,"...")},setFilters:function(t,e){f.each(f.keys(t),(function(n){var r=t[n],o=e.findWhere({type:n});o&&(_.isBooleanType(o)&&_.selectBoolean(n,r,e),n===y.a.Sources&&_.selectSources(r,e),n===y.a.Duration&&_.selectDurations(r,e),n===y.a.Folder&&_.selectFolder(r,e),n===y.a.ProductionYear&&_.selectProductionYear(r,e),n===y.a.Ratings&&_.selectRating(r,e),n===y.a.Series&&_.selectSeries(r,e),n===y.a.Tags&&_.selectTags(r,e))})),e.each((function(e){e.get("selectAllWhenNoneSelected")&&(f.contains(f.keys(t),e.get("type"))||_.selectAllOptions(e))}))},selectBoolean:function(t,e,n){n.get(t).set({active:e})},selectSources:function(t,e){var n=t.split(","),i=e.get(y.a.Sources);i.options.length?f.each(n,(function(t){var e=i.options.find((function(e){return e.get("type").toLowerCase()===t.toLowerCase()}));if(e)e.set("active",!0);else if(t!==o.Libraries){var n=t.split("-")[1];if(n){var a=i.options.findWhere({id:+n});a&&a.set("active",!0)}}else{var c=i.options.where({type:r.CustomLibrary});f.each(c,(function(t){return t.set("active",!0)}))}})):f.each(n,(function(t){i.options.add({id:t,name:t,dry:!0,active:!0,type:t})}))},selectDurations:function(t,e){var n,r,i,c=e.get(y.a.Duration),u=0;if(t.indexOf(o.LongerThan)>=0&&(n=t.replace(o.LongerThan,"")),t.indexOf(o.ShorterThan)>=0&&(r=t.replace(o.ShorterThan,"")),t.indexOf(o.To)>=0){var l=t.split(o.To);n=l[0],r=l[1]}i=n?p.duration("PT".concat(n.toString().toUpperCase())).asMilliseconds():0,u=r?p.duration("PT".concat(r.toString().toUpperCase())).asMilliseconds():Number.MAX_VALUE,c.options.each((function(t){var e=t.get("start"),n=t.get("end");i<=e+1001&&i>=e-1001&&u>=n-1001&&u<=n+1001&&t.set("active",!0)})),c.options.any((function(t){return t.get("active")}))||c.options.add([{id:"custom",start:i,end:u,name:a.a.getPhrase("search.utils","custom"),description:"".concat(t.replace(/-/g," ")),active:!0}].concat(E(s.DURATION)))},selectFolder:function(t,e){var n=e.get(y.a.Folder),r=n.options.find((function(e){return e.get("id").toLowerCase()===t.toLowerCase()}));r?r.set("active",!0):n.options.add([].concat(E(n.options.toJSON()),[{id:t,value:t,name:t,active:!0}]))},selectProductionYear:function(t,e){var n,r,i=e.get(y.a.ProductionYear);if(_.clearOptions(i),t.indexOf(o.Since)>=0&&(n=+t.replace(o.Since,"")),t.indexOf(o.Before)>=0&&(r=+t.replace(o.Before,"")),t.indexOf(o.To)>=0){var c=t.split(o.To);n=+c[0],r=+c[1]}i.options.each((function(t){+t.get("from")===n&&t.set("active",!0)})),i.options.any((function(t){return t.get("active")}))||i.options.add([{id:t,from:n,to:r,name:a.a.getPhrase("search.utils","custom"),value:t,active:!0}].concat(E(s.PRODUCTION_YEAR)))},selectRating:function(t,e){var n=e.get(y.a.Ratings),r=t.split(o.To);r[0]&&(r[0]=r[0].trim().toLowerCase()),r[1]&&(r[1]=r[1].trim().toLowerCase());var i=n.options.find((function(t){return t.get("name").toLowerCase()===r[0]})),a=n.options.find((function(t){return t.get("name").toLowerCase()===r[1]})),c=i&&i.get("value"),u=a&&a.get("value")||c,s=n.options.filter((function(t){return t.get("value")>=c&&t.get("value")<=u}));f.each(s,(function(t){return t.set("active",!0)}))},selectSeries:function(t,e){e.get(y.a.Series).options.add({id:t,value:t,name:t,count:0,active:!0})},selectTags:function(t,e){var n=e.get(y.a.Tags);if(!n.options.length){var r=f.isArray(t)?t:[t];f.each(r,(function(t){n.options.add({id:t,name:t,value:t,active:!0})}))}},showFilter:function(t){return t.get("behavior")===i.Boolean||t.options.length>=t.get("minNumOptions")},getExchange:function(t){return _.getSource(t,d.q.Exchange)},getWorkspace:function(t){return _.getSource(t,d.q.Workspace)},getLibraries:function(t){return[].concat(E(_.getSources(t,d.q.CustomLibrary)),E(_.getSources(t,d.q.HostedLibrary)))},getHostedLibraries:function(t){return _.getSources(t,d.q.HostedLibrary)},getCustomLibraries:function(t){return _.getSources(t,d.q.CustomLibrary)},getSource:function(t,e){return t.find((function(t){return t.get("type")===e}))},getSources:function(t,e){return t.filter((function(t){return t.get("type")===e}))},hasFilterChanged:function(t,e){return t.get("behavior")===i.Boolean?t.get("active")!==e.get("active"):_.isInclusiveType(t)||_.isTagType(t)?_.haveOptionsChanged(t,e):_.hasOptionChanged(t,e)},haveOptionsChanged:function(t,e){var n=e.options.where({active:!0}),r=t.options.where({active:!0});return!n||!r||(n.length!==r.length||!n.every((function(t,e){return t.get("value")===r[e].get("value")})))},hasOptionChanged:function(t,e){var n=_.getSelectedOption(e.options,t.get("behavior")),r=_.getSelectedOption(t.options,t.get("behavior"));return!(!n&&!r)&&(!!(!n&&r||n&&!r)||n.get("value")!==r.get("value"))},clearFilters:function(t){t.each((function(t){t.get("selectAllWhenNoneSelected")?_.selectAllOptions(t):t.get("behavior")===i.Boolean?t.set("active",!1):_.clearOptions(t,!0)}))},clearOptions:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.options.each((function(t){e&&t.get("isDefault")?t.set("active",!0):t.set("active",!1)}))},selectAllOptions:function(t){t.options.each((function(t){return t.set("active",!0)}))},getSelectedOption:function(t,e){return e===i.Range?_.getSelectedOptionInRange(t):t.findWhere({active:!0})},getSelectedOptions:function(t){return new h.b(t.filter((function(t){return t.get("active")})))},getSelectedOptionInRange:function(t){var e=t.where({active:!0});return f.last(e)},isInclusiveType:function(t){return t.get("behavior")===i.Inclusive},isBooleanType:function(t){return t.get("behavior")===i.Boolean},isTagType:function(t){return t.get("behavior")===i.Tag},isSelected:function(t){return _.isBooleanType(t)?t.get("active"):_.isInclusiveType(t)?!_.allOptionsSelected(t):_.hasOptionSelected(t)},hasOptionSelected:function(t){return t.options.any((function(t){return!t.get("isDefault")&&t.get("active")}))},allOptionsSelected:function(t){return t.options.every((function(t){return t.get("active")}))},toISOString:function(t){if(!t||t===Number.MAX_VALUE)return"";var e=Math.ceil(t/1e3);return p.duration(1e3*e).toISOString().replace("PT","")},getFilterSelectedOptionsAnalyticsData:function(t){if(_.isBooleanType(t))return t.get("active");if(_.isInclusiveType(t))return _.getInclusiveFilterSelectedOptionsAnalyticsData(t);var e=_.getSelectedOption(t.options,t.get("behavior"));return e&&e.get("name")},getInclusiveFilterSelectedOptionsAnalyticsData:function(t){var e=t.options.where({active:!0});return e.length||(e=t.options.toArray()),t.get("type")===y.a.Sources?e.map((function(t){return t.get("id")})).join(","):e.map((function(t){return t.get("name")})).join(",")}},P=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},T={setQueryParams:function(t,e,n){var r=t.query,o=P(t,["query"]);e.set({query:r,initialQuery:r}),_.setFilters(o,n)},getQueryString:function(t,e,n){var r="",o=T.encodeURL(t.get("query"))||"",i=_.getDynamicFiltersQueryString(e),a=_.getSourceFilterQueryString(e);(o||i)&&(r+="q=".concat(o)),i&&(r+=" ".concat(i)),r&&a&&(r+="&".concat(a));var c=[],u=_.getQueryString(e);return u&&c.push(u),n&&c.push("page:".concat(n)),c.length&&(r+="&filter={".concat(c.join(","),"}")),r},getDynamicFilterQueryString:function(t,e){var n="",r=t.get("query")?T.encodeURL(t.get("query")):"",o=_.getTagFilterQueryString(e),i=_.getSourceFilterQueryString(e,"ids");return(r||o)&&(n+="q=".concat(r)),o&&(n+=" ".concat(o)),i&&(n+="&".concat(i)),n},getRouteQueryParams:function(t,e,n){var r=t.get("query")?{query:t.get("query")}:{};return f.extend(r,_.getRouteQueryParams(e,n))},encodeURL:function(t){return t?t.replace("&","%26").replace("#","%23"):""}};n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return T})),n.d(e,"b",(function(){return _}))},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(75);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,t);var e,n,i,l=s(f);function f(){return a(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"defaults",value:function(){return{children:[],categoryTree:{}}}},{key:"parse",value:function(t){if(!t.data)return t;var e=t.data;return e.children=t.children,e}},{key:"associations",get:function(){return{children:o.a,categoryTree:r.a.Model}}}])&&c(e.prototype,n),i&&c(e,i),f}(r.a.NestedModel)},function(t,e){t.exports=i},function(t,e,n){"use strict";var r=n(307),o=n.n(r);n.d(e,"d",(function(){return o.a}));var i=n(308),a=n.n(i);n.d(e,"b",(function(){return a.a}));var c=n(309),u=n.n(c);n.d(e,"c",(function(){return u.a}));var s=n(310),l=n.n(s);n.d(e,"a",(function(){return l.a}))},function(t,e,n){t.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(t,e,n){t.exports={actions:"_1n37b",spinner:"_3Fpix",cancel:"_2ZmdX",hiddenCancel:"_1PypJ",processProgress:"_3dASy",errorMargin:"_3GfnF"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(1);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(l,t);var e,n,o,s=u(l);function l(){return i(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"getElement",value:function(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}},{key:"getOptions",value:function(){var t={placement:this.options.placement};return this.options.title&&(t.title=this.options.title),t}},{key:"onRender",value:function(){var t=this.getElement();t.length&&t.tooltip(this.getOptions())}},{key:"onBeforeDetach",value:function(){var t=this.getElement();t instanceof jQuery&&t.tooltip("dispose")}},{key:"defaults",get:function(){return{placement:"top"}},set:function(t){}},{key:"ui",get:function(){return this.options.selector?{tooltip:this.options.selector}:{}},set:function(t){var e={};this.view.ui&&(e=r.result(this.view,"ui")),this.view._ui=r.extend({},e,t)}}])&&a(e.prototype,n),o&&a(e,o),l}(n(2).a.Behavior)},function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return m}));var r=n(5),o=n(13),i=n(110),a=n(16),c=n(0),u=n(96),s=n(15);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(l,t);var e,n,r,o=h(l);function l(){return f(this,l),o.apply(this,arguments)}return e=l,(n=[{key:"getCurrentUser",value:function(t,e){return this.get({resource:"/api/currentuser",formatData:function(t){return new i.a(t,{parse:!0})},eventPrefix:c.f.CURRENT_USER,bootstrapName:u.a.CURRENT_USER,expiryTime:s.a.STANDARD,callback:t,errorCallback:e})}},{key:"name",get:function(){return a.a.User}},{key:"channelName",get:function(){return c.e.USER}}])&&p(e.prototype,n),r&&p(e,r),l}(o.a),m={currentUser:{dataServiceName:a.a.User,eventName:"".concat(c.f.CURRENT_USER,":sync"),getData:function(t){return t.getCurrentUser()},getInstance:function(t){return r.a.getInstance(a.a.User,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model),f=n(93);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=b(i);function i(){return y(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"idAttribute",get:function(){return"type"}},{key:"associations",get:function(){return{options:f.b}}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.NestedModel);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=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(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(i,t);var e,n,r,o=C(i);function i(){return O(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"idAttribute",get:function(){return"value"}}])&&w(e.prototype,n),r&&w(e,r),i}(r.a.Model);n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return _}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return $})),n.d(e,"b",(function(){return X}));var r=n(1),o=n(7),i=n(5),a=n(13),c=n(224),u=n(90),s=n(0),l=n(78),f=n(123),p=n(146),y=n(83),h=n(75),d=n(137),b=n(47),v=n(16),m=n(6),g=n(15),S=n(84),O=n(12),w=n(3);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=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(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(){return"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary"},j=function(){return"/api/domain/v2/me/libraries?type=2"},D=function(t){return"/api/domain/v2/me/libraries?type=exchange&maxCategoryDepth=".concat(t)},L=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(s.A.FOLDER)},A=function(t,e){return"/api/domain/v2/collections/".concat(t,"/categories").concat(e?"?parentCategoryId=".concat(e):"")},N=function(t){return"/api/domain/v2/objects/".concat(t)},I=function(t){return"/api/domain/v2/objects/".concat(t)},V=function(){return"/api/domain/v2/objects/move"},M=function(t){return"/api/domain/v2/objects/".concat(t,"/customlibraries")},U=function(t){return"/api/domain/v2/objects/".concat(t)},F=function(t){return"/api/domain/v2/objects/".concat(t,"/banner")},H=function(t,e){return"/api/domain/v2/objects/".concat(t,"/banner/").concat(e)},z=function(t){return"/api/domain/v2/objects/".concat(t,"/thumbnail")},B=function(t,e){return"/api/domain/v2/objects/".concat(t,"/thumbnail/").concat(e)},q=function(t,e,n){var r=["query={".concat(e,"}").concat(s.A.LIBRARY_FOLDERS)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(t,"/categories?").concat(r.join("&"))},G=function(){return"libraries"},W=function(){return"hosted:libraries"},Y=function(t){return"exchange:".concat(t)},J=function(t){return"".concat(s.f.FOLDER,":").concat(t)},K=function(t){return"library:".concat(t)},Q=function(t){return"library:status:".concat(t)},Z={libraries:function(t){return new d.a(t,{parse:!0})},folders:function(t){return new h.a(t.data)},folder:function(t){return new l.a(t)},library:function(t){return new f.a(t)}},$=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(c,t);var e,n,i,a=_(c);function c(){return C(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"clearLibrariesCache",value:function(){this.invalidateCache([G()])}},{key:"getLibraries",value:function(t){return this.get({expiryTime:g.a.STANDARD,callback:t,resource:x(),formatData:Z.libraries,eventPrefix:G()})}},{key:"getHostedLibraries",value:function(t){return this.get({expiryTime:g.a.STANDARD,callback:t,resource:j(),formatData:Z.libraries,eventPrefix:W()})}},{key:"getExchange",value:function(t,e){return this.get({expiryTime:g.a.STANDARD,callback:e,resource:D(t),formatData:Z.libraries,eventPrefix:Y(t)})}},{key:"getFolder",value:function(t,e){return this.get({callback:e,expiryTime:g.a.STANDARD,resource:L(t),formatData:Z.folder,eventPrefix:J(t)})}},{key:"getFolderFromLibraries",value:function(t,e){this.getLibraries((function(n){e(b.a.getModelFromCollection(t,n))}))}},{key:"addFolder",value:function(t,e,n,r){var i,a=this,c=t.pick("name");this.chain().create({expiryTime:g.a.STANDARD,data:c,resource:A(e,n),formatData:Z.folder,eventPrefix:J(),callback:function(t){return i=t}}).func((function(){a.invalidateCache([s.f.LIBRARY_FOLDERS]),a.getLibraries((function(t){n?b.a.addFolder(i,n,t):b.a.addFolderToLibrary(i,e,t),o.Radio.channel(a.channelName).trigger("folder:created",i),r(i)}))})).run()}},{key:"updateFolder",value:function(t,e){var n=this,o=t.get("id"),i=t.pick(["id","name"]);this.getFolder(o,(function(a){var c,u=a.banner;n.chain().update({resource:N(o),data:i,callback:function(t){(c=t).banner=u},formatData:Z.folder,expiryTime:g.a.STANDARD,eventPrefix:J(o)}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(n){b.a.getModelFromCollection(t.get("id"),n).set(i),r.isFunction(e)&&e(c)}))})).run()}))}},{key:"moveFolder",value:function(t,e,n,o){var i,a=this,c="folder:delete:".concat(t);this.chain().create({resource:V(),eventPrefix:c,formatData:Z.folder,data:{oldCollectionId:n,newCollectionId:e,assocType:"has",objectIds:[t]},callback:function(t){return i=t},successHandler:this.alertService.success(w.a.getPhrase(this.lang,"folderMoveSuccess"))}).func((function(){a.clearLibraryFoldersCache(),a.getLibraries((function(a){var c=b.a.getModelFromCollection(n,a),u=b.a.getModelFromCollection(e,a),s=b.a.getModelFromCollection(t,a);c&&c.children.remove(s),u?u.children.add(s):a.add(s),r.isFunction(o)&&o(i)}))})).run()}},{key:"deleteFolder",value:function(t,e){var n=this;this.chain().delete({resource:I(t),eventPrefix:"".concat(J(t),":delete")}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(r){var i=b.a.getModelFromCollection(t,r);i&&i.collection&&i.collection.remove(i),o.Radio.channel(n.channelName).trigger("library:deleted"),e()}))})).run()}},{key:"getLibraryFolders",value:function(t,e){var n=O.p.GetFilterFromSort(t.sort),r=q(t.id,n,t.cursor);return this.get({resource:r,formatData:Z.folders,expiryTime:g.a.STANDARD,eventPrefix:t.toString(),callback:e})}},{key:"clearLibraryFoldersCache",value:function(){this.invalidateCache([s.f.LIBRARY_FOLDERS]),o.Radio.channel(s.e.LIBRARY).trigger("clear:library:folder:cache")}},{key:"getLibraryFoldersCursors",value:function(t){return this.getCursors(t.toString())}},{key:"createLibrary",value:function(t,e,n){var i=this,a=e.pick(["name"]);a.status=u.a.Draft,this.create({resource:M(t),eventPrefix:K(),formatData:Z.library,data:a,callback:function(t){i.getLibraries((function(e){e.add(t),o.Radio.channel(i.channelName).trigger("library:created"),r.isFunction(n)&&n(t)}))},successHandler:this.alertService.success(w.a.getPhrase(this.lang,"libraryCreateSuccess")),errorHandler:this.alertService.error(w.a.getPhrase(this.lang,"libraryCreateError"))})}},{key:"updateLibrary",value:function(t,e){var n=this,o=t.pick(["id","name"]),i=t.get("id");this.update({resource:U(i),eventPrefix:K(i),formatData:Z.library,data:o,successHandler:this.alertService.success(w.a.getPhrase(this.lang,"libraryUpdateSuccess")),errorHandler:this.alertService.error(w.a.getPhrase(this.lang,"libraryUpdateError")),callback:function(i){n.getLibraries((function(n){b.a.getModelFromCollection(t.get("id"),n).set(o),r.isFunction(e)&&e(i)}))}})}},{key:"deleteLibrary",value:function(t,e){var n=this;this.chain().delete({resource:I(t),eventPrefix:"".concat(K(t),":delete")}).func((function(){n.getLibraries((function(r){var i=b.a.getModelFromCollection(t,r);i&&i.collection&&i.collection.remove(i),o.Radio.channel(n.channelName).trigger("library:deleted"),e()}))})).run()}},{key:"publishLibrary",value:function(t,e){var n=this,o={status:1};this.update({resource:U(t),eventPrefix:Q(t),data:o,successHandler:this.alertService.success(w.a.getPhrase(this.lang,"libraryAvailableSuccess")),errorHandler:this.alertService.error(w.a.getPhrase(this.lang,"libraryAvailableError")),callback:function(){n.getLibraries((function(n){var i=n.get(t);i&&i.set(o),r.isFunction(e)&&e()}))}})}},{key:"addOrUpdateBanner",value:function(t,e){var n=t.folderId,r=t.imageModel,o=t.currentImageId,i={fileId:r.id.toString(),fileIdType:m.e.ImageAPIv1},a=this.chain();o&&a.delete({resource:H(n,o),eventPrefix:s.f.DELETE_FOLDER_BANNER}),a.create({resource:F(n),eventPrefix:"".concat(s.f.UPDATE_FOLDER_BANNER,":").concat(n),data:i,formatData:function(t){return new p.a(t)},invalidationKeys:[J(n)],successHandler:this.alertService.success(w.a.getPhrase(this.lang,"bannerUpdateSuccess")),callback:e}),a.run()}},{key:"deleteBanner",value:function(t,e){this.delete({resource:H(t.folderId,t.imageId),eventPrefix:s.f.DELETE_FOLDER_BANNER,successHandler:this.alertService.success(w.a.getPhrase(this.lang,"bannerRemoveSuccess")),invalidationKeys:[J(t.folderId)],callback:e})}},{key:"addOrUpdateThumbnail",value:function(t,e){var n=this,r=(t.libraryId,t.folderId),o=t.imageModel,i=t.currentImageId,a={fileId:o.id.toString(),fileIdType:m.e.ImageAPIv1},c=this.chain();i&&c.delete({resource:B(r,i),eventPrefix:s.f.DELETE_FOLDER_THUMBNAIL}),c.create({resource:z(r),eventPrefix:"".concat(s.f.UPDATE_FOLDER_THUMBNAIL,":").concat(r),data:a,formatData:function(t){return new y.a(t)},invalidationKeys:[J(r)],successHandler:this.alertService.success(w.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:e}),c.func((function(){n.clearLibraryFoldersCache()})),c.run()}},{key:"deleteThumbnail",value:function(t,e){var n=this;this.delete({resource:B(t.folderId,t.imageId),eventPrefix:s.f.DELETE_FOLDER_THUMBNAIL,successHandler:this.alertService.success(w.a.getPhrase(this.lang,"thumbnailRemoveSuccess")),invalidationKeys:[J(t.folderId)],callback:function(t){n.clearLibraryFoldersCache(),r.isFunction(e)&&e(t)}})}},{key:"deselectAll",value:function(){this.getLibraries((function(t){b.a.deselectAll(S.a.LIBRARY_EDITOR,t)}))}},{key:"setSelected",value:function(t){this.getLibraries((function(e){b.a.setSelected(S.a.LIBRARY_EDITOR,t,e)}))}},{key:"getSelected",value:function(t,e){this.getLibraries((function(t){var n=b.a.getSelected(S.a.LIBRARY_EDITOR,t);e(n)}))}},{key:"name",get:function(){return v.a.Library}},{key:"channelName",get:function(){return s.e.LIBRARY}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&E(e.prototype,n),i&&E(e,i),c}(a.a),X=Object.assign(Object.assign({},c.a),{exchanges:{dataServiceName:v.a.Library,eventName:"".concat(Y(0),":sync"),getData:function(t){return t.getExchange(0)},getInstance:function(t){return i.a.getInstance(v.a.Library,t)},beforeOnBeforeRender:!0}})},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(123);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}},{key:"comparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){t.exports={droppable:"_1OOL3",hover:"sCq0c"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(7),o=n(53);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return e=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(e.prototype,n),r&&c(e,r),f}(r.Collection)},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var r=n(21),o={LIBRARY:"library:data:service",VIDEO:"video:data:service",MIGRATION:"migration:data:service",TAG:"tag:data:service",CHAPTER:"chapter:data:service",SERIES:"series:data:service",SEARCH:"search:data:service",STAFF_REQUEST:"staff:request:data:service",CONFIG:"config:data:service",USER:"user:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service",SETTINGS:"settings:data:service",VIDEO_UPLOAD:"video:upload:data:service",IMAGE_UPLOAD:"image:upload:data:service",CUSTOMER:"customer:data:service",EXPORT:"export:data:service",LOCAL_CACHE:"local:cache:data:service",RESTRICTED_VIDEO:"restricted:video:data:service",RATINGS:"ratings:data:service",LANGUAGE:"language:data:service",CONTENT_UPDATES:"content:updates:data:service",DOWNLOAD_PROXY:"download:proxy:data:service",RESOURCE:"resource:data:service",SUBTITLE:"subtitle:data:service",LINK:"link:data:service",COMPANY:"company:data:service",PERSON:"person:data:service",FIELDS:"fields:data:service"},i=Object.assign({PENDING_ITEMS:"pending:items:service",VIDEO_DRAG_DROP:"video:drag:drop:service",FOLDER_DRAG_DROP:"folder:drag:drop:service",SELECTED_VIDEO:"selected:video:service",FOLDER_CACHE:"folder:cache:service",LOCAL_OPTIONS:"local:options:service",VIDEO_MIXIN:"video:mixin:service",PAGE_VISIBILITY:"page:visibility:service",PAGE_TITLE:"page:title:service",CONTEXTUAL_SEARCH:"contextual:search:service"},r.c),a={DEFAULT:"default:application",LIBRARY_EDITOR:"library:editor:application",MIGRATION_WIZARD:"migration:wizard:application",SEARCH:"search:application",NOTIFICATIONS:"notifications:application",VIDEO_ACCESS:"video:access:application",CONTENT_UPDATES:"content:updates:application",STAFF_REQUESTS:"staff:requests:application",DASHBOARD:"dashboard:application",UPLOAD:"upload:application"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={type:n(107).a.Unknown,message:"",code:0}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(91),a=n(110),c=n(123),u=n(78),s=n(223);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(d,t);var e,n,o,l=h(d);function d(){return f(this,d),l.apply(this,arguments)}return e=d,(n=[{key:"parse",value:function(t){var e=r.omit(t,["sourceCategory","destinationCategory"]);return e.sourceFolder=t.sourceCategory,e.destinationFolder=t.destinationCategory,e}},{key:"associations",get:function(){return{video:i.a,sourceLibrary:c.a,sourceFolder:u.a,destinationLibrary:c.a,destinationFolder:u.a,user:a.a,senderCustomer:s.a}}}])&&p(e.prototype,n),o&&p(e,o),d}(o.a.NestedModel);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(i,t);var e,n,r,o=w(i);function i(){return g(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"associations",get:function(){return{user:a.a}}}])&&S(e.prototype,n),r&&S(e,r),i}(o.a.NestedModel);n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return E}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={Dashboard:{HOME:"index"},LibraryEditor:{HOME:"index",LIBRARY:"library",NEW_SUB_FOLDER:"new:sub:folder",RENAME_FOLDER:"rename:folder",MOVE_FOLDER:"move:folder",DELETE_FOLDER:"delete:folder",FOLDER:"folder",SERIES:"series",EDIT_VIDEO:"edit:video",VIDEO_DETAILS:"video:details",SAVE_VIDEO:"save:video",EDIT_VIDEO_CHAPTERS:"edit:video:chapters",EDIT_VIDEO_RESOURCES:"edit:video:resources",EDIT_RESOURCE:"edit:resource",NEW_LIBRARY:"new:library",DELETE_LIBRARY:"delete:library",RENAME_LIBRARY:"rename:library",UPLOAD_THUMBNAIL:"upload:thumbnail",UPLOAD_BANNER:"upload:banner",GENERATE_PDF:"generate:pdf",SUGGEST_AN_EDIT:"suggest:an:edit",EDIT_FOLDER_IMAGES:"edit:folder:images",SHOW_PUBLISHER_VIDEO:"show:publisher:video",EDIT_LINK:"edit:link",NEW_SEASON:"new:season",ADD_TO_EXCHANGE:"add:to:exchange"},VideoAccess:{HOME:"index"},Search:{HOME:"index"},MigrationWizard:{HOME:"index",SHOW_PUBLISHER_VIDEO:"show:publisher:video",FOLDER:"folder",SEARCH:"search",SELECTED:"selected",SMART:"smart",PROGRESS:"progress",BACKUP_WELCOME:"backup:welcome",BACKUP_DOWNLOAD:"backup:download",BACKUP_PROGRESS:"backup:progress",BACKUP_COMPLETE:"backup:complete",START_MIGRATION:"start:migration",VIDEOS_ADDED:"videos:added",REMIGRATE_VIDEO:"remigrate:video",PUBLISH_LIBRARY_PROGRESS:"publish:library:progress",PUBLISH_LIBRARY_COMPLETE:"publish:library:complete",MIGRATION_ERRORS:"migration:errors",GENERATE_CSV_REPORT:"generate:csv:report"},ContentUpdates:{HOME:"index",AWAITING_REVIEW:"awaiting:review",PAST_RELEASES:"past:releases",DISABLE_REVIEW:"disable:review",GENERATE_PDF:"generate:pdf",ADD_TO_LIBRARY:"add:to:library"},StaffRequests:{HOME:"index",EDIT_REQUEST:"edit:request",APPROVE_REQUEST:"approve:request",REJECT_REQUEST:"reject:request"},Upload:{FILE_SELECTION:"file:selection",UPLOAD_DETAILS:"upload:details",UPLOAD_COMPLETE:"upload:complete"},Default:{HOME:"index",ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error"},Shared:{SHARE_VIDEO:"share:video",MOVE_VIDEOS:"move:videos",DELETE_VIDEOS:"delete:videos",BULK_CHECKBOX_CHANGE:"bulk:checkbox:change",NEW_FOLDER:"new:folder",MANAGE_VIDEO_ACCESS:"manage:video:access",DOWNLOAD_VIDEO:"download:video",DOWNLOAD_TO_LOCAL_CACHE:"download:to:local:cache",MAKE_LIBRARY_AVAILABLE:"make:library:available"},Notifications:{HOME:"index"}}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",(function(){return o}));var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e}var e,n,o;return e=t,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&r(e.prototype,n),o&&r(e,o),t}()},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e){t.exports=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),o=n(14),i=n(55),a=n(71),c="notifications.utils",u=/^marketing-/,s={getIconColor:function(t){switch(t){case a.a.Success:return"success";case a.a.Alert:return"danger";case a.a.Warning:return"warning";case a.a.Info:case a.a.Other:default:return"dark"}},getIcon:function(t){switch(t){case a.a.Success:return o.b.CheckCircle;case a.a.Alert:case a.a.Warning:return o.b.Warning;case a.a.Info:case a.a.Other:default:return o.b.Info}},getIconColorByNotificationType:function(t){return t===i.a.VideoProcessingFailed||t===i.a.VideoRequestDenied?"danger":t.match(u)?"warning":void 0},getIconByNotificationType:function(t){if(t.match(u))return o.b.Star},getNotificationAction:function(t){switch(t){case i.a.VideoReviewAddedToLibrary:case i.a.WorkspaceVideoAvailable:case i.a.ExchangeVideoAvailable:case i.a.EditedVideoAvailable:return r.a.getPhrase(c,"viewVideo");case i.a.VideoReviewReminder:return r.a.getPhrase(c,"reviewVideos");case i.a.VideoReviewAddedToLibrary:return r.a.getPhrase(c,"viewNewContent");case i.a.CustomLibraryVideoAvailable:return r.a.getPhrase(c,"viewVideoDetails");case i.a.StaffRequest:return r.a.getPhrase(c,"reviewVideo");default:return r.a.getPhrase(c,"seeNow")}}}},function(t,e,n){t.exports={contentContainerWithBulkActions:"_1OZCN",thumbnailContainer:"_35XrM",metaContainer:"_1-L5x",titleContainer:"_3nfiJ"}},function(t,e,n){t.exports={dropMask:"ZO89K",dropContent:"_1EbzE",dropArea:"_3ucfy",dragOver:"_2D_ox",border:"_3sQtM"}},function(t,e,n){t.exports={leftNav:"_2r3wp",topNav:"_2tPrC",contentBox:"gzfZN",leftNavContentBox:"_1yUOQ",sizingBox:"_2Rol1",alertBox:"_1TUsf",alertBoxWithIntercom:"QDngA",lockedWidth:"_1XHqq"}},function(t,e,n){"use strict";var r,o,i,a,c;!function(t){t[t.SingleFile=1]="SingleFile",t[t.HasChapters=2]="HasChapters",t[t.Concatenating=3]="Concatenating",t[t.ConcatenationFailed=4]="ConcatenationFailed",t[t.New=5]="New",t[t.MediaNotFound=6]="MediaNotFound"}(r||(r={})),function(t){t[t.Link=1]="Link",t[t.Edit=2]="Edit",t[t.Disabled=3]="Disabled",t[t.Filter=4]="Filter"}(o||(o={})),function(t){t[t.Flex=1]="Flex",t[t.Vertical=2]="Vertical"}(i||(i={})),function(t){t[t.Customer=1]="Customer",t[t.ClickView=2]="ClickView"}(a||(a={})),function(t){t[t.Folder=0]="Folder",t[t.Series=1]="Series"}(c||(c={})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return c}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={MAX_FOLDER_DEPTH:7,POPUP_FADE_TIMEOUT:0}},,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(1),o=n(77),i=n(139);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(d,t);var e,n,p,h=f(d);function d(){return c(this,d),h.apply(this,arguments)}return e=d,(n=[{key:"set",value:function(t,e,n){var o,i;if(null===t)return this;for(o in"object"===a(t)?(i=t,n=e):(i={})[t]=e,n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return s(y(d.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(t){var e=t.indexOf(".");if(-1===e)return s(y(d.prototype),"get",this).call(this,t);var n=t.substr(0,e),o=this.attributes[n];if(!o||!r.isFunction(o.get))return s(y(d.prototype),"get",this).call(this,t);var i=t.substr(e+1);return o.get(i)}},{key:"setAssociation",value:function(t,e,n){var a=this.associations[t],c=this.attributes[t];if(!r.isFunction(a))return e;if(n.unset)return c&&delete c.parent,delete this[t],c;if(c)return c instanceof o.a&&c.set(e,n),c instanceof i.a&&c.set(e,n),n.silent||this.trigger("change:".concat(t),this,e,n),c;var u=e instanceof o.a?e:new a(e,{parse:!0});return u.parent=this,this[t]=u,u}},{key:"toJSON",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=s(y(d.prototype),"toJSON",this).apply(this,e);return r.each(this.associations,(function(t,e){r.has(o,e)&&r.isFunction(o[e].toJSON)?o[e]=o[e].toJSON():o[e]=(new t).toJSON()})),o}},{key:"toFlatJSON",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.omit(s(y(d.prototype),"toJSON",this).apply(this,e),r.keys(this.associations))}}])&&u(e.prototype,n),p&&u(e,p),d}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6),o="categories{libraries.typeid:".concat(r.i.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,interactives{limit:1},")+"subtitles{limit:1},resources{limit:1},links{limit:1}",HOSTED_VIDEO_COLLECTION:"series,season,rating,thumbnail,categories,libraries,channel,interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",VIDEO:"series[seasons{orderby:number}],season,rating,thumbnail,".concat(o,",producers,distributors,libraries,")+"channel,chapters{limit:100},interactives{limit:100},resources[customer],subtitles[customer],tags[customer],productionCompanies,directors,links[customer],fields",FOLDER:"banner,thumbnail",SERIES:"seasons{orderby:number}",LIBRARY_FOLDERS:"thumbnail"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(3),o="generic",i="shared.constants",a={generic:function(){return r.a.getPhrase(i,"dataServiceErrorGeneric")},"video_forbidden.rating_access":function(){return r.a.getPhrase(i,"dataServiceErrorForbiddenRatingAccess")}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return y}));var r=n(1),o=["pdf"],i=["doc","docx","dotx","dot","rtf","docm","odt"],a=["csv","txt"],c=["xls","xlt","xlsx"],u=["jpg","tif","png","bmp","gif","jpeg"],s=["zip","rar"],l=["ppt","pot","pps","pptx"],f=["srt"],p={IMAGES:".".concat(u.join(",.")),RESOURCES:".".concat([].concat(i,c,l,o,a,u,s).join(",.")),SUBTITLES:".".concat(f.join(",."))},y={getResourceType:function(t){var e=t.toLowerCase();return r.contains(i,e)?"document":r.contains(c,e)?"excel":r.contains(l,e)?"powerpoint":r.contains(o,e)?"pdf":r.contains(a,e)?"text":r.contains(u,e)?"image":r.contains(s,e)?"archive":r.contains(f,e)?"subtitle":""}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return u}));var r,o,i=n(1);function a(t,e){var n="spinner";return t===r.Small&&(n="".concat(n,"-sm")),t===r.Medium&&(n="".concat(n,"-md")),t===r.Large&&(n="".concat(n,"-lg")),e===o.Standard&&(n="".concat(n,"-std")),e===o.Light&&(n="".concat(n,"-light")),e===o.LightBgDark&&(n="".concat(n,"-light-bg-dark")),n}!function(t){t.Small="sm",t.Medium="md",t.Large="lg"}(r||(r={})),function(t){t.Standard="std",t.Light="light",t.LightBgDark="light-bg-dark"}(o||(o={}));var c={size:r.Medium,type:o.Standard,tag:"div"},u={getSpinner:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.extend({},c,t),n=e.tag,r=e.size,o=e.type,u=e.extraClasses,s=a(r,o);return u&&(s="".concat(s," ").concat(u)),"<".concat(n,' class="spinner ').concat(s,'"></').concat(n,">")}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"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 6.3/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(t,e,n){var o=r(e.exec(n)||[],3),i=(o[0],o[1],o[2]);return i||(i="Unknown"),{browser:t,version:i}}function c(t,e,n){if(!e)return{os:t,version:"Unknown"};var r=e.exec(n);return{os:t,version:r&&r.length?r[0].trim():"Unknown"}}var u={getDeviceType:function(){var t=window.navigator.userAgent;return i.mobileDevice.test(t)?i.iphone.test(t)?"iPhone":i.ipad.test(t)?"iPad":i.android.test(t)?"Android":i.blackberry.test(t)?"Blackberry":i.windowsPhone.test(t)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem:function(){var t=window.navigator.userAgent;return i.android.test(t)?c("Android",i.androidVersion,t):i.iphone.test(t)||i.ipad.test(t)?c("iOS",i.iosVersion,t):i.linux.test(t)?c("Linux",null,t):i.unix.test(t)?c("Unix",null,t):i.mac.test(t)?c("Macintosh",i.osxVersion,t):i.windows.test(t)?function(t,e){var n={os:t};return i.win2000.test(e)&&(n.version="2000"),i.winXP.test(e)&&(n.version="XP"),i.winVista.test(e)&&(n.version="Vista"),i.win7.test(e)&&(n.version="7"),i.win8.test(e)&&(n.version="8"),i.win81.test(e)&&(n.version="8.1"),i.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):i.blackberry.test(t)?c("BlackBerry",i.blackberryVersion,t):i.windowsPhone.test(t)?c("Windows Phone",i.windowsPhoneVersion,t):{os:"Unknown",version:"Unknown"}},getBrowser:function(){var t=window.navigator.userAgent;return i.chrome.test(t)?a("Chrome",i.generalVersion,t):i.firefox.test(t)?a("Firefox",i.generalVersion,t):i.safari.test(t)?a("Safari",i.generalVersion,t):i.ie.test(t)?a("Internet Explorer",i.ieVersion,t):i.edge.test(t)?a("Edge",i.edgeVersion,t):i.opera.test(t)?a("Opera",i.operaVersion,t):{browser:"Unknown",version:"Unknown"}},isTouchScreen:function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(285);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"associations",get:function(){return{seasons:o.a}}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.NestedModel)},function(t,e,n){t.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(t,e,n){"use strict";var r,o={CreateChapter:"create:chapter",UpdateChapter:"update:chapter",DeleteChapter:"delete:chapter",CancelChapterEdit:"cancel:chapter:edit",UpdateChapterTime:"update:chapter:time",SortChapters:"sort:chapters",ToggleEdit:"toggle:edit",MergeChapters:"merge:chapters",SeekToChapter:"seek:to:chapter",Save:"save:changes",Undo:"undo:changes",CancelSave:"save:cancel",DisableSave:"disable:save",EnableSave:"enable:save",DetectInput:"detect:input",DetectAssocChange:"detect:assoc:change"},i={VIDEO_LIST:"video:list",MIGRATION_VIDEO_LIST:"migration:video:list"};!function(t){t.VideoTitle="Video Title",t.Description="Description",t.Rating="Rating",t.SeriesTitle="Series Title",t.Season="Season Number",t.EpisodeNumber="Episode Number",t.BroadcastDate="Broadcast Date",t.Channel="Channel",t.ProductionYear="Production Year",t.Distributors="Distributors",t.ProductionCompanies="Production Companies",t.Directors="Directors",t.Producers="Producers",t.Other="Other"}(r||(r={}));var a={VideoTitle:{id:"0",name:r.VideoTitle,property:"name"},Description:{id:"1",name:r.Description,property:"description"},Rating:{id:"2",name:r.Rating,property:"rating.name"},SeriesTitle:{id:"3",name:r.SeriesTitle,property:"series.name"},Season:{id:"4",name:r.Season,property:"season.number"},EpisodeNumber:{id:"5",name:r.EpisodeNumber,property:"episodeNumber"},BroadcastDate:{id:"6",name:r.BroadcastDate,property:"dateBroadcast"},Channel:{id:"7",name:r.Channel,property:"channel.name"},ProductionYear:{id:"8",name:r.ProductionYear,property:"productionYear"},Distributors:{id:"9",name:r.Distributors,property:"distributors",collection:!0},ProductionCompanies:{id:"10",name:r.ProductionCompanies,property:"productionCompanies",collection:!0},Directors:{id:"11",name:r.Directors,property:"directors",collection:!0},Producers:{id:"12",name:r.Producers,property:"producers",collection:!0},Other:{id:"13",name:r.Other}},c=n(0),u=[c.a.LibraryEditor.EDIT_VIDEO,c.a.LibraryEditor.EDIT_VIDEO_CHAPTERS,c.a.LibraryEditor.EDIT_VIDEO_RESOURCES];n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return r})),n.d(e,"f",(function(){return a})),n.d(e,"c",(function(){return"edit:video:back:button"})),n.d(e,"b",(function(){return u}))},function(t,e,n){"use strict";var r=n(13),o=n(5),i=n(0),a=n(6);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=l(n);function n(){return u(this,n),e.apply(this,arguments)}return n}(n(2).a.Model),h=n(16),d=n(96),b=n(15);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return E}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(c,t);var e,n,r,o=O(c);function c(){return m(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"getConfig",value:function(t){return this.get({resource:"/api/config",formatData:function(t){return new y(t)},eventPrefix:"config",bootstrapName:d.a.CONFIG,callback:t,expiryTime:b.a.STANDARD})}},{key:"getVersion",value:function(t){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:d.a.VERSION,callback:t,expiryTime:b.a.STANDARD})}},{key:"getCustomerYearGroups",value:function(t){var e=[a.r.Year1,a.r.Year2,a.r.Year3,a.r.Year4,a.r.Year5,a.r.Year6,a.r.Year7,a.r.Year8,a.r.Year9,a.r.Year10,a.r.Year11,a.r.Year12];switch(t){case a.b.AU:return[a.r.Kindergarten].concat(e);case a.b.UK:case a.b.NZ:return[].concat(e,[a.r.Year13]);default:return e}}},{key:"name",get:function(){return h.a.Config}},{key:"channelName",get:function(){return i.e.CONFIG}}])&&g(e.prototype,n),r&&g(e,r),c}(r.a),E={config:{dataServiceName:i.e.CONFIG,eventName:"config:sync",getData:function(t){return t.getConfig()},getInstance:function(t){return o.a.getInstance(h.a.Config,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";var r=n(10),o=n(18);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setData(e)}var e,n,a;return e=t,(n=[{key:"setData",value:function(t){var e=t.collectionPrefix,n=t.id,r=t.sort,o=t.cursor;n&&(this.id=n),r&&(this.sort=r),o&&(this.cursor=o),e&&(this.collectionPrefix=e)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.sort&&(t.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(t.cursor=this.cursor),t}},{key:"getSortTypeParam",value:function(){return r.c.throw(new o.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&i(e.prototype,n),a&&i(e,a),t}(),c=(n(141),n(35));function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=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(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(i,t);var e,n,r,o=p(i);function i(){return s(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getSortTypeParam",value:function(){return c.a[this.sort]}}])&&l(e.prototype,n),r&&l(e,r),i}(a);n.d(e,"a",(function(){return d}))},function(t,e,n){"use strict";var r,o,i=n(1),a=n(7),c=n(2),u=n(109),s=n(14),l=n(89),f={isEmpty:function(t){return i.isEmpty(t)},values:function(t){return i.values(t)},keys:function(t){return i.keys(t)},deepClone:function(t){return(i.isArray(t)?i.map:i.mapObject)(t,(function(t){return i.isObject(t)||i.isArray(t)?f.deepClone(t):t}))},getEnumKeys:function(t){return Object.keys(t).filter((function(t){return!(parseInt(t)>=0)}))},isObject:function(t){return i.isObject(t)},isEqual:function(t,e){return i.isEqual(t,e)},omit:function(t,e){return i.omit(t,e)}},p=n(184);function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t.Banner="banner",t.Thumbnail="thumbnail"}(o||(o={}));var h=(y(r={},p.b.Banners,o.Banner),y(r,p.b.Thumbnails,o.Thumbnail),r),d=function(t){return"/v1/category-map/".concat(t)},b={createUrl:function(t,e){return b._createUrl(t,e)},createBannerUrl:function(t,e,n){return t&&t.url?b._createUrl(t.url,n):b._createCategoryMappedUrl(e,n)},Rfc3986EncodeURIComponent:function(t){return encodeURIComponent(t).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(t,e){var n=t.fallbackBaseUrl,r=t.fallbackCategoryName,o=t.type,i=l.a.safeUrlConcat(n,"".concat(d(h[o]))),a=Object.assign({name:b.Rfc3986EncodeURIComponent(r)},e);return b._createUrl(i,a)},_createUrl:function(t,e){if(t){if(f.isEmpty(e))return t;var n=$.param(e),r=-1===t.indexOf("?")?"?":"&",o=t;return o.endsWith("/")&&(o=o.slice(0,-1)),o+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(t,e){if(!t)return"";var n;if(t&&(n=t instanceof c.a.Model?t.get("url"):"string"==typeof t?t:t.url)){var r=Object.assign({size:p.a.Small,bgColor:"000"},e);return b._createUrl(n,r)}}},v=function(t,e,n){var r=e-(t=t.toString()).length;return r<=0?t:new Array(r+1).join(n)+t},m=function(t){if(!i.isNumber(t))return"";var e=new Date(t),n=e.getUTCHours(),r=v(e.getUTCMinutes(),2,"0"),o=v(e.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(r,":").concat(o):"".concat(r,":").concat(o)},g=n(536),S=n.n(g),O=n(178),w=n.n(O);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=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(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return x}));var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(c,t);var e,n,r,o=_(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),o.call(this,t)}return e=c,(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(w.a.playSvgContainer)).show()}},{key:"onClick",value:function(t){if(!this.options.appLink&&i.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}},{key:"onImageLoad",value:function(){this.options.channelName&&a.Radio.channel(this.options.channelName).trigger("thumbnail:load")}},{key:"viewOptions",value:function(){var t=this.model.get("duration");return{styles:w.a,url:b.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:t&&m(t),playSvg:s.a.getSvg(s.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}},{key:"onRender",value:function(){if(a.Radio.channel(u.a.LAZY_LOAD).trigger("update:loader"),this.options.lazyload&&this.options.channelName){var t=this.getUI("img");t.length&&(t[0].onload=i.bind(this.onImageLoad,this))}}},{key:"name",get:function(){return"ThumbnailComponent"}},{key:"template",get:function(){return S.a}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){if(this.options.classNameOverride)return this.options.classNameOverride;var t="".concat(w.a.thumbnailContainer," responsive-img");return this.options.onClickHandler&&(t+=" cursor-pointer"),t}},{key:"elements",get:function(){var t;return C(t={},".".concat(w.a.playSvgContainer),"showPlayIcon"),C(t,"img","img"),t}},{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"}}}])&&E(e.prototype,n),r&&E(e,r),c}(c.a.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(181),o=n(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(n,t);var e=u(n);function n(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a(this,n),e.call(this,{collectionPrefix:"".concat(o.f.VIDEOS,":collection"),id:t,sort:r,cursor:i})}return n}(r.a)},function(t,e,n){"use strict";var r,o,i,a;n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),function(t){t.Small="small",t.Medium="medium",t.Large="large"}(r||(r={})),function(t){t[t.Thumbnails=0]="Thumbnails",t[t.Banners=1]="Banners",t[t.Avatars=2]="Avatars",t[t.Logos=3]="Logos",t[t.Covers=4]="Covers",t[t.Posters=5]="Posters",t[t.TallPosters=6]="TallPosters",t[t.HeroBanners=7]="HeroBanners"}(o||(o={})),function(t){t[t.Crop=0]="Crop",t[t.Stretched=1]="Stretched",t[t.Cover=2]="Cover"}(i||(i={})),function(t){t[t.None=0]="None",t[t.ImageAPIv1=1]="ImageAPIv1",t[t.FileAPIv1=2]="FileAPIv1",t[t.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(t,e,n){"use strict";var r=n(29),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f="libraryEditor.errors.folderEmpty",p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(s,t);var e,n,r,i=u(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,"Folder is empty")).action=t,e}return e=s,(n=[{key:"name",get:function(){return"FolderEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase(f,"folderNoVideosTitle"),text:o.a.getPhrase(f,"folderNoVideosBody",{action:this.action}),buttons:[{text:o.a.getPhrase(f,"close"),className:"btn btn-link",close:!0}]}}}])&&a(e.prototype,n),r&&a(e,r),s}(r.a);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(a,t);var e,n,r,i=b(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Folder is not empty")}return e=a,(n=[{key:"name",get:function(){return"FolderNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","title"),text:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","instructions"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&h(e.prototype,n),r&&h(e,r),a}(r.a),S=n(0);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=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(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(a,t);var e,n,r,i=C(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Subfolder cannot be added")}return e=a,(n=[{key:"name",get:function(){return"FolderMaxDepthError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","title"),text:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","instructions",{maxDepth:S.s.MAX_FOLDER_DEPTH}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","close"),className:"btn btn-link",close:!0}]}}}])&&w(e.prototype,n),r&&w(e,r),a}(r.a),P=n(38);function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e){return(j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,r=A(t);if(e){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L(this,n)}}function L(t,e){return!e||"object"!==T(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}(a,t);var e,n,r,i=D(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Folder not found")}return e=a,(n=[{key:"name",get:function(){return"FolderNotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.folderNotFound","info")}}])&&x(e.prototype,n),r&&x(e,r),a}(P.a);function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function U(t){var e=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(t){return!1}}();return function(){var n,r=H(t);if(e){var o=H(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){return!e||"object"!==I(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function H(t){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(a,t);var e,n,r,i=U(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"User does not have access to this folder")}return e=a,(n=[{key:"name",get:function(){return"ForbiddenFolderError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.forbiddenFolder","info")}}])&&V(e.prototype,n),r&&V(e,r),a}(P.a),B=n(281);function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=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(t){return!1}}();return function(){var n,r=K(t);if(e){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J(this,n)}}function J(t,e){return!e||"object"!==q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W(t,e)}(a,t);var e,n,r,i=Y(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,"Image too small")).minWidth=t,n.minHeight=e,n}return e=a,(n=[{key:"name",get:function(){return"ImageDimensionsTooSmallError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","title"),text:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","body",{minWidth:this.minWidth,minHeight:this.minHeight}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","close"),className:"btn btn-link",close:!0}]}}}])&&G(e.prototype,n),r&&G(e,r),a}(r.a);function Z(t){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tt(t){var e=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(t){return!1}}();return function(){var n,r=nt(t);if(e){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function et(t,e){return!e||"object"!==Z(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}(a,t);var e,n,r,i=tt(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Series not found")}return e=a,(n=[{key:"name",get:function(){return"SeriesNotFound"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.seriesNotFound","title")}}])&&$(e.prototype,n),r&&$(e,r),a}(P.a);function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function it(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function at(t,e){return(at=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ct(t){var e=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(t){return!1}}();return function(){var n,r=st(t);if(e){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ut(this,n)}}function ut(t,e){return!e||"object"!==ot(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&at(t,e)}(a,t);var e,n,r,i=ct(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"Cannot add that many resources")).resourceLimit=t,e}return e=a,(n=[{key:"name",get:function(){return"TooManyResourcesError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.tooManyResources","heading"),text:o.a.getPhrase("libraryEditor.errors.tooManyResources","body",{resourceLimit:this.resourceLimit}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.tooManyResources","okay"),className:"btn btn-primary",success:!0}]}}}])&&it(e.prototype,n),r&&it(e,r),a}(r.a);function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yt(t,e){return(yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ht(t){var e=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(t){return!1}}();return function(){var n,r=bt(t);if(e){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yt(t,e)}(a,t);var e,n,r,i=ht(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"Cannot add that many subtitles")).subtileLimit=t,e}return e=a,(n=[{key:"name",get:function(){return"TooManySubtitlesError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.tooManySubtitles","heading"),text:o.a.getPhrase("libraryEditor.errors.tooManySubtitles","body",{subtitleLimit:this.subtileLimit}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.tooManySubtitles","okay"),className:"btn btn-primary",success:!0}]}}}])&&pt(e.prototype,n),r&&pt(e,r),a}(r.a),mt=n(282);function gt(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ot(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wt(t){var e=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(t){return!1}}();return function(){var n,r=Ct(t);if(e){var o=Ct(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return kt(this,n)}}function kt(t,e){return!e||"object"!==gt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ct(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}P.a;function Et(t){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _t(t,e){return(_t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pt(t){var e=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(t){return!1}}();return function(){var n,r=xt(t);if(e){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(t,e){return!e||"object"!==Et(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var jt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_t(t,e)}(a,t);var e,n,r,i=Pt(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Library has subscribers so it cannot be deleted")}return e=a,(n=[{key:"name",get:function(){return"LibraryHasSubscribersError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","title"),text:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","body"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","close"),className:"btn btn-link",close:!0}]}}}])&&Rt(e.prototype,n),r&&Rt(e,r),a}(r.a);function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function At(t,e){return(At=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){var e=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(t){return!1}}();return function(){var n,r=Vt(t);if(e){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(t,e){return!e||"object"!==Dt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&At(t,e)}(a,t);var e,n,r,i=Nt(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Library is not empty")}return e=a,(n=[{key:"name",get:function(){return"LibraryNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","title"),text:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","body"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&Lt(e.prototype,n),r&&Lt(e,r),a}(r.a);function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ht(t,e){return(Ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zt(t){var e=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(t){return!1}}();return function(){var n,r=qt(t);if(e){var o=qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bt(this,n)}}function Bt(t,e){return!e||"object"!==Ut(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qt(t){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ht(t,e)}(a,t);var e,n,r,i=zt(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,"Cannot create any more custom libraries.")).libraryCount=t,n.maxCustomLibraries=e,n}return e=a,(n=[{key:"pluralise",value:function(t){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","library",{smartCount:t})}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","title")}},{key:"description",get:function(){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","info",{libraryCount:this.pluralise(this.libraryCount),maxCustomLibraries:this.pluralise(this.maxCustomLibraries)})}}])&&Ft(e.prototype,n),r&&Ft(e,r),a}(P.a);n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return _})),n.d(e,"d",(function(){return N})),n.d(e,"e",(function(){return z})),n.d(e,"f",(function(){return B.a})),n.d(e,"g",(function(){return Q})),n.d(e,"k",(function(){return rt})),n.d(e,"l",(function(){return lt})),n.d(e,"m",(function(){return vt})),n.d(e,"n",(function(){return mt.a})),n.d(e,"h",(function(){return jt})),n.d(e,"i",(function(){return Mt})),n.d(e,"j",(function(){return Gt}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(2),o=n(7),i=n(76),a=n(221),c=n(6),u=n(41);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(d,t);var e,n,s,h=y(d);function d(){return l(this,d),h.apply(this,arguments)}return e=d,(n=[{key:"initialize",value:function(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(t){if(!this.locked){t.preventDefault();var e=t.originalEvent;if(a.a.isFileDrag(t)){var n=[];if(e.dataTransfer.items)for(var s=0;s<e.dataTransfer.items.length;s++)"file"===e.dataTransfer.items[s].kind&&n.push(e.dataTransfer.items[s].getAsFile());else for(var l=0;l<e.dataTransfer.files.length;l++){var f=e.dataTransfer.files[l];n.push(f)}n.length>1&&!this.options.acceptMultiple&&r.a.ErrorHelper.throw(new i.f),o.Radio.channel(this.options.channelName).trigger(u.a.FILES_SELECTED,n,c.g.DragDrop),e.dataTransfer.items?e.dataTransfer.items.clear():e.dataTransfer.clearData()}}}},{key:"events",get:function(){return{drop:"onDrop",drag:"onDrag"}}}])&&f(e.prototype,n),s&&f(e,s),d}(r.a.Behavior)},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(2),o=n(7),i=n(511),a=n.n(i),c=n(6),u=n(41);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(s,t);var e,n,r,i=h(s);function s(){return f(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"events",value:function(){var t;return l(t={},"click ".concat(this.options.buttonSelector),"onClickSelect"),l(t,"change .file-select","onChangeFileSelect"),t}},{key:"onClickSelect",value:function(t){this.view.$el.find(".file-select").val(null),this.view.$el.find(".file-select").click()}},{key:"onChangeFileSelect",value:function(t){var e=t.originalEvent.target.files;e&&e.length&&o.Radio.channel(this.options.channelName).trigger(u.a.FILES_SELECTED,e,c.g.FileSelect)}},{key:"onRender",value:function(){this.$el.find(this.options.buttonSelector).after(a()(this.options))}}])&&p(e.prototype,n),r&&p(e,r),s}(r.a.Behavior)},function(t,e,n){"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r.constructor=e,e.prototype=r,e}},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={ManageLayout:"ManageLayout"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(29),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.oldVersion",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,o,a=s(l);function l(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title",{oldVersion:t,newVersion:e}))}return e=l,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"OldVersionError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(29),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.authentication",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,o,a=s(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title"))}return e=l,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a)},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Staff="staff",t.Learner="learner",t.Unknown="unknown"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(1),o=n(38),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.forbiddenAccess",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,o,a=s(l);function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this,i.a.getPhrase(p,"title"))).acceptedRoles=t,n.redirectUrl=e,n}return e=l,(n=[{key:"getRolesString",value:function(){if(1===this.acceptedRoles.length)return i.a.getPhrase(p,"acceptedRole",{role:this.acceptedRoles[0]});if(2===this.acceptedRoles.length)return i.a.getPhrase(p,"acceptedRoles",{role1:this.acceptedRoles[0],role2:this.acceptedRoles[1]});var t="";return r.each(this.acceptedRoles.slice(0,this.acceptedRoles.length-1),(function(e){t+=i.a.getPhrase(p,"rolesJoin",{role:e})})),"\n ".concat(t," ").concat(i.a.getPhrase(p,"and")," ").concat(this.acceptedRoles[this.acceptedRoles.length-1]).concat(i.a.getPhrase(p,"s"),"\n ")}},{key:"name",get:function(){return"ForbiddenAccessError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading",{roles:this.getRolesString()})}},{key:"description",get:function(){return i.a.getPhrase(p,"goToClickView",{redirectUrl:this.redirectUrl,linkClasses:"info-link"})}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(2),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(s,t);var e,n,r,i=u(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,o.a.getPhrase("shared.notFound","title"))}return e=s,(n=[{key:"name",get:function(){return"NotFoundError"}}])&&a(e.prototype,n),r&&a(e,r),s}(r.a.SilentError)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(2),o=n(150),i=n.n(o),a=n(510),c=n.n(a),u=n(221),s=n(3),l=n(41);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(a,t);var e,n,r,o=d(a);function a(){return p(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,l.a.FILES_SELECTED,this.onDragLeave),this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(){this.locked||this.$el.removeClass(i.a.dragOver)}},{key:"onDragOver",value:function(t){this.locked||u.a.isFileDrag(t)&&(this.$el.addClass(i.a.dragOver),t.preventDefault())}},{key:"onDragLeave",value:function(){this.locked||this.$el.removeClass(i.a.dragOver)}},{key:"onRender",value:function(){this.$el.append(c()({styles:i.a,fileDropText:s.a.getPhrase(this.lang,"fileDrop")}))}},{key:"events",get:function(){var t,e,n,r="dragleave .".concat(i.a.dropArea);return n="onDragLeave",(e=r)in(t={drop:"onDrop",dragover:"onDragOver"})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},{key:"lang",get:function(){return"shared.behaviors.fileDrop"}}])&&y(e.prototype,n),r&&y(e,r),a}(r.a.Behavior)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.NestedModel)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(111);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(l,t);var e,n,o,s=u(l);function l(){return i(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"model",get:function(){return r.a}}])&&a(e.prototype,n),o&&a(e,o),l}(n(2).a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(50),o=n(3),i=n(0),a=n(12),c="shared.alerts",u={updatedVideoAlert:function(t){return{heading:o.a.getPhrase(c,"updateVideoHeading"),message:o.a.getPhrase(c,"updateVideoMessage",{videoName:t}),type:r.a.Success}},updatedChaptersAlert:function(t){return{heading:o.a.getPhrase(c,"updateChaptersHeading"),message:o.a.getPhrase(c,"updateChaptersMessage",{videoName:t}),type:r.a.Success}},moveVideoAlert:function(t,e,n,u,s){return{heading:o.a.getPhrase(c,"moveVideoHeading",{smartCount:u}),message:o.a.getPhrase(c,"moveVideoMessage",{smartCount:u,sourceFolder:a.v.escapeExpression(t),destinationFolder:a.v.escapeExpression(e),videoName:a.v.escapeExpression(s)}),type:r.a.Success,appLinkText:o.a.getPhrase(c,"appLink",{destinationFolder:e}),appLink:{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[n]}}},addVideoToLibraryAlert:function(t,e){var n=t.get("name"),u=e.get("name");return{heading:o.a.getPhrase(c,"addVideoHeading"),message:o.a.getPhrase(c,"addVideoMessage",{videoName:a.v.escapeExpression(n),folderName:a.v.escapeExpression(u)}),type:r.a.Success,appLinkText:o.a.getPhrase(c,"appLink",{destinationFolder:u}),appLink:{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[e.get("id")]}}}}},function(t,e,n){"use strict";var r,o=n(2),i=n(3),a=n(276);!function(t){t[t.Notifications=0]="Notifications"}(r||(r={}));var c=n(5),u=n(44),s=n(234),l=n.n(s);var f,p,y,h,d,b=(f={},p=r.Notifications,y=function(t){var e={imageUrl:c.a.getInstance(u.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:t.options.componentOptions.noNotificationsText,customClass:"".concat(l.a.paddedContainer," ").concat(t.options.componentOptions.customClass),customImageClass:"sm"===t.options.componentOptions.imageSize?l.a.imageSmall:l.a.imageLarge};return c.a.releaseInstance(u.a.NOTIFICATIONS),e},p in f?Object.defineProperty(f,p,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[p]=y,f),v=n(7),m=n(27),g=n(14),S=n(21),O=n(148),w=n(117),k=n(226),C=n(71),E=n(1),R=n(402);function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(t,e)}(t,e)||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 P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(){return c.a.getInstance(u.a.NOTIFICATIONS,this)}function x(t,e,n){return t===d.Module?function(t,e){var n=T();return e===h.ContentUpdates?n.appLinks.pastReleases:e===h.LibraryReview?n.appLinks.awaitingReview:void 0}(0,e):t===d.Video?function(t,e,n){return Object.assign(Object.assign({},T().appLinks.videoDetails),{args:[e]})}(0,e):t===d.StaffRequest?function(t,e,n){return Object.assign(Object.assign({},T().appLinks.editStaffRequest),{args:[e],params:{referrer:R.a.Notification}})}(0,e):void 0}!function(t){t.LibraryReview="libraryreview",t.ContentUpdates="newcontent"}(h||(h={})),function(t){t.Video="video",t.Url="url",t.Module="module",t.App="app",t.StaffRequest="staff_request"}(d||(d={}));var j=function(t){return E.contains(T().notificationTypesWithAppLinks,t)},D=function(t,e){if(t&&e){var n=_(t.split(":"),2);return x(n[0],n[1])}},L=n(267),A=n.n(L),N=n(523),I=n.n(N);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){return(U=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function F(t){var e=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(t){return!1}}();return function(){var n,r=z(t);if(e){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var B,q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(i,t);var e,n,r,o=F(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=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(t){return v.Radio.channel(S.a.NOTIFICATIONS).trigger(k.a.Read,this.model.get("id")),this.model.set("notificationStatus",w.a.Read),!0}},{key:"getAppLink",value:function(){var t=this.model.get("appLink");if(!t)return null;var e=this.model.get("notificationType");return j(e)?D(t,e):null}},{key:"updateReadStatus",value:function(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}},{key:"getReadStatus",value:function(){switch(this.model.get("notificationStatus")){case w.a.Read:return"read";default:case w.a.Received:return"unread"}}},{key:"viewOptions",value:function(){var t=O.a.getIconColorByNotificationType(this.model.get("notificationType"))||O.a.getIconColor(this.model.get("alertType")),e=O.a.getIconByNotificationType(this.model.get("notificationType"))||O.a.getIcon(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:m(this.model.get("dateCreated")).fromNow(),icon:g.a.getSvg(e),iconClass:"text-".concat(t),styles:A.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==C.a.Warning,actionText:O.a.getNotificationAction(this.model.get("notificationType"))}}},{key:"name",get:function(){return"NotificationItemComponent"}},{key:"template",get:function(){return I.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(A.a.item," px-1 py-2 ").concat(this.getReadStatus())}},{key:"appLinks",get:function(){var t=this.getAppLink();return t?{"[this]":t}:{}}}])&&M(e.prototype,n),r&&M(e,r),i}(o.a.Component),G=n(524),W=n.n(G);function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t,e,n){return e&&K(t.prototype,e),n&&K(t,n),t}function Z(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function X(t){var e=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(t){return!1}}();return function(){var n,r=et(t);if(e){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(t,e){return!e||"object"!==Y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return B})),n.d(e,"b",(function(){return rt})),function(t){t[t.Default=0]="Default",t[t.Popover=1]="Popover"}(B||(B={}));var nt=function(t){Z(n,t);var e=X(n);function n(t){return J(this,n),e.call(this,t)}return Q(n,[{key:"name",get:function(){return"NotificationComponentCollection"}},{key:"className",get:function(){return this.options.isPopover&&"popover-list-body-sm"}},{key:"childView",get:function(){return q}},{key:"childViewOptions",get:function(){return{showActionText:!this.options.isPopover}}}]),n}(o.a.ComponentCollection),rt=function(t){Z(n,t);var e=X(n);function n(t){return J(this,n),e.call(this,t)}return Q(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:i.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:i.a.getPhrase(this.lang,"noNotifications")}}},{key:"onRender",value:function(){this.showChildView("notifications",new nt(this.options))}},{key:"name",get:function(){return"NotificationListComponent"}},{key:"template",get:function(){return W.a}},{key:"lang",get:function(){return"notifications.notificationList"}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,region:"notifications",type:r.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:b}]}}]),n}(o.a.Component)},function(t,e,n){"use strict";var r=n(7),o=n(2),i=n(11),a=n(1),c=n(274),u=n(514),s=n.n(u);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(i,t);var e,n,r,o=y(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"events",value:function(){this.createClickHandlers();var t={};return a.each(this.options.buttons,(function(e,n){t["click .dialog-button-".concat(n)]="onClickButton".concat(n)})),t}},{key:"createClickHandlers",value:function(){var t=this;this.clickHandlersCreated||(a.each(this.options.buttons,(function(e,n){t["onClickButton".concat(n)]=e.success?function(){return t.onDone(e)}:function(){return t.onFail()}})),this.clickHandlersCreated=!0)}},{key:"reject",value:function(){"pending"===this.options.result.state()&&this.options.result.reject()}},{key:"onDone",value:function(t){this.options.result.resolve(t)}},{key:"onFail",value:function(){this.reject()}},{key:"onDestroy",value:function(){this.reject()}},{key:"template",get:function(){return s.a}},{key:"name",get:function(){return"DialogView"}},{key:"title",get:function(){return!1}},{key:"behaviors",get:function(){var t=a.map(this.options.buttons,(function(t,e){var n=a.pick(t,["text","type","className","close"]);return n.className+=" dialog-button-".concat(e),n}));return[{behaviorClass:c.f,title:this.options.title,buttons:t}]}}])&&f(e.prototype,n),r&&f(e,r),i}(o.a.View),v=n(0);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(u,t);var e,n,a,c=O(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=c.call(this)).dialogOptions=t,e.dialogOptions.result||(e.dialogOptions.result=$.Deferred()),e}return e=u,(n=[{key:"render",value:function(){var t=this,e=this.dialogOptions.result,n=new b(this.dialogOptions);return r.Radio.channel(i.a.POPUP).trigger(o.a.EventNames.SHOW_POPUP,n),e.always((function(){n.triggerMethod("hide"),t.destroy()}))}},{key:"name",get:function(){return v.x.DialogHelper}}])&&g(e.prototype,n),a&&g(e,a),u}(o.a.Service)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={ANALYTICS:"global:analytics"}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Analytics="AnalyticsService",t.Context="ContextService"}(r||(r={}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(u,t);var e,n,r,c=a(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,(n=[{key:"shouldLog",value:function(t){return!0}},{key:"log",value:function(t){}},{key:"isType",value:function(t){return t===u.type}}])&&o(e.prototype,n),r&&o(e,r),u}(n(2).a.Service);s.type="BaseAnalyticsClient"},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1),o={isFileDrag:function(t){return t&&t.originalEvent&&t.originalEvent.dataTransfer&&t.originalEvent.dataTransfer.types&&r.any(t.originalEvent.dataTransfer.types,(function(t){return"Files"===t}))}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5),o=n(20),i={libraries:{dataServiceName:o.a.Library,eventName:"libraries:sync",getData:function(t){return t.getLibraries()},getInstance:function(t){return r.a.getInstance(o.a.Library,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(75),o=n(82);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.d}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a)},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Read="notification:read"}(r||(r={}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return l}));var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(s,t);var e,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"name",get:function(){return"AlertError"}}])&&i(e.prototype,n),r&&i(e,r),s}(n(2).a.SilentError)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return l}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return l}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r;!function(t){t[t.Approved=1]="Approved",t[t.Pending=2]="Pending",t[t.Rejected=3]="Rejected"}(r||(r={})),n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row mx-0">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnailContainer:i,e))+' partial-loading-background pr-0 my-3"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.metaContainer:i,e))+' pl-3 my-3">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.titleContainer:i,e))+' partial-loading-background"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={list:"_35CAt",item:"_1r5u9",title:"_1ttnP",requestedBy:"_3Tq3M",date:"_33-LZ"}},function(t,e,n){t.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(t,e,n){t.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(t,e,n){t.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(t,e,n){t.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(t,e,n){t.exports={searchSvgContainer:"_1-crd",tipsContainer:"_15HAy",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return b})),n.d(e,"a",(function(){return v}));var r=n(1),o=n(7),i=n(2),a=n(12),c=n(512),u=n.n(c);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=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(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d={ShowSpinner:"show:spinner",HideSpinner:"hide:spinner",ToggleSpinner:"toggle:spinner",Enable:"enable",Disable:"disable",ManageDimensions:"manage:dimensions"},b={ShowSpinner:"showSpinner",Disabled:"disabled"},v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(y,t);var e,n,c,s=p(y);function y(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),s.call(this,t)}return e=y,(n=[{key:"events",value:function(){return{click:"onClick"}}},{key:"initialize",value:function(){this.model||(this.model=new i.a.Model({showSpinner:this.options.showSpinner,disabled:this.options.disabled})),this.bindSpinnerListeners(),this.bindDisableListeners(),this.listenTo(this.model,"change:".concat(b.ShowSpinner),this.render),this.listenTo(this.model,"change:".concat(b.Disabled),this.render)}},{key:"bindSpinnerListeners",value:function(){this.listenTo(this,d.ShowSpinner,this.showSpinner),this.listenTo(this,d.HideSpinner,this.hideSpinner),this.listenTo(this,d.ToggleSpinner,this.toggleSpinner),this.listenTo(this,d.ManageDimensions,this.manageDimensions),this.options.channelName&&(this.listenTo(this.options.channelName,d.ShowSpinner,this.showSpinner),this.listenTo(this.options.channelName,d.HideSpinner,this.hideSpinner),this.listenTo(this.options.channelName,d.ToggleSpinner,this.toggleSpinner))}},{key:"bindDisableListeners",value:function(){this.listenTo(this,d.Enable,this.enableButton),this.listenTo(this,d.Disable,this.disableButton),this.options.channelName&&(this.listenTo(this.options.channelName,d.Enable,this.enableButton),this.listenTo(this.options.channelName,d.Disable,this.disableButton))}},{key:"getButtonText",value:function(){return r.isFunction(this.options.buttonText)?this.options.buttonText():this.options.buttonText}},{key:"getTooltipOptions",value:function(){var t=this.options.tooltip;return r.isFunction(t)?t():t}},{key:"onClick",value:function(t){if(t.preventDefault(),!(this.options.disabled||this.model.get(b.Disabled)||this.model.get(b.ShowSpinner)))return o.Radio.channel(this.options.channelName).trigger(this.options.saveEvent),!1}},{key:"toggleSpinner",value:function(){this.model.get("showSpinner")?this.hideSpinner():this.showSpinner()}},{key:"showSpinner",value:function(){this.model.set("showSpinner",!0)}},{key:"hideSpinner",value:function(){this.model.set("showSpinner",!1)}},{key:"enableButton",value:function(){this.model.set("disabled",!1)}},{key:"disableButton",value:function(){this.model.set("disabled",!0)}},{key:"manageDimensions",value:function(){this.isAttached()&&(this.model.get("showSpinner")?this.applyDimensions():this.storeDimensions())}},{key:"storeDimensions",value:function(){this.options.detectWidth&&this.model.set("buttonWidth",this.$el.outerWidth()),this.options.detectHeight&&this.model.set("buttonHeight",this.$el.outerHeight())}},{key:"applyDimensions",value:function(){this.options.detectWidth&&this.model.get("buttonWidth")&&this.$el.css({width:this.model.get("buttonWidth")+"px"}),this.options.detectHeight&&this.model.get("buttonHeight")&&this.$el.css({height:this.model.get("buttonHeight")+"px"})}},{key:"renderTooltip",value:function(){var t=this.getTooltipOptions();r.isUndefined(t)||r.isEmpty(t)?this.$el.tooltip("dispose"):this.$el.tooltip(t)}},{key:"viewOptions",value:function(){var t={buttonText:this.getButtonText()};if(!this.model.get("showSpinner"))return t;var e=this.options.spinnerOptions||{};return r.extend(t,{spinnerEl:a.q.getSpinner(e)})}},{key:"onAttach",value:function(){this.manageDimensions()}},{key:"onRender",value:function(){this.resetClassName(),this.manageDimensions(),this.renderTooltip()}},{key:"onBeforeDestroy",value:function(){this.getTooltipOptions()&&this.$el.tooltip("dispose")}},{key:"name",get:function(){return"SpinnerButtonComponent"}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){return{type:this.options.buttonType}}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){var t="btn",e=this.options.extraButtonClass||"";return this.model&&this.model.get("disabled")&&(t="".concat(t," disabled")),"".concat(t," ").concat(e)}},{key:"defaults",get:function(){return{showSpinner:!1,detectWidth:!0,detectHeight:!0,buttonText:"Submit",buttonType:"button",preventMultiClick:!0,spinnerOptions:{size:a.r.Small,extraClasses:"mx-auto"}}}}])&&l(e.prototype,n),c&&l(e,c),y}(i.a.Component)},function(t,e,n){"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var r=n(306),o=n(188),i=(0,r.createTokenClass)();function a(t){var e=t?{v:t}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),e)}i.prototype={toString:function(){return this.v+""}};var c=a(),u=a("@"),s=a(":"),l=a("."),f=a(),p=a(),y=a("\n"),h=a(),d=a("+"),b=a("#"),v=a(),m=a("mailto:"),g=a("?"),S=a("/"),O=a("_"),w=a(),k=a(),C=a(),E=a("{"),R=a("["),_=a("<"),P=a("("),T=a("}"),x=a("]"),j=a(">"),D=a(")"),L=a("&");e.Base=i,e.DOMAIN=c,e.AT=u,e.COLON=s,e.DOT=l,e.PUNCTUATION=f,e.LOCALHOST=p,e.NL=y,e.NUM=h,e.PLUS=d,e.POUND=b,e.QUERY=g,e.PROTOCOL=v,e.MAILTO=m,e.SLASH=S,e.UNDERSCORE=O,e.SYM=w,e.TLD=k,e.WS=C,e.OPENBRACE=E,e.OPENBRACKET=R,e.OPENANGLEBRACKET=_,e.OPENPAREN=P,e.CLOSEBRACE=T,e.CLOSEBRACKET=x,e.CLOSEANGLEBRACKET=j,e.CLOSEPAREN=D,e.AMPERSAND=L},,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports={statusBar:"_3qlXe",statusBarMessage:"_1ul9Z",button:"_3HS1V"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={content:"_3KP84",notificationTime:"_1MR01",icon:"_1GUmS",contentContainer:"_34ETn"}},function(t,e,n){t.exports={actions:"_1cCHt",badge:"_2x-so",button:"_2y4ng",selectButton:"_1uCMl"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="'+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.filterButton:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={filterButton:"_10tNq"}},function(t,e,n){t.exports={container:"_11___",input:"_3RRYx"}},function(t,e,n){t.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(t,e,n){t.exports={coverImage:"_1_Tx-",coverContainer:"_3Qf-6",textContainer:"_34VXV"}},function(t,e,n){t.exports={avatar:"_1SfF-",arrow:"_2C5x6",popoverOffset:"_3FIw8"}},function(t,e,n){t.exports={progressDropdown:"_3mx9H",upload:"t6ngq",uploadButtonSvg:"_35apo"}},function(t,e,n){t.exports={progressInfo:"_1fkFK",svgContainer:"_2uMkl",itemCount:"_1oXJj"}},function(t,e,n){t.exports={active:"_3fIrz",icon:"_1RDxv"}},function(t,e,n){"use strict";(function(t){var e=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(){r(this,t)}return e(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};var e=this._callbacks[t];if(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e,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(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var r=0;r<n.length;r++){var o=n[r];if(o===e){n.splice(r,1);break}}return this}}]),t}(),i=function(t){function i(t,e){r(this,i);var o,a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),c=void 0;if(a.element=t,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!=e?e:{}),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(t){return a.options.renameFilename.call(a,t.name,t)}),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(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(i,t),e(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(t,e,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(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var e=0,n=n=this.element.getElementsByTagName("div");;){if(e>=n.length)break;var r=n[e++];if(/(^| )dz-message($| )/.test(r.className)){t=r,r.className="dz-message";break}}t||(t=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var o=t.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(t,e,n,r){var o={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},i=t.width/t.height;null==e&&null==n?(e=o.srcWidth,n=o.srcHeight):null==e?e=n*i:null==n&&(n=e/i);var a=(e=Math.min(e,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>e||o.srcHeight>n)if("crop"===r)i>a?(o.srcHeight=t.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=t.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>a?n=e/i:e=n*i}return o.srcX=(t.width-o.srcWidth)/2,o.srcY=(t.height-o.srcHeight)/2,o.trgWidth=e,o.trgHeight=n,o},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},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(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=i.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);for(var n=0,r=r=t.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var o=r[n++];o.textContent=t.name}for(var a=0,c=c=t.previewElement.querySelectorAll("[data-dz-size]");!(a>=c.length);)(o=c[a++]).innerHTML=this.filesize(t.size);this.options.addRemoveLinks&&(t._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),t.previewElement.appendChild(t._removeLink));for(var u=function(n){return n.preventDefault(),n.stopPropagation(),t.status===i.UPLOADING?i.confirm(e.options.dictCancelUploadConfirmation,(function(){return e.removeFile(t)})):e.options.dictRemoveFileConfirmation?i.confirm(e.options.dictRemoveFileConfirmation,(function(){return e.removeFile(t)})):e.removeFile(t)},s=0,l=l=t.previewElement.querySelectorAll("[data-dz-remove]");;){if(s>=l.length)break;l[s++].addEventListener("click",u)}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=t.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var o=r[n++];o.alt=t.name,o.src=e}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"String"!=typeof e&&e.error&&(e=e.error);for(var n=0,r=r=t.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=e}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){if(t.previewElement)for(var r=0,o=o=t.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=o.length)break;var i=o[r++];"PROGRESS"===i.nodeName?i.value=e:i.style.width=e+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.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(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;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];t[s]=l}}return t}}]),e(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{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(t){return t.status===i.UPLOADING||t.status===i.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=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 e(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",i.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",(function(){var n=t.hiddenFileInput.files;if(n.length)for(var r=0,o=o=n;;){if(r>=o.length)break;var i=o[r++];t.addFile(i)}return t.emit("addedfiles",n),e()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var e=0,n=n=this.events;;){if(e>=n.length)break;var r=n[e++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return t.updateTotalUploadProgress()})),this.on("canceled",(function(e){return t.emit("complete",e)})),this.on("complete",(function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout((function(){return t.emit("queuecomplete")}),0)}));var o=function(t){return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return o(e),t.emit("dragenter",e)},dragover:function(e){var n=void 0;try{n=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return o(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach((function(e){return t.listeners.push({element:e,events:{click:function(n){return(e!==t.element||n.target===t.element||i.elementInside(n.target,t.element.querySelector(".dz-message")))&&t.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 t=void 0,e=0,n=0;if(this.getActiveFiles().length){for(var r=0,o=o=this.getActiveFiles();;){if(r>=o.length)break;var i=o[r++];e+=i.upload.bytesSent,n+=i.upload.total}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):this.options.paramName+(this.options.uploadMultiple?"["+t+"]":"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e=void 0;if(t=this.getExistingFallback())return t;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?(e=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!=e?e:r}},{key:"getExistingFallback",value:function(){for(var t=function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];if(/(^| )fallback($| )/.test(r.className))return r}},e=["div","form"],n=0;n<e.length;n++){var r,o=e[n];if(r=t(this.element.getElementsByTagName(o)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var r=t.events[n];e.push(t.element.addEventListener(n,r,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var r=t.events[n];e.push(t.element.removeEventListener(n,r,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,n="b";if(t>0){for(var r=["tb","gb","mb","kb","b"],o=0;o<r.length;o++){var i=r[o];if(t>=Math.pow(this.options.filesizeBase,4-o)/10){e=t/Math.pow(this.options.filesizeBase,4-o),n=i;break}}e=Math.round(10*e)/10}return"<strong>"+e+"</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(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n<t.dataTransfer.files.length;n++)e[n]=t.dataTransfer.files[n];if(this.emit("addedfiles",e),e.length){var r=t.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(e)}}}},{key:"paste",value:function(t){if(null!=(e=null!=t?t.clipboardData:void 0,n=function(t){return t.items},null!=e?n(e):void 0)){var e,n;this.emit("paste",t);var r=t.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){for(var n=[],r=0,o=o=t;;){if(r>=o.length)break;var i,a=o[r++];null!=a.webkitGetAsEntry&&(i=a.webkitGetAsEntry())?i.isFile?n.push(e.addFile(a.getAsFile())):i.isDirectory?n.push(e._addFilesFromDirectory(i,i.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(e.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,r=t.createReader(),o=function(t){return e=console,n="log",r=function(e){return e.log(t)},null!=e&&"function"==typeof e[n]?r(e,n):void 0;var e,n,r};return function t(){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(t){if(!n.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath=e+"/"+t.name,n.addFile(t)})):a.isDirectory&&n._addFilesFromDirectory(a,e+"/"+a.name)}t()}return null}),o)}()}},{key:"accept",value:function(t,e){return this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;return t.upload={uuid:i.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t),chunked:this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),totalChunkCount:Math.ceil(t.size/this.options.chunkSize)},this.files.push(t),t.status=i.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(n){return n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==i.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===i.UPLOADING&&this.cancelUpload(t),this.files=a(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);for(var e=0,n=n=this.files.slice();;){if(e>=n.length)break;var r=n[e++];(r.status!==i.UPLOADING||t)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(t,e,n,r,o){var a=this;return this.createThumbnail(t,e,n,r,!0,(function(e,n){if(null==n)return o(t);var r=a.options.resizeMimeType;null==r&&(r=t.type);var c=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(c=s.restore(t.dataURL,c)),o(i.dataURItoBlob(c))}))}},{key:"createThumbnail",value:function(t,e,n,r,o,i){var a=this,c=new FileReader;return c.onload=function(){if(t.dataURL=c.result,"image/svg+xml"!==t.type)return a.createThumbnailFromUrl(t,e,n,r,o,i);null!=i&&i(c.result)},c.readAsDataURL(t)}},{key:"createThumbnailFromUrl",value:function(t,e,n,r,o,i,a){var c=this,s=document.createElement("img");return a&&(s.crossOrigin=a),s.onload=function(){var a=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(t){return EXIF.getData(s,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),a((function(o){t.width=s.width,t.height=s.height;var a=c.options.resize.call(c,t,e,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=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-e));for(;n<t;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===i.UPLOADING){for(var e=this._getFilesWithXhr(t.xhr),n=0,r=r=e;;){if(n>=r.length)break;r[n++].status=i.CANCELED}void 0!==t.xhr&&t.xhr.abort();for(var o=0,a=a=e;;){if(o>=a.length)break;var c=a[o++];this.emit("canceled",c)}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==i.ADDED&&t.status!==i.QUEUED||(t.status=i.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.apply(this,n)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(n){if(t[0].upload.chunked){var r=t[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*e.options.chunkSize,c=Math.min(a+e.options.chunkSize,r.size),u={name:e._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},e._uploadData(t,[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&&e.options.chunksUploaded(r,(function(){e._finished(t,"",null)}))},e.options.parallelChunkUploads)for(var c=0;c<r.upload.totalChunkCount;c++)a();else a()}else{for(var u=[],s=0;s<t.length;s++)u[s]={name:e._getParamName(s),data:n[s],filename:t[s].upload.filename};e._uploadData(t,u)}}))}},{key:"_getChunk",value:function(t,e){for(var n=0;n<t.upload.totalChunkCount;n++)if(void 0!==t.upload.chunks[n]&&t.upload.chunks[n].xhr===e)return t.upload.chunks[n]}},{key:"_uploadData",value:function(t,e){for(var n=this,r=new XMLHttpRequest,o=0,a=a=t;;){if(o>=a.length)break;a[o++].xhr=r}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=r);var c=this.resolveOption(this.options.method,t),u=this.resolveOption(this.options.url,t);r.open(c,u,!0),r.timeout=this.resolveOption(this.options.timeout,t),r.withCredentials=!!this.options.withCredentials,r.onload=function(e){n._finishedUploading(t,r,e)},r.onerror=function(){n._handleUploadError(t,r)},(null!=r.upload?r.upload:r).onprogress=function(e){return n._updateFilesUploadProgress(t,r,e)};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 y=this.options.params;for(var h in"function"==typeof y&&(y=y.call(this,t,r,t[0].upload.chunked?this._getChunk(t[0],r):null)),y){var d=y[h];p.append(h,d)}}for(var b=0,v=v=t;;){if(b>=v.length)break;var m=v[b++];this.emit("sending",m,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",t,r,p),this._addFormElementData(p);for(var g=0;g<e.length;g++){var S=e[g];p.append(S.name,S.data,S.filename)}this.submitRequest(r,p,t)}},{key:"_transformFiles",value:function(t,e){for(var n=this,r=[],o=0,i=function(i){n.options.transformFile.call(n,t[i],(function(n){r[i]=n,++o===t.length&&e(r)}))},a=0;a<t.length;a++)i(a)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName)for(var e=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(e>=n.length)break;var r=n[e++],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&&t.append(o,u.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&t.append(o,r.value)}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,t[0].upload.chunked){var o=t[0],i=this._getChunk(o,e);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=t;;){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=t;;){if(l>=f.length)break;var p=f[l++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var y=!0;r=100;for(var h=0,d=d=t;;){if(h>=d.length)break;var b=d[h++];100===b.upload.progress&&b.upload.bytesSent===b.upload.total||(y=!1),b.upload.progress=r,b.upload.bytesSent=b.upload.total}if(y)return;for(var v=0,m=m=t;;){if(v>=m.length)break;var g=m[v++];this.emit("uploadprogress",g,r,g.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(t,e,n){var r=void 0;if(t[0].status!==i.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(r=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(t){n=t,r="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e)):this._finished(t,r,n):this._handleUploadError(t,e,r)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==i.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(t[0],e);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=0,a=a=t;;){if(o>=a.length)break;a[o++];this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}}},{key:"submitRequest",value:function(t,e,n){t.send(e)}},{key:"_finished",value:function(t,e,n){for(var r=0,o=o=t;;){if(r>=o.length)break;var a=o[r++];a.status=i.SUCCESS,this.emit("success",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){for(var r=0,o=o=t;;){if(r>=o.length)break;var a=o[r++];a.status=i.ERROR,this.emit("error",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),i}(o);i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(t){return t.getAttribute("id")?i.options[c(t.getAttribute("id"))]:void 0},i.instances=[],i.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.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 t.dropzone},i.autoDiscover=!0,i.discover=function(){var t=void 0;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){for(var n=[],r=0,o=o=e;;){if(r>=o.length)break;var i=o[r++];/(^| )dropzone($| )/.test(i.className)?n.push(t.push(i)):n.push(void 0)}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){for(var e=[],n=0,r=r=t;;){if(n>=r.length)break;var o=r[n++];!1!==i.optionsForElement(o)?e.push(new i(o)):e.push(void 0)}return e}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var e=0,n=n=i.blacklistedBrowsers;;){if(e>=n.length)break;n[e++].test(navigator.userAgent)&&(t=!1)}else t=!1;else t=!1;return t},i.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),i=0,a=e.length,c=0<=a;c?i<=a:i>=a;c?i++:i--)o[i]=e.charCodeAt(i);return new Blob([r],{type:n})};var a=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},c=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};i.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},i.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},i.getElement=function(t,e){var n=void 0;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(t,e){var n=void 0,r=void 0;if(t instanceof Array){r=[];try{for(var o=0,i=i=t;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,e))}catch(t){r=null}}else if("string"==typeof t){r=[];for(var a=0,c=c=document.querySelectorAll(t);!(a>=c.length);)n=c[a++],r.push(n)}else null!=t.nodeType&&(r=[t]);if(null==r||!r.length)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},i.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");for(var n=t.type,r=n.replace(/\/.*$/,""),o=0,i=i=e;;){if(o>=i.length)break;var a=i[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(a.toLowerCase(),t.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(t){return this.each((function(){return new i(this,t)}))}),null!==t?t.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(t,e,n,r,o,i,a,c,u,s){var l=function(t){t.naturalWidth;var e=t.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=e;var r=n.getContext("2d");r.drawImage(t,0,0);for(var o=r.getImageData(1,0,1,e).data,i=0,a=e,c=e;c>i;){0===o[4*(c-1)+3]?a=c:i=c,c=a+i>>1}var u=c/e;return 0===u?1:u}(e);return t.drawImage(e,n,r,o,i,a,c,u,s/l)},s=function(){function t(){r(this,t)}return e(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,r=void 0,o="",i=void 0,a=void 0,c=void 0,u="",s=0;i=(n=t[s++])>>2,a=(3&n)<<4|(r=t[s++])>>4,c=(15&r)<<2|(o=t[s++])>>6,u=63&o,isNaN(r)?c=u=64:isNaN(o)&&(u=64),e=e+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<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var n=this.decode64(t.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),o=this.exifManipulation(e,r);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(t,e){var n=this.getExifArray(e),r=this.insertExif(t,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(t){for(var e=void 0,n=0;n<t.length;){if(255===(e=t[n])[0]&225===e[1])return e;n++}return[]}},{key:"insertExif",value:function(t,e){var n=t.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(e)).concat(a)}},{key:"slice2Segments",value:function(t){for(var e=0,n=[];;){if(255===t[e]&218===t[e+1])break;if(255===t[e]&216===t[e+1])e+=2;else{var r=e+(256*t[e+2]+t[e+3])+2,o=t.slice(e,r);n.push(o),e=r}if(e>t.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,r="",o=void 0,i=void 0,a="",c=0,u=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&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."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(c++))<<2|(o=this.KEY_STR.indexOf(t.charAt(c++)))>>4,n=(15&o)<<4|(i=this.KEY_STR.indexOf(t.charAt(c++)))>>2,r=(3&i)<<6|(a=this.KEY_STR.indexOf(t.charAt(c++))),u.push(e),64!==i&&u.push(n),64!==a&&u.push(r),e=n=r="",o=i=a="",c<t.length;);return u}}]),t}();s.initClass();i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(t,e){var n=!1,r=!0,o=t.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?t:o)[c](u+i.type,r,!1),!n&&(n=!0)?e.call(t,i.type||i):void 0};if("complete"!==o.readyState){if(o.createEventObject&&i.doScroll){try{r=!t.frameElement}catch(t){}r&&function t(){try{i.doScroll("left")}catch(e){return void setTimeout(t,50)}return s("poll")}()}o[a](u+"DOMContentLoaded",s,!1),o[a](u+"readystatechange",s,!1),t[a](u+"load",s,!1)}}(window,i._autoDiscoverFunction)}).call(this,n(795)(t))},function(t,e,n){"use strict";n(186),n(212);var r=n(187),o=n(7),i=n(2),a=n(0),c=n(12),u=n(185),s=n(41),l=n(172);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(v,t);var e,n,f,b=d(v);function v(){return p(this,v),b.apply(this,arguments)}return e=v,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,s.a.FILES_SELECTED,this.onFilesSelected)}},{key:"onFilesSelected",value:function(t){var e=this;!t&&t.length||(this.reader=new FileReader,this.reader.addEventListener("load",(function(){return e.onReaderLoad()})),this.reader.readAsDataURL(t[0]))}},{key:"onReaderLoad",value:function(){var t=this,e=new Image;e.src=this.reader.result;var n=a.k[this.options.imageType].width,r=a.k[this.options.imageType].height;e.addEventListener("load",(function(){t.isImageValid(e)?t.isImageLowQuality(e)?t.onImageLowQuality(e):t.onImageLoad(e):t.onImageTooSmall(n,r)}))}},{key:"onImageLowQuality",value:function(t){var e=this;o.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){var n=a.m[e.options.imageType];new c.d({title:"Low quality image detected",text:'<p>We\'ve detected a low quality image which may appear stretched or distorted within ClickView.</p>\n <p class="text-muted mb-0"><em>We recommend a size of at least\n '.concat(n.width,"px by ").concat(n.height,"px.</em></p>"),buttons:[{text:"Continue anyway",className:"btn btn-primary",success:!0}]}).render().done((function(){e.onImageLoad(t,!0)}))}),300)}},{key:"onImageTooSmall",value:function(t,e){o.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){i.a.ErrorHelper.throw(new u.g(t,e))}),300)}},{key:"isImageValid",value:function(t){var e=a.k[this.options.imageType].width,n=a.k[this.options.imageType].height;return!(e&&t.width<e||n&&t.height<n)}},{key:"isImageLowQuality",value:function(t){var e=a.m[this.options.imageType];return!!e&&(t.width<e.width||t.height<e.height)}},{key:"onImageLoad",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.options.saveImage(t.src,e),o.Radio.channel(this.options.channelName).trigger("image:load"),this.options.appLink&&i.a.AppLinkHelper.trigger(this.options.appLink)}},{key:"behaviors",get:function(){return[{behaviorClass:r.a,buttonSelector:this.options.buttonSelector,channelName:this.options.channelName,acceptMultiple:!1,mimeType:l.b.IMAGES}]}}])&&y(e.prototype,n),f&&y(e,f),v}(i.a.Behavior);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=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(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(a,t);var e,n,r,i=k(a);function a(){return S(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.lockLayoutFileDrop()}},{key:"lockLayoutFileDrop",value:function(){o.Radio.channel("file:drop:lock").trigger("lock")}},{key:"unlockLayoutFileDrop",value:function(){o.Radio.channel("file:drop:lock").trigger("unlock")}},{key:"onDestroy",value:function(){this.unlockLayoutFileDrop()}}])&&O(e.prototype,n),r&&O(e,r),a}(i.a.Behavior);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=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(t){return!1}}();return function(){var n,r=L(t);if(e){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(a,t);var e,n,r,i=j(a);function a(){return P(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getModel",value:function(){return this.options.bindViewModel?this.view.viewModel:this.view.model}},{key:"bindModelValidation",value:function(){this.getModel().addValidation(this.options.modelValidation)}},{key:"onRender",value:function(){this.options.modelValidation&&this.bindModelValidation(),o.Validation.bind(this.view,{model:this.getModel()})}},{key:"onBeforeDestroy",value:function(){o.Validation.unbind(this.view,{model:this.getModel()})}}])&&T(e.prototype,n),r&&T(e,r),a}(i.a.Behavior),N=n(109),I=n(18);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(a,t);var e,n,r,o=H(a);function a(){return M(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.validateOptions(),this.listenTo(N.a.LAZY_LOAD,"update:loader",this.updateLoader)}},{key:"updateLoader",value:function(){this.loader&&this.loader.update()}},{key:"onAttach",value:function(){c.h.isLazyLoadSupported(this.options.minBrowserSupportVersion)&&(this.loader=new LazyLoad({data_src:this.options.attribute,elements_selector:this.options.selector,class_loading:this.options.loadingClass,callback_load:this.options.callback,class_error:"d-none"}))}},{key:"onRender",value:function(){this.updateLoader()}},{key:"onBeforeDestroy",value:function(){this.loader&&this.loader.destroy()}},{key:"validateOptions",value:function(){this.options.selector||i.a.ErrorHelper.throw(new I.a("Must pass an image selector from ".concat(this.view.name," when using LazyLoadBehaviour.")))}},{key:"defaults",get:function(){return{loadingClass:"lazyload-loading",attribute:"src"}},set:function(t){}}])&&U(e.prototype,n),r&&U(e,r),a}(i.a.Behavior),G=n(1),W=n(11),Y=n(238),J=n(173),K=n(513),Q=n.n(K);function Z(t){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rt(t){var e=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(t){return!1}}();return function(){var n,r=it(t);if(e){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(t,e){return!e||"object"!==Z(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var at={saveEvent:"save",extraButtonClass:"btn-primary",spinnerOptions:{size:J.b.Small,type:J.c.Light,extraClasses:"mx-auto"}},ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nt(t,e)}(c,t);var e,n,r,a=rt(c);function c(){return tt(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.validateOptions(),this.setUpTemplateWrapper(),this.handleCloseOnRoute(),this.handleRendersDuringTransition()}},{key:"validateOptions",value:function(){this.options.title||i.a.ErrorHelper.throw(new I.a("Must pass a title from ".concat(this.view.name," when using PopupBehavior.")))}},{key:"handleCloseOnRoute",value:function(){var t=this;!1!==this.options.closeOnRoute&&(this.routeOnHide=!0,this.listenTo(W.a.SHELL,"route",(function(){t.routeOnHide=!1,t.view.$el.modal("hide")})))}},{key:"handleRendersDuringTransition",value:function(){var t=this,e=this.view.render;this.view.render=function(){var n=t.view.$el.data("bs.modal");return n&&n._isTransitioning?(t.view.$(".modal-dialog").one("bsTransitionEnd",(function(){return e.call(t.view)})),t):e.call(t.view)}}},{key:"onHide",value:function(){this.hide()}},{key:"setUpTemplateWrapper",value:function(){var t=this,e=this.view.getTemplate;this.view.getTemplate=function(){return function(n){var r=e.call(t.view),o=t.options.hideCloseButton,i=r(n),a=$(t.options.buttons||[]);return G.each(a,(function(t){G.isFunction(t.getClassName)&&(t.className=t.getClassName())})),G.some(a,(function(t){return t.close}))||o||a.unshift({text:"Close",className:"btn btn-link",close:!0}),a=G.sortBy(G.map(a,(function(t){return G.extend({type:"button",className:"btn btn-primary"},t)})),"close"),Q()({content:i,size:t.options.size,title:t.getTitle(),buttons:a,spinnerButton:!!t.options.spinnerButtonOptions})}}}},{key:"getTitle",value:function(){return G.isFunction(this.options.title)?this.options.title.apply(this.view):this.options.title}},{key:"getSpinnerButtonOptions",value:function(){return G.isFunction(this.options.spinnerButtonOptions)?this.options.spinnerButtonOptions.apply(this.view):this.options.spinnerButtonOptions}},{key:"renderSpinnerButton",value:function(){var t=this.getSpinnerButtonOptions();t&&!G.isEmpty(t)&&(t=G.extend({},at,t),this.view.addRegion("spinnerButton",{el:".spinner-button-region",replaceElement:!0}),this.spinnerButtonListenerBound||(this.spinnerButtonListenerBound=!0,this.view.listenTo(t.channelName,t.saveEvent,t.onClick)),this.spinnerComponent=new Y.a(G.omit(t,"onClickSpinnerButton")),this.view.showChildView("spinnerButton",this.spinnerComponent))}},{key:"onRender",value:function(){this.renderSpinnerButton();var t="modal fade";this.options.modalClasses&&(t+=" ".concat(this.options.modalClasses)),this.view.$el.addClass(t),this.view.$el.attr("tabindex","-1"),o.Radio.channel(N.a.POPUP).trigger("popup:render")}},{key:"onAttach",value:function(){this.modalInitialized||(this.view.$el.modal(this.options.modalOptions||{}),this.modalInitialized=!0)}},{key:"hide",value:function(){this.view.$el.modal("hide"),this.routeOnHide||this.view.$el.modal("_removeBackdrop")}},{key:"onBeforeDetach",value:function(){this.hide()}},{key:"onModalHidden",value:function(){this.view.isDestroyed()||this.view.destroy();var t=this.options.appLink;this.routeOnHide&&t&&i.a.AppLinkHelper.trigger(t)}},{key:"onModalShown",value:function(){this.view.$el.find("[autofocus]").focus(),this.spinnerComponent&&this.spinnerComponent.trigger(Y.b.ManageDimensions)}},{key:"events",get:function(){return{"hidden.bs.modal":"onModalHidden","shown.bs.modal":"onModalShown"}}}])&&et(e.prototype,n),r&&et(e,r),c}(i.a.Behavior);function ut(t){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){var e=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(t){return!1}}();return function(){var n,r=ht(t);if(e){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yt(this,n)}}function yt(t,e){return!e||"object"!==ut(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ht(t){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var dt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(i,t);var e,n,r,o=pt(i);function i(){return st(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"onRender",value:function(){this.view.stickit(this.options.bindViewModel?this.view.viewModel:this.view.model)}},{key:"onBeforeDestroy",value:function(){this.view.unstickit()}}])&<(e.prototype,n),r&<(e,r),i}(i.a.Behavior);n.d(e,"b",(function(){return r.a})),n.d(e,"c",(function(){return m})),n.d(e,"e",(function(){return R})),n.d(e,"a",(function(){return A})),n.d(e,"d",(function(){return q})),n.d(e,"f",(function(){return ct})),n.d(e,"g",(function(){return dt}))},function(t,e,n){"use strict";var r=n(1),o=n(27),i=n(0),a=n(93),c=n(119),u=n(25),s=(n(214),n(2)),l=n(111);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m,g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return l.b}}])&&y(e.prototype,n),r&&y(e,r),i}(s.a.Collection),S=n(3);function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}(t)||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 k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var C="contentUpdates.utils",E={getFilterCollection:function(t,e,n){var r=new a.a([{title:S.a.getPhrase(C,"libraryFilter"),type:u.a.Libraries,behavior:c.a.Inclusive,selectAllWhenNoneSelected:!0,minNumOptions:2,options:c.b.getSourceOptions(t)},{title:S.a.getPhrase(C,"subjectFilter"),type:u.a.Subjects,behavior:c.a.Exclusive,defaultOptionLabel:function(){return S.a.getPhrase(C,"subjectFilterLabel")},minNumOptions:0,options:e},{title:S.a.getPhrase(C,"releaseDateFilter"),type:u.a.ReleaseDate,behavior:c.a.Exclusive,minNumOptions:1,options:x}]);return n&&E.setFilters(r,n),r},getLibraryIds:function(t,e){var n=e.map((function(t){return t.get("id").toString()}));if(!t)return n;var o=[];return t.split(",").forEach((function(t){var e=t.split("-")[1];e&&r.contains(n,e)&&o.push(e)})),o},getSubjectOptions:function(t){var e={};return t.each((function(t){if(e[t.get("name")]){e[t.get("name")].subjectIds.push(t.get("id").toString());var n=[].concat(w(e[t.get("name")].libraryIds),w(t.get("libraryIds").map((function(t){return t.toString()}))));e[t.get("name")].libraryIds=r.uniq(n)}else e[t.get("name")]={subjectIds:[t.get("id").toString()],libraryIds:t.get("libraryIds").map((function(t){return t.toString()}))}})),r.keys(e).sort().map((function(t){return{name:t,value:t,subjectIds:e[t].subjectIds,libraryIds:e[t].libraryIds}}))},setFilters:function(t,e){r.keys(e).forEach((function(n){var r=e[n];if(r){var o=t.findWhere({type:n});o&&(n===u.a.Libraries&&E.setLibraryFilter(r,o),n===u.a.Subjects&&E.setSubjectFilter(r,o),n===u.a.ReleaseDate&&E.setReleaseDateFilter(r,o))}})),t.each((function(t){t.get("selectAllWhenNoneSelected")&&(r.contains(r.keys(e),t.get("type"))||c.b.selectAllOptions(t))}))},setLibraryFilter:function(t,e){t.split(",").forEach((function(t){var n=t.split("-")[1];if(n){var r=e.options.findWhere({id:+n});r&&r.set("active",!0)}}))},setSubjectFilter:function(t,e){if(-1!==t.indexOf("-")){var n=t.split("-")[1].split(","),o=e.options.find((function(t){return!!r.intersection(t.get("subjectIds"),n).length}));if(o)o.set("active",!0);else{var i=t.split("-")[0];e.options.add({name:i,value:i,subjectIds:n,active:!0})}}},setReleaseDateFilter:function(t,e){c.b.clearOptions(e);var n=e.options.findWhere({queryString:t});if(n)n.set("active",!0);else{var r=e.options.findWhere({isDefault:!0});r&&r.set("active")}},getSelectedSubjects:function(t){return t.findWhere({type:u.a.Subjects}).options.where({active:!0})},groupVideosByReleaseMonth:function(t){var e=[],n=t.groupBy((function(t){return o(t.get("dateReleased")).format("YYYY-MM")}));return r.each(n,(function(t,n){e.push(new l.b({id:n,videos:t,groupTitle:o(n).format("MMMM YYYY")}))})),new g(r.sortBy(e,"id").reverse())},getFirstDayInMonthNumMonthsAgo:function(t){return o().startOf("month").subtract(t,"month").format("YYYY-MM-DD")},getLastDayInMonthNumMonthsAgo:function(t){return o().endOf("month").subtract(t,"month").format("YYYY-MM-DD")},getSelectedReleaseDate:function(t){return t.findWhere({type:u.a.ReleaseDate}).options.findWhere({active:!0})},getRouteQueryParams:function(t){var e=E.RouteQueryParamGenerators,n={};return t.each((function(t){var o={};r.isFunction(e[t.get("type")])&&(o=e[t.get("type")](t)),n=r.extend(n,o)})),n},RouteQueryParamGenerators:(m={},O(m,u.a.Libraries,(function(t){var e=t.options.where({active:!0});return e.length&&e.length!==t.options.length?O({},u.a.Libraries,e.map((function(t){return"library-".concat(t.id)})).join(",")):{}})),O(m,u.a.Subjects,(function(t){var e=t.options.where({active:!0}),n=t.options.length>1&&t.options.length===e.length;return!e.length||n?{}:O({},u.a.Subjects,e.map((function(t){return"".concat(t.get("name"),"-").concat(t.get("subjectIds").join(","))})).join(","))})),O(m,u.a.ReleaseDate,(function(t){var e=t.options.findWhere({active:!0});if(!e)return{};var n=e.get("queryString");return n?O({},u.a.ReleaseDate,n):{}})),m)},R="contentUpdates.utils",_={AwaitingReview:function(){return S.a.getPhrase(R,"awaitingReview")},PastReleases:function(){return S.a.getPhrase(R,"pastReleases")}},P={AwaitingReview:".awaiting-review-applink",PastReleases:".past-releases-applink"},T=[{name:_.AwaitingReview,link:{selector:P.AwaitingReview,appLink:{application:i.b.CONTENT_UPDATES,action:i.a.ContentUpdates.AWAITING_REVIEW}}},{name:_.PastReleases,link:{selector:P.PastReleases,appLink:{application:i.b.CONTENT_UPDATES,action:i.a.ContentUpdates.PAST_RELEASES}}}],x=[{id:u.b.ThisMonth,value:u.b.ThisMonth,from:E.getFirstDayInMonthNumMonthsAgo(0),to:o().format("YYYY-MM-DD"),name:function(){return S.a.getPhrase(R,"thisMonth")},queryString:u.b.ThisMonth},{id:u.b.LastMonth,value:u.b.LastMonth,from:E.getFirstDayInMonthNumMonthsAgo(1),to:E.getLastDayInMonthNumMonthsAgo(1),name:function(){return S.a.getPhrase(R,"lastMonth")},queryString:u.b.LastMonth},{id:u.b.Last3Months,value:u.b.Last3Months,from:E.getFirstDayInMonthNumMonthsAgo(2),to:o().format("YYYY-MM-DD"),queryString:u.b.Last3Months,name:function(){return S.a.getPhrase(R,"last3Months")}},{id:u.b.Last6Months,value:u.b.Last6Months,from:E.getFirstDayInMonthNumMonthsAgo(5),to:o().format("YYYY-MM-DD"),queryString:u.b.Last6Months,name:function(){return S.a.getPhrase(R,"last6Months")}}],j=r.last(x),D=n(59),L={groupVideosByHostedLibrary:function(t){return L.groupVideosByLibrary(t,D.a.HostedLibrary,!0)},groupVideosByLibrary:function(t,e,n){if(!t||!t.length)return new g;var o=[],i=t.groupBy((function(t){var r=t.libraries.findWhere({type:e});return r||n&&(r=t.libraries.first())?r.get("name"):"Unknown Library"}));return r.each(i,(function(t,e){o.push(new l.b({id:e,videos:t,groupTitle:e}))})),new g(r.sortBy(o,"id"))}};n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return P})),n.d(e,"d",(function(){return T})),n.d(e,"g",(function(){return x})),n.d(e,"e",(function(){return j})),n.d(e,"c",(function(){return L})),n.d(e,"f",(function(){return E}))},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(522),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(c,t);var e,n,o,i=l(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"getImageClass",value:function(){return this.options.customImageClass}},{key:"getHeading",value:function(){return r.isFunction(this.options.heading)?this.options.heading():this.options.heading}},{key:"getDescription",value:function(){return r.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 t="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(t+=" ".concat(this.options.customClass)),t}},{key:"template",get:function(){return a.a}},{key:"defaults",get:function(){return{imageSize:"lg",paddedContainer:!0}}},{key:"appLinks",get:function(){return this.options.appLink||{}}}])&&u(e.prototype,n),o&&u(e,o),c}(o.a.Component),h=n(401);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return w}));var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(a,t);var e,n,o,i=g(a);function a(){return b(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldRender",value:function(){return!!r.isFunction(this.options.shouldRender)&&this.options.shouldRender()}},{key:"getComponent",value:function(){var t=this.options.emptyStateComponents[this.options.type](this);return new y(t)}},{key:"renderEmptyState",value:function(){if(this.shouldRender()){var t=this.getComponent();this.view.showChildView(this.options.region,t)}}},{key:"onRender",value:function(){this.renderEmptyState()}},{key:"defaults",get:function(){return{type:0,shouldRender:h.a.isCollectionEmpty.bind(null,this.view)}},set:function(t){}}])&&v(e.prototype,n),o&&v(e,o),a}(o.a.Behavior)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(38),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f="migrationWizard.alreadyMigratedError",p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(s,t);var e,n,r,i=u(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,o.a.getPhrase(f,"title"))}return e=s,(n=[{key:"name",get:function(){return"AlreadyMigratedError"}},{key:"heading",get:function(){return o.a.getPhrase(f,"heading")}}])&&a(e.prototype,n),r&&a(e,r),s}(r.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(7),i=n(2),a=n(18),c=n(128),u=n(543),s=n.n(u);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(p,t);var e,n,u,l=d(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),l.call(this,t)}return e=p,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:option:selected",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"hasTooltip",value:function(){if(!r.isFunction(this.options.getTooltip))return!1;var t=this.getTooltip();return!!r.isObject(t)&&t.title}},{key:"getTooltip",value:function(){if(r.isFunction(this.options.getTooltip))return this.options.getTooltip.apply(this,arguments)}},{key:"isDisabled",value:function(){return!!this.model.get("divider")||!!r.isFunction(this.options.isDisabled)&&this.options.isDisabled.apply(this,arguments)}},{key:"onClick",value:function(t){var e=this.model.get("eventName")||this.options.eventName;this.model.get("stopPropagation")&&t.stopPropagation(),this.isDisabled()?t.stopPropagation():(this.logAction(),e&&o.Radio.channel(this.options.channelName).trigger(e,this.model))}},{key:"logAction",value:function(){var t=this.model.get("appLink");if(t){var e=f(t.args,1)[0];this.options.analyticsHelper.logUserAction({id:e},this.model.get("analyticsOptions"))}}},{key:"buildPrefix",value:function(){if(r.isFunction(this.options.prefixHandler))return this.options.prefixHandler.apply(this,arguments)}},{key:"getTitle",value:function(){if(!this.model.get("divider")){var t=this.model.get(this.options.titleProperty);return t||i.a.ErrorHelper.throw(new a.a("titleProperty has not been correctly set. Or the model does not contain the property.")),t}}},{key:"viewOptions",value:function(){return{title:this.getTitle(),prefix:this.buildPrefix(),iconSvg:this.model.get("icon")}}},{key:"onRender",value:function(){this.resetClassName()}},{key:"template",get:function(){return s.a}},{key:"behaviors",get:function(){var t=[];return this.hasTooltip()&&t.push(Object.assign({behaviorClass:c.a},this.getTooltip())),t}},{key:"name",get:function(){return"DropdownItemComponent"}},{key:"tagName",get:function(){return this.model.get("divider")?"div":this.model.get("appLink")||this.model.get("href")?"a":"span"}},{key:"className",get:function(){if(this.model.get("divider"))return"dropdown-divider";var t=this.model.get("classes")||this.options.extraClasses,e="dropdown-item text-truncate";return this.options.truncateOptionNames?e+=" d-block text-truncate":e+=" d-flex justify-content-between",this.model.get("selected")&&(e+=" active"),this.isDisabled()?this.hasTooltip()?e+=" cursor-default":e+=" disabled cursor-default":e+=" cursor-pointer",t&&(e+=" ".concat(t)),e}},{key:"appLinks",get:function(){return this.model.get("appLink")?{"[this]":this.model.get("appLink")}:{}}},{key:"defaults",get:function(){return{titleProperty:"title"}}},{key:"attributes",get:function(){if(this.options.truncateOptionNames)return{title:this.model.get("name")};var t=this.hasTooltip()?this.getTooltip().title:"";return this.model.get("href")?{href:this.model.get("href"),title:this.options.currentSelectedMessage||t,target:this.model.get("external")?"_blank":""}:{title:t}}}])&&y(e.prototype,n),u&&y(e,u),p}(i.a.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(213);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";var r=n(1),o=n(124),i=n(2),a=n(18),c=n(70),u=n(22),s=n(125),l=n(14),f=n(3),p=n(516),y=n.n(p),h=n(517),d=n.n(h);n.d(e,"a",(function(){return b}));var b={handleQuery:function(t,e){return function(n,i,a){if(n&&t instanceof o){return t.search.call(t,n,i,(function(t){var o=[];if("empty-suggestion"===e.name)return a.call(this,[{}]);if("add-new"===e.name){var i=r.find(t,(function(t){return t.name.toLowerCase()===n.toLowerCase()}));i||(i={name:n}),i.type=e.newType,o.push(i)}else o=t;a.call(this,o)}))}}},getSuggestionTemplate:function(t){return"add-new"===t?function(t){return function(t){var e=r.extend({},t,{options:{styles:y.a,svg:l.a.getSvg(l.b.Plus),createText:f.a.getPhrase("shared.utils","create")}});return d()(e)}(t)}:"empty-suggestion"===t?s.a:s.d},getPendingTemplate:function(t){return"add-new"===t||"empty-suggestion"===t?s.a:s.b},getNotFoundTemplate:function(t,e){return"add-new"===t||e?s.a:s.c},getFooterTemplate:function(t){return r.isFunction(t)?t:null},prepareQuery:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.libraryIds;return"".concat(e.url,"?q=").concat(t).concat(r?"&ids=".concat(r):"")},prepareUrl:function(t,e){var n=b.mapRawSearchType(t,e);return"/api/domain/v1/search/".concat(n,"/instant/raw")},mapRawSearchType:function(t,e){switch(t){case u.a.TagsRaw:return u.a.TagsRaw;case u.a.Series:return u.a.Series;case u.a.Producers:return u.a.Producers;case u.a.Distributors:return u.a.Distributors;case u.a.ChannelRaw:return u.a.ChannelRaw;case u.a.Directors:return u.a.Directors;case u.a.ProductionCompanies:return u.a.ProductionCompanies;case u.a.Season:return u.a.Season;case"add-new":case"empty-suggestion":return e.newType;default:i.a.ErrorHelper.throw(new a.a("Raw search type ".concat(t," is not supported.")))}},getBloodhoundConfig:function(){return function(t,e){return{datumTokenizer:o.tokenizers.obj.whitespace("name"),queryTokenizer:o.tokenizers.whitespace,remote:{url:b.prepareUrl(t,e),prepare:r.partial(b.prepareQuery,r,r,e),cache:!1}}}},getTypeaheadConfig:function(){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{name:t.name,source:b.handleQuery(t.bloodhound,Object.assign({fetchType:c.a.Remote,name:t.name},n)),async:!0,limit:5,display:function(t){return t.name},templates:{suggestion:b.getSuggestionTemplate(t.name),pending:b.getPendingTemplate(t.name),notFound:b.getNotFoundTemplate(t.name,n.hideEmptyResults),footer:b.getFooterTemplate(n.footerTemplate)}}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(38),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(s,t);var e,n,r,i=u(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,"User does not have access to this video")}return e=s,(n=[{key:"name",get:function(){return"ForbiddenVideoError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.forbiddenVideo","info")}}])&&a(e.prototype,n),r&&a(e,r),s}(r.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(38),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(s,t);var e,n,r,i=u(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,"Video not found")}return e=s,(n=[{key:"name",get:function(){return"VideoNotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.videoNotFound","heading")}}])&&a(e.prototype,n),r&&a(e,r),s}(r.a)},function(t,e,n){"use strict";var r=n(215);n.d(e,"a",(function(){return r.a}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(145);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var r=n(7),o=n(2),i=n(3),a=n(92),c=n(12),u=n(0),s=n(546),l=n.n(s),f=n(127),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e,n){return e&&b(t.prototype,e),n&&b(t,n),t}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=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(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){m(n,t);var e=S(n);function n(t){return d(this,n),e.call(this,t)}return v(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:video change:pendingProcessStatus",this.render),this.listenTo(this.model,"change:foregroundProgress change:backgroundProgress",this.update)}},{key:"events",value:function(){var t;return h(t={},"click .".concat(p.a.cancel),"onClickCancel"),h(t,"click .retry","onClickRetry"),t}},{key:"onClickCancel",value:function(t){t.preventDefault(),t.stopPropagation();var e=this.model.get("video").get("name");c.b.generateDialog(e,this.options.channelName,"clear:pending:item",this.model)}},{key:"onClickRetry",value:function(t){t.preventDefault(),t.stopPropagation(),r.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.model)}},{key:"viewOptions",value:function(){var t=this.model.get("video");return{status:a.a.getStatus(this.model),progress:a.a.getProgress(this.model),name:t?t.get("name"):i.a.getPhrase(this.lang,"videoNotFound"),isDone:a.a.isDone(this.model),hasError:a.a.hasError(this.model),styles:p.a,spinnerEl:c.q.getSpinner({size:c.r.Medium,tag:"span",extraClasses:p.a.spinner})}}},{key:"onRender",value:function(){this.$el.find(".".concat(p.a.cancel,",.retry")).tooltip({placement:"left"})}},{key:"onDestroy",value:function(){this.$el.find(".".concat(p.a.cancel,",.retry")).tooltip("dispose")}},{key:"update",value:function(){var t=a.a.getStatus(this.model),e=a.a.getProgress(this.model),n=this.getUI("progressBar");n&&n.get(0)&&$(n.get(0)).css("width","".concat(e,"%")),this.getUI("progressText").html(t)}},{key:"name",get:function(){return"ProcessProgressComponent"}},{key:"template",get:function(){return l.a}},{key:"lang",get:function(){return"upload.processProgress"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return"d-block my-2 cursor-pointer ".concat(p.a.processProgress)}},{key:"attributes",get:function(){return{title:this.model.get("statusMessageHeader")}}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"appLinks",get:function(){return{"[this]":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[this.model.get("categoryId")]}}}}]),n}(o.a.Component),C=function(t){m(n,t);var e=S(n);function n(t){return d(this,n),e.call(this,t)}return v(n,[{key:"name",get:function(){return"ProcessProgressComponentCollection"}},{key:"childView",get:function(){return k}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}},{key:"className",get:function(){return"px-2 popover-list-body-md"}},{key:"viewComparator",get:function(){return function(t){return-t.get("pendingProcessStatus")}}}]),n}(o.a.ComponentCollection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(2),o=n(28),i=n(14),a=n(41),c=n(0),u=n(12),s=n(271),l=n.n(s),f=n(549),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(f,t);var e,n,r,s=v(f);function f(){return h(this,f),s.apply(this,arguments)}return e=f,(n=[{key:"initialize",value:function(){this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:progress change:items change:hasErrors",this.render),this.listenTo(c.w.PENDING_ITEMS,a.a.PENDING_ITEM_STATUS_CHANGE,this.render)}},{key:"viewOptions",value:function(){return{warningSvg:i.a.getSvg(i.b.Warning),spinnerEl:u.q.getSpinner({size:u.r.Medium,type:u.s.LightBgDark}),styles:l.a}}},{key:"onBeforeRender",value:function(){return!!this.model.get("items")}},{key:"name",get:function(){return"ProgressInfoComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return l.a.progressInfo}}])&&d(e.prototype,n),r&&d(e,r),f}(r.a.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={LIBRARY_STATUS:"library:status"}},function(t,e,n){"use strict";var r,o=n(1),i=n(7),a=n(2),c=n(3),u=n(5),s=n(28),l=n(13),f=n(69),p=n(114),y=n(108);!function(t){t[t.Permanent=0]="Permanent",t[t.Temporary=1]="Temporary"}(r||(r={}));var h=n(172),d=n(41),b=n(29);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=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(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(i,t);var e,n,r,o=S(i);function i(t,e,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:c.a.getPhrase(this.lang,"heading"),text:c.a.getPhrase(this.lang,"body"),buttons:[{text:c.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:c.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&m(e.prototype,n),r&&m(e,r),i}(b.a),C=n(273);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=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(t){return!1}}();return function(){var n,r=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j="upload.internetConnectivityError",D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(i,t);var e,n,r,o=P(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,c.a.getPhrase(j,"title"))}return e=i,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:c.a.getPhrase(j,"heading"),text:c.a.getPhrase(j,"body"),buttons:[{text:c.a.getPhrase(j,"okay"),className:"btn",success:!0}]}}}])&&R(e.prototype,n),r&&R(e,r),i}(b.a),L=n(227);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t,e){return(I=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function V(t){var e=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(t){return!1}}();return function(){var n,r=U(t);if(e){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var F,H,z=[],B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&I(t,e)}(s,t);var e,n,r,u=V(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,t)}return e=s,r=[{key:"isValidFile",value:function(t,e){return C.isValidFile(t,e)}}],(n=[{key:"initialize",value:function(t){var e=this.options.loggingEnabled,n=i.Radio.channel(t.channelName),r=this;this.dropzone=new C(document.createElement("div"),{url:function(t){return t[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 t=this;e&&(o.each(z,(function(e){t.on(e,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(e,o,n)}))})),this.on("uploadprogress",(function(t,e,o){var i=o/t.size*100;n.trigger("progress",r.getId(t),i,o)})),this.on("success",(function(t){var e=t.upload.chunks,r=o.last(e),i=r.xhr;i||(i=r.file.xhr);var a=JSON.parse(i.response);t.cvUpload.fileUrl=a.url,n.trigger("upload:success",t,a)})),this.on("error",(function(t,e,n){n&&0===n.status?a.a.ErrorHelper.throw(new D):"canceled"!==t.status&&a.a.ErrorHelper.throw(new L.a(c.a.getPhrase("upload.services","uploadError",{fileName:t.name,message:e.message})))})))},params:function(t,e,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(t){return t.upload.uuid}},{key:"addFile",value:function(t){this.dropzone.addFile(t)}},{key:"removeFile",value:function(t){this.dropzone.removeFile(t)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}},{key:"name",get:function(){return"DropzoneWrapper"}}])&&N(e.prototype,n),r&&N(e,r),s}(a.a.Service),q=n(21),G=n(20),W=n(40),Y=n(4);function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $(t,e,n){return e&&Z(t.prototype,e),n&&Z(t,n),t}function X(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tt(t,e)}function tt(t,e){return(tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function et(t){var e=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(t){return!1}}();return function(){var n,r=rt(t);if(e){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(t,e){return!e||"object"!==K(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"d",(function(){return ot})),n.d(e,"a",(function(){return st})),n.d(e,"c",(function(){return lt})),n.d(e,"b",(function(){return ft}));var ot,it=function(t){X(n,t);var e=et(n);function n(){return Q(this,n),e.call(this,{dataProvider:u.a.getInstance(f.a.Ajax),cache:u.a.getInstance(p.a.Fifo),alertService:u.a.getInstance(y.a.ALERT)})}return $(n,[{key:"requestUploads",value:function(t,e,n,r){var i=this,a=this.chain();o.each(t,(function(t){a.create({resource:"/api/upload",eventPrefix:"request:upload",data:i.getFileUploadRequest(t,e),callback:function(e){n(t,e)}})})),a.func((function(){r()})).run()}},{key:"cancelUpload",value:function(t,e,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:t,ingestUrl:e},callback:n})}},{key:"getFileUploadRequest",value:function(t,e){var n=t.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:t.size,fileLifestyle:e}}},{key:"onDestroy",value:function(){u.a.releaseInstance(f.a.Ajax).releaseInstance(p.a.Fifo)}},{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}}]),n}(l.a);!function(t){t[t.Video=0]="Video",t[t.LearningResource=1]="LearningResource",t[t.Subtitle=2]="Subtitle"}(ot||(ot={}));var at=(J(F={},ot.Video,"video/*"),J(F,ot.LearningResource,h.b.RESOURCES),J(F,ot.Subtitle,h.b.SUBTITLES),F),ct=(J(H={},ot.Video,q.c.VIDEO_UPLOAD),J(H,ot.LearningResource,q.c.RESOURCE_UPLOAD),J(H,ot.Subtitle,q.c.SUBTITLE_UPLOAD),H),ut=function(t){X(n,t);var e=et(n);function n(){return Q(this,n),e.apply(this,arguments)}return $(n,[{key:"initialize",value:function(){this.uploadDataService=new it,this.progressViewModel=s.a.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"initUploader",value:function(t,e){if(!this.uploader){var n=4194304;t&&n<t&&(n=t),e&&n>e&&(n=e),this.uploader=new B({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(t,e,n){var r=this.collection.get(t);r&&(r.set({progress:e>100?100:e,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new a.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var t=0,e=0,n=this.getCollection();if(n.length){n.each((function(n){t+=n.get("totalUploaded")||0,e+=n.get("file").size||0}));var r=t/e*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(t){return B.isValidFile(t,this.getAcceptedFiles())}},{key:"addFiles",value:function(t,e){var n=this;o.any(t,(function(t){return!n.isValidFile(t)}))?a.a.ErrorHelper.throw(new k(c.a.getPhrase(this.lang,"invalidFileType"),t,this.getAcceptedFiles())):this.requestUploads(t,e)}},{key:"requestUploads",value:function(t,e){var n=this,r=this.isUploading(),o=this.getCollection();this.uploadDataService.requestUploads(t,this.fileLifestyle,(function(t,e){n.initUploader(1024*e.minChunkSize,1024*e.maxChunkSize),t.cvUpload={uploadId:e.uploadId,ingestUrl:e.ingestUrl},n.uploader.addFile(t);var r=t.name;n.uploadType===ot.Video&&(r=r.replace(/\.[^/.]+$/,"")),o.add({id:n.uploader.getId(t),file:t,name:r},{at:o.length-1})}),(function(){e&&W.a.logUserAction({uploadCount:t.length},e),i.Radio.channel(n.channelName).trigger(d.a.FILES_ADDED,t,r)}))}},{key:"addFile",value:function(t,e){this.addFiles([t],e)}},{key:"cancelUpload",value:function(t){var e=this,n=this.getCollection(),r=n.get(t);if(r){var o=r.get("file");this.uploader.removeFile(o),n.remove(r),this.uploadDataService.cancelUpload(o.cvUpload.uploadId,o.cvUpload.ingestUrl,(function(){W.a.logUserAction({id:o.cvUpload.uploadId},{entity:Y.e.Video,actionType:Y.q.Upload,workflowPhase:Y.r.Discard,descriptor:Y.l.Single,location:Y.k.MyUploads}),i.Radio.channel(e.channelName).trigger(d.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(t,e){var n=this.uploader.getId(t),r=this.getCollection().get(n);r.set("fileInfo",e),W.a.logUserAction({id:t.cvUpload.uploadId},{entity:Y.e.Video,actionType:Y.q.Upload,workflowPhase:Y.r.Complete,descriptor:Y.l.Single,location:Y.k.VideoUpload}),i.Radio.channel(this.channelName).trigger(d.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var t=this,e=this.getCollection().map((function(t){return t.get("id")}));o.each(e,(function(e){return t.cancelUpload(e)}))}},{key:"getAcceptedFiles",value:function(){return at[this.uploadType]}},{key:"channelName",get:function(){return ct[this.uploadType]}},{key:"lang",get:function(){return"upload.services"}}]),n}(a.a.Service),st=function(t){X(n,t);var e=et(n);function n(){return Q(this,n),e.apply(this,arguments)}return $(n,[{key:"uploadType",get:function(){return ot.Video}},{key:"name",get:function(){return G.b.VideoUpload}},{key:"fileLifestyle",get:function(){return r.Temporary}}]),n}(ut),lt=function(t){X(n,t);var e=et(n);function n(){return Q(this,n),e.apply(this,arguments)}return $(n,[{key:"uploadType",get:function(){return ot.Subtitle}},{key:"name",get:function(){return G.b.SubtitleUpload}},{key:"fileLifestyle",get:function(){return r.Permanent}}]),n}(ut),ft=function(t){X(n,t);var e=et(n);function n(){return Q(this,n),e.apply(this,arguments)}return $(n,[{key:"uploadType",get:function(){return ot.LearningResource}},{key:"name",get:function(){return G.b.ResourceUpload}},{key:"fileLifestyle",get:function(){return r.Permanent}}]),n}(ut)},function(t,e,n){"use strict";var r=n(2),o=n(144),i=n(1),a=n(3),c=n(5),u=n(13),s=n(48),l=n(0),f=n(47),p=n(45),y=n(225),h=n(82);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(i,t);var e,n,r,o=g(i);function i(){return b(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return h.g}}])&&v(e.prototype,n),r&&v(e,r),i}(r.a.Collection),k=n(15),C=n(84);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=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(t){return!1}}();return function(){var n,r=D(t);if(e){var o=D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return et})),n.d(e,"b",(function(){return nt}));var L=function(t){var e={categoryChord:t};return"/api/homemigrator/v1/customers/categories/videos?".concat($.param(e,!0))},A=function(){return"/api/homemigrator/v1/customers/categories"},N=function(){return"/api/homemigrator/v1/customer-meta"},I=function(t){return"/api/homemigrator/v1/synced-videos/publisher-metadata?trackingCode=".concat(t)},V=function(t){return"/api/homemigrator/v1/synced-videos/publisher-metadata?masterId=".concat(t)},M=function(){return"/api/homemigrator/v1/backup/progress"},U=function(t){return"/api/homemigrator/v1/customer-meta/options/".concat(t)},F=function(){return"/api/homemigrator/v1/finalise/smart"},H=function(){return"/api/homemigrator/v1/finalise/full"},z=function(t){return"/api/homemigrator/v1/finalise/".concat(t)},B=function(t){return"/api/homemigrator/v1/backup-tools/head?channel=".concat(t)},q=function(){return"/api/homemigrator/v1/finalise/phase2"},G=function(t){return"/api/homemigrator/v1/finalise?type=".concat(t)},W=function(){return"/api/homemigrator/v1/customers/reviewvideos"},Y=function(){return"/api/homemigrator/v1/customers/reviewvideos/count"},J=function(){return"/api/homemigrator/v1/synced-videos/migrationstatus"},K=function(t){return"/api/homemigrator/v1/reports/".concat(t)},Q=function(){return"/api/homemigrator/v1/reports"},Z=function(t){return"/api/homemigrator/v2/customers/videos/smart?limit=987".concat(t?"&cursor=".concat(t):"")},X={video:function(t){return new r.a.Model(t[0],{parse:!0})},videos:function(t){return new s.a(t,{parse:!0})},smartSelectVideos:function(t){return new w(t)},videoCount:function(t){return new h.h(t)},folders:function(t){return new y.a(t,{parse:!0})},customerMetadata:function(t){return new h.b(t)},finalisationTask:function(t){return new h.c(t)},backupTool:function(t){return new h.a(t)}},tt=l.f,et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(d,t);var e,n,u,y=x(d);function d(){return _(this,d),y.apply(this,arguments)}return e=d,(n=[{key:"initialize",value:function(){this.folderCacheService=c.a.getInstance(l.x.FolderCache,this)}},{key:"clearVideoCache",value:function(){this.invalidateCache([tt.CUSTOMER_VIDEOS])}},{key:"getCustomerFolders",value:function(t){return this.get({callback:t,expiryTime:k.a.STANDARD,formatData:X.folders,resource:A(),eventPrefix:"".concat(tt.CUSTOMER_FOLDERS)})}},{key:"getCustomerVideos",value:function(t,e){return this.get({callback:e,expiryTime:k.a.STANDARD,formatData:function(e){return i.each(e,(function(e){return e.categoryChord=t})),new s.a(e)},resource:L(t),eventPrefix:"".concat(tt.CUSTOMER_VIDEOS,":").concat(escape(t))})}},{key:"clearCacheAndgetCustomerSmartSelect",value:function(t,e){var n=this,r=function(t,e){n.clearCacheAndGet({expiryTime:k.a.STANDARD,resource:Z(t),eventPrefix:"".concat(tt.CUSTOMER_SMART_VIDEOS),errorHandler:n.alertService.error({useXHR:!0}),callback:e})},o=[];r("",(function n(i){i.data.length&&o.push.apply(o,i.data),t(o.length),null===i.cursor?e(new w(o)):r(i.cursor,n)}))}},{key:"getCustomerMetadata",value:function(t){return this.get({callback:t,expiryTime:k.a.STANDARD,formatData:X.customerMetadata,resource:N(),eventPrefix:"".concat(tt.CUSTOMER_METADATA),bootstrapName:l.c.CUSTOMER_META})}},{key:"clearCacheAndGetCustomerMetadata",value:function(t){return this.clearCacheAndGet({callback:t,formatData:X.customerMetadata,resource:N(),eventPrefix:"".concat(tt.CUSTOMER_METADATA)})}},{key:"getCustomerVideoByTrackingCode",value:function(t,e){return this.get({callback:e,expiryTime:k.a.STANDARD,formatData:X.video,resource:I(t),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":").concat(t)})}},{key:"getCustomerVideoByMasterId",value:function(t,e){return this.get({callback:e,expiryTime:k.a.STANDARD,formatData:X.video,resource:V(t),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":").concat(t),errorHandler:!1})}},{key:"getCustomerVideoCount",value:function(t){this.clearCacheAndGet({callback:t,expiryTime:k.a.STANDARD,formatData:X.videoCount,resource:M(),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":count")})}},{key:"getCustomerVideoCountCached",value:function(t){return this.get({callback:t,expiryTime:k.a.STANDARD,formatData:X.videoCount,resource:M(),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":count")})}},{key:"updateCustomerMigrationOption",value:function(t,e){return this.update({data:{},resource:U(t),eventPrefix:"".concat(tt.CUSTOMER_METADATA,":update"),callback:e,invalidationKeys:["".concat(tt.CUSTOMER_METADATA),"libraries"]})}},{key:"finaliseCustomerVideos",value:function(t,e,n){var r=this,o=t.map((function(t){return{category:t.get("folderChord"),videoIds:t.get("videoIds"),forceMigrateWarnings:e}}));this.create({data:o,callback:function(t){r.clearVideoCache(),i.isFunction(n)&&n(t)},resource:F(),eventPrefix:"".concat(tt.CUSTOMER_VIDEOS,":finalise"),invalidationKeys:["manual:review:videos","manual:review:video:count",tt.VIDEOS],formatData:function(t){return new h.c(t)}})}},{key:"finaliseAllVideos",value:function(t){var e=this;this.create({data:{},callback:function(n){e.clearVideoCache(),i.isFunction(t)&&t(n)},resource:H(),eventPrefix:"".concat(tt.CUSTOMER_VIDEOS,":finalise:all"),formatData:function(t){return new h.c(t)}})}},{key:"getFinalisationTask",value:function(t,e){this.clearCacheAndGet({callback:e,expiryTime:k.a.STANDARD,formatData:X.finalisationTask,resource:z(t),eventPrefix:"".concat(tt.FINALISATION,":").concat(t)})}},{key:"deselectAll",value:function(){this.getCustomerFolders((function(t){f.a.deselectAll(C.a.MIGRATION_WIZARD,t)}))}},{key:"setSelected",value:function(t){var e=this;this.getCustomerFolders((function(n){f.a.setSelected(C.a.MIGRATION_WIZARD,e.folderCacheService.getFolderByChord(t,n),n)}))}},{key:"getSelected",value:function(t){this.getCustomerFolders((function(e){var n=f.a.getSelected(C.a.MIGRATION_WIZARD,e);t(n)}))}},{key:"getBackupTool",value:function(t,e){return this.get({resource:B(t),formatData:X.backupTool,eventPrefix:tt.BACKUP_TOOL,callback:e})}},{key:"publishLibraries",value:function(t){return this.create({data:{},resource:q(),eventPrefix:"publish:libraries",callback:t})}},{key:"getPublishLibrariesProgress",value:function(t,e){this.clearCacheAndGet({resource:G(t),eventPrefix:"current:finalisation:task",formatData:X.finalisationTask,callback:e})}},{key:"clearCacheAndGetManualReviewVideoCount",value:function(t){this.clearCacheAndGet({resource:Y(),eventPrefix:"manual:review:video:count",formatData:function(t){return new r.a.Model(t)},callback:t})}},{key:"getManualReviewVideoCount",value:function(t){return this.get({resource:Y(),eventPrefix:"manual:review:video:count",formatData:function(t){return new r.a.Model(t)},callback:t})}},{key:"getManualReviewVideos",value:function(t){return this.get({resource:W(),eventPrefix:"manual:review:videos",formatData:function(t){return new r.a.Collection(t)},callback:t})}},{key:"updateMigrationStatus",value:function(t,e,n){this.update({data:{videoIds:t,migrationStatus:e},resource:J(),eventPrefix:"update:migration:status",invalidationKeys:["manual:review:videos","manual:review:video:count"],callback:n})}},{key:"getMigrationReportOptions",value:function(t){return this.get({resource:Q(),eventPrefix:"get:migration:report:options",callback:t})}},{key:"generateMigrationReportCsv",value:function(t,e){var n,r=this,c=(R(n={},p.d.Migrated,"homemigrator.le.migration.migrated.report"),R(n,p.d.Remaining,"homemigrator.le.migration.videos.remaining.report"),R(n,p.d.Errored,"homemigrator.le.migration.error.report"),R(n,p.d.ContentMatched,"homemigrator.le.migration.content.matched.report"),n),u=new o.a(t.length),s=function(){u.decrement(),0===u.getValue()&&(r.alertService.success(a.a.getPhrase(r.lang,"generateCsvSuccess"))(),e())};i.each(t,(function(t){r.create({callback:s,resource:K(c[t]),data:{},eventPrefix:"generate:migration:report:csv:".concat(t),errorHandler:r.alertService.error(a.a.getPhrase(r.lang,"generateCsvFail"))})}))}},{key:"name",get:function(){return"MigrationVideoDataService"}},{key:"channelName",get:function(){return l.e.MIGRATION}},{key:"lang",get:function(){return"migrationWizard.services"}}])&&P(e.prototype,n),u&&P(e,u),d}(u.a),nt={customerMetaData:{dataServiceName:l.e.MIGRATION,eventName:"".concat(tt.CUSTOMER_METADATA,":sync"),getData:function(t){return t.getCustomerMetadata()},getInstance:function(t){return c.a.getInstance(l.g.MigrationVideo,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";var r=n(1),o=n(515),i=n.n(o),a=n(9),c=function(t){return a.escapeExpression(t)};n.d(e,"a",(function(){return p}));var u=/&/g,s=/\W*/g,l=/\s+/g,f={className:"info-link"},p={wordsHighlighter:function(t,e){if(!t||!e||!e.length)return t;var n=p.escapeRegExp(e.join("%&%")).split("%&%");return t.replace(new RegExp("\\b("+n.join("|")+")\\b","gi"),'<span class="highlight">$&</span>')},escapeExpression:function(t){return c(t)},escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(t){if(t)return t.toLowerCase().replace(u,"and").replace(s," ").trim().replace(l,"-").substr(0,80)},linkifyText:function(t,e){if(t){var n=e?r.extend({},f,e):f;return i()(t,n)}},extractKeyPhrases:function(t,e,n,o){if(!t||!e||!e.length)return[];var i,a=t.toLowerCase(),c=[],u=function(e,r){var o=e-Math.floor(n/2-r),i=o;if(i<=0)return 0;for(;" "!==t[i-1]&&i<e;)i++;if(i<e)return i;for(i=o;" "!==t[i-1]&&i>0;)i--;return i},s=function(e,r){var o=t.length,i=e+Math.floor(n/2-r),a=i;if(a>=o)return o;for(;" "!==t[a+1]&&a>e;)a--;if(a>e)return a+1;for(a=i;" "!==t[a+1]&&a<o;)a++;return a+1};r.each(e,(function(t){for(var e=t.toLowerCase(),n=a.indexOf(e);-1!==n;)c.push([u(n,t.length),s(n+t.length,t.length)]),n=a.indexOf(e,n+1)})),c=r.uniq(r.sortBy(c,(function(t){return t[0]})),!0,(function(t){return"".concat(t[0],":").concat(t[1])})),o&&(c=c.slice(0,o));do{i=!1;for(var l=0;l<c.length-1;l++)c[l][1]<c[l+1][0]||(c[l][1]=c[l+1][0]-1,i=!0)}while(i);var f=[];return r.each(c,(function(e){var n=t.slice(e[0],e[1]).trim();e[0]>0&&(n="...".concat(n)),e[1]<t.length&&(n="".concat(n,"...")),f.push(n)})),f.filter((function(t){return r.some(e,(function(e){return-1!==t.toLowerCase().indexOf(e.toLowerCase())}))}))}}},function(t,e,n){t.exports={banner:"_16p9Y",actions:"KoZV-"}},function(t,e,n){t.exports={containerWithBottomBorder:"_3pMnf",tabContainer:"_3DDqe",publisherArchiveAppLink:"WtJIT",reviewErroredAppLink:"_2P6wN",none:"_36_Ky",publisherArchive:"oHXCU",migrationErrors:"_Ztdf",svgContainer:"edUQE"}},function(t,e,n){t.exports={svgContainer:"O3FnZ",sortingRow:"Rbj8Y",bulkCheckbox:"_2mKzS",sortOption:"_3ajGP"}},function(t,e,n){t.exports={viewLink:"_2s0QU",viewCount:"_1ncwl",faded:"_2G1C1",bulkCheckbox:"_225JZ",videoRow:"fFRMW",videoTitle:"_3YCJO",errorIconContainer:"_37_lU",categoryName:"_3gjN2"}},function(t,e,n){t.exports={currentHeader:"b4Mqw",header:"_2OV3l",subheader:"_6H8te",back:"_3RKrR",backSvgContainer:"_1T015",checkSvgContainer:"_3Q3UJ",checkSvgContainerChecked:"ZsxkB",svg:"uKtsP"}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(174);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}},{key:"comparator",get:function(){return"startTime"}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";e.__esModule=!0;e.default={nbsp:" "}},function(t,e,n){"use strict";function r(t){this.named=t}e.__esModule=!0;var o=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,a=/^([A-Za-z0-9]+)$/;r.prototype.parse=function(t){if(t){var e=t.match(o);return e?"&#x"+e[1]+";":(e=t.match(i))?"&#"+e[1]+";":(e=t.match(a))?this.named[e[1]]||"&"+e[1]+";":void 0}},e.default=r},function(t,e,n){"use strict";e.__esModule=!0;var r=n(788);function o(t,e){this.delegate=t,this.entityParser=e,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}o.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},tokenizePart:function(t){for(this.input+=(0,r.preprocessInput)(t);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var t=this.peek();return this.index++,"\n"===t?(this.line++,this.column=0):this.column++,t},consumeCharRef:function(){var t=this.input.indexOf(";",this.index);if(-1!==t){var e=this.input.slice(this.index,t),n=this.entityParser.parse(e);if(n){for(var r=e.length;r;)this.consume(),r--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var t=this.peek();"<"===t?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(t))},tagOpen:function(){var t=this.consume();"!"===t?this.state="markupDeclaration":"/"===t?this.state="endTagOpen":(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(t.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var t=this.consume();"-"===t?this.state="commentStartDash":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(t),this.state="comment")},commentStartDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var t=this.consume();"-"===t?this.state="commentEndDash":this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":(this.delegate.appendToCommentData("-"+t),this.state="comment")},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+t),this.state="comment")},tagName:function(){var t=this.consume();(0,r.isSpace)(t)?this.state="beforeAttributeName":"/"===t?this.state="selfClosingStartTag":">"===t?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(t)},beforeAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.state="selfClosingStartTag",this.consume()):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(t))},attributeName:function(){var t=this.peek();(0,r.isSpace)(t)?(this.state="afterAttributeName",this.consume()):"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.state="beforeAttributeValue",this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(t))},afterAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.consume(),this.state="beforeAttributeValue"):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(t))},beforeAttributeValue:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():'"'===t?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===t?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(t))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===t?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===t?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(t))},afterAttributeValueQuoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.consume(),this.state="beforeAttributeName"):"/"===t?(this.consume(),this.state="selfClosingStartTag"):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var t=this.consume();(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(t.toLowerCase()))}}},e.default=o},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(303),i=(r=o)&&r.__esModule?r:{default:r};function a(t,e){this.token=null,this.startLine=1,this.startColumn=0,this.options=e||{},this.tokenizer=new i.default(this,t)}a.prototype={tokenize:function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},tokenizePart:function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(t){this.token.chars+=t},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(t){this.token.chars+=t},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(t){this.token.tagName+=t},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(t){this._currentAttribute[0]+=t},beginAttributeValue:function(t){this._currentAttribute[2]=t},appendToAttributeValue:function(t){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=t},finishAttributeValue:function(){}},e.default=a},function(t,e,n){"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var r=n(188);var o=function(t){this.j=[],this.T=t||null};o.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],r=n[0],o=n[1];if(this.test(t,r))return o}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var i=(0,r.inherits)(o,(function(t){this.j=[],this.T=t||null}),{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),a=(0,r.inherits)(o,(function(t){this.j=[],this.T=t||null}),{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=i,e.TokenState=a,e.stateify=function(t,e,n,r){for(var o=0,a=t.length,c=e,u=[],s=void 0;o<a&&(s=c.next(t[o]));)c=s,o++;if(o>=a)return[];for(;o<a-1;)s=new i(r),u.push(s),c.on(t[o],s),c=s,o++;return s=new i(n),u.push(s),c.on(t[a-1],s),u}},function(t,e,n){"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="result px-2 py-1"><span class="query-text">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span></div>>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-pending p-2"><div class="partial-text">Searching...</div></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-not-found p-2">Could not find any matches</div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-not-found empty"></div>'},useData:!0})},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"",""]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(t,e){t.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(t,e){t.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"email",icon:["24","24",[],"","M5.09090909,16.5044548 C5.09090909,16.7087643 5.2517754,16.875 5.44811273,16.875 L18.5518873,16.875 C18.7495118,16.875 18.9090909,16.7100912 18.9090909,16.5044548 L18.9090909,7.49554521 C18.9090909,7.29123572 18.7482246,7.125 18.5518873,7.125 L5.44811273,7.125 C5.25048819,7.125 5.09090909,7.28990884 5.09090909,7.49554521 L5.09090909,16.5044548 Z M18.5518873,6 C19.3516578,6 20,6.67088532 20,7.49554521 L20,16.5044548 C20,17.3304216 19.3529644,18 18.5518873,18 L5.44811273,18 C4.64834215,18 4,17.3291147 4,16.5044548 L4,7.49554521 C4,6.6695784 4.6470356,6 5.44811273,6 L18.5518873,6 Z M5.28875242,8.40614655 C5.12000436,8.66349123 5.18550432,9.01318255 5.43505067,9.18720399 L11.4273828,13.3659638 L11.7273691,13.5751595 L12.0307568,13.3712472 L18.2317117,9.20347374 C18.4840876,9.03384736 18.5553362,8.68535347 18.3908501,8.42509084 C18.2446401,8.19374628 17.9613854,8.10998685 17.7229933,8.21336378 L17.6360272,8.26099773 L17.6360272,8.26099773 L17.634306,8.26215307 L17.6301531,8.26494056 L17.622066,8.27036883 C17.597586,8.28680036 17.530266,8.33198706 17.3451362,8.4562505 L17.2583634,8.51449439 C17.2426263,8.52505752 17.2262335,8.53606078 17.2091576,8.5475225 L17.0982873,8.62194118 C16.4410163,9.06311671 14.980414,10.0435068 11.7346312,12.2221514 C11.170907,11.8290376 10.4395891,11.3190523 9.69015295,10.7964321 L9.28047118,10.5107401 C7.64174412,9.36797184 6.04614146,8.25527648 6.04614146,8.25527648 C5.7965951,8.08125504 5.45750048,8.14880187 5.28875242,8.40614655 Z"]}},function(t,e){t.exports={prefix:"cv",iconName:"year-level",icon:["24","24",[],"","M14.5628141,2 C15.3668342,2 15.7688442,2.10471204 16.0703518,2.31413613 C16.3718593,2.52356021 16.6733668,2.73298429 16.8743719,3.15183246 C16.9748744,3.46596859 17.0753769,3.88481675 17.0753769,4.72251309 L17.0753769,9.85340314 C17.0753769,10.6212914 16.9909269,11.0372309 16.8220268,11.3431864 L16.7738693,11.4240838 L16.7738693,11.4240838 L19.3869347,11.4240838 C20.1909548,11.4240838 20.5929648,11.5287958 20.8944724,11.7382199 C21.1959799,11.947644 21.4974874,12.1570681 21.6984925,12.5759162 C21.8994975,12.9947644 22,13.4136126 22,14.1465969 L22,19.2774869 C22,20.1151832 21.8994975,20.5340314 21.6984925,20.8481675 C21.4974874,21.1623037 21.2964824,21.4764398 20.8944724,21.6858639 C20.4924623,21.895288 20.0904523,22 19.3869347,22 L14.4623116,22 C13.6582915,22 13.2562814,21.895288 12.9547739,21.6858639 C12.6532663,21.4764398 12.3517588,21.2670157 12.1507538,20.8481675 C12.1034481,20.774237 12.0617091,20.6945067 12.0255366,20.6076117 C12.002845,20.6555797 11.9772366,20.7004967 11.9497487,20.7434555 C11.7487437,21.0575916 11.5477387,21.3717277 11.1457286,21.5811518 C10.7437186,21.7905759 10.3417085,21.895288 9.63819095,21.895288 L4.61306533,21.895288 C3.80904523,21.895288 3.40703518,21.7905759 3.10552764,21.5811518 C2.8040201,21.3717277 2.50251256,21.1623037 2.30150754,20.7434555 C2.10050251,20.4293194 2,20.0104712 2,19.1727749 L2,14.0418848 C2,13.2041885 2.10050251,12.7853403 2.30150754,12.4712042 C2.50251256,12.1570681 2.70351759,11.8429319 3.10552764,11.6335079 C3.40703518,11.5287958 3.80904523,11.4240838 4.61306533,11.4240838 L7.32663317,11.4240838 L7.32663317,11.4240838 C7.12562814,11.0052356 7.02512563,10.5863874 7.02512563,9.7486911 L7.02512563,4.72251309 C7.02512563,3.88481675 7.12562814,3.46596859 7.32663317,3.04712042 C7.42713568,2.73298429 7.72864322,2.41884817 8.03015075,2.31413613 C8.4321608,2.10471204 8.83417085,2 9.63819095,2 L14.5628141,2 Z M12.0749659,12.71176 L12.0874744,12.6846501 L12.0874744,12.6846501 L12.1507538,12.5759162 L12.1507538,12.5759162 L14.361809,12.5759162 C13.758794,12.5759162 13.5577889,12.6806283 13.4572864,12.6806283 C13.3567839,12.6806283 13.2562814,12.8900524 13.1557789,12.9947644 C13.0696339,13.1742708 13.0573275,13.2768458 13.0555694,13.8300185 L13.0552764,19.2774869 C13.0552764,20.0104712 13.1557789,20.2198953 13.1557789,20.4293194 C13.2562814,20.5340314 13.3567839,20.7434555 13.5577889,20.7434555 C13.7444365,20.8406881 13.8444262,20.8476333 14.5015017,20.8481294 L19.5879397,20.8481675 C20.2914573,20.8481675 20.4924623,20.7434555 20.6934673,20.7434555 C20.7939698,20.6387435 20.9949749,20.5340314 20.9949749,20.3246073 C21.0811199,20.145101 21.0934263,20.0425259 21.0951844,19.4893533 L21.0954774,14.0418848 C21.0954774,13.3089005 20.9949749,13.0994764 20.9949749,12.8900524 C20.8944724,12.7853403 20.7939698,12.5759162 20.5929648,12.5759162 C20.4206748,12.4861631 20.3222234,12.4733412 19.7912888,12.4715095 L11.9497487,12.4712042 L11.9497487,12.4712042 C11.9970544,12.5451347 12.0387934,12.624865 12.0749659,12.71176 Z M8.03015075,12.1570681 C8.4321608,12.3664921 8.73366834,12.4712042 9.43718593,12.4712042 L4.61306533,12.4712042 C3.90954774,12.4712042 3.70854271,12.5759162 3.50753769,12.5759162 C3.40703518,12.6806283 3.20603015,12.7853403 3.20603015,12.8900524 C3.10552764,13.2041885 3.00502513,13.3089005 3.00502513,14.1465969 L3.00502513,19.2774869 C3.00502513,20.0104712 3.10552764,20.2198953 3.20603015,20.4293194 C3.30653266,20.5340314 3.40703518,20.7434555 3.50753769,20.7434555 C3.70854271,20.7434555 3.80904523,20.8481675 4.61306533,20.8481675 L9.53768844,20.8481675 C10.241206,20.8481675 10.4422111,20.7434555 10.6432161,20.7434555 C10.7437186,20.6387435 10.9447236,20.5340314 10.9447236,20.3246073 C11.0380474,20.1301421 11.0447134,20.0259643 11.0451895,19.3413674 L11.0452261,14.0418848 C11.0452261,13.3089005 10.9447236,13.0994764 10.9447236,12.8900524 C10.8442211,12.7853403 10.7437186,12.5759162 10.6432161,12.5759162 C10.4787574,12.4902427 10.3815773,12.4746657 10.0213993,12.4718336 L9.53768844,12.4712042 L9.53768844,12.4712042 C8.83417085,12.4712042 8.4321608,12.3664921 8.13065327,12.1570681 C7.82914573,11.947644 7.52763819,11.7382199 7.42713568,11.4240838 L7.32663317,11.4240838 C7.52763819,11.7382199 7.72864322,12.052356 8.03015075,12.1570681 Z M17.5778894,16.4502618 C17.9798995,16.4502618 18.281407,16.6596859 18.4824121,16.8691099 L18.427,16.923 L18.4619013,16.9649688 C18.6095785,17.1682872 18.6834171,17.4375467 18.6834171,17.7068063 L18.6834171,18.1256545 C18.6834171,18.8586387 18.080402,19.382199 17.4773869,19.382199 L15.7688442,19.382199 C15.5678392,19.486911 15.3668342,19.2774869 15.3668342,18.9633508 C15.3668342,18.7539267 15.5678392,18.5445026 15.7688442,18.5445026 L17.4773869,18.5445026 C17.678392,18.5445026 17.879397,18.3350785 17.879397,18.1256545 L17.879397,17.7068063 C17.879397,17.4973822 17.678392,17.2879581 17.4773869,17.2879581 L15.8693467,17.2879581 C15.6683417,17.2879581 15.4673367,17.078534 15.4673367,16.8691099 C15.4673367,16.6596859 15.6683417,16.4502618 15.8693467,16.4502618 L17.5778894,16.4502618 Z M7.52763819,14.2513089 C8.23115578,14.2513089 8.73366834,14.8795812 8.73366834,15.5078534 L8.73366834,15.9267016 C8.73366834,16.6596859 8.13065327,17.1832461 7.52763819,17.1832461 L6.62311558,17.1832461 C6.42211055,17.1832461 6.22110553,17.3926702 6.22110553,17.6020942 L6.22110553,18.4397906 L8.33165829,18.4397906 C8.53266332,18.4397906 8.73366834,18.6492147 8.73366834,18.8586387 C8.73366834,19.0680628 8.53266332,19.2774869 8.33165829,19.2774869 L5.81909548,19.2774869 C5.61809045,19.2774869 5.41708543,19.0680628 5.41708543,18.8586387 L5.41708543,17.7068063 C5.41708543,16.973822 6.0201005,16.4502618 6.62311558,16.4502618 L7.42713568,16.4502618 C7.72864322,16.4502618 7.82914573,16.2408377 7.82914573,15.9267016 L7.82914573,15.5078534 C7.82914573,15.2984293 7.6281407,15.0890052 7.42713568,15.0890052 L5.81909548,15.0890052 C5.61809045,15.0890052 5.41708543,14.8795812 5.41708543,14.6701571 C5.41708543,14.460733 5.61809045,14.2513089 5.81909548,14.2513089 L7.52763819,14.2513089 Z M17.4773869,14.2513089 C18.1809045,14.2513089 18.6834171,14.8795812 18.6834171,15.5078534 L18.6834171,15.9267016 C18.6834171,16.2408377 18.5829146,16.5549738 18.3819095,16.7643979 C18.1809045,16.4502618 17.879397,16.3455497 17.4773869,16.3455497 C17.678392,16.3455497 17.879397,16.1361257 17.879397,15.9267016 L17.879397,15.5078534 C17.879397,15.2984293 17.678392,15.0890052 17.4773869,15.0890052 L15.7688442,15.0890052 C15.5678392,15.0890052 15.3668342,14.8795812 15.3668342,14.6701571 C15.3668342,14.460733 15.5678392,14.2513089 15.7688442,14.2513089 L17.4773869,14.2513089 Z M14.4623116,3.04712042 L9.63819095,3.04712042 C8.83417085,3.04712042 8.73366834,3.15183246 8.53266332,3.2565445 C8.4321608,3.2565445 8.23115578,3.36125654 8.13065327,3.57068063 C8.13065327,3.78010471 8.03015075,3.88481675 8.03015075,4.72251309 L8.03015075,9.85340314 C8.03015075,10.5863874 8.13065327,10.7958115 8.13065327,11.0052356 C8.23115578,11.1099476 8.33165829,11.3193717 8.4321608,11.3193717 C8.63316583,11.3193717 8.83417085,11.4240838 9.43718593,11.4240838 L14.5628141,11.4240838 C15.1658291,11.4240838 15.3668342,11.3193717 15.4673367,11.3193717 C15.5678392,11.2146597 15.7688442,11.1099476 15.7688442,11.0052356 C15.8549892,10.8257292 15.8672957,10.7231542 15.8690537,10.1699815 L15.8693467,4.72251309 C15.8693467,3.9895288 15.7688442,3.78010471 15.7688442,3.57068063 C15.6683417,3.46596859 15.5678392,3.2565445 15.3668342,3.2565445 C15.3668342,3.15183246 15.2663317,3.04712042 14.4623116,3.04712042 Z M12.0502513,4.61780105 C12.2512563,4.61780105 12.4522613,4.82722513 12.4522613,5.03664921 L12.4522613,9.43455497 C12.4522613,9.64397906 12.2512563,9.85340314 12.0502513,9.85340314 C11.8492462,9.85340314 11.6482412,9.64397906 11.6482412,9.43455497 L11.6482412,5.03664921 C11.6482412,4.82722513 11.8492462,4.61780105 12.0502513,4.61780105 Z"]}},function(t,e){t.exports={prefix:"cv",iconName:"subjects",icon:["24","24",[],"","M11.9999608,6.48873431 C12.828049,6.08104273 13.7442836,5.92395943 14.6596155,6.03432052 L14.6596155,6.03432052 L18.7411881,6.52627319 C18.8894198,6.54415652 19.0011921,6.67308566 19.0011921,6.8263023 L19.0011921,6.8263023 L19.0011921,7.51037994 L19.7056558,7.51037994 C19.8682123,7.51037994 20,7.64563269 20,7.81246321 L20,7.81246321 L20,17.6979167 C20,17.8647473 19.8682515,18 19.7056558,18 L19.7056558,18 L4.29434418,18 C4.13174845,18 4,17.8647473 4,17.6979167 L4,17.6979167 L4,7.81246321 C4,7.64563269 4.13174845,7.51037994 4.29434418,7.51037994 L4.29434418,7.51037994 L4.99872941,7.51037994 L4.99872941,6.8263023 C4.99872941,6.67308566 5.11050171,6.54415652 5.25873344,6.52627319 L5.25873344,6.52627319 L9.34030602,6.03432052 C10.2557557,5.92391915 11.1718332,6.08104273 11.9999608,6.48873431 Z M4.99876866,8.11454648 L4.58868835,8.11454648 L4.58868835,17.3958335 L19.4113116,17.3958335 L19.4113116,8.11454648 L19.0011136,8.11454648 L19.0011136,16.4188559 C19.0011136,16.5051309 18.9652036,16.5872572 18.9023709,16.6445725 C18.8482116,16.6940336 18.7784717,16.7209392 18.7067694,16.7209392 C18.6953489,16.7209392 18.6838891,16.7202544 18.6724293,16.718885 L18.6724293,16.718885 L14.5908959,16.2269323 C13.7425175,16.1246671 12.8935504,16.2838045 12.1353983,16.6870655 C12.0504702,16.7322572 11.9494513,16.7322572 11.8645232,16.6870655 C11.1063318,16.2838045 10.2570508,16.1246671 9.40902557,16.2269323 L9.40902557,16.2269323 L5.32745299,16.718885 C5.24401623,16.7289544 5.16030474,16.7018878 5.09751132,16.6445725 C5.03467865,16.5872572 4.99876866,16.5051309 4.99876866,16.4188559 L4.99876866,16.4188559 L4.99876866,8.11454648 Z M14.5909352,6.63437873 C13.8015826,6.53924264 13.0113666,6.67074955 12.2943049,7.01452032 L12.2943049,7.01452032 L12.2943049,15.9488546 C13.0426063,15.6408908 13.8514249,15.5294825 14.6596155,15.6269144 L14.6596155,15.6269144 L18.4124645,16.0792337 L18.4124645,7.0949953 Z M11.7056558,7.01452032 C10.9886334,6.67074955 10.1983389,6.53920236 9.40902557,6.63437873 L9.40902557,6.63437873 L5.58745701,7.0949953 L5.58745701,16.0791935 L9.34034527,15.6268741 C9.53041311,15.6039963 9.72055945,15.5925977 9.90984238,15.5925977 C10.5256104,15.5925977 11.1332938,15.7133907 11.7056558,15.9489351 L11.7056558,15.9489351 Z M12.8179628,13.2954357 C13.418268,13.1280413 14.0360375,13.080876 14.6541996,13.1553093 L14.6541996,13.1553093 L17.7187541,13.5245759 C17.8801725,13.5440301 17.9956731,13.6941453 17.9767566,13.8598481 C17.9591745,14.0135883 17.8320178,14.1267286 17.6848064,14.1267286 C17.6733466,14.1267286 17.6617691,14.1260439 17.6500738,14.1246341 L17.6500738,14.1246341 L14.5855585,13.7553675 C14.0427486,13.690037 13.4998209,13.7314023 12.9722777,13.8784564 C12.8155688,13.9222383 12.6537188,13.8271828 12.6110978,13.6661523 C12.5684767,13.505162 12.6610578,13.3391773 12.8179628,13.2954357 Z M9.3348116,13.1553496 C9.95195322,13.0815205 10.5768655,13.1297732 11.1712838,13.295919 C11.3281496,13.3397412 11.4206914,13.5057662 11.3779526,13.6667564 C11.3352531,13.827787 11.1734031,13.9226814 11.0166157,13.8788592 C10.4945669,13.7329328 9.9450067,13.6906412 9.40325643,13.7554078 L9.40325643,13.7554078 L6.33901581,14.1246341 C6.32735978,14.1260439 6.315743,14.1267286 6.3042832,14.1267286 C6.15707186,14.1267286 6.02991518,14.0135883 6.01229378,13.8598481 C5.99333801,13.6941453 6.10887791,13.5440704 6.27029626,13.5246162 L6.27029626,13.5246162 Z M12.8179236,11.9098804 C13.4183465,11.7424457 14.036116,11.695361 14.6541603,11.7697541 L14.6541603,11.7697541 L17.7187149,12.1390207 C17.8801332,12.1584748 17.9956339,12.3085498 17.9767174,12.4742525 C17.9591352,12.6279928 17.8319785,12.741133 17.6847672,12.741133 L17.6847672,12.741133 L17.6500346,12.7390386 L14.5855192,12.369772 C14.0425524,12.3043609 13.4997032,12.3457664 12.9722384,12.4928609 C12.8155296,12.5366428 12.6536795,12.4415873 12.6110585,12.280597 C12.5684375,12.1196068 12.6610185,11.9536221 12.8179236,11.9098804 Z M9.3348116,11.7697541 C9.95183548,11.6959249 10.5769048,11.7441777 11.1712838,11.9103235 C11.3281496,11.9541457 11.4206914,12.1201707 11.3779526,12.2811609 C11.3352531,12.4421914 11.1734031,12.5370456 11.0166157,12.4932636 C10.4944884,12.347297 9.94484971,12.3050053 9.40325643,12.3698123 L9.40325643,12.3698123 L6.33901581,12.7390386 C6.32735978,12.7404483 6.315743,12.741133 6.3042832,12.741133 C6.15707186,12.741133 6.02991518,12.6279928 6.01229378,12.4742525 C5.99333801,12.3085498 6.10887791,12.1584748 6.27029626,12.1390207 L6.27029626,12.1390207 Z M12.8179236,10.5243251 C13.4183072,10.3569307 14.036116,10.3097655 14.6541603,10.3841988 L14.6541603,10.3841988 L17.7187149,10.7534654 C17.8801332,10.7729195 17.9956339,10.9229945 17.9767174,11.0886973 C17.9591352,11.2424375 17.8319785,11.3555778 17.6847672,11.3555778 C17.6733074,11.3555778 17.6617299,11.354893 17.6500346,11.3534833 L17.6500346,11.3534833 L14.5855192,10.9842167 C14.0426308,10.9188459 13.4997817,10.9602112 12.9722384,11.1073056 C12.8155296,11.1510472 12.6536795,11.056032 12.6110585,10.8950417 C12.5684375,10.7340515 12.6610185,10.5680668 12.8179236,10.5243251 Z M9.3348116,10.3841585 C9.95199246,10.3103696 10.5769048,10.3586224 11.1712838,10.5247682 C11.3281496,10.5685904 11.4206914,10.7346154 11.3779526,10.8956056 C11.3352531,11.0566362 11.1734031,11.1515306 11.0166157,11.1077084 C10.4945669,10.961782 9.94496745,10.9194903 9.40325643,10.984257 L9.40325643,10.984257 L6.33901581,11.3534833 C6.32735978,11.354893 6.315743,11.3555778 6.3042832,11.3555778 C6.15707186,11.3555778 6.02991518,11.2424375 6.01229378,11.088657 C5.99333801,10.9229542 6.10887791,10.7728793 6.27029626,10.7534251 L6.27029626,10.7534251 Z M12.8179236,9.13876988 C13.4183072,8.97133519 14.036116,8.9242102 14.6541603,8.99864352 L14.6541603,8.99864352 L17.7187149,9.36791011 C17.8801332,9.38736427 17.9956339,9.53743924 17.9767174,9.70314198 C17.9591352,9.85688223 17.8319785,9.97002249 17.6847672,9.97002249 C17.6733074,9.97002249 17.6617299,9.96933776 17.6500346,9.96792804 L17.6500346,9.96792804 L14.5855192,9.59866145 C14.0426308,9.53329063 13.4997817,9.5746559 12.9722384,9.72175031 C12.8155296,9.76549197 12.6536795,9.67043644 12.6110585,9.50948647 C12.5684375,9.34849622 12.6610185,9.18251154 12.8179236,9.13876988 Z M9.3348116,8.99860324 C9.95195322,8.92477409 10.5768655,8.97302686 11.1712838,9.13917266 C11.3281496,9.18299487 11.4206914,9.34901984 11.3779526,9.51001008 C11.3352531,9.6710406 11.1734031,9.76589475 11.0166157,9.72211281 C10.4945669,9.57618646 9.9450067,9.5338948 9.40325643,9.59866145 L9.40325643,9.59866145 L6.33901581,9.96788776 C6.32735978,9.96929749 6.315743,9.96998221 6.3042832,9.96998221 C6.15707186,9.96998221 6.02991518,9.85684195 6.01229378,9.70310171 C5.99333801,9.53739896 6.10887791,9.38732399 6.27029626,9.36786983 L6.27029626,9.36786983 Z M12.8179236,7.75317433 C13.418268,7.58573964 14.0360375,7.53857437 14.6541603,7.61304797 L14.6541603,7.61304797 L17.7187149,7.98231456 C17.8801332,8.00176872 17.9956339,8.15184369 17.9767174,8.31754644 C17.9591352,8.47128668 17.8319785,8.58442694 17.6847672,8.58442694 L17.6847672,8.58442694 L17.6500346,8.58233249 L14.5855192,8.2130659 C14.0427093,8.14769508 13.4997817,8.18906035 12.9722384,8.33615477 C12.8155296,8.37985615 12.6536795,8.28488117 12.6110585,8.12389092 C12.5684375,7.96290068 12.6610185,7.79691599 12.8179236,7.75317433 Z M9.3348116,7.61304797 C9.95222794,7.53921882 10.576944,7.58747159 11.1712838,7.75361739 C11.3281496,7.7974396 11.4206914,7.96346456 11.3779526,8.12445481 C11.3352531,8.28548533 11.1734031,8.38033948 11.0166157,8.33655754 C10.4946061,8.19063118 9.94535991,8.14829925 9.40325643,8.21310618 L9.40325643,8.21310618 L6.33901581,8.58233249 C6.32735978,8.58374222 6.315743,8.58442694 6.3042832,8.58442694 C6.15707186,8.58442694 6.02991518,8.47128668 6.01229378,8.31754644 C5.99333801,8.15184369 6.10887791,8.00176872 6.27029626,7.98231456 L6.27029626,7.98231456 Z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.SmartPhase1=1]="SmartPhase1",t[t.MigrateAllPhase1=2]="MigrateAllPhase1",t[t.Phase2=3]="Phase2",t[t.PostFinalisation=4]="PostFinalisation"}(r||(r={}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={isCollectionEmpty:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collection";return t[e]&&!t[e].length}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Notification="notification"}(r||(r={}))},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<div class="p-2"><a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+" - "+u("function"==typeof(i=null!=(i=n.libraryName||(null!=e?e.libraryName:e))?i:c)?i.call(a,{name:"libraryName",hash:{},data:o}):i)+"</a></div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+u("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?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!=e?e.query:e))?i:c)?i.call(a,{name:"query",hash:{},data:o}):i)+"</span>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+t.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-not-found"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+t.escapeExpression("function"==typeof(i=null!=(i=n.dataset||(null!=e?e.dataset:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"dataset",hash:{},data:o}):i)+"</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+t.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+t.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Collection)},function(t,e,n){t.exports={videoGroupList:"_38Usa"}},function(t,e,n){t.exports={partialSubFolder:"_1ltue"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.title:i,e))+'"></h6>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.requestedBy:i,e))+'"></p>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.date:i,e))+'"></p>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5"><span class="badge d-inline-block p-1 mr-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.badge:i,e))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5">\r\n <button class="dropdown-toggle form-control btn-block partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.selectButton:i,e))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>'},useData:!0})},function(t,e,n){t.exports={content:"_3_8yg"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>'},useData:!0})},function(t,e,n){t.exports={button:"_3owCz"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.video:i,e))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' partial-loading-background"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+' partial-loading-background mt-1"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subSubText:i,e))+' partial-loading-background mt-1"></div>'},useData:!0})},function(t,e,n){t.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoTitle:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"z4_PP",subText:"_1CvDv"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.back:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right p-2"></div>\r\n</div>\r\n<div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.detailsTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.chaptersTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.learningTab:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnailContainer:i,e))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background"> </button>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textbox:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>\r\n<div class="row">\r\n <div class="col-3">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.player:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={player:"H6oUk"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return' <div class="col-12 pr-3 py-1 '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.videoRow:c,e))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n <div class="partial-loading-background d-inline-block '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.text:c,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.views:c,e))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortingRow:c,e))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.bulkCheckbox:c,e))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span>Title</span>\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-4 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.videoList:c,e))+'">\r\n'+(null!=(c=n.each.call(null!=e?e:t.nullContext||{},null!=(c=null!=e?e.options:e)?c.videoItems:c,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</div>"},useData:!0,useDepths:!0})},function(t,e,n){t.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.toggle:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={row:"rShIv"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled> </button>\r\n </div>\r\n <div class="col-6">\r\n </div>\r\n <div class="col-2 text-right">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled> </button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>'},useData:!0})},function(t,e,n){t.exports={button:"_1CETN"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row w-100 mt-0">\r\n <div class="col-8 border-right p-3">\r\n <div class="mb-3 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.multilineSubText:i,e))+'"></div>\r\n <div class="my-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_2x-al",item:"hFvEo"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth1:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth3:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e,n){t.exports=function(){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,e,n,r){var o,i,a,c=e||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<t.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=t[o]<<8*(s+r*(a%4));return{value:c,binLen:8*t.length+n}}function r(t,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,e,n){return function(t,e,n,r){var o,i,a,c;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var u=e||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<t.length;o+=2){if(i=parseInt(t.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*t.length+n}}(t,e,n,o)};case"TEXT":return function(t,e,n){return function(t,e,n,r,o){var i,a,c,u,s,l,f,p,y=0,h=n||[0],d=(r=r||0)>>>3;if("UTF8"===e)for(f=-1===o?3:0,c=0;c<t.length;c+=1)for(a=[],128>(i=t.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&t.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=y+d)>>>2;h.length<=s;)h.push(0);h[s]|=a[u]<<8*(f+o*(l%4)),y+=1}else for(f=-1===o?2:0,p="UTF16LE"===e&&1!==o||"UTF16LE"!==e&&1===o,c=0;c<t.length;c+=1){for(i=t.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=y+d)>>>2;h.length<=s;)h.push(0);h[s]|=i<<8*(f+o*(l%4)),y+=2}return{value:h,binLen:8*y+r}}(t,r,e,n,o)};case"B64":return function(t,n,r){return function(t,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],y=(r=r||0)>>>3,h=-1===o?3:0,d=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==d&&d<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(u=t.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=e.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+y)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(h+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(t,n,r,o)};case"BYTES":return function(t,e,n){return function(t,e,n,r){var o,i,a,c,u=e||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<t.length;i+=1)o=t.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*t.length+n}}(t,e,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,e,r){return function(t,e,r,o){return n(new Uint8Array(t),e,r,o)}(t,e,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,e,r){return n(t,e,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t,n,r,o){switch(t){case"HEX":return function(t){return function(t,e,n,r){var o,i,a="",c=e/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=t[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(t,n,r,o)};case"B64":return function(t){return function(t,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?t[i+1>>>2]:0,s=i+2<f?t[i+2>>>2]:0,c=(t[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?e.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(t,n,r,o)};case"BYTES":return function(t){return function(t,e,n){var r,o,i="",a=e/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=t[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(t,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(c+n*(r%4))&255;return i}(t,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(i+n*(r%4))&255;return a}(t,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(t){var e={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},r="Output length must be a multiple of 8";if(e.outputUpper=n.outputUpper||!1,n.b64Pad&&(e.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);e.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);e.outputLen=n.shakeLen}if("boolean"!=typeof e.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof e.b64Pad)throw new Error("Invalid b64Pad formatting option");return e}function a(t,e){return t<<e|t>>>32-e}function c(t,e,n){return t^e^n}function u(t,e,n){return t&e^t&n^e&n}function s(t,e){var n=(65535&t)+(65535&e);return(65535&(t>>>16)+(e>>>16)+(n>>>16))<<16|65535&n}function l(t,e,n,r,o){var i=(65535&t)+(65535&e)+(65535&n)+(65535&r)+(65535&o);return(65535&(t>>>16)+(e>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(t,e){var n,r,o,i,f,p,y,h,d=[];for(n=e[0],r=e[1],o=e[2],i=e[3],f=e[4],y=0;y<80;y+=1)d[y]=y<16?t[y]:a(d[y-3]^d[y-8]^d[y-14]^d[y-16],1),p=y<20?l(a(n,5),(h=r)&o^~h&i,f,1518500249,d[y]):y<40?l(a(n,5),c(r,o,i),f,1859775393,d[y]):y<60?l(a(n,5),u(r,o,i),f,2400959708,d[y]):l(a(n,5),c(r,o,i),f,3395469782,d[y]),f=i,i=o,o=a(r,30),r=n,n=p;return e[0]=s(n,e[0]),e[1]=s(r,e[1]),e[2]=s(o,e[2]),e[3]=s(i,e[3]),e[4]=s(f,e[4]),e}function y(t,e,n,r){for(var o,i=15+(e+65>>>9<<4),a=e+n;t.length<=i;)t.push(0);for(t[e>>>5]|=128<<24-e%32,t[i]=4294967295&a,t[i-1]=a/4294967296|0,o=0;o<t.length;o+=16)r=p(t.slice(o,o+16),r);return r}return function(e){function n(t,n,o){var i=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=e.call(this,t,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(t){return t.slice()},i.l=f,i.R=y,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(t,e,n,o){var i="hmacKey must include a value and format";if(!e)throw new Error(i);if(void 0===e.value||!e.format)throw new Error(i);return r(e.format,e.encoding||"UTF8",n)(e.value)}(0,a.hmacKey,i.u)),i}return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,e),n}(function(){function t(t,e,n){var r=n||{};if(this.h=e,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=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var e,n=0,r=this.T>>>5,o=this.s(t,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(e=0;e<c;e+=r)n+this.T<=i&&(this.U=this.A(a.slice(e,e+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},t.prototype.getHash=function(t,e){var n,r,a=this.m,c=i(e);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(t,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)},t.prototype.setHMACKey=function(t,e,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(e,(n||{}).encoding||"UTF8",this.u);this.B(o(t))},t.prototype.B=function(t){var e,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<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=r;)t.value.push(0);for(e=0;e<=r;e+=1)this.N[e]=909522486^t.value[e],this.S[e]=1549556828^t.value[e];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,e){var n=i(e);return o(t,this.m,this.u,n)(this.o())},t.prototype.o=function(){var t;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var e=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),this.R(e,this.m,this.T,t,this.m)},t}())}()},function(t){t.exports=JSON.parse('{"a":"1.0.15-rc.2"}')},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=n(1),o=n(4),i=n(220);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],y=["sort"],h=["release-date","subjects"],d=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,e);var n,i,a,l=s(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,t)}return n=f,a=[{key:"queryParamWhitelist",get:function(){return[].concat(p,h,y)}},{key:"eventWhitelist",get:function(){return t={},e=o.q.Navigate,n=function(t){return!r.isArray(t.data)&&t.data.currentLocation},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}}],(i=[{key:"initialize",value:function(){this.bootstrap(this.options.trackingId,this.options.userId)}},{key:"shouldLog",value:function(t){var e=f.eventWhitelist[t.type];return r.isBoolean(e)?e:!!r.isFunction(e)&&e(t)}},{key:"log",value:function(t){this.logPageView(t)}},{key:"logPageView",value:function(t){if(t&&!r.isArray(t.data)){var e=t.data.currentLocation;e&&this.ga("set","page",e),this.ga("send","pageview")}}},{key:"bootstrap",value:function(e,n){this.ga||(t.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:e,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:f.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}},{key:"name",get:function(){return"GoogleAnalyticsClient"}}])&&c(n.prototype,i),a&&c(n,a),f}(i.a)}).call(this,n(785))},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropMask:i,e))+'"></div>\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropContent:i,e))+'">\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.border:i,e))+'">\r\n <h1>'+u("function"==typeof(a=null!=(a=n.fileDropText||(null!=e?e.fileDropText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropArea:i,e))+'"></div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"multiple"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'accept="'+t.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=e?e.mimeType:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=e?e.acceptMultiple:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=e?e.mimeType:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" />"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.buttonText:i,e))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.spinnerEl:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return(null!=(i=n.each.call(a,null!=e?e.buttons:e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=e?e.spinnerButton:e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,s=t.escapeExpression;return' <button type="'+s("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:u)?a.call(c,{name:"type",hash:{},data:o}):a)+'" class="'+s("function"==typeof(a=null!=(a=n.className||(null!=e?e.className:e))?a:u)?a.call(c,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(c,null!=e?e.close:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+s("function"==typeof(a=null!=(a=n.text||(null!=e?e.text:e))?a:u)?a.call(c,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(t,e,n,r,o){return'data-dismiss="modal"'},5:function(t,e,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,s=t.escapeExpression;return'<div class="modal-dialog '+s("function"==typeof(a=null!=(a=n.size||(null!=e?e.size:e))?a:u)?a.call(c,{name:"size",hash:{},data:o}):a)+'" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title">'+s("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:u)?a.call(c,{name:"title",hash:{},data:o}):a)+'</h5>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n '+(null!=(i="function"==typeof(a=null!=(a=n.content||(null!=e?e.content:e))?a:u)?a.call(c,{name:"content",hash:{},data:o}):a)?i:"")+'\r\n </div>\r\n\r\n <div class="modal-footer">\r\n'+(null!=(i=n.if.call(c,null!=e?e.buttons:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.text:i,e))?i:""},useData:!0})},function(t,e,n){t.exports=n(786).default},function(t,e,n){t.exports={svgContainer:"_1nWzn"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="add-new px-2 py-1 border-top">\r\n <span class="add-tag ignore-highlighting">\r\n <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</span> "+u(c(null!=(i=null!=e?e.options:e)?i.createText:i,e))+" "+u("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:l)?a.call(s,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)?a.call(s,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.link:i,e))+'">'+c("function"==typeof(a=null!=(a=n.appLinkText||(null!=e?e.appLinkText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="d-inline-block '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">\r\n <span class=" d-inline-block '+u(c(null!=(i=null!=e?e.options:e)?i.svgClass:i,e))+" "+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.typeSvg:i,e))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertContent:i,e))+'">\r\n <p class="p-0 m-0 pb-1 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.heading:i,e))+'">'+u("function"==typeof(a=null!=(a=n.heading||(null!=e?e.heading:e))?a:l)?a.call(s,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.message:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=e?e.message:e))?a:l)?a.call(s,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(s,null!=e?e.appLink:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">×</div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return' <div class="left-nav-region '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.leftNav:i,e))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="top-banner-region"></div>\r\n<div class="page-header-region"></div>\r\n<div class="top-nav-region bg-white '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.topNav:i,e))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sizingBox:i,e))+'">\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showLeftNav:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=e?e.options:e)?i.contentBoxClassName:i,e))+'">\r\n <div class="content-region container px-0 '+c(a(null!=(i=null!=e?e.options:e)?i.contentContainerClassName:i,e))+'"></div>\r\n <div class="container page-footer-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="popup-region"></div>\r\n<div class="alert-region '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBox:i,e))+" "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBoxWithIntercom:i,e))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return"ClickView "+a(t.lambda(null!=(i=null!=e?e.options:e)?i.currentYear:i,e))+" | "+a((n.lang||e&&e.lang||u).call(c,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||e&&e.lang||u).call(c,"version",{name:"lang",hash:{version:null!=(i=null!=e?e.options:e)?i.version:i},data:o}))},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.unreadCount:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.unreadCount:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.unreadCount:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.heading:i,e))+"</h4>\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"<p>"+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<img src="'+c(a(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="'+c(a(null!=(i=null!=e?e.options:e)?i.imageClass:i,e))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.heading:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.description:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.actionText:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+" "+c(a(null!=(i=null!=e?e.options:e)?i.iconClass:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.icon:i,e))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.content:i,e))+"</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showActionText:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.notificationTime:i,e))+"</div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.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!=e?e.options:e)?i.hasNotifications:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.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 '+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.notificationsContainer:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={notificationsContainer:"_3BMCf"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.confirmSelectionText:i,e))?i:"")+"\r\n</span> "},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="cursor-pointer svg-container '+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.searchInfoSvg:i,e))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.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,e))+'">'+s(u(e,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u,s=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<span class="d-inline-block '+s(t.lambda(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.termContainer:c,e))+'">\r\n'+(null!=(c=n.each.call(l,null!=e?e.term:e,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=e?e.description:e))?u:t.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchContextTag:i,e))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=e?e.searchTag:e))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n</span>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,u=t.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.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!=e?e.options:e)?i.styles:i)?i.removeRecent:i,e))+'">'+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){t.exports={removeRecent:"d1QVW"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?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!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.playIcon:i,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){return"data-"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.playSvgContainer:i,e))+'" '+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"},5:function(t,e,n,r,o){return'style="display: none;"'},7:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.durationOverlay:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.duration:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.url:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+t.escapeExpression(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.duration:i,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"aligned"},3:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.type:i,e))+": "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,e))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<a class="row" href="'+c(t.lambda(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\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!=e?e.options:e)?i.collection:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.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!=e?e.options:e)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.coverContainer:i,e))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textContainer:i,e))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.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!=e?e.options:e)?i.styles:i)?i.searchInput:i,e))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=e?e.options:e)?i.libraryText:i,e))+'" aria-label="Search">\r\n</div>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchSvgContainer:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?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!=e?e.options:e)?i.styles:i)?i.tipsContainer:i,e))+'"></span>\r\n'},3:function(t,e,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showPartial:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){t.exports={searchBar:"_2oChq"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="'+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div\r\n class="cursor-pointer mx-2"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.avatar:i,e))+'" style="background-image: url(\''+c(a(null!=(i=null!=e?e.options:e)?i.avatar:i,e))+'\')">\r\n  \r\n </div>\r\n <div class="d-inline-block svg-container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.arrow:i,e))+'">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.arrowSvg:i,e))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.iconSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return(null!=(i=a(null!=(i=null!=e?e.options:e)?i.prefix:i,e))?i:"")+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.title:i,e))+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.iconSvg:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){t.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="dropdown-item '+u(c(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'">\r\n <div class="m-0 '+u(c(null!=(i=null!=e?e.options:e)?i.displayName:i,e))+'"><strong>'+u("function"==typeof(a=null!=(a=n.displayName||(null!=e?e.displayName:e))?a:l)?a.call(s,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+u("function"==typeof(a=null!=(a=n.customerName||(null!=e?e.customerName:e))?a:l)?a.call(s,{name:"customerName",hash:{},data:o}):a)+'</div>\r\n</div>\r\n<div class="dropdown-divider"></div>\r\n<div class="items-region"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"text-danger "+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.errorMargin:i,e))},3:function(t,e,n,r,o){return"mr-3"},5:function(t,e,n,r,o){return"text-danger"},7:function(t,e,n,r,o){return"text-muted"},9:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'%" aria-valuenow="'+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.isDone:i,{name:"unless",hash:{},fn:t.program(12,o,0),inverse:t.noop,data:o}))?i:"")+' <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+" "+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.hiddenCancel:i,e))+'" title="'+u((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">×</span>\r\n'},12:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return" "+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},14:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+u((n.lang||e&&e.lang||c).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+u((n.lang||e&&e.lang||c).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+u(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+' align-middle" title="'+u((n.lang||e&&e.lang||c).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:"")+'">\r\n '+u(c(null!=(i=null!=e?e.options:e)?i.name:i,e))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.program(7,o,0),data:o}))?i:"")+' progress-text">'+u(c(null!=(i=null!=e?e.options:e)?i.status:i,e))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actions:i,e))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(11,o,0),inverse:t.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"uploadProgress",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="upload-progress-region"></div>\r\n<div class="processing-progress-region"></div>'},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="d-inline-block h-100 position-relative pb-1">\r\n <div class="progress-info-region" data-toggle="dropdown"></div>\r\n <div class="progress-summary-region dropdown-menu dropdown-menu-right dropdown-arrow '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressDropdown:i,e))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"><span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.uploadButtonSvg:i,e))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.uploadSvg:i,e))?i:"")+"</span>"+c((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasLibraries:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.itemCount:i,e))+'">'+c("function"==typeof(a=null!=(a=n.items||(null!=e?e.items:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.warningSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hasErrors:e,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(4,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<a class="navbar-brand text-hide align-top '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.logoContainer:i,e))+' d-inline-block" href="/">\r\n <svg viewBox="0 0 434 71">\r\n <g>\r\n <path fill="#FFFFFF" 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"/>\r\n <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"/>\r\n </g>\r\n </svg>\r\n</a>\r\n<div class="w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBarContainer:i,e))+'">\r\n <div class="search-bar-region container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionButtons:i,e))+'">\r\n <div class="upload-region"></div>\r\n <div class="notifications-region"></div>\r\n <div class="user-options-region"></div>\r\n</div>\r\n\r\n'},useData:!0})},function(t,e,n){t.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(t,e,n){t.exports={topNav:"_3xqNh"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i,a;t.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=e?e.icon:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.count:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{};return(null!=(i=n.if.call(c,null!=e?e.icon:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+t.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.count:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>'+t.escapeExpression(t.lambda(e,e))+'</title>\r\n <g id="archive-error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="Group" transform="translate(3.000000, 5.000000)">\r\n <path d="M20.7658476,-7.68274333e-14 C21.8942931,-7.68274333e-14 22.831971,0.85292295 22.831971,1.93646516 L22.831971,4.55330997 C22.831971,4.90016841 22.5509477,5.18135273 22.2042879,5.18135273 L0.627683051,5.18135273 C0.281023274,5.18135273 -8.22453217e-13,4.90016841 -8.22453217e-13,4.55330997 L-8.22453217e-13,1.93646516 C-8.22104783e-13,0.85292295 0.937677893,-7.68274333e-14 2.06612338,-7.68274333e-14 L20.7658476,-7.68274333e-14 Z M21.5766049,1.93646516 C21.5766049,1.57476389 21.2262594,1.25608551 20.7658476,1.25608551 L2.06612338,1.25608551 C1.60571155,1.25608551 1.2553661,1.57476389 1.2553661,1.93646516 L1.2553661,3.92526722 L21.5766049,3.92526722 L21.5766049,1.93646516 Z M1.36991826,7.19207086 C1.36991826,6.81377838 1.67658491,6.50711173 2.05487739,6.50711173 C2.43316987,6.50711173 2.73983652,6.81377838 2.73983652,7.19207086 L2.73983652,14.6126666 C2.73983652,15.8105928 3.71094757,16.7817038 4.90887376,16.7817038 L10.037037,16.7817038 C10.4153295,16.7817038 10.7219961,17.0883705 10.7219961,17.466663 C10.7219961,17.8449555 10.4153295,18.1516221 10.037037,18.1516221 L4.90887376,18.1516221 C2.95436261,18.1516221 1.36991826,16.5671778 1.36991826,14.6126666 L1.36991826,7.19207086 Z M13.2081514,6.50711173 C13.5864439,6.50711173 13.8931105,6.81377838 13.8931105,7.19207086 C13.8931105,7.57036334 13.5864439,7.87702999 13.2081514,7.87702999 L9.87482745,7.87702999 C9.52805934,7.87702999 9.24694825,8.15814108 9.24694825,8.50490919 C9.24694825,8.8516773 9.52805934,9.13278839 9.87482745,9.13278839 L12.0665528,9.13278839 C12.4448453,9.13278839 12.751512,9.43945504 12.751512,9.81774752 C12.751512,10.19604 12.4448453,10.5027067 12.0665528,10.5027067 L9.87482745,10.5027067 C8.77147438,10.5027067 7.87702999,9.60826226 7.87702999,8.50490919 C7.87702999,7.40155612 8.77147438,6.50711173 9.87482745,6.50711173 L13.2081514,6.50711173 Z M20.2062943,7.077911 C20.2062943,6.76266727 20.4618499,6.50711173 20.7770936,6.50711173 C21.0923373,6.50711173 21.3478929,6.76266727 21.3478929,7.077911 L21.3478929,7.99118984 C21.3478929,8.30643358 21.0923373,8.56198912 20.7770936,8.56198912 C20.4618499,8.56198912 20.2062943,8.30643358 20.2062943,7.99118984 L20.2062943,7.077911 Z" id="Combined-Shape" fill="currentColor"></path>\r\n <path d="M24.6713093,17.6624402 C25.0188138,18.3578403 24.9815158,19.1834207 24.5728024,19.8445217 C24.164089,20.5056227 23.4422327,20.9079876 22.6650348,20.9079404 L15.2429296,20.9079404 C14.4656901,20.9079876 13.7438338,20.5056227 13.3351204,19.8445217 C12.926407,19.1834207 12.8891089,18.3578403 13.2366135,17.6624402 L16.9475765,10.2405144 C17.3273453,9.48029103 18.1041591,9 18.9539614,9 C19.8037637,9 20.5805775,9.48029103 20.9602358,10.2402933 L24.6713093,17.6624402 Z M19.9682278,17.9178304 C19.9682278,17.3576665 19.5141253,16.903564 18.9534845,16.9035641 C18.3935398,16.9038217 17.939695,17.3578255 17.939695,17.9178304 C17.939695,18.4779942 18.3937975,18.9320968 18.9539614,18.9320968 C19.5141253,18.9320968 19.9682278,18.4779942 19.9682278,17.9178304 Z M19.6389205,15.6126794 L19.6389205,12.9782213 C19.6389205,12.5999288 19.3322539,12.2932621 18.9539614,12.2932621 C18.5756689,12.2932621 18.2690023,12.5999288 18.2690023,12.9782213 L18.2690023,15.6126794 C18.2690023,15.9909719 18.5756689,16.2976386 18.9539614,16.2976386 C19.3322539,16.2976386 19.6389205,15.9909719 19.6389205,15.6126794 Z" id="Path" fill="#FFCD52"></path>\r\n </g>\r\n </g>\r\n</svg>'},useData:!0})},function(t,e,n){t.exports={banner:"_1kvBB"}},function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"disabled"},3:function(t,e,n,r,o){t.propertyIsEnumerable;return'title="'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return'<div class="py-2 '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.banner:i,e))+'">\r\n '+a((n.lang||e&&e.lang||u).call(c,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+a((n.lang||e&&e.lang||u).call(c,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(28),i=n(5),a=n(20),c=n(44),u=n(14),s=n(521),l=n.n(s),f=n(233),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=b(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:p.a,svg:u.a.getSvg(u.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(p.a.notificationIcon," ").concat(p.a[this.options.color])}},{key:"template",get:function(){return l.a}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Component),S=n(216),O=n(51),w=n(23),k=n(181),C=n(525),E=n.n(C),R=n(403),_=n.n(R),P=n(404),T=n.n(P);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function L(t){var e=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(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(u,t);var e,n,r,o=L(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,t)}return e=u,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:w.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:_.a,className:"px-1 py-2",viewOptions:{styles:T.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new k.a({collectionPrefix:O.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var t=new S.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",t)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!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 E.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&j(e.prototype,n),r&&j(e,r),u}(r.a.View),V=n(526),M=n.n(V),U=n(527),F=n.n(U);function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function G(t){var e=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(t){return!1}}();return function(){var n,r=Y(t);if(e){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==H(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Y(t){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&q(t,e)}(u,t);var e,n,r,o=G(u);function u(){return z(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.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 t=new I({childType:S.a.Popover});this.showChildView("notifications",t)}},{key:"renderNotificationStatus",value:function(){var t=i.a.getInstance(a.b.Notification),e=new g({model:t.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",e)}},{key:"viewOptions",value:function(){return F.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 M.a}}])&&B(e.prototype,n),r&&B(e,r),u}(r.a.View),K=n(1),Q=n(7),Z=n(4),X=n(40),tt=n(112),et=n(97),nt=n(3),rt=n(21),ot=n(13),it=n(115);function at(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function st(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t){var e=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(t){return!1}}();return function(){var n,r=pt(t);if(e){var o=pt(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return ft(this,n)}}function ft(t,e){return!e||"object"!==at(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pt(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ot.a;var yt={dataServiceName:a.a.User,dataChannelName:rt.b.USER},ht={getCurrentUserFetchOptions:function(t,e){return Object.assign(Object.assign({},yt),{eventPrefix:O.a.CURRENT_USER,fetchData:function(t){return t.getCurrentUser()},setData:t,onError:e})},currentUser:{dataServiceName:a.a.User,eventName:"".concat(O.a.CURRENT_USER,":sync"),getData:function(t){return t.getCurrentUser()},getInstance:function(t){return i.a.getInstance(a.a.User,t)},beforeOnBeforeRender:!0}},dt={showMask:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.targetSelector,n=t.additionalClasses,r=t.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(dt.getTarget(e)),$(dt.getTarget(e)).addClass("mask-lock"),a}},hideMask:function(t){var e=t||$(".".concat("mask"));e.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),e.remove())},getTarget:function(t){var e=$(t||"#app");if(e.length)return e}},bt=n(224),vt=n(70),mt=n(22);var gt,St=function(t){return t&&t.get("filterParam")?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t.get("filterParam"),t.get("filterValue")):{}};!function(t){t[t.HostedLibrary=0]="HostedLibrary",t[t.Exchange=1]="Exchange",t[t.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(gt||(gt={}));var Ot,wt=n(116),kt=wt.a.SuggestionLimit,Ct={prepareQuery:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(t+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(e.url,"?q=").concat(t);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(t,e){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:K.partial(Ct.prepareQuery,K,K,e),transform:K.partial(Ct.handleResult,K,t)}}},handleResult:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e===mt.a.Classification?Ct.processSubjectResult(t[e],e,n):e===mt.a.Video?Ct.processVideoResult(t[e],e,n):n.showFolder&&e===mt.a.Folder?Ct.processFolderResult(t[e],e,n):e===mt.a.Series?Ct.processSeriesResult(t[e],e,n):e===mt.a.Tags?Ct.processTagsResult(t[e],e,n):[]},processSubjectResult:function(t,e,n){return t?(t=Ct.processCollection(t),K.map(t,(function(t){return t.cached||(t.thumbnail={url:t.coverUrl},t.cached=!0),t}))):[]},processVideoResult:function(t,e,n){return t?(t=Ct.processCollection(t),K.map(t,(function(t){return t.cached||(t.topics=K.map(t.topics,(function(t){return{name:t}})),t.series={id:t.seriesId,name:t.seriesName},t.thumbnail={url:t.thumbnailUrl},t.cached=!0),t}))):[]},processTagsResult:function(t,e,n){if(!t)return[];var o=i.a.getInstance(c.a.SEARCH,this);return t=Ct.processCollection(t),K.map(t,(function(t){return t.cached||(t.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},o.appLinks.searchResults),{params:{tag:t.name}})),t.cached=!0),t}))},processSeriesResult:function(t,e,n){return t?(t=Ct.processCollection(t),K.map(t,(function(t){var e;return t.series?e=t.series:t.folder&&t.folder.length&&(e=K.first(t.folder)),K.extend({},t,{collectionType:void 0,collection:e})}))):[]},processFolderResult:function(t,e){return t?(t=Ct.processCollection(t,{limit:kt.Folder}),K.map(t,(function(t){var e=t.library,n=void 0===e?{}:e;return n.type===gt.Exchange&&(n.name="Exchange"),K.extend({},t,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.limit,r=void 0===n?kt.Default:n;return t.slice(0,r)}},Et={getRecentSearches:function(t,e){var n=e.cacheGet(t);return K.isArray(n)||(n=[]),n},setRecentSearches:function(t,e,n){K.isArray(e)&&n.cacheSet(t,e)},updateRecentSearches:function(t,e,n){var r=n.add,o=n.remove,i=n.query,a=n.limit,c=void 0===a?5:a,u=Et.getRecentSearches(t,e),s=K.indexOf(u,i);return r&&-1===s&&u.unshift(i),o&&s>-1&&u.splice(s,1),u.length>c&&(u=u.slice(0,c)),Et.setRecentSearches(t,u,e),u}},Rt=n(87);function _t(t){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xt(t,e){return(xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jt(t){var e=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(t){return!1}}();return function(){var n,r=Lt(t);if(e){var o=Lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dt(this,n)}}function Dt(t,e){return!e||"object"!==_t(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Lt(t){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.auto="auto",t.top="top",t.bottom="bottom",t.left="left",t.right="right"}(Ot||(Ot={}));var At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xt(t,e)}(i,t);var e,n,r,o=jt(i);function i(){return Pt(this,i),o.apply(this,arguments)}return e=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(t){t.stopPropagation()}},{key:"onClickOutside",value:function(t){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:Ot.bottom,size:"popover-md"}},set:function(t){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(t){var e={};this.view.ui&&(e=K.result(this.view,"ui")),this.view._ui=K.extend({},e,t)}}])&&Tt(e.prototype,n),r&&Tt(e,r),i}(r.a.Behavior),Nt=n(529),It=n.n(Nt),Vt=n(530),Mt=n.n(Vt),Ut=n(236),Ft=n.n(Ut);function Ht(t){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qt(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),t}function Gt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wt(t,e)}function Wt(t,e){return(Wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yt(t){var e=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(t){return!1}}();return function(){var n,r=Kt(t);if(e){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jt(this,n)}}function Jt(t,e){return!e||"object"!==Ht(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kt(t){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qt=function(t){Gt(n,t);var e=Yt(n);function n(){return zt(this,n),e.apply(this,arguments)}return qt(n,[{key:"viewOptions",value:function(){return{styles:Ft.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return Mt.a}},{key:"className",get:function(){return"py-2 ".concat(Ft.a.tip)}}]),n}(r.a.Component),Zt=function(t){Gt(n,t);var e=Yt(n);function n(){return zt(this,n),e.apply(this,arguments)}return qt(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return Qt}}]),n}(r.a.ComponentCollection),$t=function(t){Gt(n,t);var e=Yt(n);function n(){return zt(this,n),e.apply(this,arguments)}return qt(n,[{key:"initialize",value:function(){this.collection=new r.a.Collection([{term:["".concat(nt.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"fourthTerm1")),"".concat(nt.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(nt.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(t){this.showChildView(t,new Zt({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:Ft.a,searchInfoSvg:u.a.getSvg(u.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return It.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:At,containerSelector:".popover-container",title:nt.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(e){return t.renderTips(e)}}]}}]),n}(r.a.Component),Xt=n(128),te=n(531),ee=n.n(te),ne=n(126),re=n.n(ne);function oe(t){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ce(t,e){return(ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ue(t){var e=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(t){return!1}}();return function(){var n,r=le(t);if(e){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(t,e){return!e||"object"!==oe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function le(t){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ce(t,e)}(i,t);var e,n,r,o=ue(i);function i(){return ie(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(rt.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(){Q.Radio.channel(rt.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(t){var e=this.getUI("contextTag");e&&e.get&&(t.open?e.addClass(re.a.tagFocus):e.removeClass(re.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:re.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return ee.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return re.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:Xt.a,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(re.a.searchContextTag),clearSvg:".".concat(re.a.svgContainer)}}}])&&ae(e.prototype,n),r&&ae(e,r),i}(r.a.Component),pe=n(532),ye=n.n(pe),he=n(533),de=n.n(he);function be(t){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function me(t,e){return(me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ge(t){var e=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(t){return!1}}();return function(){var n,r=Oe(t);if(e){var o=Oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Se(this,n)}}function Se(t,e){return!e||"object"!==be(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Oe(t){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var we=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&me(t,e)}(i,t);var e,n,r,o=ge(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:de.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onClick",value:function(t){var e=this;return t.stopPropagation(),setTimeout((function(){Q.Radio.channel(e.options.channelName).trigger("remove:recent",e.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&ve(e.prototype,n),r&&ve(e,r),i}(r.a.Component),ke=n(534),Ce=n.n(ke);function Ee(t){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pe(t,e){return(Pe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Te(t){var e=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(t){return!1}}();return function(){var n,r=je(t);if(e){var o=je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(t,e){return!e||"object"!==Ee(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function je(t){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var De=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pe(t,e)}(i,t);var e,n,r,o=Te(i);function i(){return Re(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return Ce.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&_e(e.prototype,n),r&&_e(e,r),i}(r.a.Component),Le=n(535),Ae=n.n(Le);function Ne(t){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Me(t,e){return(Me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ue(t){var e=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(t){return!1}}();return function(){var n,r=He(t);if(e){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fe(this,n)}}function Fe(t,e){return!e||"object"!==Ne(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function He(t){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ze=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Me(t,e)}(i,t);var e,n,r,o=Ue(i);function i(){return Ie(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return Ae.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&Ve(e.prototype,n),r&&Ve(e,r),i}(r.a.Component),Be=n(182),qe=n(537),Ge=n.n(qe);function We(t){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ye(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ke(t,e){return(Ke=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qe(t){var e=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(t){return!1}}();return function(){var n,r=$e(t);if(e){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(t,e){return!e||"object"!==We(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $e(t){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ke(t,e)}(u,t);var e,n,o,a=Qe(u);function u(){return Ye(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.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(t){return t.preventDefault(),!0}},{key:"getCollection",value:function(){var t=this.model,e=t.categories,n=t.series;return e&&e.length?{name:e.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var t=new Be.a({model:this.model});this.showChildView("thumbnail",t)}},{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 Ge.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&Je(e.prototype,n),o&&Je(e,o),u}(r.a.Component),tn=n(268),en=n(538),nn=n.n(en);function rn(t){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function on(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cn(t,e){return(cn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function un(t){var e=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(t){return!1}}();return function(){var n,r=ln(t);if(e){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sn(this,n)}}function sn(t,e){return!e||"object"!==rn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ln(t){return(ln=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cn(t,e)}(u,t);var e,n,o,a=un(u);function u(){return on(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.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(t){return t.preventDefault(),!0}},{key:"getUrl",value:function(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var t=new Be.a({model:this.model,classNameOverride:"".concat(tn.coverImage," responsive-img")});this.showChildView("cover",t)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:tn}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return nn.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&an(e.prototype,n),o&&an(e,o),u}(r.a.Component),pn=n(405),yn=n.n(pn),hn=n(406),dn=n.n(hn),bn=n(407),vn=n.n(bn),mn=n(408),gn=n.n(mn),Sn=n(409),On=n.n(Sn),wn=n(410),kn=n.n(wn),Cn=n(411),En=n.n(Cn),Rn=n(412),_n=n.n(Rn),Pn=n(539),Tn=n.n(Pn),xn=n(237),jn=n.n(xn),Dn=n(540),Ln=n.n(Dn),An=n(541),Nn=n.n(An);function In(t){return function(t){if(Array.isArray(t))return Vn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Vn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vn(t,e)}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mn(t){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Un(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hn(t,e){return(Hn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zn(t){var e=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(t){return!1}}();return function(){var n,r=qn(t);if(e){var o=qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bn(this,n)}}function Bn(t,e){return!e||"object"!==Mn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qn(t){return(qn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gn=wt.a.SuggestionLimit,Wn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hn(t,e)}(l,t);var e,n,o,s=zn(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this,t)).viewCache={},e}return e=l,(n=[{key:"initialize",value:function(){this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.appVariables=i.a.getInstance(c.a.SEARCH,this),this.storageHelper=et.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){var t;return Un(t={submit:"onSubmit"},"click .".concat(jn.a.searchSvgContainer),"onClickSearch"),Un(t,"click a","onTypeaheadSelect"),Un(t,"keydown","onKeydown"),t}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:w.a.Component,options:{template:Nn.a,className:"w-100",viewOptions:{styles:Ln.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(rt.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(rt.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(t,e){var n=e.ctor,r=e.viewOptions;return this.viewCache[t]?this.viewCache[t]:this.viewCache[t]=new n(r)}},{key:"clearViewCache",value:function(){K.each(this.viewCache,(function(t){return t.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(t){var e=this;return t===vt.b.Recent?function(t){return e.getOrCacheView("recent:".concat(t),{ctor:we,viewOptions:{model:new r.a.Model({name:t}),channelName:e.channelName}}).render().el}:t===mt.a.Classification?function(t){return e.getOrCacheView(t.id,{ctor:fn,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===mt.a.Video?function(t){return e.getOrCacheView(t.id,{ctor:Xe,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===mt.a.Folder?yn.a:t===mt.a.Series?function(t){return e.getOrCacheView(t.id,{ctor:De,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===mt.a.Tags?function(t){return e.getOrCacheView(t.id,{ctor:ze,viewOptions:{model:new r.a.Model(t)}}).render().el}:void 0}},{key:"getLimits",value:function(t){return mt.a.Folder,Gn.Folder}},{key:"updateSearchHistory",value:function(t){var e=t.add,n=t.remove,r=t.query;r=r.trim();var o=Et.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:e,remove:n,query:r,limit:Gn.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch){var t=this.getUI("input").typeahead("val");if(t)this.$el.find(".tt-menu").removeClass("hide-results");else{var e=Et.getRecentSearches(this.recentSearchKey,this.storageHelper);if(e.length)return;this.$el.find(".tt-menu").addClass("hide-results")}}}},{key:"onDeleteRecentSearch",value:function(t){return this.updateSearchHistory({remove:!0,query:t}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(t,e){return e===mt.a.Series?Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[t.id]}):e===mt.a.Video?Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[t.id]}):e===mt.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:t.name}}):e===mt.a.Classification?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[t.id]}):void 0}},{key:"onTypeaheadSelect",value:function(t,e,n){if(t.preventDefault(),t.stopImmediatePropagation(),this.clearViewCache(),"object"===Mn(e)&&e.id){var o=this.getInstantSearchAppLink(e,n);if(!o)return!1;var i=X.a.buildInstantSearchEvent(this.model.get("query"),e,n),a=i.data,c=i.action;return tt.a.log(Z.q.InstantSearch,a,c),this.model.clear(),this.getUI("input").typeahead("close"),Q.Radio.channel(rt.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(o),!1}var u="string"==typeof e?e:e.query;this.model.set({query:u});var s=n===vt.b.Recent?Z.d.Recent:Z.d.ShowAll;return this.submitQuery(s),!1}},{key:"onClickSearch",value:function(t){return t.stopPropagation(),this.submitQuery(Z.d.SearchIcon),!1}},{key:"onSubmit",value:function(t){return t.preventDefault(),this.submitQuery(Z.d.Submit),!1}},{key:"submitQuery",value:function(t){this.updateInitialQuery();var e=this.model.get("query");if(e){this.logSearch(e,t),this.updateSearchHistory({add:!0,query:e}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=St(this.searchContext);Q.Radio.channel(rt.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:e},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(t,e){var n=X.a.buildSearchEvent(t,e),r=n.data,o=n.action;tt.a.log(Z.q.Search,r,o)}},{key:"onTypeaheadOpen",value:function(t){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),Q.Radio.channel(rt.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var e=this.model.get("query");e&&e.length>=wt.a.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(t){this.searchContext.get("preventTypeaheadClose")&&(t.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||Q.Radio.channel(rt.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),dt.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||dt.hideMask()}},{key:"alignTypeahead",value:function(){var t=$(".tt-menu");this.searchContext.get("title")?t.addClass("typeahead-shift"):t.hasClass("typeahead-shift")&&t.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(t,e,n,r){r===vt.b.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var t=this.getUI("input");t.on("typeahead:select",K.bind(this.onTypeaheadSelect,this)),t.on("typeahead:render",K.bind(this.onTypeaheadRender,this)),t.on("typeahead:beforeclose",K.bind(this.onBeforeTypeaheadClose,this)),t.on("typeahead:close",K.bind(this.onTypeaheadClose,this)),t.on("typeahead:open",K.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var t=this,e=this.getUI("input");e.on("typeahead:open",K.bind(this.showMask,this)),e.on("typeahead:close",K.bind(this.hideMask,this)),e.on("typeahead:select",K.bind((function(){r.a.AppLinkHelper.trigger(t.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(t){8!==t.keyCode||this.model.get("query")||Q.Radio.channel(rt.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(t){t&&t.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var t=Et.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:t})}},{key:"getDynamicBloodhoundConfig",value:function(){return Ct.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var t=this,e=Rt.a.getTemplate(kn.a,{fallbackTemplate:gn.a}),n=Rt.a.getTemplate(vn.a,{fallbackTemplate:gn.a,templateText:nt.a.getPhrase(this.lang,"findingResults")});return function(r,o){return{name:t.getConfigName(r.name),source:Rt.a.handleQuery(r.bloodhound,{fetchType:vt.a.Remote}),limit:t.getLimits(r.name),display:function(t){return t.name},async:!0,templates:{header:e,pending:0===o?n:gn.a,notFound:gn.a,suggestion:t.getDynamicTemplate(r.name),footer:On.a}}}}},{key:"getConfigName",value:function(t){switch(t){case mt.a.Classification:return nt.a.getPhrase(this.lang,"classifications");case mt.a.Video:return nt.a.getPhrase(this.lang,"videos");case mt.a.Tags:return nt.a.getPhrase(this.lang,"tags");case mt.a.Series:return nt.a.getPhrase(this.lang,"series")}return t}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var t=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:vt.b.Recent,source:Rt.a.handleQuery(this.recentSearchEngine,{fetchType:vt.a.Local,ignoreOnQuery:!0}),limit:Gn.Default,templates:{header:function(){return En.a({templateText:nt.a.getPhrase(t.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(vt.b.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:vt.b.Direct,source:Rt.a.handleQuery(),display:function(t){return t.query},templates:{suggestion:Rt.a.getTemplate(dn.a,{fallbackTemplate:gn.a,templateText:nt.a.getPhrase(this.lang,"allResults")}),footer:On.a}}]}},{key:"getDynamicSearchSources",value:function(){var t=this.getDynamicBloodhoundConfig(),e=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return Rt.a.getSearchSources([{name:mt.a.Classification,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:mt.a.Series,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:mt.a.Folder,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:mt.a.Video,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:mt.a.Tags,bloodhoundConfig:t,typeaheadConfig:e,options:n}])}},{key:"getSources",value:function(){var t=[].concat(In(this.getDirectSearchSources()),In(this.getDynamicSearchSources()));return this.options.showRecentSearch&&t.push.apply(t,In(this.getRecentSearchSources())),t}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:Rt.a.handleQuery(),display:function(t){return t.query},templates:{suggestion:Rt.a.getTemplate(_n.a,{fallbackTemplate:gn.a,templateText:nt.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(t){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"}},t)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(t){return t.id}))}},{key:"viewOptions",value:function(){return{styles:jn.a,svg:u.a.getSvg(u.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:nt.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.showChildView("searchTips",new $t)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),Q.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new fe({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(),Q.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 Tn.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(jn.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:ht.currentUser,libraryCollection:bt.a.libraries}}}])&&Fn(e.prototype,n),o&&Fn(e,o),l}(r.a.View),Yn=n(130),Jn=n(89),Kn=n(0),Qn=n(542),Zn=n.n(Qn),$n=n(269),Xn=n.n($n),tr=n(180),er=n(129),nr=n(12),rr=n(278),or=n(544),ir=n.n(or),ar=n(545),cr=n.n(ar);function ur(t){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fr(t,e,n){return e&&lr(t.prototype,e),n&&lr(t,n),t}function pr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hr(t){var e=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(t){return!1}}();return function(){var n,r=br(t);if(e){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dr(this,n)}}function dr(t,e){return!e||"object"!==ur(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vr=function(t){pr(n,t);var e=hr(n);function n(t){return sr(this,n),e.call(this,t)}return fr(n,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return ir.a}},{key:"onRender",value:function(){this.showChildView("items",new mr({collection:this.collection,childOptions:this.options.childOptions}))}},{key:"name",get:function(){return"UserOptionsDropdownComponent"}},{key:"className",get:function(){return"dropdown-menu dropdown-arrow ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"template",get:function(){return cr.a}}]),n}(r.a.Component),mr=function(t){pr(n,t);var e=hr(n);function n(t){return sr(this,n),e.call(this,t)}return fr(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return rr.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function gr(t){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wr(t,e){return(wr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kr(t){var e=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(t){return!1}}();return function(){var n,r=Er(t);if(e){var o=Er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cr(this,n)}}function Cr(t,e){return!e||"object"!==gr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Er(t){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Rr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wr(t,e)}(a,t);var e,n,o,i=kr(a);function a(){return Sr(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new vr({model:this.currentUser,collection:new r.a.Collection([{title:nt.a.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:nt.a.getPhrase(this.lang,"settings"),href:Jn.a.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:nt.a.getPhrase(this.lang,"helpCentre"),href:Jn.a.safeUrlConcat(this.config.get("supportSiteUrl"),Kn.y.LIBRARY_EDITOR),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{divider:!0},{title:nt.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(t=nr.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:Xn.a,avatar:t,arrowSvg:u.a.getSvg(u.b.ChevronDown)}):{};var t}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Zn.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(Xn.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:tr.b.config,currentUser:er.b.currentUser}}}])&&Or(e.prototype,n),o&&Or(e,o),a}(r.a.View),_r=n(41),Pr=n(6),Tr=n(286),xr=n(547),jr=n.n(xr);function Dr(t){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ar(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nr(t,e){return(Nr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ir(t){var e=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(t){return!1}}();return function(){var n,r=Mr(t);if(e){var o=Mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}function Vr(t,e){return!e||"object"!==Dr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mr(t){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ur=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nr(t,e)}(a,t);var e,n,r,o=Ir(a);function a(){return Lr(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(Kn.x.PendingItems,this),this.listenTo(rt.c.PENDING_ITEMS,_r.a.PENDING_ITEM_STATUS_CHANGE,this.render),this.listenTo(this.channelName,"clear:pending:item",this.onClearPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.onRetryPendingItem)}},{key:"regions",value:function(){return{processingProgress:{el:".processing-progress-region",replaceElement:!0,partialLoading:Pr.j.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(t){var e=this;this.pendingItemsService.clearPendingItem(t,(function(){e.render()}))}},{key:"onRetryPendingItem",value:function(t){var e=this;this.pendingItemsService.retryPendingItem(t,(function(){e.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new Tr.a({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return jr.a}},{key:"lang",get:function(){return"upload.progressSummary"}},{key:"className",get:function(){return"progress-summary"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&Ar(e.prototype,n),r&&Ar(e,r),a}(r.a.View),Fr=n(270),Hr=n.n(Fr),zr=n(548),Br=n.n(zr),qr=n(287),Gr=n(131);function Wr(t){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jr(t,e){return(Jr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kr(t){var e=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(t){return!1}}();return function(){var n,r=Zr(t);if(e){var o=Zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qr(this,n)}}function Qr(t,e){return!e||"object"!==Wr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zr(t){return(Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jr(t,e)}(c,t);var e,n,r,a=Kr(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"initialize",value:function(){var t=this;this.pendingItemsService=i.a.getInstance(Kn.x.PendingItems,this),this.listenTo(Kn.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){t.model.get("items")||t.render()}))}},{key:"regions",value:function(){return{progressInfo:{el:".progress-info-region",replaceElement:!1},progressSummary:{el:".progress-summary-region",replaceElement:!1}}}},{key:"hasLibraries",value:function(){return!!this.libraries.length}},{key:"renderProgressInfo",value:function(){this.hasLibraries()&&this.showChildView("progressInfo",new qr.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new Ur)}},{key:"viewOptions",value:function(){return{styles:Hr.a,uploadSvg:u.a.getSvg(u.b.Upload),hasLibraries:this.hasLibraries()}}},{key:"onRender",value:function(){this.pendingItemsService.getPendingItems(),this.renderProgressInfo(),this.renderProgressSummary()}},{key:"lang",get:function(){return"upload.uploadButton"}},{key:"appLinks",get:function(){return t={},e=".".concat(Hr.a.upload),n={application:Kn.b.UPLOAD,action:Kn.a.Upload.FILE_SELECTION},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"channelName",get:function(){return Kn.w.VIDEO_UPLOAD}},{key:"name",get:function(){return"UploadButtonView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative h-100"}},{key:"template",get:function(){return Br.a}},{key:"requiredResources",get:function(){return{libraries:Gr.b.libraries}}}])&&Yr(e.prototype,n),r&&Yr(e,r),c}(r.a.View),Xr=n(550),to=n.n(Xr),eo=n(551),no=n.n(eo);function ro(t){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function io(t,e){return(io=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ao(t){var e=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(t){return!1}}();return function(){var n,r=uo(t);if(e){var o=uo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return co(this,n)}}function co(t,e){return!e||"object"!==ro(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uo(t){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"PageHeaderComponent",(function(){return so}));var so=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&io(t,e)}(a,t);var e,n,r,i=ao(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"regions",value:function(){return{search:{el:".search-bar-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!0},upload:{el:".upload-region",replaceElement:!1},userOptions:{el:".user-options-region",replaceElement:!0},migrationError:{el:".migration-error-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .navbar-brand":"onClick"}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t={actionType:Z.q.Click,descriptor:Z.b.NavigateHome,location:Z.k.TopNav,entity:Z.e.Logo},e={currentLocation:X.a.buildCurrentLocation()};X.a.logUserAction(e,t)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:Yn.c})}},{key:"renderSearchBar",value:function(){var t=new Wn({model:this.getSearchModel()});this.showChildView("search",t)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var t=new $r;this.showChildView("upload",t)}}},{key:"renderNotificationsStatus",value:function(){var t=new J;this.showChildView("notifications",t)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new Rr)}},{key:"viewOptions",value:function(){return{styles:no.a}}},{key:"onRender",value:function(){this.renderUserDropdown(),this.options.onlyShowProfile||(this.renderSearchBar(),this.renderUpload(),this.renderNotificationsStatus())}},{key:"name",get:function(){return"PageHeaderComponent"}},{key:"template",get:function(){return to.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&oo(e.prototype,n),r&&oo(e,r),a}(r.a.Component)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(3),a=n(14),c=n(552),u=n.n(c),s=n(553),l=n.n(s),f=n(6),p=n(554),y=n.n(p),h=n(272),d=n.n(h);function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),t}function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){S(n,t);var e=w(n);function n(t){return v(this,n),e.call(this,t)}return g(n,[{key:"isSelected",value:function(){return!!this.options.selected&&(this.options.selected.application===this.model.get("application")&&this.options.selected.action===this.model.get("action"))}},{key:"getCount",value:function(){var t=this.model.get("getCount");if(r.isFunction(t))return t()}},{key:"viewOptions",value:function(){return{styles:d.a,count:this.getCount()}}},{key:"name",get:function(){return"TopNavigationItemComponent"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return this.isSelected()?"border-bottom border-primary text-primary nav-link ".concat(d.a.active):"nav-link"}},{key:"appLinks",get:function(){return{"[this]":{application:this.model.get("application"),action:this.model.get("action")}}}},{key:"template",get:function(){return y.a}}]),n}(o.a.Component),R=function(t){S(n,t);var e=w(n);function n(t){return v(this,n),e.call(this,t)}return g(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),_=n(54),P=n(0),T=n(129),x=n(5),j={warningPublisherArchive:n(555)};function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t){var e=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(t){return!1}}();return function(){var n,r=V(t);if(e){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"TopNavigationView",(function(){return M}));var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(p,t);var e,n,c,s=N(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),s.call(this,t)}return e=p,(n=[{key:"initialize",value:function(){this.initializeDataServices(),this.bindListeners()}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0},migrationErrors:{el:".migration-error-region",replaceElement:!0}}}},{key:"initializeDataServices",value:function(){this.contentUpdatesDataService=x.a.getInstance(P.g.ContentUpdates,this),this.settingsDataService=x.a.getInstance(P.g.Settings,this),this.migrationVideoDataService=x.a.getInstance(P.g.MigrationVideo,this),this.staffRequestDataService=x.a.getInstance(P.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(P.e.SETTINGS,"".concat(P.f.SETTINGS,":sync"),this.render),this.listenTo(P.e.VIDEO,"".concat(P.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(P.e.STAFF_REQUEST,"".concat(P.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(P.e.MIGRATION,"".concat(P.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(P.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var t=this,e=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:P.b.LIBRARY_EDITOR,action:P.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:P.b.STAFF_REQUESTS,action:P.a.StaffRequests.HOME,getCount:function(){return t.staffRequestCollection&&t.staffRequestCollection.length},requiredSetting:{name:f.m.StaffRequest,value:f.o.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:P.b.CONTENT_UPDATES,action:P.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return t.contentUpdatesCollection&&t.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:P.b.VIDEO_ACCESS,action:P.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(e)),_.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:P.b.MIGRATION_WIZARD,action:P.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?j.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(t){var e=this;return t.filter((function(t){if(!r.has(t,"requiredSetting"))return!0;var n=e.settings.findWhere({name:t.requiredSetting.name});return!!n&&n.get("value")===t.requiredSetting.value}))}},{key:"onBeforeRender",value:function(){return this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview(),this.staffRequestCollection=this.staffRequestDataService.getStaffRequests(),this.settings=this.settingsDataService.getSettings(this.currentUser.get("customerId")),this.migrationMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),!!this.settings&&!!this.migrationMetadata}},{key:"onRender",value:function(){this.initNavCollection(),this.showChildView("items",new R({collection:this.collection,selected:this.options.selected}))}},{key:"name",get:function(){return"TopNavigationView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white ".concat(l.a.topNav," container")}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.topNavigation"}},{key:"requiredResources",get:function(){return{currentUser:T.b.currentUser}}}])&&L(e.prototype,n),c&&L(e,c),p}(o.a.View)},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t,e,n){},function(t,e){t.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(t),o=[],a=[];for(n=new u(n),e=0;e<r.length;e++){var p=r[e];if("StartTag"!==p.type)if("Chars"===p.type){var y=s(p.chars,n);o.push.apply(o,y)}else o.push(p);else{o.push(p);var h=p.tagName.toUpperCase(),d="A"===h||c.contains(n.ignoreTags,h);if(!d)continue;var b=o.length;l(h,r,++e,o),e+=o.length-b-1}}for(e=0;e<o.length;e++){var v=o[e];switch(v.type){case"StartTag":var m="<"+v.tagName;if(v.attributes.length>0){var g=f(v.attributes);m+=" "+g.join(" ")}m+=">",a.push(m);break;case"EndTag":a.push("</"+v.tagName+">");break;case"Chars":a.push(v.chars);break;case"Comment":a.push("\x3c!--"+v.chars+"--\x3e")}}return a.join("")};var r,o=n(787),i=(r=o)&&r.__esModule?r:{default:r},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(790));var c=a.options,u=c.Options;function s(t,e){for(var n=a.tokenize(t),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&e.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&e.check(i)){var c=e.resolve(i),u=c.formatted,s=c.formattedHref,l=c.tagName,f=c.className,p=c.target,y=c.attributes,h=[["href",s]];for(var d in f&&h.push(["class",f]),p&&h.push(["target",p]),y)h.push([d,y[d]]);r.push({type:"StartTag",tagName:l,attributes:h,selfClosing:!1}),r.push({type:"Chars",chars:u}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(t,e,n,r){for(var o=1;n<e.length&&o>0;){var i=e[n];"StartTag"===i.type&&i.tagName.toUpperCase()===t?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===t&&o--,r.push(i),n++}return r}function f(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=r[0],i=r[1];e.push(o+'="'+(i.replace(/"/g,""")+'"'))}return e}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(301)),o=u(n(302)),i=u(n(303)),a=u(n(304)),c=u(n(789));function u(t){return t&&t.__esModule?t:{default:t}}var s={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:c.default};e.default=s},function(t,e,n){"use strict";e.__esModule=!0,e.isSpace=function(t){return r.test(t)},e.isAlpha=function(t){return o.test(t)},e.preprocessInput=function(t){return t.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return new r.default(new o.default(i.default),e).tokenize(t)};var r=a(n(304)),o=a(n(302)),i=a(n(301));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var r=n(188),o=c(n(791)),i=c(n(792)),a=c(n(793));function c(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var u=function(t){return a.run(i.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(t),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||e&&i.type!==e||r.push(i.toObject())}return r},e.inherits=r.inherits,e.options=o,e.parser=a,e.scanner=i,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=u},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:o.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:o.events,this.format=t.hasOwnProperty("format")?t.format:o.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:o.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:o.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:o.tagName,this.target=t.hasOwnProperty("target")?t.target:o.target,this.validate=t.hasOwnProperty("validate")?t.validate:o.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||o.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||o.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:o.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function a(t){return t}e.defaults=o,e.Options=i,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},i.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var i=void 0,a=this[t];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(e,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[t])?i(e,n.type):i}return a},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(305),o=n(239),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(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(t){return new r.CharacterState(t)},p=f(),y=f(o.NUM),h=f(o.DOMAIN),d=f(),b=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,b),b.on(s,b);for(var v=0;v<a.length;v++){var m=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);l.push.apply(l,m)}var g=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,g),l.push.apply(l,S),l.push.apply(l,O),l.push.apply(l,w);var k=g.pop(),C=S.pop(),E=O.pop(),R=w.pop(),_=f(o.DOMAIN),P=f(o.PROTOCOL),T=f(o.MAILTO);C.on("s",_).on(":",P),E.on("s",_).on(":",P),l.push(_),k.on(":",P),_.on(":",P),R.on(":",T);var x=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,x),p.on(c,y),y.on("-",d).on(c,y).on(u,h),h.on("-",d).on(u,h);for(var j=0;j<l.length;j++)l[j].on("-",d).on(u,h);d.on("-",d).on(c,h).on(u,h),p.defaultTransition=f(o.SYM);var D=p;e.State=r.CharacterState,e.TOKENS=i,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(e[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(t.substr(o-c,c)))}}return r},e.start=D},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(305),o=n(794),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o),a=n(239);var c=function(t){return new r.TokenState(t)},u=c(),s=c(),l=c(),f=c(),p=c(),y=c(),h=c(),d=c(o.URL),b=c(),v=c(o.URL),m=c(o.URL),g=c(),S=c(),O=c(),w=c(),k=c(),C=c(o.URL),E=c(o.URL),R=c(o.URL),_=c(o.URL),P=c(),T=c(),x=c(),j=c(),D=c(),L=c(),A=c(o.EMAIL),N=c(),I=c(o.EMAIL),V=c(o.MAILTOEMAIL),M=c(),U=c(),F=c(),H=c(),z=c(o.NL);u.on(a.NL,z).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,y).on(a.DOMAIN,y).on(a.LOCALHOST,d).on(a.NUM,y),p.on(a.TLD,m).on(a.DOMAIN,m).on(a.NUM,m).on(a.LOCALHOST,m),y.on(a.DOT,h),D.on(a.DOT,L),h.on(a.TLD,d).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),L.on(a.TLD,A).on(a.DOMAIN,D).on(a.NUM,D).on(a.LOCALHOST,D),d.on(a.DOT,h),A.on(a.DOT,L),d.on(a.COLON,b).on(a.SLASH,m),b.on(a.NUM,v),v.on(a.SLASH,m),A.on(a.COLON,N),N.on(a.NUM,I);var B=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];m.on(a.OPENBRACE,S).on(a.OPENBRACKET,O).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,k),g.on(a.OPENBRACE,S).on(a.OPENBRACKET,O).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,k),S.on(a.CLOSEBRACE,m),O.on(a.CLOSEBRACKET,m),w.on(a.CLOSEANGLEBRACKET,m),k.on(a.CLOSEPAREN,m),C.on(a.CLOSEBRACE,m),E.on(a.CLOSEBRACKET,m),R.on(a.CLOSEANGLEBRACKET,m),_.on(a.CLOSEPAREN,m),P.on(a.CLOSEBRACE,m),T.on(a.CLOSEBRACKET,m),x.on(a.CLOSEANGLEBRACKET,m),j.on(a.CLOSEPAREN,m),S.on(B,C),O.on(B,E),w.on(B,R),k.on(B,_),S.on(q,P),O.on(q,T),w.on(q,x),k.on(q,j),C.on(B,C),E.on(B,E),R.on(B,R),_.on(B,_),C.on(q,C),E.on(q,E),R.on(q,R),_.on(q,_),P.on(B,C),T.on(B,E),x.on(B,R),j.on(B,_),P.on(q,P),T.on(q,T),x.on(q,x),j.on(q,j),m.on(B,m),g.on(B,m),m.on(q,g),g.on(q,g),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(B,V).on(q,M),M.on(B,V).on(q,M);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];y.on(G,U).on(a.AT,F),d.on(G,U).on(a.AT,F),h.on(G,U),U.on(G,U).on(a.AT,F).on(a.DOT,H),H.on(G,U),F.on(a.TLD,D).on(a.DOMAIN,D).on(a.LOCALHOST,A);e.State=r.TokenState,e.TOKENS=i,e.run=function(t){for(var e=t.length,n=0,r=[],i=[];n<e;){for(var a=u,c=null,s=null,l=0,f=null,p=-1;n<e&&!(c=a.next(t[n]));)i.push(t[n++]);for(;n<e&&(s=c||a.next(t[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var y=n-l;y<n;y++)i.push(t[y]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var h=f.emit();r.push(new h(t.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},e.start=u},function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n(306),o=n(188),i=n(239);function a(t){return t instanceof i.DOMAIN||t instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)e=!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(""),e||n||(o=t+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});e.Base=c,e.MAILTOEMAIL=u,e.EMAIL=s,e.NL=f,e.TEXT=l,e.URL=p},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),n(605),n(606),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(635),n(636),n(637),n(638),n(639),n(640),n(641),n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784);var r=n(2),o=n(7),i=n(1),a=n(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,r,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var t=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==t.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==t.webkitHidden&&(this.hiddenPropertyName="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}},{key:"bindEventListeners",value:function(){void 0!==document.addEventListener&&void 0!==this.hiddenPropertyName&&(this.onVisibilityChange=i.bind(this.onVisibilityChange,this),document.addEventListener(this.visibilityChangeEventName,this.onVisibilityChange,!1))}},{key:"onVisibilityChange",value:function(){o.Radio.channel(this.channelName).trigger("visbility:change",document[this.hiddenPropertyName])}},{key:"addVisibilityChangeListener",value:function(t){this.listenTo(this.channelName,"visbility:change",t)}},{key:"removeVisibilityChangeListener",value:function(t){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",t)}},{key:"onDestroy",value:function(){document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChange)}},{key:"name",get:function(){return a.x.PageVisibility}},{key:"channelName",get:function(){return a.w.PAGE_VISIBILITY}}])&&s(e.prototype,n),r&&s(e,r),p}(r.a.Service),d=n(46),b=n(5),v=n(69),m=n(16),g=n(207),S=n(208);var O=n(144),w=n(18),k=n(11),C=n(28),E=function(t){return i.isFunction(t)},R=n(113),_=n(218),P=n(219),T=n(40);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function L(t){var e=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(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(c,t);var e,n,o,a=L(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this)).clients={},e.enrichers={},C.a.get("application:options").set(t),e.bindNavigationListener(),e}return e=c,(n=[{key:"registerTransport",value:function(t,e){return this.transport=new t(e),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(_.a.ANALYTICS,R.a.Inlet,this.onEvent)}},{key:"registerClient",value:function(t,e){return this.validateConstructor(t),this.clients[t.prototype.name]=t.prototype.name,this.transport.subscribe(new t(e)),this}},{key:"registerEnricher",value:function(t,e){this.validateConstructor(t);var n=new t(e);return this.enrichers[t.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}},{key:"onEvent",value:function(t){var e=this;this.executeMiddleware(t,(function(t){e.transport.publish(t)}))}},{key:"validateConstructor",value:function(t){var e=t.prototype.name;e||r.a.ErrorHelper.throw(new w.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(e){return E(t.prototype.isType)&&t.prototype.isType(e)};(n("BaseAnalyticsClient")||"CollectionApiClient"===e)&&this.clients[e]&&r.a.ErrorHelper.throw(new w.a("A client class with the name: ".concat(e," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[e]&&r.a.ErrorHelper.throw(new w.a("An enricher class named: ".concat(e," has already been registered with ").concat(this.name)))}},{key:"registerMiddleware",value:function(t){var e;this.executeMiddleware=(e=this.executeMiddleware,function(n,r){return e(n,(function(){return t(n,r)}))})}},{key:"executeMiddleware",value:function(t,e){e(t)}},{key:"bindNavigationListener",value:function(){this.listenTo(k.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(t,e){T.a.logNavigate(t,e)}},{key:"name",get:function(){return P.a.Analytics}}])&&j(e.prototype,n),o&&j(e,o),c}(r.a.Service),V=n(49);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&z(t,e)}function z(t,e){return(z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function B(t){var e=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(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var W=function(t){H(a,t);var e,n,r,o=B(a);function a(){return F(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"publish",value:function(t){this.getChannel().trigger(R.a.Outlet,t)}},{key:"subscribe",value:function(t){var e=t,n=function(n){E(e.shouldLog)&&!e.shouldLog(n)||t.log(n)};i.isFunction(e.listenTo)?e.listenTo(this.getChannel(),R.a.Outlet,n):this.listenTo(this.getChannel(),R.a.Outlet,n)}},{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}}])&&U(e.prototype,n),r&&U(e,r),a}(function(t){H(n,t);var e=B(n);function n(){return F(this,n),e.apply(this,arguments)}return n}(V.Object));function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){var e=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(t){return!1}}();return function(){var n,r=tt(t);if(e){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==Y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tt(t){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q(t,e)}(i,t);var e,n,r,o=Z(i);function i(){return J(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"enrich",value:function(t,e){}},{key:"isType",value:function(t){return t===i.type}}])&&K(e.prototype,n),r&&K(e,r),i}(r.a.Service);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=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(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}et.type="BaseAnalyticsEnricher";var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=at(i);function i(){return rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.user=C.a.get("application:options").get("user")}},{key:"shouldEnrich",value:function(t){return!0}},{key:"enrich",value:function(t,e){this.shouldEnrich(t)||e(t),t.enrich("user",this.getUser(this.user)),e(t)}},{key:"getUser",value:function(t){return{country:t.countryCode,customerId:t.customerId,id:t.id,role:t.role}}},{key:"name",get:function(){return"UserDataEnricher"}}])&&ot(e.prototype,n),r&&ot(e,r),i}(et),lt="URLSearchParams"in self,ft="Symbol"in self&&"iterator"in Symbol,pt="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),yt="FormData"in self,ht="ArrayBuffer"in self;if(ht)var dt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],bt=ArrayBuffer.isView||function(t){return t&&dt.indexOf(Object.prototype.toString.call(t))>-1};function vt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function mt(t){return"string"!=typeof t&&(t=String(t)),t}function gt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ft&&(e[Symbol.iterator]=function(){return e}),e}function St(t){this.map={},t instanceof St?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Ot(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function wt(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function kt(t){var e=new FileReader,n=wt(e);return e.readAsArrayBuffer(t),n}function Ct(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Et(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:pt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:yt&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:lt&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():ht&&pt&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=Ct(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ht&&(ArrayBuffer.prototype.isPrototypeOf(t)||bt(t))?this._bodyArrayBuffer=Ct(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):lt&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pt&&(this.blob=function(){var t=Ot(this);if(t)return t;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?Ot(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(kt)}),this.text=function(){var t,e,n,r=Ot(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=wt(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},yt&&(this.formData=function(){return this.text().then(Pt)}),this.json=function(){return this.text().then(JSON.parse)},this}St.prototype.append=function(t,e){t=vt(t),e=mt(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},St.prototype.delete=function(t){delete this.map[vt(t)]},St.prototype.get=function(t){return t=vt(t),this.has(t)?this.map[t]:null},St.prototype.has=function(t){return this.map.hasOwnProperty(vt(t))},St.prototype.set=function(t,e){this.map[vt(t)]=mt(e)},St.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},St.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),gt(t)},St.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),gt(t)},St.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),gt(t)},ft&&(St.prototype[Symbol.iterator]=St.prototype.entries);var Rt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _t(t,e){var n,r,o=(e=e||{}).body;if(t instanceof _t){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new St(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new St(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),Rt.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.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 Pt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function Tt(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new St(e.headers),this.url=e.url||"",this._initBody(t)}_t.prototype.clone=function(){return new _t(this,{body:this._bodyInit})},Et.call(_t.prototype),Et.call(Tt.prototype),Tt.prototype.clone=function(){return new Tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new St(this.headers),url:this.url})},Tt.error=function(){var t=new Tt(null,{status:0,statusText:""});return t.type="error",t};var xt=[301,302,303,307,308];Tt.redirect=function(t,e){if(-1===xt.indexOf(e))throw new RangeError("Invalid status code");return new Tt(null,{status:e,headers:{location:t}})};var jt=self.DOMException;try{new jt}catch(t){(jt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),jt.prototype.constructor=jt}function Dt(t,e){return new Promise((function(n,r){var o=new _t(t,e);if(o.signal&&o.signal.aborted)return r(new jt("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,r={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new St,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};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 Tt(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 jt("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&self.location.href?self.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(pt?i.responseType="blob":ht&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})),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)}))}Dt.polyfill=!0,self.fetch||(self.fetch=Dt,self.Headers=St,self.Request=_t,self.Response=Tt);var Lt=n(507),At=n.n(Lt),Nt=n(508);function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(t,e)}(t,e)||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 Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mt={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 6.3/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 Ut(t,e,n){var r=It(e.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{name:t,version:o}}function Ft(t,e,n){if(!e)return{name:t,version:"Unknown"};var r=e.exec(n);return{name:t,version:r&&r.length?r[0].trim():"Unknown"}}var Ht=function(){var t=window.navigator.userAgent;return Mt.android.test(t)?Ft("Android",Mt.androidVersion,t):Mt.iphone.test(t)||Mt.ipad.test(t)?Ft("iOS",Mt.iosVersion,t):Mt.linux.test(t)?Ft("Linux",null,t):Mt.unix.test(t)?Ft("Unix",null,t):Mt.mac.test(t)?Ft("Macintosh",Mt.osxVersion,t):Mt.windows.test(t)?function(t,e){var n={name:t,version:null};return Mt.win2000.test(e)&&(n.version="2000"),Mt.winXP.test(e)&&(n.version="XP"),Mt.winVista.test(e)&&(n.version="Vista"),Mt.win7.test(e)&&(n.version="7"),Mt.win8.test(e)&&(n.version="8"),Mt.win81.test(e)&&(n.version="8.1"),Mt.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):Mt.blackberry.test(t)?Ft("BlackBerry",Mt.blackberryVersion,t):Mt.windowsPhone.test(t)?Ft("Windows Phone",Mt.windowsPhoneVersion,t):{name:"Unknown",version:"Unknown"}},zt=function(){var t=window.navigator.userAgent;return Mt.chrome.test(t)?Ut("Chrome",Mt.generalVersion,t):Mt.firefox.test(t)?Ut("Firefox",Mt.generalVersion,t):Mt.safari.test(t)?Ut("Safari",Mt.generalVersion,t):Mt.ie.test(t)?Ut("Internet Explorer",Mt.ieVersion,t):Mt.edge.test(t)?Ut("Edge",Mt.edgeVersion,t):Mt.opera.test(t)?Ut("Opera",Mt.operaVersion,t):{name:"Unknown",version:"Unknown"}};function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var qt,Gt=function(t){var e=Bt(t);return"function"===e||"object"===e&&!!t},Wt=function(t){return"function"==typeof t},Yt=function(t,e){if(t){var n=t;return t.endsWith("/")||(n+="/"),e?n+=e.startsWith("/")?e.slice(1):e:n}},Jt=n(209);!function(t){t.CvApSoutheast1="cv-ap-southeast-1",t.CvApSoutheast2="cv-ap-southeast-2",t.CvEuWest1="cv-eu-west-1"}(qt||(qt={}));var Kt,Qt,Zt={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:qt.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:qt.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:qt.CvEuWest1}};function $t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t.AU="au",t.NZ="nz",t.UK="uk"}(Kt||(Kt={}));var Xt=($t(Qt={},Kt.AU,qt.CvApSoutheast1),$t(Qt,Kt.NZ,qt.CvApSoutheast2),$t(Qt,Kt.UK,qt.CvEuWest1),Qt);function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ee=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ne=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){this.validateOptions()}},{key:"log",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=2;break}return e.abrupt("return",this.logBulk(t));case 2:if(this.shouldLog(t)){e.next=4;break}return e.abrupt("return");case 4:return this.validateEvent(t),e.t0=this,e.next=8,this.formatData(t);case 8:return e.t1=e.sent,e.next=11,e.t0.postData.call(e.t0,e.t1);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"logBulk",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.filter((function(t){return o.shouldLog(t)}))).length){e.next=3;break}return e.abrupt("return");case 3:return n.forEach((function(t){return o.validateEvent(t)})),e.next=6,Promise.all(n.map((function(t){return o.formatData(t)})));case 6:return r=e.sent,e.next=9,this.postData(r);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateOptions",value:function(){if(!Wt(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(t){return!Wt(this.options.shouldLog)||this.options.shouldLog(t)}},{key:"postData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=e.sent,r=JSON.stringify(t),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),i=Yt(n,"/v1/ingest"),Array.isArray(t)&&(i=Yt(i,"/bulk")),e.next=9,fetch(i,{method:"POST",mode:"cors",headers:o,body:r});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"getSignatureHeader",value:function(t){var e=new At.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return e.update(t),{"cv-analytics-signature":"".concat(this.options.collectionApiClientId,".").concat(e.getHash("B64"))}}},{key:"getRegionalUrl",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegion();case 2:n=e.sent,e.t0=n.systemName,e.next=e.t0===qt.CvEuWest1?6:e.t0===qt.CvApSoutheast2?7:(e.t0,qt.CvApSoutheast1,8);break;case 6:return e.abrupt("return",t.cvEuWest1);case 7:return e.abrupt("return",t.cvApSoutheast2);case 8:return e.abrupt("return",t.cvApSoutheast1);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateEvent",value:function(t){if("string"!=typeof t.type)throw new Error("Event type is required.");if(!Gt(t.actionContext))throw new Error("Event actionContext is required.");if(!t.actionContext.entity)throw new Error("Event actionContext entity is required.")}},{key:"formatData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t.type,e.next=3,this.getEventData(t);case 3:return e.t1=e.sent,e.t2=this.getEventMetadata(t),e.abrupt("return",{type:e.t0,data:e.t1,metadata:e.t2});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getEventData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.actionContext,e.next=3,this.getUserData();case 3:return r=e.sent,o={user:r,action:n,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},i=this.extractData(t),a=Object.keys(o).map((function(t){return t.toLowerCase()})),c=Object.keys(i).map((function(t){return t.toLowerCase()})),a.forEach((function(t){if(c.includes(t))throw Error("".concat(t," is a reserved key."))})),e.abrupt("return",Object.assign(Object.assign({},o),i));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"extractData",value:function(t){return Wt(this.options.formatData)?this.options.formatData(t):(e={},n=t.actionContext.entity,r=t.data,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e);var e,n,r}},{key:"getUserData",value:function(){var t,e,n;return ee(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.options.getUser();case 2:if(o=r.sent,null===(t=o)||void 0===t?void 0:t.id){r.next=5;break}return r.abrupt("return");case 5:return r.t0=o.id,r.t1=(null===(e=o.role)||void 0===e?void 0:e.toLowerCase())||"unknown",r.t2=(null===(n=o.userGroup)||void 0===n?void 0:n.toLowerCase())||Jt.a.Unknown,r.t3=this.normalizeYearGroup(o.yearGroup),r.t4=o.customerId,r.t5=o.customerName,r.t6=o.customerGuid,r.t7=o.crmId,r.t8=o.countryCode,r.next=16,this.getRegion();case 16:return r.t9=r.sent,r.t10=!!o.isOpenCustomer,r.t11={id:r.t4,name:r.t5,customerGuid:r.t6,crmId:r.t7,country:r.t8,region:r.t9,openCustomer:r.t10},r.abrupt("return",{id:r.t0,role:r.t1,userGroup:r.t2,yearGroup:r.t3,customer:r.t11});case 20:case"end":return r.stop()}}),r,this)})))}},{key:"getRegion",value:function(){var t,e;return ee(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,o,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:return r=n.sent,o=null===(e=null===(t=r)||void 0===t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase(),i=o?Xt[o]:this.options.regionName,n.abrupt("return",this.getRegionByName(i));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:zt(),os:Ht(),request:{url:window.location.href,referrer:document.referrer},screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"getEventMetadata",value:function(t){return{client:{name:"".concat(this.name,".ts"),version:Nt.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:t.eventVersion}}},{key:"getRegionByName",value:function(t){var e;return Object.values(Zt).forEach((function(n){n.systemName===t&&(e=n)})),e}},{key:"normalizeYearGroup",value:function(t){return t?t.toLowerCase().split(" ").join("_"):"unknown"}},{key:"name",get:function(){return"CollectionApiClient"}}])&&te(e.prototype,n),r&&te(e,r),t}(),re=n(509),oe=n(58);function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ue(t,e){return(ue=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function se(t){var e=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(t){return!1}}();return function(){var n,r=fe(t);if(e){var o=fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return le(this,n)}}function le(t,e){return!e||"object"!==ie(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fe(t){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ue(t,e)}(c,t);var e,n,o,a=se(c);function c(){return ae(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"shouldLog",value:function(){return oe.a.isDevelopment}},{key:"log",value:function(t){var e=i.clone(t);for(var n in t){var o=e[n];(o instanceof r.a.Model||o instanceof r.a.Collection)&&(e[n]=o.toJSON())}console.log("Event Debugger: ",e)}},{key:"name",get:function(){return"DebuggerClient"}}])&&ce(e.prototype,n),o&&ce(e,o),c}(n(220).a),ye=n(27),he=n(176);function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ve(t,e){return(ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function me(t){var e=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(t){return!1}}();return function(){var n,r=Se(t);if(e){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function ge(t,e){return!e||"object"!==de(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ve(t,e)}(a,t);var e,n,o,i=me(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).productName=t.productName,e.productVersion=t.productVersion,e}return e=a,(n=[{key:"shouldEnrich",value:function(t){return!0}},{key:"enrich",value:function(t,e){this.shouldEnrich(t)||e(t),t.enrich("coreContext",this.getCoreContext()),e(t)}},{key:"getCoreContext",value:function(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}},{key:"getTimestamp",value:function(){return ye.utc().toISOString()}},{key:"getProductInfo",value:function(){return{name:this.productName,version:this.productVersion}}},{key:"getRequestInfo",value:function(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}},{key:"getClientInfo",value:function(){var t=he.a.getOperatingSystem(),e=he.a.getBrowser();return{os:t.os,osVersion:t.version,browser:e.browser,browserVersion:e.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"name",get:function(){return"CoreContextEnricher"}}])&&be(e.prototype,n),o&&be(e,o),a}(et),we=n(4),ke=function(){return!0},Ce=function(){return!1};var Ee=function(t){return t};function Re(t){if(t&&t.code)return t.code}function _e(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.id){var n={id:t.id};return t.name&&!e.ignoreTitle&&(n.title=t.name),n}}function Pe(t){if(t&&t.length){var e=t[0];return{id:e.id,title:e.name}}}var Te,xe,je,De=function(t){var e=t.model,n={id:e.id.toString(),year:e.productionYear,title:e.name,trackingCode:e.trackingCode},r=Re(e.rating),o=_e(e.series),i=Pe(e.categories),a=_e(e.owner,{ignoreTitle:!0}),c=_e(e.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},Le={getUploadData:function(t,e){var n=e.actionContext.entity;if(n===we.e.Video)return Le.formatVideoUpload(t,e);if(n===we.e.Resource||n===we.e.Subtitle)return Le.formatResourceUpload(t);if(n===we.e.Banner||n===we.e.Thumbnail)return t;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(t,e){var n=e.actionContext.workflowPhase;return n===we.r.Start?Le.getStartVideoUploadData(t):n===we.r.Discard?Le.getDiscardVideoUploadData(t):n===we.r.Complete?Le.getCompleteUploadData(t):void 0},getStartVideoUploadData:function(t){return t&&t.length?(t instanceof FileList&&(t=Array.from(t)),t.map((function(e){return{fileName:e.name,size:e.size,type:e.type,count:t.length}}))):[]},getDiscardVideoUploadData:function(t){var e=function(e){var n=e.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(t)?t.length:1,type:r,status:i};return e.progress&&(c.progress=e.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]},getCompleteUploadData:function(t){return t&&t.length?t.map((function(e){return{fileName:e.fileName,libraryId:e.libraryId,folderId:e.folderId,count:t.length}})):[]},formatResourceUpload:function(t){var e={id:t.id,name:t.name};return Gt(t.metadata)&&(e.type=t.metadata.type),e}};function Ae(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ne=(Ae(Te={},we.q.Navigate,Ce),Ae(Te,we.q.Click,ke),Ae(Te,we.q.Search,ke),Ae(Te,we.q.InstantSearch,ke),Ae(Te,we.q.Play,ke),Ae(Te,we.q.Stream,ke),Ae(Te,we.q.StreamRaw,Ce),Ae(Te,we.q.StreamProgress,ke),Ae(Te,we.q.Rename,ke),Ae(Te,we.q.Move,ke),Ae(Te,we.q.Create,ke),Ae(Te,we.q.Delete,ke),Ae(Te,we.q.Associate,ke),Ae(Te,we.q.Dissociate,ke),Ae(Te,we.q.Filter,ke),Ae(Te,we.q.Sort,ke),Ae(Te,we.q.Approve,ke),Ae(Te,we.q.Reject,ke),Ae(Te,we.q.Disable,ke),Ae(Te,we.q.Upload,ke),Ae(Te,we.q.Download,Ce),Ae(Te,we.q.SetAccess,ke),Ae(Te,we.q.AddToLocalCache,Ce),Ae(Te,we.q.Share,ke),Ae(Te,we.q.Edit,ke),Ae(Te,we.q.Suggest,ke),Ae(Te,we.q.ResolveWarning,ke),Ae(Te,we.q.DismissWarning,ke),Ae(Te,we.q.EditAssoc,ke),Te),Ie=(Ae(xe={},we.q.Search,Ee),Ae(xe,we.q.InstantSearch,Ee),Ae(xe,we.q.Play,Ee),Ae(xe,we.q.Stream,De),Ae(xe,we.q.StreamRaw,Ee),Ae(xe,we.q.StreamProgress,Ee),Ae(xe,we.q.Click,Ee),Ae(xe,we.q.Filter,Ee),Ae(xe,we.q.Sort,Ee),Ae(xe,we.q.SetAccess,Ee),Ae(xe,we.q.Approve,Ee),Ae(xe,we.q.Reject,Ee),Ae(xe,we.q.Create,Ee),Ae(xe,we.q.Delete,Ee),Ae(xe,we.q.Rename,Ee),Ae(xe,we.q.Move,Ee),Ae(xe,we.q.Edit,Ee),Ae(xe,we.q.Share,Ee),Ae(xe,we.q.Disable,Ee),Ae(xe,we.q.Suggest,Ee),Ae(xe,we.q.Upload,Le.getUploadData),Ae(xe,we.q.ResolveWarning,Ee),Ae(xe,we.q.DismissWarning,Ee),xe),Ve=(Ae(je={},we.q.Search,(function(){return"search"})),Ae(je,we.q.InstantSearch,(function(){return"search"})),Ae(je,we.q.Filter,(function(){return"filter"})),Ae(je,we.q.StreamRaw,(function(t){return t.actionContext.entity===we.e.Interactive?we.e.Video:t.actionContext.entity})),je),Me={user:"target_user"},Ue=Ae({},we.q.StreamProgress,!0),Fe={shouldLog:function(t){return!!Ne[t.type](t)},formatData:function(t){var e=Ie[t.type],n=Wt(e)?e(t.data,t):t.data;if(Ue[t.type])return n;var r=t.actionContext.entity;return Wt(Ve[t.type])&&(r=Ve[t.type](t)),Me[r]&&(r=Me[r]),Ae({},r,n)}};var He=n(76);function ze(t){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ge(t,e,n){return e&&qe(t.prototype,e),n&&qe(t,n),t}function We(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ye(t,e)}function Ye(t,e){return(Ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Je(t){var e=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(t){return!1}}();return function(){var n,r=Qe(t);if(e){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){return!e||"object"!==ze(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qe(t){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ze=function(t){We(n,t);var e=Je(n);function n(){return Be(this,n),e.apply(this,arguments)}return Ge(n,[{key:"channelName",get:function(){return a.b.DEFAULT}},{key:"appRoutes",get:function(){return{"":"index","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","error","notFound"]}},{key:"externalRoutes",get:function(){return{logout:"logOut"}}}]),n}(r.a.AppRouter),$e=function(t){We(o,t);var e=Je(o);function o(){return Be(this,o),e.apply(this,arguments)}return Ge(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME},{replace:!0})}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new He.e)}},{key:"notFound",value:function(){var t=this;n.e(51).then(n.bind(null,1391)).then((function(e){var n=e.NotFoundView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var t=this;n.e(50).then(n.bind(null,1392)).then((function(e){var n=e.ErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var t=this;n.e(70).then(n.bind(null,1393)).then((function(e){var n=e.DevErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.DEFAULT,showFullHeader:!1,showTopNav:!1,allowBanner:!1}}}},{key:"channelName",get:function(){return a.b.DEFAULT}}],[{key:"router",get:function(){return Ze}}]),o}(r.a.Application),Xe=n(88),tn=n(12),en=n(183),nn=n(64);var rn=n(210);function on(t){return function(e,n){var o=b.a.getInstance(a.g.User),c=b.a.getInstance(a.g.Config);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.contains(t,o.get("role"))?n(e):c.getConfig((function(e){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new rn.a(t,e.get("onlineUrl")))}))}))}}function an(t,e){var n=b.a.getInstance(a.g.User),o=b.a.getInstance(a.g.Config);n.getCurrentUser((function(n){b.a.releaseInstance(a.g.User),n.get("emailVerified")?e(t):o.getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new He.b(t.get("onlineUrl")))}))}))}var cn=n(6);function un(t,e){if(oe.a.isDevelopment)e(t);else{var n=b.a.getInstance(a.g.Settings);b.a.getInstance(a.g.User).getCurrentUser((function(o){b.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),cn.m.CustomLibrariesBetaAccess,(function(n){(b.a.releaseInstance(a.g.Settings),n.get("value"))?e(t):b.a.getInstance(a.g.Config).getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new He.d(t.get("marketingSiteUrl")))}))}))}))}}var sn=n(47),ln=n(54),fn=n(277);function pn(t,e){b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(n){if(b.a.releaseInstance(a.g.MigrationVideo),ln.a.noPublisher(n))return r.a.ErrorHelper.throw(new He.e),void r.a.AppLinkUtility.routingEnded();var o=ln.a.isInitialMigration(n),c=[a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.BACKUP_DOWNLOAD,a.a.MigrationWizard.START_MIGRATION];if(!o&&i.contains(c,t.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new fn.a);var u=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(ln.a.backupNotStarted(n)&&!i.contains(u,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var s=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(o&&ln.a.backupProcessing(n)&&!i.contains(s,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.START_MIGRATION,a.a.MigrationWizard.SMART,a.a.MigrationWizard.SEARCH,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.VIDEOS_ADDED,a.a.MigrationWizard.PROGRESS,a.a.MigrationWizard.HOME];if(o&&ln.a.backupComplete(n)&&!i.contains(l,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();e(t)}))}function yn(t,e){oe.a.isDevelopment?e(t):b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(n){if(b.a.releaseInstance(a.g.MigrationVideo),ln.a.isCurrentlyMigratingAll(n)&&t.application!==a.b.MIGRATION_WIZARD&&t.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[n.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(ln.a.isInitialMigration(n)&&t.application!==a.b.MIGRATION_WIZARD)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME},{replace:!0}),void r.a.AppLinkUtility.routingEnded();var o=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(ln.a.isPublishingLibraries(n)&&!i.contains(o,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS},{replace:!0}),void r.a.AppLinkUtility.routingEnded();e(t)}))}var hn=function(){var t=docCookies.getItem("clear-video-cache");t&&(b.a.getInstance(a.g.Video).clearVideoCache(),b.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",t))};function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mn(t,e,n){return e&&vn(t.prototype,e),n&&vn(t,n),t}function gn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sn(t,e)}function Sn(t,e){return(Sn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function On(t){var e=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(t){return!1}}();return function(){var n,r=kn(t);if(e){var o=kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wn(this,n)}}function wn(t,e){return!e||"object"!==dn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function kn(t){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cn=function(t){gn(n,t);var e=On(n);function n(){return bn(this,n),e.apply(this,arguments)}return mn(n,[{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}},{key:"appRoutes",get:function(){return{"manage/libraries(/)":"index","manage/libraries/:id(/)":"library","manage/libraries/folders/:id(/)":"folder","manage/libraries/series/:id(/)":"series","manage/libraries/videos/:id(/)":"videoDetails","manage/libraries/videos/:id/edit(/)":"editVideo","manage/libraries/videos/:id/edit/chapters(/)":"editVideoChapters","manage/libraries/videos/:id/edit/resources(/)":"editVideoResources"}}},{key:"appLinks",get:function(){return["newFolder","newSubFolder","renameFolder","moveFolder","deleteFolder","shareVideo","deleteVideos","moveVideos","manageVideoAccess","newLibrary","renameLibrary","deleteLibrary","editResource","uploadThumbnail","uploadBanner","downloadVideo","generatePdf","makeLibraryAvailable","downloadToLocalCache","suggestAnEdit","showPublisherVideo","editFolderImages","editLink","addToExchange"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,yn]}}]),n}(r.a.AppRouter),En=function(t){gn(o,t);var e=On(o);function o(){return bn(this,o),e.apply(this,arguments)}return mn(o,[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(m.a.Library,this),b.a.getInstance(m.b.VideoDragDrop,this),b.a.getInstance(m.b.FolderDragDrop,this),this.pageVisibilityService=b.a.getInstance(m.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(t){t||hn()})),hn()}},{key:"index",value:function(){var t=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(e){var o=e.first();o?(t.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:t.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(t.renderLeftNav(),n.e(72).then(n.bind(null,1394)).then((function(e){var n=new(0,e.NoLibraryView);t.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(t){var e=this;this.libraryDataService.deselectAll(),this.renderLeftNav(t),n.e(26).then(n.bind(null,1446)).then((function(n){var r=new(0,n.LibraryView)({libraryId:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(t),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1439)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new en.a(t,tn.p.GetSortTypeFromName(o),e.cursor),analyticsOptions:{entity:we.e.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(e){var n=sn.a.getLibrary(t,e);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(40)]).then(n.bind(null,1395)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:t,analyticsOptions:{location:we.k.Popup,actionType:we.q.Rename,entity:we.e.Folder,workflowPhase:we.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1396)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:t,analyticsOptions:{location:we.k.Popup,actionType:we.q.Move,entity:we.e.Folder,workflowPhase:we.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1397)).then((function(e){var n=new(0,e.NewFolderView)({libraryId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:we.k.Popup,actionType:we.q.Create,entity:we.e.Folder,workflowPhase:we.r.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"newSubFolder",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1397)).then((function(e){var n=new(0,e.NewFolderView)({parentId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:we.k.Popup,actionType:we.q.Create,entity:we.e.Folder,workflowPhase:we.r.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteFolder",value:function(t){var e=this;n.e(65).then(n.bind(null,1398)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:t,analyticsOptions:{location:we.k.Popup,actionType:we.q.Delete,entity:we.e.Folder,workflowPhase:we.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new en.a(t,tn.p.GetSortTypeFromName(o),e.cursor);Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1439)).then((function(t){var e=new(0,t.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:we.e.Series}});r.layout.showChildView(a.n.CONTENT,e)})),this.renderLeftNav()}},{key:"moveVideos",value:function(t,e){var r=this,o=t.split(",");Promise.all([n.e(0),n.e(33)]).then(n.bind(null,1399)).then((function(t){var n=new(0,t.MoveVideoView)({videoIds:o,folderId:e,analyticsOptions:{descriptor:o.length>1?we.l.Bulk:we.l.Single,location:we.k.Popup,actionType:we.q.Move,entity:we.e.Video,workflowPhase:we.r.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(t,e,r){var o=this;n.e(66).then(n.bind(null,1400)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:t,videoIds:e.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:e.length>1?we.l.Bulk:we.l.Single,location:we.k.Popup,actionType:we.q.Delete,entity:we.e.Video,workflowPhase:we.r.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(t,e){var r=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(25)]).then(n.bind(null,1442)).then((function(e){var n=new(0,e.VideoDetailsView)({videoId:t});r.layout.showChildView(a.n.CONTENT,n)})),this.renderLeftNav()}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1451)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1443)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"editVideo",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},we.k.EditVideoDetails),Promise.all([n.e(9),n.e(13),n.e(27)]).then(n.bind(null,1440)).then((function(n){var r=new(0,n.EditVideoView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},we.k.EditVideoChapters),Promise.all([n.e(2),n.e(1),n.e(30)]).then(n.bind(null,1401)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},we.k.EditVideoResources),n.e(23).then(n.bind(null,1437)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(t,e){var r=this;n.e(35).then(n.bind(null,1402)).then((function(n){var o=new(0,n.EditResourceView)({videoId:t,resourceId:e,analyticsOptions:{location:we.k.Popup,actionType:we.q.Edit,entity:we.e.Resource,workflowPhase:we.r.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var t=this;n.e(36).then(n.bind(null,1403)).then((function(e){var n=new(0,e.NewLibraryView)({});t.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(t){var e=this;n.e(64).then(n.bind(null,1404)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:t,analyticsOptions:{location:we.k.Popup,actionType:we.q.Rename,entity:we.e.Library,workflowPhase:we.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(t){var e=this;n.e(71).then(n.bind(null,1405)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:t,analyticsOptions:{location:we.k.Popup,actionType:we.q.Delete,entity:we.e.Library,workflowPhase:we.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1406)).then((function(e){var n=new(0,e.GeneratePdfView)({collectionIdentifier:new en.a(t,tn.p.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(t){var e=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1407)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(t){var e=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1408)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1409)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(t){var e=this;n.e(69).then(n.bind(null,1411)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(17).then(n.bind(null,1412)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({masterId:t}))}))}},{key:"editFolderImages",value:function(t){var e=this;Promise.all([n.e(11),n.e(37)]).then(n.bind(null,1447)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(t){var e=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,1448)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:t});e.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(t,e){var r=this;Promise.all([n.e(9),n.e(38)]).then(n.bind(null,1441)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:t,metadata:e.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(t,e){var r=this;n.e(34).then(n.bind(null,1413)).then((function(n){var o=new(0,n.EditLinkView)({videoId:t,linkId:e,analyticsOptions:{location:we.k.Popup,actionType:we.q.Edit,entity:we.e.Link,workflowPhase:we.r.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1414)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(t,e){T.a.logUserAction(t,{actionType:we.q.Edit,location:e,entity:we.e.Video,descriptor:we.m.PageLoad,workflowPhase:we.r.Start})}},{key:"name",get:function(){return"Library Editor Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.LIBRARY_EDITOR,showLeftNav:!0,selectedNavItem:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME}}}}},{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}}],[{key:"router",get:function(){return Cn}}]),o}(r.a.Application),Rn=n(112);function _n(t){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xn(t,e,n){return e&&Tn(t.prototype,e),n&&Tn(t,n),t}function jn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dn(t,e)}function Dn(t,e){return(Dn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ln(t){var e=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(t){return!1}}();return function(){var n,r=Nn(t);if(e){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return An(this,n)}}function An(t,e){return!e||"object"!==_n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var In=function(t){jn(n,t);var e=Ln(n);function n(){return Pn(this,n),e.apply(this,arguments)}return xn(n,[{key:"channelName",get:function(){return a.b.SEARCH}},{key:"appRoutes",get:function(){return{"manage/search(/)":"index"}}},{key:"appLinks",get:function(){return["shareVideo","manageVideoAccess","downloadVideo","makeLibraryAvailable","addToExchange"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,yn]}}]),n}(r.a.AppRouter),Vn=function(t){jn(r,t);var e=Ln(r);function r(){return Pn(this,r),e.apply(this,arguments)}return xn(r,[{key:"index",value:function(t){var e=this;if(Xe.a.fromPageLoad()){var r=t&&t.query;this.logSearch(r)}Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(21)]).then(n.bind(null,1449)).then((function(n){var r=new(0,n.SearchView)({queryParams:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1451)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1443)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1409)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(t){if(t){var e=T.a.buildSearchEvent(t,we.m.PageLoad),n=e.data,r=e.action;Rn.a.log(we.q.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1414)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.SEARCH}}}},{key:"channelName",get:function(){return a.b.SEARCH}}],[{key:"router",get:function(){return In}}]),r}(r.a.Application);function Mn(t){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hn(t,e,n){return e&&Fn(t.prototype,e),n&&Fn(t,n),t}function zn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bn(t,e)}function Bn(t,e){return(Bn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qn(t){var e=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(t){return!1}}();return function(){var n,r=Wn(t);if(e){var o=Wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gn(this,n)}}function Gn(t,e){return!e||"object"!==Mn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wn(t){return(Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yn=function(t){zn(n,t);var e=qn(n);function n(){return Un(this,n),e.apply(this,arguments)}return Hn(n,[{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}},{key:"appRoutes",get:function(){return{"manage/video-access(/)":"index"}}},{key:"appLinks",get:function(){return["manageVideoAccess","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,yn]}}]),n}(r.a.AppRouter),Jn=function(t){zn(r,t);var e=qn(r);function r(){return Un(this,r),e.apply(this,arguments)}return Hn(r,[{key:"index",value:function(t){var e=this,r=i.isNaN(+t.page)?"1":t.page;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(24)]).then(n.bind(null,1415)).then((function(t){var n=t.RestrictedVideoListView;e.layout.showChildView(d.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1443)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(d.a.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"name",get:function(){return"VideoAccessApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.VIDEO_ACCESS,selectedNavItem:{application:a.b.VIDEO_ACCESS,action:a.a.VideoAccess.HOME}}}}},{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}}],[{key:"router",get:function(){return Yn}}]),r}(r.a.Application);function Kn(t){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $n(t,e,n){return e&&Zn(t.prototype,e),n&&Zn(t,n),t}function Xn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tr(t,e)}function tr(t,e){return(tr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function er(t){var e=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(t){return!1}}();return function(){var n,r=rr(t);if(e){var o=rr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nr(this,n)}}function nr(t,e){return!e||"object"!==Kn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rr(t){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var or=function(t){Xn(n,t);var e=er(n);function n(){return Qn(this,n),e.apply(this,arguments)}return $n(n,[{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}},{key:"appRoutes",get:function(){return{"manage/staff-requests(/)":"index","manage/staff-requests/:id(/)":"editRequest"}}},{key:"appLinks",get:function(){return["approveRequest","rejectRequest","newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,(t=[{name:cn.m.StaffRequest,value:cn.o.StaffRequest}],function(e,n){var o=b.a.getInstance(a.g.User),i=b.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){b.a.releaseInstance(a.g.Settings);var i=!1;t.forEach((function(t){var e=o.findWhere({name:t.name});if(!e||e.get("value")!==t.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new He.a(t.name))})),i||n(e)}))}))}),yn];var t}}]),n}(r.a.AppRouter),ir=function(t){Xn(r,t);var e=er(r);function r(){return Qn(this,r),e.apply(this,arguments)}return $n(r,[{key:"index",value:function(){var t=this;Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1444)).then((function(e){var n=e.StaffRequestsView;t.layout.showChildView(d.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(t,e){var r=this;e=e||{},Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1444)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(d.a.CONTENT,new o({requestId:t,referrer:e.referrer}))}))}},{key:"approveRequest",value:function(t,e,r){var o=this;this.editRequest(t),t&&e&&r&&n.e(68).then(n.bind(null,1416)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(d.a.POPUP,new i({requestId:t,libraryId:e,folderId:r}))}))}},{key:"rejectRequest",value:function(t){var e=this;this.editRequest(t),n.e(60).then(n.bind(null,1417)).then((function(n){var r=n.RejectStaffRequestView;e.layout.showChildView(d.a.POPUP,new r({requestId:t}))}))}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1397)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});e.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"name",get:function(){return"StaffRequestsApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.STAFF_REQUESTS,selectedNavItem:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.HOME}}}}},{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}}],[{key:"router",get:function(){return or}}]),r}(r.a.Application),ar=n(275),cr=n(25);function ur(t){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fr(t,e,n){return e&&lr(t.prototype,e),n&&lr(t,n),t}function pr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hr(t){var e=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(t){return!1}}();return function(){var n,r=br(t);if(e){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dr(this,n)}}function dr(t,e){return!e||"object"!==ur(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vr=function(t){pr(n,t);var e=hr(n);function n(){return sr(this,n),e.apply(this,arguments)}return fr(n,[{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"manage/content-updates(/)":"index","manage/content-updates/awaiting-review(/)":"awaitingReview","manage/content-updates/past-releases(/)":"pastReleases"}}},{key:"appLinks",get:function(){return["shareVideo","disableReview","generatePdf","manageVideoAccess","addToLibrary","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([cn.q.Admin]),an,yn]}}]),n}(r.a.AppRouter),mr=function(t){pr(o,t);var e=hr(o);function o(){return sr(this,o),e.apply(this,arguments)}return fr(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:this.channelName,action:a.a.ContentUpdates.AWAITING_REVIEW},{replace:!0})}},{key:"awaitingReview",value:function(){var t=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(22)]).then(n.bind(null,1418)).then((function(e){var n=e.AwaitingReviewView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(t){var e,r,o,c=this,u=t[cr.a.ReleaseDate]||ar.e.queryString,s=(e={},r=cr.a.ReleaseDate,o=u,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e);this.setDefaultQueryParams(s),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(20)]).then(n.bind(null,1445)).then((function(e){var n=e.PastReleasesView;c.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},t,s)}))}))}},{key:"generatePdf",value:function(t){var e=this;n.e(43).then(n.bind(null,1419)).then((function(n){var r=n.GeneratePastReleasesPdfView;e.layout.showChildView(a.n.POPUP,new r({librariesQueryString:t[cr.a.Libraries],dateQueryString:t[cr.a.ReleaseDate],subjectQueryString:t[cr.a.Subjects]}))}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1451)).then((function(n){var r=n.ShareView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"disableReview",value:function(){var t=this;n.e(63).then(n.bind(null,1420)).then((function(e){var n=e.DisableReviewView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1443)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"addToLibrary",value:function(t){var e=this;Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1421)).then((function(n){var r=n.AddToLibraryView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=e.PublishLibraryView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"name",get:function(){return"ContentUpdatesApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.CONTENT_UPDATES,selectedNavItem:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW}}}}},{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}}],[{key:"router",get:function(){return vr}}]),o}(r.a.Application);function gr(t){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wr(t,e,n){return e&&Or(t.prototype,e),n&&Or(t,n),t}function kr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cr(t,e)}function Cr(t,e){return(Cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Er(t){var e=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(t){return!1}}();return function(){var n,r=_r(t);if(e){var o=_r(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}function Rr(t,e){return!e||"object"!==gr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _r(t){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pr=function(t){kr(n,t);var e=Er(n);function n(){return Sr(this,n),e.apply(this,arguments)}return wr(n,[{key:"channelName",get:function(){return a.b.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"manage/notifications(/)":"index"}}},{key:"appLinks",get:function(){return["makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,yn]}}]),n}(r.a.AppRouter),Tr=function(t){kr(r,t);var e=Er(r);function r(){return Sr(this,r),e.apply(this,arguments)}return wr(r,[{key:"index",value:function(t){var e=this;n.e(49).then(n.bind(null,1422)).then((function(n){var r=n.NotificationsView;e.layout.showChildView(a.n.CONTENT,new r({params:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.NOTIFICATIONS}}}},{key:"channelName",get:function(){return a.b.NOTIFICATIONS}}],[{key:"router",get:function(){return Pr}}]),r}(r.a.Application);function xr(t){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lr(t,e,n){return e&&Dr(t.prototype,e),n&&Dr(t,n),t}function Ar(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nr(t,e)}function Nr(t,e){return(Nr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ir(t){var e=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(t){return!1}}();return function(){var n,r=Mr(t);if(e){var o=Mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}function Vr(t,e){return!e||"object"!==xr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mr(t){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ur=function(t){Ar(n,t);var e=Ir(n);function n(){return jr(this,n),e.apply(this,arguments)}return Lr(n,[{key:"channelName",get:function(){return a.b.UPLOAD}},{key:"appRoutes",get:function(){return{"manage/upload(/)":"fileSelection","manage/upload/details(/)":"uploadDetails","manage/upload/complete(/)":"uploadComplete"}}},{key:"appLinks",get:function(){return["newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,yn]}}]),n}(r.a.AppRouter),Fr=function(t){Ar(r,t);var e=Ir(r);function r(){return jr(this,r),e.apply(this,arguments)}return Lr(r,[{key:"initialize",value:function(){this.videoUploadService=b.a.getInstance(a.x.VideoUpload,this)}},{key:"fileSelection",value:function(){var t=this;n.e(61).then(n.bind(null,1423)).then((function(e){var n=new(0,e.FileSelectView);t.layout.showChildView(d.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(t){var e=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(13),n.e(29)]).then(n.bind(null,1438)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:t.folderId,analyticsOptions:{actionType:we.q.Upload,entity:we.e.Video,location:we.k.VideoUpload}});e.layout.showChildView(d.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var t=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1424)).then((function(e){var n=new(0,e.UploadCompleteView);t.layout.showChildView(d.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1397)).then((function(e){var n=new(0,e.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});r.layout.showChildView(d.a.POPUP,n)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.UPLOAD}}}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return a.b.UPLOAD}}],[{key:"router",get:function(){return Ur}}]),r}(r.a.Application),Hr=n(3),zr=/^clickviewactasuser.*/i,Br={handleMismatch:function(){b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(t){(b.a.releaseInstance(a.g.MigrationVideo),ln.a.isInitialMigration(t))&&(t.keyContact&&t.keyContact.get("fullName")&&(zr.test(t.keyContact.get("username"))||b.a.getInstance(a.g.User).getCurrentUser((function(e){b.a.releaseInstance(a.g.User),t.keyContact.get("userId")!==e.get("id")&&Br.showDialog(t)}))))}))},showDialog:function(t){new tn.d({title:Hr.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:Hr.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:t.keyContact.get("fullName")}),buttons:[{text:Hr.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:Hr.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){b.a.getInstance(a.g.Config).getConfig((function(t){b.a.releaseInstance(a.g.Config),window.location=t.get("onlineUrl")}))}))}};function qr(t){return(qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yr(t,e,n){return e&&Wr(t.prototype,e),n&&Wr(t,n),t}function Jr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kr(t,e)}function Kr(t,e){return(Kr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qr(t){var e=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(t){return!1}}();return function(){var n,r=$r(t);if(e){var o=$r(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zr(this,n)}}function Zr(t,e){return!e||"object"!==qr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $r(t){return($r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xr=function(t){Jr(n,t);var e=Qr(n);function n(){return Gr(this,n),e.apply(this,arguments)}return Yr(n,[{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}},{key:"appRoutes",get:function(){return{"manage/publisher-archive(/)":"index","manage/publisher-backup(/)":"backupWelcome","manage/publisher-backup/download(/)":"backupDownload","manage/publisher-archive/migrate(/)":"startMigration","manage/publisher-archive/search(/)":"search","manage/publisher-archive/folders/:id(/)":"folder","manage/publisher-archive/progress/:id(/)":"progress","manage/publish-library/progress":"publishLibraryProgress","manage/manual-review":"migrationErrors"}}},{key:"appLinks",get:function(){return["backupProgress","backupComplete","publishLibraryComplete","smart","selected","videosAdded","showPublisherVideo","makeLibraryAvailable","remigrateVideo","generateCsvReport"]}},{key:"filters",get:function(){return oe.a.isDevelopment?[an]:[un,an,pn]}}]),n}(r.a.AppRouter),to=function(t){Jr(o,t);var e=Qr(o);function o(){return Gr(this,o),e.apply(this,arguments)}return Yr(o,[{key:"initialize",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"index",value:function(t){t.folder?this.folder(t.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var t=this;n.e(57).then(n.bind(null,1425)).then((function(e){var n=e.PublisherBackupWelcomeView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var t=this;n.e(58).then(n.bind(null,1426)).then((function(e){var n=e.PublisherBackupView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var t=this;n.e(41).then(n.bind(null,1427)).then((function(e){var n=e.PublisherBackupProgressView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var t=this;n.e(56).then(n.bind(null,1428)).then((function(e){var n=e.PublisherBackupCompleteView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var t=this;n.e(46).then(n.bind(null,1429)).then((function(e){var n=e.StartView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(t){this.migrationVideoDataService.setSelected(t),this.renderSmartMigration(t)}},{key:"search",value:function(t){this.renderSmartMigration(void 0,t.term)}},{key:"progress",value:function(t,e){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1430)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"videosAdded",value:function(t,e){var r=this;n.e(59).then(n.bind(null,1431)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"selected",value:function(t){var e=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1432)).then((function(n){var r=n.SelectedVideosView;e.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:t}))}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(17).then(n.bind(null,1412)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({trackingCode:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1410)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(t,e,r){var o=this;n.e(67).then(n.bind(null,1433)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:t,masterId:e,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var t=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1452)).then((function(e){var n=new(0,e.PublishLibraryProgressView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var t=this;n.e(54).then(n.bind(null,1434)).then((function(e){var n=new(0,e.PublishLibraryCompleteView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var t=this;Promise.all([n.e(2),n.e(1),n.e(6),n.e(28)]).then(n.bind(null,1436)).then((function(e){var n=new(0,e.MigrationErrorView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(t){var e=this;n.e(47).then(n.bind(null,1435)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:t.options});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(6),n.e(42)]).then(n.bind(null,1450)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:t,searchTerm:e});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var t=this;this.layoutLoaded||Br.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(e){ln.a.isInitialMigration(e)||(ln.a.isCurrentlyMigratingAll(e)?Promise.resolve().then(n.bind(null,558)).then((function(e){var n=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,558)).then((function(e){var r=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,559)).then((function(e){var n=e.TopNavigationView;t.layout.showChildView(a.n.TOP_NAV,new n({selected:{application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.HOME}}))}))})))}))}},{key:"name",get:function(){return"MigrationWizardApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.MIGRATION_WIZARD,showFullHeader:!1,centredContent:!0,showTopNav:!1,allowFileDrop:!1}}}},{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}}],[{key:"router",get:function(){return Xr}}]),o}(r.a.Application);var eo=n(114),no=n(57),ro=n(10);function oo(t){return(oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function io(t){return function(t){if(Array.isArray(t))return ao(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ao(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ao(t,e)}(t)||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 ao(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function co(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uo(t,e){return(uo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function so(t){var e=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(t){return!1}}();return function(){var n,r=fo(t);if(e){var o=fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lo(this,n)}}function lo(t,e){return!e||"object"!==oo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fo(t){return(fo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var po=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uo(t,e)}(a,t);var e,n,r,o=so(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).size=t.size,e.cache={},e.cachedkeys=[],e}return e=a,(n=[{key:"removeCacheKey",value:function(t){this.cachedkeys=i.without(this.cachedkeys,t)}},{key:"has",value:function(t){return!!this.cache[t]}},{key:"get",value:function(t){return this.cache[t]}},{key:"set",value:function(t,e){t&&e||ro.c.throw(new w.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(t)&&this.removeCacheKey(t),this.cachedkeys.push(t),this.cache[t]=e,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(t,e){if(this.has(t))return this.get(t);var n=e();return this.set(t,n),n}},{key:"remove",value:function(t){return!!this.has(t)&&(delete this.cache[t],this.removeCacheKey(t),!0)}},{key:"invalidate",value:function(t,e){var n=this,r=i.object(this.cachedkeys,this.cachedkeys),o=[];i.each(t,(function(t){var e;r[t]&&o.push(t);var n=new RegExp(t,"i"),a=i.filter(r,(function(t){return n.test(t)}));(e=o).push.apply(e,io(a))})),o.length&&(o=i.uniq(o),i.each(o,(function(t){delete n.cache[t],i.isFunction(e)&&e(t)})),this.cachedkeys=i.without.apply(i,[this.cachedkeys].concat(io(o))))}},{key:"name",get:function(){return eo.a.Fifo}}])&&co(e.prototype,n),r&&co(e,r),a}(no.a);var yo,ho=n(141);!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(yo||(yo={}));var bo=n(107),vo=function(t,e,n){if(!n||!n.errorCode)return t[e];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),t[r]||t[e]};function mo(t){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function go(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function So(t,e){return(So=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oo(t){var e=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(t){return!1}}();return function(){var n,r=ko(t);if(e){var o=ko(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wo(this,n)}}function wo(t,e){return!e||"object"!==mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ko(t){return(ko=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Co=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&So(t,e)}(a,t);var e,n,r,o=Oo(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),e.successMiddleware={},e.errorMiddleware={},e.dataServiceErrorMessageMappings=t.dataServiceErrorMessageMappings,e.defaultErrorMessageKey=t.defaultErrorMessageKey,e}return e=a,(n=[{key:"parseUrl",value:function(t){var e=document.createElement("a");return e.href=t,""===e.host&&(e.href=e.href),e}},{key:"makeHttps",value:function(t){var e=this.parseUrl(t);return"http:"===e.protocol&&(e.protocol="https:"),e.href}},{key:"base",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=yo.GET);var o=i.defaults(r,{forceHttps:!1}),a={url:t,method:n,type:n};e&&(a.data=n===yo.POST||n===yo.PUT?JSON.stringify(e):e),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);var c=$.ajax(a);return i.keys(this.successMiddleware).length&&c.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&c.fail(i.values(this.errorMiddleware)),c}},{key:"create",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(t,e,yo.POST).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"read",value:function(t,e){var n=e.channel,r=e.successEvent,o=e.errorEvent;this.base(t,null,yo.GET).done((function(t,e,o){n.trigger(r,t,e,o)})).fail((function(t,e,r){n.trigger(o,t,e,r)}))}},{key:"update",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(t,e,yo.PUT).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"delete",value:function(t,e){var n=e.channel,r=e.successEvent,o=e.errorEvent;this.base(t,null,yo.DELETE).done((function(t,e,o){return n.trigger(r,t,e,o)})).fail((function(t,e,r){return n.trigger(o,t,e,r)}))}},{key:"useMiddleware",value:function(t,e){this.successMiddleware[t]||(this.successMiddleware[t]=e)}},{key:"useErrorMiddleware",value:function(t,e){this.errorMiddleware[t]||(this.errorMiddleware[t]=e)}},{key:"parseError",value:function(t,e,n){var r=t.responseJSON,o=ho.a;switch(o.code=t.status,o.message=vo(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),t.status){case 400:o.type=bo.a.BadRequest;break;case 401:o.type=bo.a.Unauthorized;break;case 403:o.type=bo.a.Forbidden;break;case 404:o.type=bo.a.NotFound;break;case 500:o.type=bo.a.InternalServer}return o}},{key:"name",get:function(){return v.a.Ajax}}])&&go(e.prototype,n),r&&go(e,r),a}(V.Object),Eo=n(171);var Ro=n(50),_o=n(13),Po=n(51),To=n(21),xo=n(20);function jo(t){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Do(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lo(t,e){return(Lo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ao(t){var e=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(t){return!1}}();return function(){var n,r=Io(t);if(e){var o=Io(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return No(this,n)}}function No(t,e){return!e||"object"!==jo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Io(t){return(Io=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lo(t,e)}(n,t);var e=Ao(n);function n(){return Do(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Mo(t){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ho(t,e){return(Ho=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zo(t){var e=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(t){return!1}}();return function(){var n,r=qo(t);if(e){var o=qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bo(this,n)}}function Bo(t,e){return!e||"object"!==Mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qo(t){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Go=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ho(t,e)}(i,t);var e,n,r,o=zo(i);function i(){return Uo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"receiveLatestNotifications",value:function(t){return this.get({callback:t,formatData:function(t){return new Vo(t)},resource:"notify",eventPrefix:"".concat(Po.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(t){return this.get({callback:t,resource:"notifyCount",eventPrefix:"".concat(Po.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return xo.a.NotificationSocket}},{key:"channelName",get:function(){return To.b.NOTIFICATIONS_SOCKET}}])&&Fo(e.prototype,n),r&&Fo(e,r),i}(_o.a),Wo=n(89),Yo=n(117);function Jo(t){return(Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zo(t,e){return(Zo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $o(t){var e=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(t){return!1}}();return function(){var n,r=ti(t);if(e){var o=ti(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xo(this,n)}}function Xo(t,e){return!e||"object"!==Jo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ti(t){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zo(t,e)}(i,t);var e,n,r,o=$o(i);function i(){return Ko(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return Vo}}])&&Qo(e.prototype,n),r&&Qo(e,r),i}(r.a.Collection),ni=n(115);function ri(t){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ai(t,e){return(ai=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ci(t){var e=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(t){return!1}}();return function(){var n,r=si(t);if(e){var o=si(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}function ui(t,e){return!e||"object"!==ri(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function si(t){return(si=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var li=function(t,e){var n="/api/domain/v2/objects/".concat(t,"/notifications?query={orderbydesc:datecreated}");if(!e)return n;var r=e.limit,o=e.cursor,i=e.before,a=[],c=Wo.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},fi=function(t){return"/api/notifications/v1/notifications/".concat(t)},pi="/api/notifications/v1/notifications",yi="/api/domain/v1/notifications",hi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ai(t,e)}(i,t);var e,n,r,o=ci(i);function i(){return oi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getNotifications",value:function(t,e,n,r){return this.get({resource:li(t,e),expiryTime:ni.a.STANDARD,eventPrefix:n,formatData:function(t){return new ei(t,{parse:!0})},callback:r})}},{key:"markRead",value:function(t,e){return this.update({callback:e,data:{notificationStatus:Yo.a.Read},resource:fi(t),eventPrefix:"".concat(Po.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(t){var e=ye().utc().toISOString();return this.update({callback:t,data:{notificationStatus:Yo.a.Seen},resource:"".concat(pi,"?to=").concat(e,"¬ificationStatus=").concat(Yo.a.Received),eventPrefix:"".concat(Po.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(t){return this.getCursors(t)}},{key:"suggestEdit",value:function(t,e){return this.create({resource:"".concat(yi),eventPrefix:"".concat(Po.a.SUGGEST_EDIT),callback:e,data:t,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return xo.a.Notification}},{key:"channelName",get:function(){return To.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&ii(e.prototype,n),r&&ii(e,r),i}(_o.a),di="locale",bi="phrases";function vi(t){return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Si(t,e){return(Si=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oi(t){var e=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(t){return!1}}();return function(){var n,r=ki(t);if(e){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wi(this,n)}}function wi(t,e){return!e||"object"!==vi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ki(t){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ci=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Si(t,e)}(a,t);var e,n,r,o=Oi(a);function a(){return mi(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"getLanguageConfig",value:function(t){var e={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:Po.a.LOCALE,expiryTime:ni.a.STANDARD,bootstrapName:di,callback:function(n){e.locale=n,e.phrases&&i.isFunction(t)&&t(e)}}),this.get({resource:"/api/phrases",eventPrefix:Po.a.PHRASES,expiryTime:ni.a.STANDARD,bootstrapName:bi,callback:function(n){e.phrases=n,e.locale&&i.isFunction(t)&&t(e)}})}},{key:"name",get:function(){return xo.a.Language}},{key:"channelName",get:function(){return To.b.LANGUAGE}}])&&gi(e.prototype,n),r&&gi(e,r),a}(_o.a),Ei=n(14),Ri=n(98),_i=n.n(Ri),Pi=n(518),Ti=n.n(Pi);function xi(t){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ji(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Di(t,e){return(Di=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Li(t){var e=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(t){return!1}}();return function(){var n,r=Ni(t);if(e){var o=Ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ai(this,n)}}function Ai(t,e){return!e||"object"!==xi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ni(t){return(Ni=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ii=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Di(t,e)}(a,t);var e,n,r,i=Li(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"events",value:function(){return{"click .close":"onClickClose","click a":"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}}},{key:"onClick",value:function(){return this.forceFade=!0,this.triggerRemoval(),!0}},{key:"onClickClose",value:function(t){return t.stopPropagation(),this.forceFade=!0,this.triggerRemoval(),!1}},{key:"onMouseEnter",value:function(){this.forceFade||this.clearTimeout()}},{key:"onMouseLeave",value:function(){this.forceFade||this.startTimeout()}},{key:"removeAlert",value:function(){this.clearingTimeout&&o.Radio.channel(this.options.channelName).trigger("remove:alert",this.model.get("id"))}},{key:"triggerRemoval",value:function(){var t=this;return this.$el.addClass(_i.a.removing),this.$el.addClass(_i.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return t.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var t=this,e=this.model.get("timeout")||this.options.timeout;e&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return t.triggerRemoval()}),e))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(_i.a.removing),this.$el.removeClass(_i.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case Ro.a.Success:return Ei.a.getSvg(Ei.b.CheckCircleOutline);case Ro.a.Fail:case Ro.a.Warning:return Ei.a.getSvg(Ei.b.Warning);case Ro.a.Info:default:return Ei.a.getSvg(Ei.b.Info)}}},{key:"getTypeClass",value:function(){var t=this.model.get("type").toLowerCase();return"text-".concat(t)}},{key:"viewOptions",value:function(){return{styles:_i.a,typeSvg:this.getTypeSvg(),svgClass:this.getTypeClass()}}},{key:"onRender",value:function(){this.resetClassName(),this.startTimeout()}},{key:"onBeforeDestroy",value:function(){this.removeAlertFadeClasses()}},{key:"name",get:function(){return"AlertItemComponent"}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){return"bg-white mt-2 p-2 ".concat(_i.a.alertItem," show clearfix")}},{key:"template",get:function(){return Ti.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&ji(e.prototype,n),r&&ji(e,r),a}(r.a.Component);function Vi(t){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fi(t,e){return(Fi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hi(t){var e=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(t){return!1}}();return function(){var n,r=Bi(t);if(e){var o=Bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zi(this,n)}}function zi(t,e){return!e||"object"!==Vi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bi(t){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qi,Gi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fi(t,e)}(i,t);var e,n,r,o=Hi(i);function i(){return Mi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(_i.a.alertList," alert-list")}},{key:"channelName",get:function(){return k.a.ALERT}},{key:"childView",get:function(){return Ii}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Ui(e.prototype,n),r&&Ui(e,r),i}(r.a.ComponentCollection);function Wi(t){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ji(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ki(t,e,n){return(Ki="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xi(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Qi(t,e){return(Qi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zi(t){var e=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(t){return!1}}();return function(){var n,r=Xi(t);if(e){var o=Xi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $i(this,n)}}function $i(t,e){return!e||"object"!==Wi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xi(t){return(Xi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.Success="Success! 🙌",t.Warning="Whoops...",t.Fail="Oops...",t.Info="FYI"}(qi||(qi={}));var ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qi(t,e)}(i,t);var e,n,r,o=Zi(i);function i(){return Yi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"success",value:function(t){return Ki(Xi(i.prototype),"success",this).call(this,t)}},{key:"error",value:function(t){return Ki(Xi(i.prototype),"error",this).call(this,t)}},{key:"name",get:function(){return a.x.Alerts}}])&&Ji(e.prototype,n),r&&Ji(e,r),i}(Ro.b),ea=n(180),na=n(129),ra=n(223),oa=n(15);function ia(t){return(ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ua(t,e){return(ua=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sa(t){var e=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(t){return!1}}();return function(){var n,r=fa(t);if(e){var o=fa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return la(this,n)}}function la(t,e){return!e||"object"!==ia(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fa(t){return(fa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ua(t,e)}(i,t);var e,n,r,o=sa(i);function i(){return aa(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getCustomer",value:function(t,e){return this.get({resource:"/api/domain/v2/objects/".concat(t),formatData:function(t){return new ra.a(t)},eventPrefix:a.f.CUSTOMER,expiryTime:oa.a.STANDARD,callback:e})}},{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}}])&&ca(e.prototype,n),r&&ca(e,r),i}(_o.a);function ya(t){return(ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ha(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function da(t,e){return(da=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ba(t){var e=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(t){return!1}}();return function(){var n,r=ma(t);if(e){var o=ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return va(this,n)}}function va(t,e){return!e||"object"!==ya(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ma(t){return(ma=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ga=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&da(t,e)}(n,t);var e=ba(n);function n(){return ha(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Sa(t){return(Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ka(t,e){return(ka=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ca(t){var e=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(t){return!1}}();return function(){var n,r=Ra(t);if(e){var o=Ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ea(this,n)}}function Ea(t,e){return!e||"object"!==Sa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ra(t){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _a=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ka(t,e)}(i,t);var e,n,r,o=Ca(i);function i(){return Oa(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return ga}}])&&wa(e.prototype,n),r&&wa(e,r),i}(r.a.Collection);function Pa(t){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ta(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ja(t,e){return(ja=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Da(t){var e=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(t){return!1}}();return function(){var n,r=Aa(t);if(e){var o=Aa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return La(this,n)}}function La(t,e){return!e||"object"!==Pa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Aa(t){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Na=function(t,e){var n="/api/domain/v3/settings/".concat(t);return cn.l[e]&&(n+="?kind=".concat(e)),n},Ia=function(t){return"/api/domain/v3/settings/".concat(t)},Va=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ja(t,e)}(c,t);var e,n,r,o=Da(c);function c(){return Ta(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"getSetting",value:function(t,e,n){var r=i.isFunction(n)?function(t){var r=t.findWhere({name:e});i.isFunction(n)&&n(r)}:null,o=this.getSettings(t,null,r);return o?o.findWhere({name:e}):null}},{key:"getSettings",value:function(t,e,n){return this.get({callback:n,resource:Na(t,e),formatData:function(t){return new _a(t)},eventPrefix:a.f.SETTINGS,expiryTime:oa.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(t,e,n,r){return this.update({callback:r,resource:Ia(t),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(cn.m.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:e,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return m.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}}])&&xa(e.prototype,n),r&&xa(e,r),c}(_o.a),Ma=n(131),Ua=n(91),Fa=n(83);function Ha(t){return(Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function za(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ba(t,e){return(Ba=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qa(t){var e=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(t){return!1}}();return function(){var n,r=Wa(t);if(e){var o=Wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ga(this,n)}}function Ga(t,e){return!e||"object"!==Ha(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wa(t){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ya=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ba(t,e)}(n,t);var e=qa(n);function n(){return za(this,n),e.apply(this,arguments)}return n}(r.a.Model),Ja=n(170),Ka=n(48),Qa=n(137),Za=n(31),$a=n(283);function Xa(t){return(Xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ec(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nc(t,e){return(nc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rc(t){var e=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(t){return!1}}();return function(){var n,r=ic(t);if(e){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(t,e){return!e||"object"!==Xa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ic(t){return(ic=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ac=function(t,e,n){var r=["query={status:[1,5],".concat(e,"}").concat(Ja.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(t,"/videos?").concat(r.join("&"))},cc=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(Ja.a.VIDEO)},uc=function(t){return"/api/domain/v2/objects/".concat(t)},sc=function(){return"/api/domain/v2/objects/move"},lc=function(){return"/api/domain/v1/share"},fc=function(t){return"/api/domain/v1/videos?ids=".concat(t.join(","),"&with=categories")},pc=function(t,e,n){var r=n.map((function(t){return"videoIds=".concat(t)}));return"/api/domain/v1/libraries/".concat(t,"/videos?categoryId=").concat(e,"&").concat(r.join("&"))},yc=function(t){return"/api/domain/v2/objects/".concat(t,"/thumbnail")},hc=function(t,e){return"/api/domain/v2/objects/".concat(t,"/thumbnail/").concat(e)},dc=function(t,e,n){return"/api/domain/v2/objects/".concat(t,"/").concat(e,"?").concat(Sc.getDissocIds(n))},bc=function(t){return"/api/domain/v2/videos/".concat(t,"/copy")},vc=function(t){return"/api/domain/v2/objects/".concat(t,"/libraries")},mc=function(){return"/api/domain/v1/staffrequests"},gc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nc(t,e)}(s,t);var e,n,c,u=rc(s);function s(){return tc(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(m.b.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([Za.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(t,e){var n=this,r=tn.p.GetFilterFromSort(t.sort),o=ac(t.id,r,t.cursor);return this.get({resource:o,formatData:function(t){return new Ka.a(t,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)},expiryTime:oa.a.STANDARD,eventPrefix:t.toString()})}},{key:"getSeriesVideos",value:function(t,e,n){var r=this,o=tn.p.GetFilterFromSort(t.sort),i="libraries.id:[".concat(e.join(","),"]"),a="".concat(o,",").concat(i),c=ac(t.id,a,t.cursor);return this.get({resource:c,formatData:function(t){return new Ka.a(t,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,t,n)},expiryTime:oa.a.STANDARD,eventPrefix:t.toString()})}},{key:"getVideo",value:function(t,e){var n=this;return this.get({resource:cc(t),formatData:function(t){return new Ua.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoData(t,e)},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.VIDEOS,":").concat(t)})}},{key:"clearCacheAndGetVideo",value:function(t,e,n){var r=this;return this.clearCacheAndGet({resource:cc(t),formatData:function(t){return new Ua.a(t,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoData(t,e)},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.VIDEOS,":").concat(t),errorHandler:n})}},{key:"getVideos",value:function(t,e){var n=this;return this.get({resource:fc(t),formatData:function(t){return new Ka.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoCollectionData(t,null,e)},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.VIDEOS_BY_ID,":").concat(t.join(","))})}},{key:"hasPhysicalChapters",value:function(t,e){return this.get({resource:"/legacy/videos/".concat(t,"/hasphysicalchapters"),formatData:function(t){return new r.a.Model(t)},callback:e,expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(t)})}},{key:"updateVideo",value:function(t,e,n,r,o){var i=["".concat(t)];return e&&i.push("".concat(e)),this.update({resource:uc(t),eventPrefix:"".concat(Za.a.UPDATE_VIDEO,":").concat(t),data:n,invalidationKeys:i,callback:r})}},{key:"addOrUpdateThumbnail",value:function(t,e,n,r){var o={fileId:e.id.toString(),fileIdType:cn.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:hc(t,n),eventPrefix:Za.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:yc(t),eventPrefix:"".concat(Za.a.UPDATE_VIDEO_THUMBNAIL,":").concat(t),data:o,formatData:function(t){return new Fa.a(t)},invalidationKeys:[Za.a.VIDEOS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(t,e,n,r,o){var a=this;this.create({resource:sc(),eventPrefix:"".concat(Za.a.MOVE_VIDEOS,":").concat(t.join(",")),formatData:function(t){return new Ka.a(t,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:e,assocType:"has",objectIds:t},invalidationKeys:["".concat(Za.a.VIDEOS,":collection:").concat(n),"".concat(Za.a.VIDEOS,":collection:").concat(e)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(t,e,n,r){var o=this;this.delete({resource:pc(t,e,n),eventPrefix:Za.a.DELETE_VIDEO,invalidationKeys:[Za.a.VIDEOS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(t,e,n){var r={id:t,privacy:e};return this.create({data:r,resource:lc(),formatData:function(t){return new Ya(t)},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(t,e,n,r){e.get("id");var o=$a.a.addVideoToLibraryAlert(e,n);this.create({resource:mc(),eventPrefix:"add:to:library",callback:r,data:t,invalidationKeys:["".concat(Za.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(t,e,n){if(t&&e){var r=new O.a(i.keys(e).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(e),(function(n){a.delete({resource:dc(t,n.toLowerCase(),e[n]),eventPrefix:"".concat(Za.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(t,e,n,r){this.create({resource:bc(t),data:{libraryId:e,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(t,e){this.get({resource:vc(t),eventPrefix:"video:libraries:".concat(t),formatData:function(t){return new Qa.a(t.data)},callback:e})}},{key:"invalidateCollectionVideos",value:function(t){this.invalidateCache([t.toString()])}},{key:"name",get:function(){return m.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ec(e.prototype,n),c&&ec(e,c),s}(_o.a),Sc={videoCollection:function(t){return{dataServiceName:m.a.Video,eventName:"".concat(t.toString,":sync"),getData:function(e){return e.getCollectionVideos(t)},getInstance:function(t){return b.a.getInstance(m.a.Video,t)},beforeOnBeforeRender:!0}},getDissocIds:function(t){return"string"==typeof t?"id=".concat(t):t.map((function(t){return"id=".concat(t)})).join("&")}},Oc=n(93);function wc(t){return(wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ec(t,e){return(Ec=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rc(t){var e=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(t){return!1}}();return function(){var n,r=Pc(t);if(e){var o=Pc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _c(this,n)}}function _c(t,e){return!e||"object"!==wc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pc(t){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Tc,xc,jc=function(t){return"/api/domain/v2/search/videos?".concat(t,"&with=").concat(a.A.VIDEO_COLLECTION)},Dc=function(t){return"/api/domain/v1/search/nav?".concat(t)},Lc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ec(t,e)}(i,t);var e,n,r,o=Rc(i);function i(){return kc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"searchVideos",value:function(t,e,n){var r=this;return this.clearCacheAndGet({callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,null,n)},resource:jc(t),formatData:function(t){return new Ka.a(t.data)},eventPrefix:e.toString()})}},{key:"getDynamicFilters",value:function(t,e){return this.clearCacheAndGet({callback:e,resource:Dc(t),formatData:function(t){return new Oc.a(t,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}},{key:"name",get:function(){return xo.a.Search}},{key:"channelName",get:function(){return To.b.SEARCH}}])&&Cc(e.prototype,n),r&&Cc(e,r),i}(_o.a);function Ac(t){return(Ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vc(t,e){return(Vc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mc(t){var e=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(t){return!1}}();return function(){var n,r=Fc(t);if(e){var o=Fc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uc(this,n)}}function Uc(t,e){return!e||"object"!==Ac(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fc(t){return(Fc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t[t.IosApp=1]="IosApp",t[t.AndroidApp=2]="AndroidApp",t[t.WinApp=3]="WinApp",t[t.LibraryPublisher=4]="LibraryPublisher",t[t.ExchangeClient=5]="ExchangeClient",t[t.Online=6]="Online",t[t.Tinder=7]="Tinder",t[t.Cloud247=8]="Cloud247",t[t.Livestream=9]="Livestream",t[t.Curator=10]="Curator",t[t.LibraryEditor=11]="LibraryEditor",t[t.Lite=12]="Lite"}(Tc||(Tc={})),function(t){t[t.ExternalOnly=0]="ExternalOnly",t[t.EmbeddedOnly=1]="EmbeddedOnly"}(xc||(xc={}));var Hc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vc(t,e)}(u,t);var e,n,o,c=Mc(u);function u(){return Nc(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"getPendingItem",value:function(t,e){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(t),eventPrefix:"pending:item:".concat(t),formatData:function(t){return new r.a.Model(t)},callback:e})}},{key:"getPendingItems",value:function(t){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:t})}},{key:"clearPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"clear:pending:".concat(t.join(",")),callback:e})}},{key:"cancelPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"cancel:pending:".concat(t.join(",")),callback:e})}},{key:"retryPendingItems",value:function(t,e){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"retry:pending:".concat(t.join(",")),callback:e,data:null})}},{key:"completeVideoUploads",value:function(t,e,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:t,customerId:e,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:Tc.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n),subtitleOptions:{subtitleExtractOptions:xc.EmbeddedOnly},autoCaption:n.get("autoCaption")},errorHandler:o.alertService.error(Hr.a.getPhrase(o.lang,"processingError",{videoName:tn.v.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(t){var e=this,n=t.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:Tc.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return e.setAssoc(r,n,t)})),n}},{key:"setAssoc",value:function(t,e,n){var o=n[t];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;e[t]=o.map((function(t){return t.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;e[t]=o.get("id")?{id:o.get("id")}:o.pick(["name"])}}},{key:"name",get:function(){return a.g.VideoUpload}},{key:"channelName",get:function(){return a.e.VIDEO_UPLOAD}},{key:"lang",get:function(){return"upload.services"}}])&&Ic(e.prototype,n),o&&Ic(e,o),u}(_o.a),zc=n(284);function Bc(t){return(Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wc(t,e){return(Wc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yc(t){var e=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(t){return!1}}();return function(){var n,r=Kc(t);if(e){var o=Kc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jc(this,n)}}function Jc(t,e){return!e||"object"!==Bc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kc(t){return(Kc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wc(t,e)}(i,t);var e,n,r,o=Yc(i);function i(){return qc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"uploadBase64Image",value:function(t,e,n){return this.create({resource:"/api/image/upload?type=".concat(e),eventPrefix:a.f.UPLOAD_IMAGE,data:t,formatData:function(t){return new zc.a(t)},callback:n})}},{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}}])&&Gc(e.prototype,n),r&&Gc(e,r),i}(_o.a),Zc=n(142);function $c(t){return($c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eu(t,e){return(eu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nu(t){var e=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(t){return!1}}();return function(){var n,r=ou(t);if(e){var o=ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ru(this,n)}}function ru(t,e){return!e||"object"!==$c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ou(t){return(ou=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var iu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eu(t,e)}(i,t);var e,n,r,o=nu(i);function i(){return Xc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Zc.a}}])&&tu(e.prototype,n),r&&tu(e,r),i}(r.a.Collection);function au(t){return(au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function su(t,e){return(su=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lu(t){var e=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(t){return!1}}();return function(){var n,r=pu(t);if(e){var o=pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fu(this,n)}}function fu(t,e){return!e||"object"!==au(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pu(t){return(pu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&su(t,e)}(i,t);var e,n,r,o=lu(i);function i(){return cu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Zc.b}}])&&uu(e.prototype,n),r&&uu(e,r),i}(r.a.Collection),hu=n(230);function du(t){return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mu(t,e){return(mu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gu(t){var e=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(t){return!1}}();return function(){var n,r=Ou(t);if(e){var o=Ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Su(this,n)}}function Su(t,e){return!e||"object"!==du(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ou(t){return(Ou=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wu=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(cn.i.Video,"&status=").concat(hu.a.Pending)},ku=function(t){return"/api/domain/v1/staffrequests/".concat(t)},Cu=function(){return"/api/domain/v1/staffrequests"},Eu=function(t){return"/api/domain/v1/staffrequests/".concat(t,"/messages")},Ru=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mu(t,e)}(c,t);var e,n,r,i=gu(c);function c(){return bu(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"clearRequestCache",value:function(){this.invalidateCache([Za.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(t){return this.get({resource:wu(),formatData:function(t){return new iu(t,{parse:!0})},expiryTime:oa.a.STANDARD,eventPrefix:Za.a.STAFF_REQUESTS,callback:t})}},{key:"getStaffRequest",value:function(t,e){return this.get({resource:ku(t),formatData:function(t){return new Zc.a(t,{parse:!0})},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.STAFF_REQUEST_BY_ID,":").concat(t),callback:e})}},{key:"approveStaffRequest",value:function(t,e,n,r){var o={id:t,status:hu.a.Approved,metadata:{destinationLibraryId:e,destinationCategoryId:n}};return this.update({data:o,resource:Cu(),eventPrefix:"".concat(Za.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[Za.a.VIDEOS,Za.a.STAFF_REQUESTS,Za.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(t,e,n){var r={id:t,status:hu.a.Rejected,message:e};return this.update({data:r,resource:Cu(),eventPrefix:"".concat(Za.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[Za.a.STAFF_REQUESTS,Za.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(t,e){return this.get({resource:Eu(t),formatData:function(t){return new yu(t)},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(Za.a.STAFF_REQUEST_MESSAGES,":").concat(t),callback:e})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&vu(e.prototype,n),r&&vu(e,r),c}(_o.a),_u=n(213);function Pu(t){return(Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ju(t,e){return(ju=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Du(t){var e=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(t){return!1}}();return function(){var n,r=Au(t);if(e){var o=Au(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lu(this,n)}}function Lu(t,e){return!e||"object"!==Pu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Au(t){return(Au=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Nu=function(t){return"/api/domain/v2/objects/".concat(t,"/tags")},Iu=function(t,e){return"/api/domain/v2/objects/".concat(e,"/videos/").concat(t)},Vu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}(i,t);var e,n,r,o=Du(i);function i(){return Tu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createTag",value:function(t,e,n){if(t&&e)return this.create({resource:Nu(e),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(tn.v.slugify(t)),formatData:function(t){return new _u.a(t)},invalidationKeys:["".concat(e)],data:{name:t},callback:n})}},{key:"dissociateTag",value:function(t,e,n){if(t&&e)return this.delete({resource:Iu(e,t),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(t),invalidationKeys:["".concat(e)],callback:n})}},{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}}])&&xu(e.prototype,n),r&&xu(e,r),i}(_o.a),Mu=n(177),Uu=n(145);function Fu(t){return(Fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bu(t,e){return(Bu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qu(t){var e=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(t){return!1}}();return function(){var n,r=Wu(t);if(e){var o=Wu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gu(this,n)}}function Gu(t,e){return!e||"object"!==Fu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wu(t){return(Wu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yu=function(){return"/api/domain/v1/series"},Ju=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(a.A.SERIES)},Ku=function(t){return"/api/domain/v2/objects/".concat(t,"/seasons")},Qu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bu(t,e)}(i,t);var e,n,r,o=qu(i);function i(){return Hu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createSeries",value:function(t,e){if(t){var n=tn.v.slugify(t);return this.create({resource:Yu(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(t){return new Mu.a(t)},invalidationKeys:["".concat(n)],data:{name:t},callback:e})}}},{key:"getSeries",value:function(t,e){return this.get({callback:e,expiryTime:a.d.STANDARD,resource:Ju(t),formatData:function(t){return new Mu.a(t)},eventPrefix:"".concat(a.f.SERIES,":").concat(t)})}},{key:"createSeason",value:function(t,e,n){if(t.number&&e)return this.create({data:t,resource:Ku(e),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(e),formatData:function(t){return new Uu.a(t)},callback:n})}},{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}}])&&zu(e.prototype,n),r&&zu(e,r),i}(_o.a),Zu=n(400);function $u(t){return($u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ts(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function es(t,e){return(es=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ns(t){var e=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(t){return!1}}();return function(){var n,r=os(t);if(e){var o=os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rs(this,n)}}function rs(t,e){return!e||"object"!==$u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function os(t){return(os=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var is=function(){return"/api/domain/v2/me/ratings"},as=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&es(t,e)}(i,t);var e,n,r,o=ns(i);function i(){return Xu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getAllRatings",value:function(t){return this.get({resource:is(),formatData:function(t){return new Zu.a(t)},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:t})}},{key:"name",get:function(){return m.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}}])&&ts(e.prototype,n),r&&ts(e,r),i}(_o.a),cs=n(290),us=n(174);function ss(t){return(ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ls(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fs(t,e){return(fs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ps(t){var e=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(t){return!1}}();return function(){var n,r=hs(t);if(e){var o=hs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ys(this,n)}}function ys(t,e){return!e||"object"!==ss(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hs(t){return(hs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ds=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fs(t,e)}(n,t);var e=ps(n);function n(){return ls(this,n),e.apply(this,arguments)}return n}(r.a.Model),bs=n(152);function vs(t){return(vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ms(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ss(t,e){return(Ss=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Os(t){var e=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(t){return!1}}();return function(){var n,r=ks(t);if(e){var o=ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ws(this,n)}}function ws(t,e){return!e||"object"!==vs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ks(t){return(ks=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cs,Es=function(t){return"/api/domain/v2/objects/".concat(t,"/chapters")},Rs=function(t){return"/api/domain/v2/objects/".concat(t)},_s=function(t){return"/api/domain/v2/objects/".concat(t)},Ps=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},Ts=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},xs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ss(t,e)}(c,t);var e,n,r,o=Os(c);function c(){return ms(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"clearVideoCache",value:function(t){this.invalidateCache(["".concat(t)])}},{key:"createChapter",value:function(t,e,n,r){if(t&&e&&i.isNumber(n))return this.create({resource:Es(t),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(tn.v.slugify(e)),formatData:function(t){return new us.a(t)},invalidationKeys:["".concat(t)],data:{name:e,startTime:n},callback:r})}},{key:"updateChapter",value:function(t,e,n,r,o){if(t&&e&&i.isNumber(n))return this.update({resource:Rs(t),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(t),formatData:function(t){return new us.a(t)},invalidationKeys:["".concat(t),"".concat(tn.v.slugify(e))],data:{name:e,startTime:n},successHandler:this.alertService.success(o||Hr.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(t,e){if(t)return this.delete({resource:_s(t),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(t)],callback:e})}},{key:"getConcatenateRequest",value:function(t,e){var n=this;return this.clearCacheAndGet({resource:Ps(t),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(t),formatData:function(t){return new ds(t,{parse:!0})},callback:function(r){r.get("status")===bs.a.SingleFile&&n.clearVideoCache(t),i.isFunction(e)&&e(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(t,e){return this.create({resource:Ts(t),formatData:function(t){return new ds(t)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(t),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(t)],data:null,callback:e})}},{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&gs(e.prototype,n),r&&gs(e,r),c}(_o.a);function js(t){return(js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ds(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ls(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function As(t,e){return(As=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ns(t){var e=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(t){return!1}}();return function(){var n,r=Vs(t);if(e){var o=Vs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Is(this,n)}}function Is(t,e){return!e||"object"!==js(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vs(t){return(Vs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.CollectionPdf="collection_pdf",t.CustomListPdf="custom_list_pdf"}(Cs||(Cs={}));var Ms=function(t){return"/api/domain/v2/export/formats/pdf/types/".concat(t)},Us=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&As(t,e)}(c,t);var e,n,r,o=Ns(c);function c(){return Ds(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"generateCollectionPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(n),{libraryId:t,collectionId:e});return r&&(c=i.extend({},c,{sortType:tn.p.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:Ms(Cs.CollectionPdf),data:c,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(e),successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(r),{title:t,header:e,videoIds:n});return this.create({callback:o,resource:Ms(Cs.CustomListPdf),data:c,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(t){return{firstName:t.get("givenName"),lastName:t.get("familyName"),countryCode:t.get("countryCode"),userId:t.id,customerId:t.get("customerId"),userEmail:t.get("email")}}},{key:"name",get:function(){return a.g.Export}},{key:"channelName",get:function(){return a.e.EXPORT}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Ls(e.prototype,n),r&&Ls(e,r),c}(_o.a),Fs=n(229),Hs=n(228);function zs(t){return(zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gs(t,e){return(Gs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ws(t){var e=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(t){return!1}}();return function(){var n,r=Js(t);if(e){var o=Js(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ys(this,n)}}function Ys(t,e){return!e||"object"!==zs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Js(t){return(Js=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ks,Qs=function(t){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(t.join("&videoId="))},Zs=function(t){return"".concat("/api/localcache","/v1/customers/").concat(t,"/devices")},$s=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(t){t[t.MasterObject=0]="MasterObject",t[t.TrackingCode=1]="TrackingCode"}(Ks||(Ks={}));var Xs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gs(t,e)}(i,t);var e,n,r,o=Ws(i);function i(){return Bs(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getDownloadsForVideos",value:function(t,e){return this.get({resource:Qs(t),formatData:function(t){return new Hs.a(t)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(t.join(",")),expiryTime:oa.a.STANDARD,callback:e})}},{key:"getDevices",value:function(t,e){return this.get({resource:Zs(t),formatData:function(t){return new Fs.a(t)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:oa.a.STANDARD,callback:e})}},{key:"downloadVideoToLocalCache",value:function(t,e,n){this.create({resource:$s(),data:this.getDownloadVideoData(t,e),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(t,e){return{deviceId:t,videoId:e,videoIdType:Ks.MasterObject,expiresOn:ye().add(14,"days")}}},{key:"name",get:function(){return a.g.LocalCache}},{key:"channelName",get:function(){return a.e.LOCAL_CACHE}},{key:"lang",get:function(){return"shared.services"}}])&&qs(e.prototype,n),r&&qs(e,r),i}(_o.a);function tl(t){return(tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function el(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nl(t,e){return(nl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rl(t){var e=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(t){return!1}}();return function(){var n,r=il(t);if(e){var o=il(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ol(this,n)}}function ol(t,e){return!e||"object"!==tl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function il(t){return(il=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var al=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nl(t,e)}(n,t);var e=rl(n);function n(){return el(this,n),e.apply(this,arguments)}return n}(r.a.Model);function cl(t){return(cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ul(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ll(t,e){return(ll=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fl(t){var e=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(t){return!1}}();return function(){var n,r=yl(t);if(e){var o=yl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pl(this,n)}}function pl(t,e){return!e||"object"!==cl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yl(t){return(yl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var hl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ll(t,e)}(i,t);var e,n,r,o=fl(i);function i(){return ul(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return al}}])&&sl(e.prototype,n),r&&sl(e,r),i}(r.a.Collection);function dl(t){return(dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ml(t,e){return(ml=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gl(t){var e=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(t){return!1}}();return function(){var n,r=Ol(t);if(e){var o=Ol(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sl(this,n)}}function Sl(t,e){return!e||"object"!==dl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ol(t){return(Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wl=function(t){var e=["type=".concat(cn.k.RestrictedByAdmin),"objectTypeId=".concat(cn.i.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return t&&e.push("page=".concat(t)),"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},kl=function(t){var e=["type=".concat(cn.k.RestrictedByAdmin),"objectTypeId=".concat(cn.i.Video)],n="";return t&&t.forEach((function(t){return n+="&objectId=".concat(t)})),"/api/domain/v1/restrictedobjects?".concat(e.join("&")).concat(n)},Cl=function(){return"/api/domain/v1/restrictedobjects"},El=function(t){return"/api/domain/v1/restrictedobjects?objectId=".concat(t,"&objectTypeId=").concat(cn.i.Video)},Rl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ml(t,e)}(i,t);var e,n,r,o=gl(i);function i(){return bl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getPaginationCursors",value:function(t){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(t))}},{key:"getRestrictedVideos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",e=arguments.length>1?arguments[1]:void 0;return this.get({callback:e,resource:wl(t),formatData:function(t){return new Ka.a(t,{parse:!0})},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(t)})}},{key:"getVideoRestrictions",value:function(t,e,n){var r=e?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.join(","));return this.get({callback:n,resource:kl(t),formatData:function(t){return new hl(t)},expiryTime:oa.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(t,e,n,r,o){var i={groupId:e,objectId:t,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:Cl(),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,data:i,invalidationKeys:[a.f.RESTRICTED_VIDEOS,a.f.VIDEOS_TO_REVIEW,a.f.RESTRICTED_OBJECTS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(t,e){this.delete({callback:e,resource:El(t),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,invalidationKeys:["".concat(a.f.VIDEOS,":restricted"),a.f.RESTRICTED_VIDEOS,a.f.RESTRICTED_OBJECTS,a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"restrictionRemoved"))})}},{key:"name",get:function(){return a.g.RestrictedVideo}},{key:"channelName",get:function(){return a.e.RESTRICTED_VIDEO}},{key:"lang",get:function(){return"shared.services"}}])&&vl(e.prototype,n),r&&vl(e,r),i}(_o.a),_l=n(214);function Pl(t){return(Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jl(t,e){return(jl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dl(t){var e=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(t){return!1}}();return function(){var n,r=Al(t);if(e){var o=Al(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ll(this,n)}}function Ll(t,e){return!e||"object"!==Pl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Al(t){return(Al=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nl(t){return function(t){if(Array.isArray(t))return Il(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Il(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Il(t,e)}(t)||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 Il(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Vl=function(t,e,n,r,o){var i=t.map((function(t){return"libraryId=".concat(t)})),c=[].concat(Nl(i),["from=".concat(e),"to=".concat(n)]);o&&c.push("offset=".concat(o));var u=a.A.HOSTED_VIDEO_COLLECTION;return r&&c.push.apply(c,Nl(r.map((function(t){return"categoryId=".concat(t)})))),"/api/domain/v2/videos/recent?query=".concat(u,"&").concat(c.join("&"))},Ml=function(t,e,n){var r=t.map((function(t){return"libraryId=".concat(t)})),o=[].concat(Nl(r),["from=".concat(e),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Ul=function(){var t=["type=".concat(cn.k.TermUpdate),"objectTypeId=".concat(cn.i.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(t.join("&"))},Fl=function(){var t=["type=".concat(cn.k.TermUpdate),"objectTypeId=".concat(cn.i.Video)];return"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},Hl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jl(t,e)}(c,t);var e,n,r,o=Dl(c);function c(){return Tl(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"getRecentVideos",value:function(t,e){var n=this,r=t.toParams();return this.get({resource:Vl(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(t){return new Ka.a(t,{parse:!0})},expiryTime:oa.a.STANDARD,eventPrefix:t.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)}})}},{key:"getRecentVideosAllPages",value:function(t,e){var n,r=this,o=t.toParams(),c=new Ka.a;this.get({resource:Vl(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(t){return new Ka.a(t,{parse:!0})},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString()),callback:function u(s){c.add(s.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Vl(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(t){return new Ka.a(t,{parse:!0})},expiryTime:oa.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString(),":").concat(n.next),callback:u}):i.isFunction(e)&&e(c)}})}},{key:"getRecentVideoSubjects",value:function(t,e){var n=t.toParams();return this.get({resource:Ml(n.libraryIds,n.from,n.to),formatData:function(t){return new _l.a(t)},expiryTime:oa.a.STANDARD,eventPrefix:t.toString(),callback:e})}},{key:"getVideosToReview",value:function(t){return this.get({callback:t,resource:Ul(),formatData:function(t){return new Ka.a(t)},expiryTime:oa.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(t){return this.delete({callback:t,resource:Fl(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"approveAllVideosSuccess"))})}},{key:"name",get:function(){return a.g.ContentUpdates}},{key:"channelName",get:function(){return a.e.CONTENT_UPDATES}},{key:"lang",get:function(){return"contentUpdates.services"}}])&&xl(e.prototype,n),r&&xl(e,r),c}(_o.a);function zl(t){return(zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ql(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gl(t,e){return(Gl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wl(t){var e=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(t){return!1}}();return function(){var n,r=Jl(t);if(e){var o=Jl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yl(this,n)}}function Yl(t,e){return!e||"object"!==zl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jl(t){return(Jl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gl(t,e)}(c,t);var e,n,o,i=Wl(c);function c(){return Bl(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"createDownloadToken",value:function(t,e){this.create({data:{objectId:t},resource:"/api/downloadproxy/api/tokens",formatData:function(t){return new r.a.Model(t)},eventPrefix:"token:".concat(t),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkRetrievalError")),callback:e})}},{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&ql(e.prototype,n),o&&ql(e,o),c}(_o.a),Ql=n(168);function Zl(t){return(Zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tf(t,e){return(tf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ef(t){var e=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(t){return!1}}();return function(){var n,r=rf(t);if(e){var o=rf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nf(this,n)}}function nf(t,e){return!e||"object"!==Zl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rf(t){return(rf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var of=function(t){return"/api/domain/v2/objects/".concat(t,"/resources")},af=function(t){return"/api/domain/v2/objects/".concat(t)},cf=function(t){return"/api/domain/v2/objects/".concat(t)},uf=function(t){return"/api/domain/v2/objects/".concat(t)},sf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tf(t,e)}(c,t);var e,n,r,o=ef(c);function c(){return $l(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"addResource",value:function(t,e,n){var r=this,o=this.chain();i.each(e,(function(i,c){o.create({resource:of(t),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(t){return new Ql.a(t)},callback:n,data:i,successHandler:c+1===e.length&&r.alertService.success(Hr.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(t,e){return this.get({resource:af(t),formatData:function(t){return new Ql.a(t)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(t),callback:e})}},{key:"updateResource",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:cf(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(t,e,n){var r=this;this.delete({resource:uf(e),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"resourceRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Resource}},{key:"channelName",get:function(){return a.e.RESOURCE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Xl(e.prototype,n),r&&Xl(e,r),c}(_o.a),lf=n(222);function ff(t){return(ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hf(t,e){return(hf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function df(t){var e=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(t){return!1}}();return function(){var n,r=vf(t);if(e){var o=vf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bf(this,n)}}function bf(t,e){return!e||"object"!==ff(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vf(t){return(vf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mf=function(t){return"/api/domain/v2/objects/".concat(t,"/subtitles")},gf=function(t){return"/api/domain/v2/objects/".concat(t)},Sf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hf(t,e)}(i,t);var e,n,r,o=df(i);function i(){return pf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addSubtitle",value:function(t,e,n){this.create({resource:mf(t),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(t){return new lf.a(t)},callback:n,data:e,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(t,e,n){var r=this;this.delete({resource:gf(e),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"subtitleRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Subtitle}},{key:"channelName",get:function(){return a.e.SUBTITLE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&yf(e.prototype,n),r&&yf(e,r),i}(_o.a),Of=n(175);function wf(t){return(wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ef(t,e){return(Ef=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rf(t){var e=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(t){return!1}}();return function(){var n,r=Pf(t);if(e){var o=Pf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _f(this,n)}}function _f(t,e){return!e||"object"!==wf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pf(t){return(Pf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Tf=function(t){return"/api/domain/v2/objects/".concat(t,"/links")},xf=function(t){return"/api/domain/v2/objects/".concat(t)},jf=function(t){return"/api/domain/v2/objects/".concat(t)},Df=function(t){return"/api/domain/v2/objects/".concat(t)},Lf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ef(t,e)}(i,t);var e,n,r,o=Rf(i);function i(){return kf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addLink",value:function(t,e,n){this.create({resource:Tf(t),eventPrefix:a.f.CREATE_LINK,formatData:function(t){return new Of.a(t)},callback:n,data:e,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(t,e){return this.get({resource:xf(t),formatData:function(t){return new Of.a(t)},eventPrefix:"".concat(a.f.LINK,":").concat(t),callback:e})}},{key:"updateLink",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:jf(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(t,e,n){var r=this;this.delete({resource:Df(e),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkRemoveError"))})}},{key:"name",get:function(){return a.g.Link}},{key:"channelName",get:function(){return a.e.LINK}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Cf(e.prototype,n),r&&Cf(e,r),i}(_o.a);function Af(t){return(Af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function If(t,e){return(If=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vf(t){var e=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(t){return!1}}();return function(){var n,r=Uf(t);if(e){var o=Uf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mf(this,n)}}function Mf(t,e){return!e||"object"!==Af(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uf(t){return(Uf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ff=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&If(t,e)}(n,t);var e=Vf(n);function n(){return Nf(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Hf(t){return(Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qf(t,e){return(qf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gf(t){var e=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(t){return!1}}();return function(){var n,r=Yf(t);if(e){var o=Yf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wf(this,n)}}function Wf(t,e){return!e||"object"!==Hf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yf(t){return(Yf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jf=function(){return"/api/domain/v2/people"},Kf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qf(t,e)}(i,t);var e,n,r,o=Gf(i);function i(){return zf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createPerson",value:function(t,e){if(t)return this.create({resource:Jf(),eventPrefix:a.f.CREATE_PERSON,formatData:function(t){return new Ff(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}}])&&Bf(e.prototype,n),r&&Bf(e,r),i}(_o.a);function Qf(t){return(Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $f(t,e){return($f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xf(t){var e=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(t){return!1}}();return function(){var n,r=ep(t);if(e){var o=ep(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tp(this,n)}}function tp(t,e){return!e||"object"!==Qf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ep(t){return(ep=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var np=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$f(t,e)}(n,t);var e=Xf(n);function n(){return Zf(this,n),e.apply(this,arguments)}return n}(r.a.Model);function rp(t){return(rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function op(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ip(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ap(t,e){return(ap=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function cp(t){var e=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(t){return!1}}();return function(){var n,r=sp(t);if(e){var o=sp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return up(this,n)}}function up(t,e){return!e||"object"!==rp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sp(t){return(sp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lp=function(){return"/api/domain/v2/companies"},fp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ap(t,e)}(i,t);var e,n,r,o=cp(i);function i(){return op(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createCompany",value:function(t,e){if(t)return this.create({resource:lp(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(t){return new np(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}}])&&ip(e.prototype,n),r&&ip(e,r),i}(_o.a);function pp(t){return(pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dp(t,e){return(dp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bp(t){var e=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(t){return!1}}();return function(){var n,r=mp(t);if(e){var o=mp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vp(this,n)}}function vp(t,e){return!e||"object"!==pp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mp(t){return(mp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var gp=function(t){return"/api/domain/v2/objects/".concat(t)},Sp=function(t){return"/api/domain/v2/objects/".concat(t,"/fields")},Op=function(t){return"/api/domain/v2/objects/".concat(t)},wp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dp(t,e)}(c,t);var e,n,r,o=bp(c);function c(){return yp(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"updateField",value:function(t,e){this.update({resource:gp(t.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(t.id),data:t,callback:e})}},{key:"addField",value:function(t,e,n){var r=i.omit(e,"id");this.create({resource:Sp(t),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(t,e){this.delete({resource:Op(t),eventPrefix:a.f.DELETE_FIELD,callback:e})}},{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}}])&&hp(e.prototype,n),r&&hp(e,r),c}(_o.a);var kp=n(206),Cp=n(519),Ep=n.n(Cp),Rp=n(151),_p=n(520),Pp=n.n(_p);function Tp(t){return(Tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jp(t,e){return(jp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dp(t){var e=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(t){return!1}}();return function(){var n,r=Ap(t);if(e){var o=Ap(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lp(this,n)}}function Lp(t,e){return!e||"object"!==Tp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ap(t){return(Ap=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Np=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jp(t,e)}(i,t);var e,n,r,o=Dp(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Pp.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&xp(e.prototype,n),r&&xp(e,r),i}(r.a.Component),Ip=n(186),Vp=n(212),Mp=n(558),Up=n(559),Fp=n(128),Hp=n(90),zp=n(288),Bp=n(556),qp=n.n(Bp),Gp=n(557),Wp=n.n(Gp);function Yp(t){return(Yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kp(t,e){return(Kp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qp(t){var e=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(t){return!1}}();return function(){var n,r=$p(t);if(e){var o=$p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zp(this,n)}}function Zp(t,e){return!e||"object"!==Yp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $p(t){return($p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kp(t,e)}(u,t);var e,n,o,c=Qp(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(a.e.LIBRARY,"library:created",this.render),this.listenTo(a.e.LIBRARY,"library:deleted",this.onLibraryDeted),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(zp.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(k.a.SHELL,r.a.EventNames.ROUTE,this.onRoute)}},{key:"onLibraryDeted",value:function(){this.libraries.length||this.$el.empty()}},{key:"onRoute",value:function(){r.a.AppLinkHelper.getCurrentAppLink().application===a.b.MIGRATION_WIZARD&&this.render()}},{key:"isDisabled",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink();if(t.application!==a.b.MIGRATION_WIZARD)return!1;var e=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.REMIGRATE_VIDEO,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.MIGRATION_ERRORS];return!i.contains(e,t.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var t=this.getUI("makeAvailable");t instanceof jQuery&&t.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(t){return t.get("status")!==Hp.a.Draft}))||ln.a.isPublishingLibraries(this.customerMetadata)||ln.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var t=this.isDisabled();return{styles:qp.a,disabled:t}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Wp.a}},{key:"behaviors",get:function(){return[{behaviorClass:Fp.a,selector:".make-available"}]}},{key:"lang",get:function(){return"migrationWizard.publishLibraryBanner"}},{key:"elements",get:function(){return{makeAvailable:".make-available"}}},{key:"appLinks",get:function(){return this.isDisabled()?{}:{".make-available":{application:this.options.application,action:a.a.Shared.MAKE_LIBRARY_AVAILABLE}}}},{key:"requiredResources",get:function(){return{libraries:Ma.b.libraries}}}])&&Jp(e.prototype,n),o&&Jp(e,o),u}(r.a.View),ty=n(41),ey=n(45);function ny(t){return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ry(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iy(t,e){return(iy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ay(t){var e=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(t){return!1}}();return function(){var n,r=uy(t);if(e){var o=uy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cy(this,n)}}function cy(t,e){return!e||"object"!==ny(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uy(t){return(uy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var sy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&iy(t,e)}(u,t);var e,n,o,c=ay(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,o=[{key:"getCacheKey",value:function(t){var e="".concat(this.name),n=i.omit(t,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(t){r.push("".concat(t,":").concat(n[t]))})),r.length&&(r.sort(),e+=":".concat(r.join(":"))),e}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,ty.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,ty.a.FILES_ADDED,this.onFilesAdded),this.configDataService=b.a.getInstance(m.a.Config,this),this.videoUploadService=b.a.getInstance(m.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=b.a.getInstance(m.a.MigrationVideo,this)}},{key:"regions",value:function(){var t;return ry(t={},a.n.TOP_BANNER,".top-banner-region"),ry(t,a.n.POPUP,".popup-region"),ry(t,a.n.TOP_NAV,".top-nav-region"),ry(t,a.n.CONTENT,".content-region"),ry(t,a.n.LEFT_NAV,".left-nav-region"),ry(t,a.n.PAGE_HEADER,".page-header-region"),ry(t,a.n.ALERT,".alert-region"),ry(t,a.n.PAGE_FOOTER,".page-footer-region"),ry(t,a.n.HIDDEN,".hidden-region"),t}},{key:"onFilesSelected",value:function(t,e){this.videoUploadService.addFiles(t),this.logAction(t,e)}},{key:"logAction",value:function(t,e){var n={actionType:we.q.Upload,entity:we.e.Video,location:we.k.VideoUpload,workflowPhase:we.r.Start,descriptor:T.a.mapInteractionType(e)};T.a.logUserAction(t,n)}},{key:"onFilesAdded",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=t.application===a.b.LIBRARY_EDITOR&&t.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};e&&(n.params={folderId:t.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var t=Rp.contentBox;return this.options.showLeftNav&&(t+=" ".concat(Rp.leftNavContentBox)),t}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(t){this.options=i.extend({},this.defaults,t),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var t=this.getRegion(a.n.CONTENT).currentView;t?t.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new Xp({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new Mp.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new Up.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var t=this.configDataService.getVersion();t&&this.showChildView(a.n.PAGE_FOOTER,new Np({version:t}))}},{key:"handleNoIntercom",value:function(){var t=this.migrationVideoDataService.getCustomerMetadata();t&&t.get("customerMeta")!==ey.a.LibraryPublished&&this.getUI("alertRegion").removeClass(Rp.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Rp,showLeftNav:this.options.showLeftNav,contentBoxClassName:this.getContentBoxClassName(),contentContainerClassName:this.getContentContainerClassName()}}},{key:"onRender",value:function(){this.renderTopBanner(),this.renderHeader(),this.renderTopNav(),this.renderFooter(),this.listenTo(this.getRegion(a.n.POPUP),"empty",this.onPopupRegionEmpty)}},{key:"name",get:function(){return"ManageLayoutView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Ep.a}},{key:"className",get:function(){return Rp.lockedWidth}},{key:"channelName",get:function(){return this.name}},{key:"defaults",get:function(){return{showFullHeader:!0,showTopNav:!0,allowBanner:!0,allowFileDrop:!0}}},{key:"elements",get:function(){return{alertRegion:".alert-region"}}},{key:"behaviors",get:function(){if(this.options.allowFileDrop)return[{behaviorClass:Ip.a,channelName:this.channelName},{behaviorClass:Vp.a,channelName:this.channelName}]}}])&&oy(e.prototype,n),o&&oy(e,o),u}(r.a.LayoutView);var ly=n(109),fy=n(108),py=n(33);function yy(t){return(yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function by(t,e){return(by=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vy(t){var e=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(t){return!1}}();return function(){var n,r=gy(t);if(e){var o=gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return my(this,n)}}function my(t,e){return!e||"object"!==yy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gy(t){return(gy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&by(t,e)}(i,t);var e,n,r,o=vy(i);function i(){return hy(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(k.a.SHELL,py.a.ROUTING_END,this.scrollTop),this.listenTo(ly.a.POPUP,"popup:render",this.cancelScrollTop),this.listenTo(k.a.POPUP,"popup:render",this.cancelScrollTop)}},{key:"cancelScrollTop",value:function(){this.preventScroll=!0}},{key:"scrollTop",value:function(){this.preventScroll?this.preventScroll=!1:$(window).scrollTop(0)}},{key:"name",get:function(){return fy.a.SCROLL}}])&&dy(e.prototype,n),r&&dy(e,r),i}(no.a),Oy=n(44);function wy(t){return(wy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ky(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ey(t,e){return(Ey=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ry(t){var e=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(t){return!1}}();return function(){var n,r=Py(t);if(e){var o=Py(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _y(this,n)}}function _y(t,e){return!e||"object"!==wy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Py(t){return(Py=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ty=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ey(t,e)}(u,t);var e,n,a,c=Ry(u);function u(){return ky(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(k.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(To.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(To.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(t,e){e.isAppRoute&&this.setSearchContext(t)}},{key:"onTypeaheadToggle",value:function(t){if(!t.open&&!this.searchContext.get("filterValue")){var e=Xe.a.getCurrentContext().appLink;this.setSearchContext(e)}}},{key:"setSearchContext",value:function(t){var e=this.isValidSearchContext(t);e?this.updateSearchContext(e,t.args):this.inSearchView(t)||o.Radio.channel(To.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(t,e){t.appLink.args=e,this.searchContext.set(t),t.setFilterValue(t,this)}},{key:"setFilterValue",value:function(t){var e={filterValue:t,title:t};this.searchContext.set(e)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(t){return this.appVariables||(this.appVariables=b.a.getInstance(Oy.a.SEARCH,this)),i.find((e=this.lang,n=this.appVariables.appLinks,r=[],n.folder&&r.push({appLink:n.folder,searchTag:Hr.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:function(t,e){b.a.getInstance(xo.a.Library,e).getFolder(i.first(t.appLink.args).toString(),(function(t){e.setFilterValue(t.get("name")),b.a.releaseInstance(xo.a.Library)}))}}),n.series&&r.push({appLink:n.series,searchTag:Hr.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:function(t,e){b.a.getInstance(xo.a.Series,e).getSeries(i.first(t.appLink.args).toString(),(function(t){e.setFilterValue(t.name),b.a.releaseInstance(xo.a.Series)}))}}),r),(function(e){return t.application===e.appLink.application&&t.action===e.appLink.action}));var e,n,r}},{key:"inSearchView",value:function(t){var e=this.appVariables.appLinks.searchResults;return t.application===e.application&&t.action===e.action}},{key:"name",get:function(){return xo.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Cy(e.prototype,n),a&&Cy(e,a),u}(r.a.Service),xy=n(226);function jy(t){return(jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ly(t,e){return(Ly=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ay(t){var e=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(t){return!1}}();return function(){var n,r=Iy(t);if(e){var o=Iy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ny(this,n)}}function Ny(t,e){return!e||"object"!==jy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Iy(t){return(Iy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ly(t,e)}(i,t);var e,n,r,o=Ay(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return e=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=b.a.getInstance(xo.a.Notification,this),this.notificationSocketService=b.a.getInstance(xo.a.NotificationSocket,this),this.userDataService=b.a.getInstance(xo.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var t=Po.a.NOTIFICATIONS;this.listenTo(To.b.NOTIFICATIONS_SOCKET,"".concat(t,":new:sync"),this.addNewNotification),this.listenTo(To.b.NOTIFICATIONS_SOCKET,"".concat(t,":count:sync"),this.updateUnreadCount),this.listenTo(To.b.NOTIFICATIONS,"".concat(t,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(To.a.NOTIFICATIONS,xy.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(t){var e=this;this.userDataService.getCurrentUser((function(n){e.notificationDataService.getNotifications(n.id,null,Po.a.NOTIFICATIONS,(function(e){e.add(t,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=C.a.get(Po.a.NOTIFICATIONS);e.set("unreadCount",t)}},{key:"getNotifications",value:function(t,e,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,t,e.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),C.a.get(Po.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(t){this.notificationDataService.markRead(t)}},{key:"getNotificationsCursors",value:function(t){return this.notificationDataService.getNotificationsCursors(t.toString())}},{key:"name",get:function(){return xo.b.Notification}}])&&Dy(e.prototype,n),r&&Dy(e,r),i}(r.a.Service);function My(t){return(My="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fy(t,e){return(Fy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hy(t){var e=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(t){return!1}}();return function(){var n,r=By(t);if(e){var o=By(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zy(this,n)}}function zy(t,e){return!e||"object"!==My(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function By(t){return(By=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qy(t){return(qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yy(t,e){return(Yy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jy(t){var e=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(t){return!1}}();return function(){var n,r=Qy(t);if(e){var o=Qy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ky(this,n)}}function Ky(t,e){return!e||"object"!==qy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qy(t){return(Qy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yy(t,e)}(i,t);var e,n,r,o=Jy(i);function i(){return Gy(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return v.a.Notifications}}])&&Wy(e.prototype,n),r&&Wy(e,r),i}(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fy(t,e)}(i,t);var e,n,r,o=Hy(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).subscribeEvent="subscribe",e.reconnectTimeout=5e3,e.reconnectAttempts=100,e.reconnectTries=0,e.connection=$.hubConnection(t.endpoint),e.hub=e.connection.createHubProxy(t.hubName),e.authEndpoint=t.authEndpoint,e.setProviderOptions(t),e.attachSocketEvents(),!1===t.lazy&&e.openConnection(),e}return e=i,(n=[{key:"setProviderOptions",value:function(t){t.logging&&(this.connection.logging=!0),t.subscribeEvent&&(this.subscribeEvent=t.subscribeEvent),t.reconnectTimeout&&(this.reconnectTimeout=t.reconnectTimeout),t.reconnectAttempts&&(this.reconnectAttempts=t.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(0),this.connect()}},{key:"connect",value:function(){var t=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(e){return t.start.apply(t,e)}),(function(e){return t.onConnectionError.apply(t,e)}))}},{key:"start",value:function(t){var e=this;return this.hub.invoke(this.subscribeEvent,t.Token).done((function(){return e.setConnectionState(1)})).fail((function(t){return e.onConnectionError(t)}))}},{key:"stop",value:function(t,e){this.isConnectedOrConnecting()&&this.connection.stop(t,e)}},{key:"attachSocketEvents",value:function(){var t=this;this.connection.disconnected((function(){return t.onConnectionError})),this.connection.reconnected((function(){return t.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(t){var e=this;t?console.log("Connection Error. Reason: ".concat(t)):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 e.reconnectTries++,e.openConnection()}),this.reconnectTimeout||5e3)}},{key:"getConnectionToken",value:function(){var t={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(t)}},{key:"setConnectionState",value:function(t){1===t&&console.log("Connected!"),4===t&&console.log("Disconnected!"),this.connectionState=t}},{key:"isConnectedOrConnecting",value:function(){return 0===this.connectionState||1===this.connectionState||2===this.connectionState}},{key:"create",value:function(t,e,n){this.openConnection(),this.rpc(t,e,n)}},{key:"read",value:function(t,e){this.openConnection(),this.subscribe(t,e)}},{key:"update",value:function(t,e,n){this.openConnection(),this.rpc(t,e,n)}},{key:"delete",value:function(t,e){this.openConnection(),this.rpc(t,null,e)}},{key:"parseError",value:function(){return ho.a}},{key:"rpc",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.hub.invoke(t,e).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"subscribe",value:function(t,e){var n=e.channel,r=e.successEvent;e.errorEvent,this.hub.on(t,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];n.trigger.apply(n,[r].concat(e))}))}}])&&Uy(e.prototype,n),r&&Uy(e,r),i}(V.Object)),$y=n(289),Xy=n(29);function th(t){return(th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nh(t,e){return(nh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rh(t){var e=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(t){return!1}}();return function(){var n,r=ih(t);if(e){var o=ih(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oh(this,n)}}function oh(t,e){return!e||"object"!==th(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ih(t){return(ih=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ah=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nh(t,e)}(i,t);var e,n,r,o=rh(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Hr.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return e=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:Hr.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:Hr.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:Hr.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&eh(e.prototype,n),r&&eh(e,r),i}(Xy.a);function ch(t){return(ch="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lh(t,e,n){return(lh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=hh(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function fh(t,e){return(fh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ph(t){var e=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(t){return!1}}();return function(){var n,r=hh(t);if(e){var o=hh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yh(this,n)}}function yh(t,e){return!e||"object"!==ch(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hh(t){return(hh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var dh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fh(t,e)}(c,t);var e,n,o,i=ph(c);function c(){return uh(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"addFiles",value:function(t){var e=this;b.a.getInstance(a.g.Library).getLibraries((function(n){b.a.releaseInstance(a.g.Library),n&&n.length?lh(hh(c.prototype),"addFiles",e).call(e,t):r.a.ErrorHelper.throw(new ah)}))}}])&&sh(e.prototype,n),o&&sh(e,o),c}($y.a);function bh(t){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gh(t,e,n){return e&&mh(t.prototype,e),n&&mh(t,n),t}function Sh(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oh(t,e)}function Oh(t,e){return(Oh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wh(t){var e=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(t){return!1}}();return function(){var n,r=Ch(t);if(e){var o=Ch(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kh(this,n)}}function kh(t,e){return!e||"object"!==bh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ch(t){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Eh=function(t){Sh(n,t);var e=wh(n);function n(){return vh(this,n),e.apply(this,arguments)}return gh(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),Rh=function(t){Sh(n,t);var e=wh(n);function n(){return vh(this,n),e.apply(this,arguments)}return gh(n,[{key:"model",get:function(){return Eh}}]),n}(r.a.Collection),_h=n(118);function Ph(t){return(Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Th(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jh(t,e){return(jh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dh(t){var e=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(t){return!1}}();return function(){var n,r=Ah(t);if(e){var o=Ah(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lh(this,n)}}function Lh(t,e){return!e||"object"!==Ph(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ah(t){return(Ah=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Nh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jh(t,e)}(u,t);var e,n,a,c=Dh(u);function u(){return Th(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.videoDataService=b.a.getInstance(xo.a.Video,this),this.videoUploadDataService=b.a.getInstance(xo.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(t,e){var n=this;switch(t.get("pendingProcessStatus")){case _h.a.Completed:case _h.a.Error:this.videoUploadDataService.clearPendingItems([t.get("pendingProcessId")],(function(){t.set("clearing",!0),t.collection.remove(t),n.updateViewModel(),n.videoDataService.clearVideoCache(),i.isFunction(e)&&e()}));break;case _h.a.Processing:this.videoUploadDataService.cancelPendingItems([t.get("pendingProcessId")],(function(){t.set("clearing",!0),t.collection.remove(t),n.videoDataService.clearVideoCache(),n.updateViewModel(),i.isFunction(e)&&e()}))}}},{key:"forceFetchPendingItems",value:function(t){this.fetchPendingItems(t)}},{key:"retryPendingItem",value:function(t,e){var n=this;this.videoUploadDataService.retryPendingItems([t.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:e})}))}},{key:"itemStatusChanged",value:function(){o.Radio.channel(this.channelName).trigger(ty.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var t=this;return this.pendingItems||(this.pendingItems=new Rh,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(e){e.get("foregroundComplete")&&(t.itemStatusChanged(),e.get("video")&&o.Radio.channel(t.channelName).trigger(ty.a.PENDING_ITEM_READY_TO_WATCH,e))})),this.listenTo(this.pendingItems,"remove",(function(e){e.get("clearing")||t.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),(function(e){e.get("status")===_h.a.Completed&&t.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=i.map(n,(function(t){return t.masterVideoId.toString()})),a=function(r){i.each(n,(function(t){var e=r.get(t.masterVideoId);e&&(t.video=e,t.foregroundProgress>=100&&e.get("status")===Hp.a.Processing&&e.set("status",Hp.a.Published))})),t.pendingItems.set(n),t.updateViewModel(),e.resetTimeout&&window.setTimeout(i.bind(t.fetchPendingItems,t),t.getTimeoutLength()),i.isFunction(e.callback)&&e.callback()};o.length?t.videoDataService.getVideos(o,a):a(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var t=C.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var e=this.pendingItems.where((function(t){return t.get("pendingProcessStatus")>=0})),n=0;i.each(e,(function(t){return n+=t.get("foregroundProgress")}));var r=100*e.length;t.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==e.length})}else t.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(t){return t.get("pendingProcessStatus")===_h.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return xo.b.PendingItems}},{key:"channelName",get:function(){return To.c.PENDING_ITEMS}}])&&xh(e.prototype,n),a&&xh(e,a),u}(r.a.Service),Ih=n(92);function Vh(t){return(Vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fh(t,e,n){return(Fh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=qh(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Hh(t,e){return(Hh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zh(t){var e=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(t){return!1}}();return function(){var n,r=qh(t);if(e){var o=qh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bh(this,n)}}function Bh(t,e){return!e||"object"!==Vh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qh(t){return(qh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hh(t,e)}(i,t);var e,n,r,o=zh(i);function i(){return Mh(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){Fh(qh(i.prototype),"initialize",this).call(this),this.alertService=b.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,ty.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(t){var e=t.get("video");if(e){var n=Hr.a.getPhrase(this.lang,"readyToWatch",{videoName:tn.v.escapeExpression(e.get("name"))});Ih.a.isDone(t)||(n+=Hr.a.getPhrase(this.lang,"processingResolutions"));var r={heading:Hr.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:e.get("name")}),message:n,type:Ro.a.Success,appLinkText:Hr.a.getPhrase(this.lang,"goToVideo",{videoName:e.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[e.get("id")]}};this.alertService.createAlert(r)}}},{key:"lang",get:function(){return"upload.services"}}])&&Uh(e.prototype,n),r&&Uh(e,r),i}(Nh),Wh=n(138),Yh=n.n(Wh),Jh=n(215);function Kh(t){return(Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $h(t,e){return($h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xh(t){var e=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(t){return!1}}();return function(){var n,r=ed(t);if(e){var o=ed(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return td(this,n)}}function td(t,e){return!e||"object"!==Kh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ed(t){return(ed=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$h(t,e)}(u,t);var e,n,r,c=Xh(u);function u(){var t;return Qh(this,u),(t=c.apply(this,arguments)).disabledLibraryIds=[],t}return e=u,(n=[{key:"initialize",value:function(){var t=this;this.videoDataService=b.a.getInstance(a.g.Video,this),this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.libraryDataService.getLibraries((function(e){return t.customLibraries=e}))}},{key:"onDragStart",value:function(t,e){var n;this.videos=t,this.collectionIdentifier=e,$("body").addClass(Yh.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(t){return!!this.videos&&!i.any(this.videos,(function(e){return e.categories.any((function(e){return e.id===t.id}))}))}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(t){r||(r=t.categories.find((function(t){return t.get("id")===+n.collectionIdentifier.id})),o=t)}));var a=this.videos,c=this.videos.map((function(t){return t.get("id")})),u=1===c.length?o.get("name"):"",s=Jh.a.moveVideoAlert(r.get("name"),t.get("name"),t.get("id"),c.length,u);this.videoDataService.moveVideos(c,t.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(t){return t.collection.remove(t)})),n.logAction(i.map(c,(function(e){return{id:e,newParentId:t.get("id"),oldParentId:r.get("id"),count:c.length}})),e)}),s),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(Yh.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var t=this,e=this.customLibraries.find((function(e){return!!tn.f.getModelFromCollection(t.collectionIdentifier.id,e.get("children"))})),n=[];this.videos.forEach((function(t){t.get("libraries").forEach((function(t){t.get("id").toString()!==e.get("id").toString()&&n.push(t.get("id"))}))})),this.disabledLibraryIds=i.uniq(n)}},{key:"getDisabledLibraryIds",value:function(){return this.disabledLibraryIds}},{key:"triggerNavRender",value:function(){o.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=T.a.mergeOptions({actionType:we.q.Move,entity:we.e.Video,descriptor:we.j.DragDrop},e);T.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.VideoDragDrop}},{key:"channelName",get:function(){return a.w.VIDEO_DRAG_DROP}}])&&Zh(e.prototype,n),r&&Zh(e,r),u}(r.a.Service),rd=n(153),od=n(84),id=n(185);function ad(t){return(ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ud(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sd(t,e){return(sd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ld(t){var e=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(t){return!1}}();return function(){var n,r=pd(t);if(e){var o=pd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fd(this,n)}}function fd(t,e){return!e||"object"!==ad(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pd(t){return(pd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sd(t,e)}(u,t);var e,n,i,c=ld(u);function u(){return cd(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.listenTo(this.libraryDataService.channelName,"libraries:sync",this.onLibrarySync),this.libraries=this.libraryDataService.getLibraries()}},{key:"onLibrarySync",value:function(t){this.libraries=t}},{key:"accept",value:function(t){return!(!this.folder||this.isSameFolder(t)||!this.isSameLibrary(t)||this.isParentFolder(t)||this.isChildFolder(t))}},{key:"isSameFolder",value:function(t){return this.folder.id===t.id}},{key:"isSameLibrary",value:function(t){var e=tn.f.getLibrary(this.folder.id,this.libraries),n=tn.f.getLibrary(t.id,this.libraries);return!(!e||!n)&&e.id===n.id}},{key:"isParentFolder",value:function(t){var e=tn.f.getParent(this.folder.id,this.libraries);return!!e&&e.id===t.id}},{key:"isChildFolder",value:function(t){for(var e=tn.f.getModelFromCollection(t.id,this.libraries);e&&e.collection&&e.collection.parent;)if((e=e.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(t){return tn.f.calculateDestinationFolderDepth(this.folder,t.id,this.libraries)>rd.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(t){this.folder=t,$("body").addClass(Yh.a.dragging)}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(t))window.setTimeout((function(){r.a.ErrorHelper.throw(new id.b)}),rd.a.POPUP_FADE_TIMEOUT);else{var a=tn.f.getSelected(od.a.LIBRARY_EDITOR,i),c=tn.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,t.id,c.id,(function(){a&&tn.f.setSelected(od.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:t.id,oldParentId:c.id},e)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(Yh.a.dragging),delete this.folder,this.triggerNavRender()}},{key:"triggerNavRender",value:function(){o.Radio.channel(this.channelName).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=T.a.mergeOptions({actionType:we.q.Move,entity:we.e.Folder,descriptor:we.j.DragDrop},e);T.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.FolderDragDrop}},{key:"channelName",get:function(){return a.w.FOLDER_DRAG_DROP}}])&&ud(e.prototype,n),i&&ud(e,i),u}(r.a.Service),hd=n(97);function dd(t){return(dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function md(t,e){return(md=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gd(t){var e=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(t){return!1}}();return function(){var n,r=Od(t);if(e){var o=Od(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sd(this,n)}}function Sd(t,e){return!e||"object"!==dd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Od(t){return(Od=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&md(t,e)}(u,t);var e,n,r,c=gd(u);function u(){return bd(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=C.a.get(this.viewModelName,{videos:{}},{ctor:Ua.a,storage:{type:hd.c.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n={};t.forEach((function(t){return n["".concat(t.id,":").concat(e)]={id:t.id.toString(),folderChord:e}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(t){var e={};t.each((function(t){return e["".concat(t.id,":").concat(t.get("chord"))]={id:t.id.toString(),folderChord:t.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),e);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n=t.map((function(t){return"".concat(t.id,":").concat(e)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(t,e){return i.contains(n,e)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var t=this.getSelectedVideos();return i.map(i.keys(t),(function(e){return t[e]&&t[e].id}))}},{key:"getSelectedVideos",value:function(){return this.selectedVideosViewModel.get("videos")}},{key:"getNumberSelected",value:function(){return this.getSelectedVideoIds().length}},{key:"selectedVideosChanged",value:function(){o.Radio.channel(a.e.MIGRATION).trigger(a.i.MigrationWizard.SELECTED_CHANGED)}},{key:"name",get:function(){return"SelectedVideoService"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return a.w.SELECTED_VIDEO}}])&&vd(e.prototype,n),r&&vd(e,r),u}(r.a.Service);function kd(t){return(kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ed(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rd(t,e){return(Rd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _d(t){var e=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(t){return!1}}();return function(){var n,r=Td(t);if(e){var o=Td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pd(this,n)}}function Pd(t,e){return!e||"object"!==kd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Td(t){return(Td=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rd(t,e)}(i,t);var e,n,r,o=_d(i);function i(){return Cd(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(t,e){this.options[t]=e}},{key:"getOption",value:function(t){return this.options[t]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}}])&&Ed(e.prototype,n),r&&Ed(e,r),i}(r.a.Service);function jd(t){return(jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ld(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ad(t,e){return(Ad=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Nd(t){var e=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(t){return!1}}();return function(){var n,r=Vd(t);if(e){var o=Vd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Id(this,n)}}function Id(t,e){return!e||"object"!==jd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vd(t){return(Vd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Md=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ad(t,e)}(c,t);var e,n,r,o=Nd(c);function c(){return Dd(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(t,e){return this.folderChordMap&&!this.collectionUpdated(e)||this.buildFolderChordMap(e),this.folderChordMap[t]}},{key:"buildFolderChordMap",value:function(t){var e=this;this.folderChordMap={},t.each((function t(n){e.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(t)}))}},{key:"collectionUpdated",value:function(t){return!(this.cachedFolderCollectionCid&&t.customCid&&this.cachedFolderCollectionCid===t.customCid||(t.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}}])&&Ld(e.prototype,n),r&&Ld(e,r),c}(r.a.Service);function Ud(t){return(Ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zd(t,e){return(zd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Bd(t){var e=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(t){return!1}}();return function(){var n,r=Gd(t);if(e){var o=Gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qd(this,n)}}function qd(t,e){return!e||"object"!==Ud(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gd(t){return(Gd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zd(t,e)}(c,t);var e,n,r,o=Bd(c);function c(){return Fd(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=b.a.getInstance(a.g.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(t,e,n){this.getAndMixinVideoCollectionRestrictions(t,e,n)}},{key:"mixinVideoData",value:function(t,e){this.getAndMixinVideoRestriction(t,e)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(t,e,n){var r=this;if(t&&t.length){var o=t.map((function(t){return t.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,e,(function(e){t.forEach((function(t){return r.mixinVideoRestriction(t,e)})),i.isFunction(n)&&n(t)}))}else i.isFunction(n)&&n(t)}},{key:"getAndMixinVideoRestriction",value:function(t,e){var n=this;this.restrictedVideoDataService.getVideoRestrictions([t.id],null,(function(r){n.mixinVideoRestriction(t,r),i.isFunction(e)&&e(t)}))}},{key:"mixinLocalCacheDownloads",value:function(t,e){t.unset("localCacheDownloads"),e&&e.findWhere({objectId:t.get("id").toString()})&&t.set("localCacheDownloads",e)}},{key:"mixinVideoRestriction",value:function(t,e){if(t.unset("restrictions"),e){var n=e.findWhere({objectId:t.get("id")});n&&t.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}}])&&Hd(e.prototype,n),r&&Hd(e,r),c}(r.a.Service),Yd=n(23);function Jd(t){return(Jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qd(t,e){return(Qd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zd(t){var e=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(t){return!1}}();return function(){var n,r=Xd(t);if(e){var o=Xd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $d(this,n)}}function $d(t,e){return!e||"object"!==Jd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xd(t){return(Xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var tb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qd(t,e)}(i,t);var e,n,r,o=Zd(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return this.options.viewOptions}},{key:"name",get:function(){return"PartialLoadingComponent"}},{key:"tagName",get:function(){return this.options.tagName||"div"}},{key:"className",get:function(){return this.options.className}}])&&Kd(e.prototype,n),r&&Kd(e,r),i}(r.a.Component);function eb(t){return(eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rb(t,e){return(rb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ob(t){var e=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(t){return!1}}();return function(){var n,r=ab(t);if(e){var o=ab(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ib(this,n)}}function ib(t,e){return!e||"object"!==eb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ab(t){return(ab=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rb(t,e)}(i,t);var e,n,r,o=ob(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){var t=b.a.getInstance(a.x.PartialLoading,this);this.collection=t.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var t=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(t+=this.options.className),t}},{key:"childView",get:function(){return tb}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&nb(e.prototype,n),r&&nb(e,r),i}(r.a.ComponentCollection);function ub(t){return(ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fb(t,e){return(fb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pb(t){var e=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(t){return!1}}();return function(){var n,r=hb(t);if(e){var o=hb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yb(this,n)}}function yb(t,e){return!e||"object"!==ub(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hb(t){return(hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var db=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fb(t,e)}(u,t);var e,n,o,c=pb(u);function u(){return sb(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(k.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(t,e){var n=this,r=this.getPartialLoadingRegions(t);i.each(i.keys(r),(function(o){if(!e||o===e){var i=r[o],a=n.getComponent(i.partialLoading);t.showChildView(o,a)}}))}},{key:"getComponent",value:function(t){var e="number"==typeof t?a.u[t]:t;return"number"!=typeof t&&(t=cn.j.Unselected),e||r.a.ErrorHelper.throw(new w.a("Must define PartialLoading type: ".concat(cn.j[t],"."))),e.component||r.a.ErrorHelper.throw(new w.a("Must select a component for PartialLoading type: ".concat(cn.j[t],"."))),e.options||r.a.ErrorHelper.throw(new w.a("Must provide options for PartialLoading type: ".concat(cn.j[t],"."))),new(this.getCtor(e.component))(e.options)}},{key:"getCtor",value:function(t){switch(t){case Yd.a.ComponentCollection:return cb;case Yd.a.Component:default:return tb}}},{key:"getPartialLoadingRegions",value:function(t){return i.pick(t.regions,(function(t){return i.has(t,"partialLoading")}))}},{key:"getCollection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,e=new Array(t);return new r.a.Collection(e)}},{key:"name",get:function(){return a.x.PartialLoading}}])&&lb(e.prototype,n),o&&lb(e,o),u}(r.a.Service);function bb(t){return(bb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gb(t,e){return(gb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Sb(t){var e=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(t){return!1}}();return function(){var n,r=wb(t);if(e){var o=wb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ob(this,n)}}function Ob(t,e){return!e||"object"!==bb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wb(t){return(wb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gb(t,e)}(c,t);var e,n,o,i=Sb(c);function c(){return vb(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(k.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return a.x.Intercom}}])&&mb(e.prototype,n),o&&mb(e,o),c}(r.a.Service);function Cb(t){return(Cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Eb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _b(t,e){return(_b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pb(t){var e=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(t){return!1}}();return function(){var n,r=xb(t);if(e){var o=xb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tb(this,n)}}function Tb(t,e){return!e||"object"!==Cb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xb(t){return(xb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var jb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_b(t,e)}(u,t);var e,n,i,c=Pb(u);function u(){return Eb(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(k.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.text;this.lockOptions=t,o.Radio.channel(k.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(t){return t.returnValue=e,e}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(k.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(t){var e=this;new tn.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(k.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),e.unlock(),r.a.AppLinkHelper.trigger(t)}))}},{key:"getNavLockOptions",value:function(){var t=this.lockOptions,e=t.title,n=t.text;return{title:e||Hr.a.getPhrase(this.lang,"discardChanges"),text:n||Hr.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:Hr.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:Hr.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}}},{key:"name",get:function(){return a.x.NavLock}},{key:"lang",get:function(){return"shared.services"}}])&&Rb(e.prototype,n),i&&Rb(e,i),u}(r.a.Service);function Db(t){return(Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ab(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nb(t,e){return(Nb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ib(t){var e=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(t){return!1}}();return function(){var n,r=Mb(t);if(e){var o=Mb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vb(this,n)}}function Vb(t,e){return!e||"object"!==Db(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mb(t){return(Mb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ub=" - ClickView",Fb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nb(t,e)}(c,t);var e,n,o,i=Ib(c);function c(){return Lb(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(k.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(t){t&&r.a.LocationUtils.SetPageTitle(this.trimTitle(t))}},{key:"trimTitle",value:function(t){return t?t.length+Ub.length<=60?t+Ub:t.substring(0,57)+"..."+Ub:""}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}}])&&Ab(e.prototype,n),o&&Ab(e,o),c}(r.a.Service);function Hb(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bb(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qb(t){var e=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(t){return!1}}();return function(){var n,r=Wb(t);if(e){var o=Wb(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Gb(this,n)}}function Gb(t,e){return!e||"object"!==Hb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wb(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ro.a;var Yb=n(227),Jb=n(38),Kb=n(217),Qb=n(140),Zb=n(143),$b=n(211);function Xb(t){var e=C.a.get("informational:error:handler");e.get("rendered")||(e.set("rendered",!0),new Kb.a(Object.assign(Object.assign({},t.dialogOptions),{channelName:"informational:error"})).render().done((function(){return t.onDone()})).fail((function(){return t.onFail()})).always((function(){return e.clear()})))}function tv(t){b.a.getInstance(m.b.Alerts).createAlert({heading:Ro.c.Fail,type:Ro.a.Fail,message:t.message})}function ev(t){r.a.AppLinkHelper.trigger({application:Qb.a.DEFAULT,action:Zb.a.Default.NOT_FOUND})}function nv(t){o.Radio.channel("error:view").replyOnce("current:error",(function(){return t})),r.a.AppLinkHelper.trigger({application:Qb.a.DEFAULT,action:Zb.a.Default.ERROR})}var rv=n(9);function ov(t){return(ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var iv,av={register:function(){var t=this;rv.registerHelper("lang",(function(e,n){if(t.isValid(e,n)){var r=n.data.root.languageNamespace;return Hr.a.getPhrase(r,e,n.hash)}}))},isValid:function(t,e){return"string"!=typeof t?(r.a.ErrorHelper.throw(new w.a("No language key provided.")),!1):"object"!==ov(e)?(r.a.ErrorHelper.throw(new w.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(e.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new w.a("No `lang` property provided.")),!1)}};function cv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}!function(t){t[t.Row=0]="Row",t[t.LargeRow=1]="LargeRow",t[t.Hero=2]="Hero",t[t.ResourcesTile=3]="ResourcesTile"}(iv||(iv={}));var uv=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"name",get:function(){return Oy.a.SEARCH}}])&&cv(e.prototype,n),r&&cv(e,r),t}();function sv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var lv=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"name",get:function(){return Oy.a.NOTIFICATIONS}}])&&sv(e.prototype,n),r&&sv(e,r),t}();function fv(t){return(fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hv(t,e){return(hv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dv(t){var e=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(t){return!1}}();return function(){var n,r=vv(t);if(e){var o=vv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bv(this,n)}}function bv(t,e){return!e||"object"!==fv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vv(t){return(vv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hv(t,e)}(i,t);var e,n,r,o=dv(i);function i(){return pv(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:a.b.SEARCH,action:a.a.Search.HOME},videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},series:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.SERIES},tagSearch:{application:a.b.SEARCH,action:a.a.Search.HOME},newLibrary:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY},folder:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.FOLDER}}}}])&&yv(e.prototype,n),r&&yv(e,r),i}(uv),gv=n(55);function Sv(t){return(Sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ov(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kv(t,e){return(kv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cv(t){var e=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(t){return!1}}();return function(){var n,r=Rv(t);if(e){var o=Rv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ev(this,n)}}function Ev(t,e){return!e||"object"!==Sv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rv(t){return(Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kv(t,e)}(i,t);var e,n,r,o=Cv(i);function i(){return Ov(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},notifications:{application:a.b.NOTIFICATIONS,action:a.a.Notifications.HOME},pastReleases:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.PAST_RELEASES},awaitingReview:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW},editStaffRequest:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.EDIT_REQUEST}}}},{key:"notificationTypesWithAppLinks",get:function(){return[gv.a.VideoReviewReminder,gv.a.VideoReviewAddedToLibrary,gv.a.CustomLibraryVideoAvailable,gv.a.StaffRequest,gv.a.StaffRequestFulfilled,gv.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&wv(e.prototype,n),r&&wv(e,r),i}(lv);new h;o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(t,e,n){var r=t.$("[name="+e+"]"),o=r.closest(".form-group");r.removeClass("is-invalid"),o.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(t,e,n,r){var o=t.$("[name="+e+"]"),i=o.closest(".form-group");o.addClass("is-invalid"),i.find(".form-feedback").addClass("invalid-feedback").html(n)}});var Pv=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[d.a.ALERT,d.a.POPUP,d.a.HIDDEN]})});Pv.addInitializationStep((function(t,e){t.registerLayout(kp.a.ManageLayout,sy),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(po,{size:100}),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(mv).registerInstance(_v),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(Co,{dataServiceErrorMessageMappings:Eo.a,defaultErrorMessageKey:Eo.b}),e(t)})).addInitializationStep((function(t,e){var n={maxAlerts:3,defaultSuccessAlert:{heading:Ro.c.Success,type:Ro.a.Success},defaultErrorAlert:{heading:Ro.c.Fail,type:Ro.a.Fail},alertViewCtor:Gi};b.a.registerSingleton(new ta(n));var r=b.a.getInstance(m.b.Alerts),o={cache:eo.a.Fifo,dataProvider:v.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,b.a.registerDataService(ea.a,o).registerDataService(na.a,o).registerDataService(pa,o).registerDataService(Va,o).registerDataService(Ma.a,o).registerDataService(gc,o).registerDataService(Lc,o).registerDataService(Hc,o).registerDataService(Qc,o).registerDataService(hi,o).registerDataService(Ru,o).registerDataService(Vu,o).registerDataService(Qu,o).registerDataService(as,o).registerDataService(cs.a,o).registerDataService(xs,o).registerDataService(Us,o).registerDataService(Xs,o).registerDataService(Rl,o).registerDataService(Ci,o).registerDataService(Hl,o).registerDataService(Kl,o).registerDataService(sf,o).registerDataService(Sf,o).registerDataService(Lf,o).registerDataService(Kf,o).registerDataService(fp,o).registerDataService(wp,o);var i={cache:eo.a.Fifo,dataProvider:v.a.Notifications,alertService:r};b.a.registerDataService(Go,i),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(dh).registerInstance(Gh).registerInstance(nd).registerInstance(yd).registerInstance(Vy).registerInstance(wd).registerInstance(xd).registerInstance(Md).registerInstance(Wd).registerInstance(h),b.a.registerSingleton(new Ty).registerSingleton(new Sy).registerSingleton(new db).registerSingleton(new kb).registerSingleton(new jb).registerSingleton(new Fb),b.a.getInstance(m.a.Config).getConfig((function(n){b.a.registerInstance(Zy,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notificationHub",logging:!0}),b.a.getInstance(m.a.Language).getLanguageConfig((function(t){Hr.a.setConfig(t),b.a.releaseInstance(m.a.Language)})),e(t),b.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(t,e){var n,r,o,i=b.a.getInstance(m.a.Config),a=b.a.getInstance(m.a.User);function c(){return new Promise((function(t,e){a.getCurrentUser((function(e){t(e.toJSON())}),(function(){e()}))}))}var u=new O.a(3),s=function(){if(u.decrement(),!(u.getValue()>0)){var i=new I({user:r.toJSON(),config:n.toJSON()});b.a.registerSingleton(i),i.registerTransport(W),i.registerClient(pe);var a=n.get("countryCode").toLowerCase();i.registerClient(ne,{productName:"cloud.web",productVersion:o,regionName:Xt[a],collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:c,shouldLog:Fe.shouldLog,formatData:Fe.formatData}),i.registerEnricher(Oe,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(st),i.registerClient(re.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),b.a.releaseInstance(m.a.Config),b.a.releaseInstance(m.a.User),e(t)}};i.getVersion((function(t){o=t,s()})),i.getConfig((function(t){n=t,s()})),a.getCurrentUser((function(t){r=t,s()}))})).addInitializationStep((function(t,e){t.registerApplication($e).registerApplication(En).registerApplication(Vn).registerApplication(Jn).registerApplication(ir).registerApplication(mr).registerApplication(Tr).registerApplication(Fr).registerApplication(to),e(t)})).addInitializationStep((function(t,e){b.a.getInstance(m.a.Config).getVersion((function(n){var o=b.a.getInstance(v.a.Ajax);o.useMiddleware("versionInvalidation",(function(t,e,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new g.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(t){401===t.status&&r.a.ErrorHelper.throw(new S.a)})),e(t),b.a.releaseInstance(v.a.Ajax),b.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(t,e){r.a.View.AddViewDataExtension((function(t){return{languageNamespace:i.result(t,"lang")}})),e(t)})).addInitializationStep((function(t,e){av.register(),e(t)})).addInitializationStep((function(t,e){t.registerErrorHandler(Jb.a,nv).registerErrorHandler(Xy.a,Xb).registerErrorHandler(Yb.a,tv).registerErrorHandler($b.a,ev),e()})),Pv.addStartUpStep((function(t,e,n){var r=b.a.getInstance(m.a.Config);r.getConfig((function(o){r.getVersion((function(r){e.environment="DEVELOPMENT",e.version=r,oe.a.setUpVariables({isDevelopment:!1}),n(t,e),b.a.releaseInstance(m.a.Config)}))}))})).addStartUpStep((function(t,e,n){b.a.getInstance(m.a.Config).getConfig((function(r){console.log("%cWelcome to the new %c▶%cClick%cView%c! 🔥🎉🙏","color: grey; font-size:24px","color:#f8981d; font-size:24px","color:#f8981d; font-size:24px","color:black; font-size:24px","color: grey; font-size:24px"),console.log("%cIf you have any issues or need any help with anything, please contact our friendly product support team. ".concat(r.get("supportSiteUrl")),"color: black; font-size:14px"),n(t,e),b.a.releaseInstance(m.a.Config)}))})),Pv.start()},function(t,e){t.exports=s},function(t,e){t.exports=l}])}));
|