@clickview/library-editor 1.1.27-rc.3 → 1.1.27-rc.5

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.
Files changed (118) hide show
  1. package/dist/scripts/{bundle-d09fdf6233.min.js → bundle-a9be558519.min.js} +1 -1
  2. package/dist/scripts/bundles.json +1 -1
  3. package/package.json +3 -3
  4. package/dist/css/11.chunk.css +0 -135
  5. package/dist/css/18.chunk.css +0 -18
  6. package/dist/css/2.chunk.css +0 -143
  7. package/dist/css/34.chunk.css +0 -19
  8. package/dist/css/35.chunk.css +0 -18
  9. package/dist/css/36.chunk.css +0 -12
  10. package/dist/css/49.chunk.css +0 -33
  11. package/dist/css/52.chunk.css +0 -64
  12. package/dist/css/60.chunk.css +0 -16
  13. package/dist/css/63.chunk.css +0 -168
  14. package/dist/css/67.chunk.css +0 -76
  15. package/dist/css/68.chunk.css +0 -15
  16. package/dist/css/69.chunk.css +0 -15
  17. package/dist/css/70.chunk.css +0 -21
  18. package/dist/css/71.chunk.css +0 -38
  19. package/dist/css/72.chunk.css +0 -14
  20. package/dist/css/73.chunk.css +0 -35
  21. package/dist/css/74.chunk.css +0 -27
  22. package/dist/css/75.chunk.css +0 -4
  23. package/dist/css/76.chunk.css +0 -4
  24. package/dist/scripts/0.chunk.js +0 -83
  25. package/dist/scripts/1.chunk.js +0 -64
  26. package/dist/scripts/10.chunk.js +0 -62
  27. package/dist/scripts/11.chunk.js +0 -317
  28. package/dist/scripts/12.chunk.js +0 -56
  29. package/dist/scripts/13.chunk.js +0 -25
  30. package/dist/scripts/14.chunk.js +0 -272
  31. package/dist/scripts/15.chunk.js +0 -35
  32. package/dist/scripts/16.chunk.js +0 -79
  33. package/dist/scripts/17.chunk.js +0 -40
  34. package/dist/scripts/18.chunk.js +0 -40
  35. package/dist/scripts/19.chunk.js +0 -43
  36. package/dist/scripts/2.chunk.js +0 -33
  37. package/dist/scripts/20.chunk.js +0 -18
  38. package/dist/scripts/21.chunk.js +0 -55
  39. package/dist/scripts/22.chunk.js +0 -47
  40. package/dist/scripts/23.chunk.js +0 -47
  41. package/dist/scripts/24.chunk.js +0 -33
  42. package/dist/scripts/25.chunk.js +0 -25
  43. package/dist/scripts/26.chunk.js +0 -25
  44. package/dist/scripts/27.chunk.js +0 -10
  45. package/dist/scripts/28.chunk.js +0 -334
  46. package/dist/scripts/29.chunk.js +0 -202
  47. package/dist/scripts/3.chunk.js +0 -49
  48. package/dist/scripts/30.chunk.js +0 -137
  49. package/dist/scripts/31.chunk.js +0 -113
  50. package/dist/scripts/32.chunk.js +0 -115
  51. package/dist/scripts/33.chunk.js +0 -93
  52. package/dist/scripts/34.chunk.js +0 -63
  53. package/dist/scripts/35.chunk.js +0 -48
  54. package/dist/scripts/36.chunk.js +0 -33
  55. package/dist/scripts/37.chunk.js +0 -25
  56. package/dist/scripts/38.chunk.js +0 -25
  57. package/dist/scripts/39.chunk.js +0 -11
  58. package/dist/scripts/4.chunk.js +0 -26
  59. package/dist/scripts/40.chunk.js +0 -182
  60. package/dist/scripts/41.chunk.js +0 -175
  61. package/dist/scripts/42.chunk.js +0 -176
  62. package/dist/scripts/43.chunk.js +0 -113
  63. package/dist/scripts/44.chunk.js +0 -122
  64. package/dist/scripts/45.chunk.js +0 -85
  65. package/dist/scripts/46.chunk.js +0 -78
  66. package/dist/scripts/47.chunk.js +0 -70
  67. package/dist/scripts/48.chunk.js +0 -88
  68. package/dist/scripts/49.chunk.js +0 -62
  69. package/dist/scripts/5.chunk.js +0 -10
  70. package/dist/scripts/50.chunk.js +0 -64
  71. package/dist/scripts/51.chunk.js +0 -55
  72. package/dist/scripts/52.chunk.js +0 -47
  73. package/dist/scripts/53.chunk.js +0 -56
  74. package/dist/scripts/54.chunk.js +0 -56
  75. package/dist/scripts/55.chunk.js +0 -41
  76. package/dist/scripts/56.chunk.js +0 -41
  77. package/dist/scripts/57.chunk.js +0 -50
  78. package/dist/scripts/58.chunk.js +0 -33
  79. package/dist/scripts/59.chunk.js +0 -33
  80. package/dist/scripts/6.chunk.js +0 -40
  81. package/dist/scripts/60.chunk.js +0 -33
  82. package/dist/scripts/61.chunk.js +0 -33
  83. package/dist/scripts/62.chunk.js +0 -25
  84. package/dist/scripts/63.chunk.js +0 -25
  85. package/dist/scripts/64.chunk.js +0 -33
  86. package/dist/scripts/65.chunk.js +0 -34
  87. package/dist/scripts/66.chunk.js +0 -33
  88. package/dist/scripts/67.chunk.js +0 -25
  89. package/dist/scripts/68.chunk.js +0 -25
  90. package/dist/scripts/69.chunk.js +0 -25
  91. package/dist/scripts/7.chunk.js +0 -33
  92. package/dist/scripts/70.chunk.js +0 -25
  93. package/dist/scripts/71.chunk.js +0 -25
  94. package/dist/scripts/72.chunk.js +0 -25
  95. package/dist/scripts/73.chunk.js +0 -25
  96. package/dist/scripts/74.chunk.js +0 -25
  97. package/dist/scripts/75.chunk.js +0 -25
  98. package/dist/scripts/76.chunk.js +0 -25
  99. package/dist/scripts/77.chunk.js +0 -26
  100. package/dist/scripts/78.chunk.js +0 -26
  101. package/dist/scripts/79.chunk.js +0 -26
  102. package/dist/scripts/8.chunk.js +0 -33
  103. package/dist/scripts/80.chunk.js +0 -26
  104. package/dist/scripts/81.chunk.js +0 -26
  105. package/dist/scripts/82.chunk.js +0 -26
  106. package/dist/scripts/83.chunk.js +0 -26
  107. package/dist/scripts/84.chunk.js +0 -26
  108. package/dist/scripts/85.chunk.js +0 -26
  109. package/dist/scripts/86.chunk.js +0 -18
  110. package/dist/scripts/87.chunk.js +0 -18
  111. package/dist/scripts/88.chunk.js +0 -18
  112. package/dist/scripts/89.chunk.js +0 -18
  113. package/dist/scripts/9.chunk.js +0 -18
  114. package/dist/scripts/90.chunk.js +0 -18
  115. package/dist/scripts/91.chunk.js +0 -18
  116. package/dist/scripts/92.chunk.js +0 -18
  117. package/dist/scripts/bundle.js +0 -9254
  118. package/dist/scripts/polyfills.js +0 -2694
@@ -5,4 +5,4 @@
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var r=n(994),o=n(995),i=n(996);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var f=!0,p=0;p<c;p++)if(u(e,i+p)!==u(t,p)){f=!1;break}if(f)return i}return-1}function v(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function S(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function O(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return H(F(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=d,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):y.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){i=u[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=M(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function x(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:U(new c(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(257))},function(e,t,n){"use strict";var r=n(477);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(479);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(480);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(481);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(482);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(483);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(198);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var l=n(484);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(485);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(486);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(487);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var d=n(488);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var y=n(489);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var g=n(490);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var b=n(491);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var m=n(492);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var v=n(493);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var S=n(494);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(495);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(496);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var C=n(497);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var E=n(498);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var k=n(499);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var R=n(500);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(501);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}))},function(e,t,n){"use strict";var r=n(478);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(503);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(506);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(513);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(514);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(515);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(516);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(517);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var l=n(518);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));n(519);var f=n(520);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(521);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(522);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var d=n(199);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var y=n(523);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var g=n(524);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var b=n(525);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var m=n(526);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var v=n(527);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var S=n(528);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(200);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(529);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var C=n(530);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var E=n(531);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var k=n(532);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var R=n(533);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(534);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));var _=n(201);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));n(535);var A=n(536);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables}));var T=n(537);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables}));var x=n(538);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables}));var L=n(539);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables}));var N=n(540);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables}));var D=n(541);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables}));var I=n(542);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables}));var V=n(543);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables}));var j=n(544);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables}));var B=n(545);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables}));var M=n(546);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables}));var U=n(547);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables}));var F=n(548);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables}));var H=n(549);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables}));var z=n(550);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables}));var q=n(551);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables}));var W=n(552);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var Y=n(553);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables}));var G=n(554);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables}));var J=n(555);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables}));var $=n(556);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables})),n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var K=n(557);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables}));var Q=n(558);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables}));var Z=n(559);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables}));var X=n(560);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables}));var ee=n(561);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables}))},function(e,t,n){"use strict";var r=n(504);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(505);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(507);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(508);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(509);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));n(510);var a=n(511);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(512);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e.Pink="colour:0",e.Pizazz="colour:1",e.Emerald="colour:2",e.PictonBlue="colour:3",e.EastSide="colour:4",e.Portage="colour:5"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(563);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(e,t){},function(e,t,n){"use strict";var r=n(565);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(566);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(567);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(568);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(569);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(570);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(571);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(573);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(574);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(575);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(576);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(577);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(578);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(579);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(43);class o{get name(){return r.a.SEARCH}}class i{get name(){return r.a.NOTIFICATIONS}}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(2),o=n(6),i=n(36),a=n(3);const s="shared.tooManyFiles";class c extends i.a{constructor(){super(a.a.getPhrase(s,"title"))}get name(){return"TooManyFilesError"}get dialogOptions(){return{title:a.a.getPhrase(s,"heading"),text:a.a.getPhrase(s,"body"),buttons:[{text:a.a.getPhrase(s,"okay"),className:"btn btn-primary",success:!0}]}}}var u=n(240),l=n(234),f=n(44);n.d(t,"a",(function(){return p}));class p extends r.a.Behavior{initialize(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}get events(){return{drop:"onDrop",drag:"onDrag"}}lock(){this.locked=!0}unlock(){this.locked=!1}onDrop(e){if(this.locked)return;e.preventDefault();const t=e.originalEvent;if(!u.a.isFileDrag(e))return;const n=[];if(t.dataTransfer.items)for(let e=0;e<t.dataTransfer.items.length;e++)"file"===t.dataTransfer.items[e].kind&&n.push(t.dataTransfer.items[e].getAsFile());else for(let e=0;e<t.dataTransfer.files.length;e++){const r=t.dataTransfer.files[e];n.push(r)}if(n.length>1&&!this.options.acceptMultiple)return void r.a.ErrorHelper.throw(new c);o.Radio.channel(this.options.channelName).trigger(f.a.FILES_SELECTED,n,l.a.DragDrop),t.dataTransfer.items?t.dataTransfer.items.clear():t.dataTransfer.clearData()}}},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){e.exports={videoGroupList:"_38Usa"}},function(e,t,n){e.exports={partialSubFolder:"_1ltue"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.title:i,t))+'"></h6>\r\n<p class="my-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestedBy:i,t))+'"></p>\r\n<p class="my-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.date:i,t))+'"></p>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badge:i,t))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>'},useData:!0})},function(e,t,n){e.exports={content:"_3_8yg"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>'},useData:!0})},function(e,t,n){e.exports={button:"_3owCz"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.video:i,t))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' partial-loading-background"></div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+' partial-loading-background mt-1"></div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subSubText:i,t))+' partial-loading-background mt-1"></div>'},useData:!0})},function(e,t,n){e.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"z4_PP",subText:"_1CvDv"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.back:i,t))+'"></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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.detailsTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.chaptersTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learningTab:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background">&nbsp</button>\r\n\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textbox:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background mb-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.player:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={player:"H6oUk"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c=e.lambda,u=e.escapeExpression;return' <div class="col-12 pr-3 py-1 '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.videoRow:s,t))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n <div class="partial-loading-background d-inline-block '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.text:s,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.views:s,t))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c=e.lambda,u=e.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.sortingRow:s,t))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.bulkCheckbox:s,t))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.sortOption:s,t))+'">\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 '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.sortOption:s,t))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.videoList:s,t))+'">\r\n'+(null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=(s=null!=t?t.options:t)?s.videoItems:s,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?s:"")+"</div>"},useData:!0,useDepths:!0})},function(e,t,n){e.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.toggle:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={row:"rShIv"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled>&nbsp</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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled>&nbsp</button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>'},useData:!0})},function(e,t,n){e.exports={button:"_1CETN"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.multilineSubText:i,t))+'"></div>\r\n <div class="my-2 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_2x-al",item:"hFvEo"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth1:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth3:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,s=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+c)>>>2,s.length<=i&&s.push(0),s[i]|=e[o]<<8*(u+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(s=(o>>>1)+u)>>>2;c.length<=a;)c.push(0);c[a]|=i<<8*(l+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,s,c,u,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,s=0;s<e.length;s+=1)for(a=[],128>(i=e.charCodeAt(s))?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):(s+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(s)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),c=0;c<a.length;c+=1){for(u=(l=h+y)>>>2;d.length<=u;)d.push(0);d[u]|=a[c]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,s=0;s<e.length;s+=1){for(i=e.charCodeAt(s),!0===p&&(i=(c=255&i)<<8|i>>>8),u=(l=h+y)>>>2;d.length<=u;)d.push(0);d[u]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,s,c,u,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(c=e.substr(i,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(u=(l=f+h)>>>2;p.length<=u;)p.push(0);p[u]|=(s>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,s,c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(s=i+u)>>>2,c.length<=a&&c.push(0),c[a]|=o<<8*(l+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",s=t/8,c=-1===n?3:0;for(o=0;o<s;o+=1)i=e[o>>>2]>>>8*(c+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,s,c,u,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(c=i+1<f?e[i+1>>>2]:0,u=i+2<f?e[i+2>>>2]:0,s=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(c>>>8*(p+r*((i+1)%4))&255)<<8|u>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(s>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(s+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),s=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function u(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,d,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)y[h]=h<16?e[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),s(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),c(r,o,i),f,2400959708,y[h]):l(a(n,5),s(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=u(n,t[0]),t[1]=u(r,t[1]),t[2]=u(o,t[2]),t[3]=u(i,t[3]),t[4]=u(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,s=i>>>5;for(t=0;t<s;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=i(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=o(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));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 c(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.18-rc.4"}')},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(1),o=n(4),i=n(233);const a=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],s=["sort"],c=["release-date","subjects"];class u extends i.a{constructor(e){super(e)}initialize(){this.bootstrap(this.options.trackingId,this.options.userId)}get name(){return"GoogleAnalyticsClient"}shouldLog(e){const t=u.eventWhitelist[e.type];return r.isBoolean(t)?t:!!r.isFunction(t)&&t(e)}log(e){this.logPageView(e)}logPageView(e){if(!e||r.isArray(e.data))return;const t=e.data.currentLocation;t&&this.ga("set","page",t),this.ga("send","pageview")}bootstrap(t,n){this.ga||(e.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:t,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:u.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}static get queryParamWhitelist(){return[...a,...c,...s]}static get eventWhitelist(){return{[o.UserAction.Navigate]:e=>!r.isArray(e.data)&&e.data.currentLocation}}}}).call(this,n(984))},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"multiple"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'accept="'+e.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=t?t.mimeType:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=t?t.acceptMultiple:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=t?t.mimeType:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" />"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.spinnerEl:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.each.call(a,null!=t?t.buttons:t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.spinnerButton:t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return' <button type="'+u("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:c)?a.call(s,{name:"type",hash:{},data:o}):a)+'" class="'+u("function"==typeof(a=null!=(a=n.className||(null!=t?t.className:t))?a:c)?a.call(s,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(s,null!=t?t.close:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">"+u("function"==typeof(a=null!=(a=n.text||(null!=t?t.text:t))?a:c)?a.call(s,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(e,t,n,r,o){return'data-dismiss="modal"'},5:function(e,t,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="modal-dialog '+u("function"==typeof(a=null!=(a=n.size||(null!=t?t.size:t))?a:c)?a.call(s,{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">'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:c)?a.call(s,{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">&times;</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!=t?t.content:t))?a:c)?a.call(s,{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(s,null!=t?t.buttons:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))?i:""},useData:!0})},function(e,t,n){e.exports=n(985).default},function(e,t,n){e.exports={svgContainer:"_1nWzn"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.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="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</span> "+c(s(null!=(i=null!=t?t.options:t)?i.createText:i,t))+" "+c("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:l)?a.call(u,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)?a.call(u,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(e,t,n){"use strict";var r=n(453);n.d(t,"BaseCollectionIdentifier",(function(){return r.a}));n(454),n(455),n(456),n(150),n(457),n(458),n(459),n(460)},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.link:i,t))+'">'+s("function"==typeof(a=null!=(a=n.appLinkText||(null!=t?t.appLinkText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="d-inline-block '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">\r\n <span class=" d-inline-block '+c(s(null!=(i=null!=t?t.options:t)?i.svgClass:i,t))+" "+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.typeSvg:i,t))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertContent:i,t))+'">\r\n <p class="p-0 m-0 pb-1 '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.heading:i,t))+'">'+c("function"==typeof(a=null!=(a=n.heading||(null!=t?t.heading:t))?a:l)?a.call(u,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=t?t.message:t))?a:l)?a.call(u,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(u,null!=t?t.appLink:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">&times;</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="left-nav-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.leftNav:i,t))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.topNav:i,t))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sizingBox:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLeftNav:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+s(a(null!=(i=null!=t?t.options:t)?i.contentBoxClassName:i,t))+'">\r\n <div class="content-region container px-0 '+s(a(null!=(i=null!=t?t.options:t)?i.contentContainerClassName:i,t))+'"></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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBox:i,t))+" "+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBoxWithIntercom:i,t))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return"ClickView "+a(e.lambda(null!=(i=null!=t?t.options:t)?i.currentYear:i,t))+" | "+a((n.lang||t&&t.lang||c).call(s,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||t&&t.lang||c).call(s,"version",{name:"lang",hash:{version:null!=(i=null!=t?t.options:t)?i.version:i},data:o}))},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.dropMask:i,t))+'"></div>\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.dropContent:i,t))+'">\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.border:i,t))+'">\r\n <h1>'+c("function"==typeof(a=null!=(a=n.fileDropText||(null!=t?t.fileDropText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.dropArea:i,t))+'"></div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+s(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+s(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+s(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+s(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+s(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+s(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){e.exports=n(993).default},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c=e.lambda,u=e.escapeExpression;return' <span class="border rounded align-middle '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.term:s,t))+'">'+u(c(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c,u=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+u(e.lambda(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.termContainer:s,t))+'">\r\n'+(null!=(s=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?s:"")+"</span>\r\n<span>"+u("function"==typeof(c=null!=(c=n.description||(null!=t?t.description:t))?c:e.hooks.helperMissing)?c.call(l,{name:"description",hash:{},data:o}):c)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+c("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(u,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+c("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(u,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression,c=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:s)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+c("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:s)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:s)?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">'+c("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:s)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+c(s(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<span class="badge float-right '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+s(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return' <div class="result-title collection"> '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<a class="row" href="'+s(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(c,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression;return'<a class="row" href="'+c(s(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+s(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchIcons:i,t))+'">\r\n <span class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+' search-btn">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showCloseButton:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"</div>\r\n"},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+' close-btn">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n"},4:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+s(a(null!=(i=null!=t?t.options:t)?i.avatar:i,t))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block svg-container '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.arrow:i,t))+'">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.arrowSvg:i,t))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.iconSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return(null!=(i=a(null!=(i=null!=t?t.options:t)?i.prefix:i,t))?i:"")+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.title:i,t))+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.iconSvg:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){e.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="dropdown-item '+c(s(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'">\r\n <div class="m-0 '+c(s(null!=(i=null!=t?t.options:t)?i.displayName:i,t))+'"><strong>'+c("function"==typeof(a=null!=(a=n.displayName||(null!=t?t.displayName:t))?a:l)?a.call(u,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+c("function"==typeof(a=null!=(a=n.customerName||(null!=t?t.customerName:t))?a:l)?a.call(u,{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(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"text-danger "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.errorMargin:i,t))},3:function(e,t,n,r,o){return"mr-3"},5:function(e,t,n,r,o){return"text-danger"},7:function(e,t,n,r,o){return"text-muted"},9:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+s(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'%" aria-valuenow="'+s(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.isDone:i,{name:"unless",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o}))?i:"")+' <span class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+" "+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hiddenCancel:i,t))+'" title="'+c((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},12:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},14:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+c((n.lang||t&&t.lang||s).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+c((n.lang||t&&t.lang||s).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+' align-middle" title="'+c((n.lang||t&&t.lang||s).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+'">\r\n '+c(s(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(7,o,0),data:o}))?i:"")+' progress-text">'+c(s(null!=(i=null!=t?t.options:t)?i.status:i,t))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(11,o,0),inverse:e.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.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(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressDropdown:i,t))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"><span class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.uploadButtonSvg:i,t))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.uploadSvg:i,t))?i:"")+"</span>"+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasLibraries:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.items:t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.itemCount:i,t))+'">'+s("function"==typeof(a=null!=(a=n.items||(null!=t?t.items:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hasErrors:t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<a class="navbar-brand text-hide align-top '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.logoContainer:i,t))+' 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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBarContainer:i,t))+'">\r\n <div class="search-bar-region container '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionButtons:i,t))+'">\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(e,t,n){e.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(e,t,n){e.exports={topNav:"_3xqNh"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a;e.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.count:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(s,null!=t?t.icon:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" "+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.count:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,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>'+e.escapeExpression(e.lambda(t,t))+'</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(e,t,n){e.exports={banner:"_1kvBB"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"disabled"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return'title="'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="py-2 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.banner:i,t))+'">\r\n '+a((n.lang||t&&t.lang||c).call(s,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">"+a((n.lang||t&&t.lang||c).call(s,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r,o,i=n(54),a=n(87),s=n(8),c=n(21),u=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};if("undefined"==typeof XMLHttpRequest){var f=require;o=f("request")}var p=function(t){function n(e){var n=t.call(this)||this;if(void 0===o)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=o.jar(),n.request=o.defaults({jar:n.cookieJar}),n}return u(n,t),n.prototype.send=function(t){var n=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new i.a):new Promise((function(r,o){var u;u=Object(c.g)(t.content)?e.from(t.content):t.content||"";var f=n.request(t.url,{body:u,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:l({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(e,c,u){if(t.abortSignal&&(t.abortSignal.onabort=null),e)return"ETIMEDOUT"===e.code&&(n.logger.log(s.a.Warning,"Timeout from HTTP request."),o(new i.c)),n.logger.log(s.a.Warning,"Error from HTTP request. "+e),void o(e);c.statusCode>=200&&c.statusCode<300?r(new a.b(c.statusCode,c.statusMessage||"",u)):o(new i.b(c.statusMessage||"",c.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){f.abort(),o(new i.a)})}))},n.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},n}(a.a)}).call(this,n(475).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(125),o=n(21),i=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,i;if(Object(o.g)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(c=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var s=c+1;n=String.fromCharCode.apply(null,a.slice(0,s)),i=a.byteLength>s?a.slice(s).buffer:null}else{var c,u=t;if(-1===(c=u.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=u.substring(0,s),i=u.length>s?u.substring(s):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[i,f]},t}()}).call(this,n(475).Buffer)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(30),i=n(5),a=n(22),s=n(43),c=n(15),u=n(696),l=n.n(u),f=n(249),p=n.n(f);class h extends r.a.Component{constructor(e){super(e)}get name(){return"NotificationStatusComponent"}get className(){return`notification-status mx-2 ${p.a.notificationIcon} ${p.a[this.options.color]}`}get template(){return l.a}initialize(){this.listenTo(this.model,"change:unreadCount",this.render)}viewOptions(){return{styles:p.a,svg:c.a.getSvg(c.b.Bell),unreadCount:this.model.get("unreadCount")}}}var d=n(230),y=n(53),g=n(25),b=n(191),m=n(700),v=n.n(m),S=n(465),w=n.n(S),O=n(466),C=n.n(O);class E extends r.a.View{constructor(e){super(e)}get name(){return"NotificationPopoverView"}get title(){return!1}get lang(){return"notifications.notificationsPopover"}get className(){return"notifications-container"}get template(){return v.a}regions(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:g.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:w.a,className:"px-1 py-2",viewOptions:{styles:C.a}}}}}}}get elements(){return{anchor:".see-all"}}get appLinks(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}initialize(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(s.a.NOTIFICATIONS,this)}onData(e){this.collection=e,this.render()}getCollectionIdentifier(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new b.a({collectionPrefix:y.a.NOTIFICATIONS})}renderNotificationList(){const e=new d.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}triggerSeen(){this.notificationService.markNotificationsSeen()}onBeforeRender(){return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),e=>this.onData(e)),!!this.collection}viewOptions(){return{hasNotifications:this.collection&&this.collection.length}}onRender(){this.renderNotificationList(),this.triggerSeen()}}var k=n(701),R=n.n(k),P=n(702),_=n.n(P);class A extends r.a.View{initialize(){this.appVariables=i.a.getInstance(s.a.NOTIFICATIONS)}get name(){return"NotificationHeaderView"}get title(){return!1}get className(){return"d-flex align-items-center position-relative"}get template(){return R.a}regions(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}events(){return{"click .notifications-status-region":"renderNotificationList"}}renderNotificationList(){const e=new E({childType:d.a.Popover});this.showChildView("notifications",e)}renderNotificationStatus(){const e=i.a.getInstance(a.b.Notification),t=new h({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}viewOptions(){return _.a}onRender(){this.renderNotificationStatus()}}var T=n(1),x=n(6),L=n(4),N=n(42),D=n(119),I=n(90),V=n(3),j=n(703),B=n.n(j);const M=/&/g,U=/[\W]+/g,F=/\s+/g,H={className:"info-link"},z={escapeExpression:e=>window.Handlebars.escapeExpression(e),escapeRegExp:e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),slugify(e){if(e)return e.toLowerCase().replace(M,"and").replace(U," ").trim().replace(F,"-").substr(0,80)},linkifyText(e,t){if(!e)return;const n=t?T.extend({},H,t):H;return B()(e,n)},isEqual:(e,t)=>!!e&&!!t&&e.toString()===t.toString(),toTitleCase:e=>e.split(" ").map(e=>(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")).join(" ")};var q=n(24),W=n(13);n(98);W.a;const Y={dataServiceName:a.a.User,dataChannelName:q.b.USER},G={getCurrentUserFetchOptions:(e,t)=>Object.assign(Object.assign({},Y),{eventPrefix:y.a.CURRENT_USER,fetchData:e=>e.getCurrentUser(),setData:e,onError:t}),currentUser:{dataServiceName:a.a.User,eventName:y.a.CURRENT_USER+":sync",getData:e=>e.getCurrentUser(),getInstance:e=>i.a.getInstance(a.a.User,e),beforeOnBeforeRender:!0}},J={showMask(e={}){const{targetSelector:t,additionalClasses:n,fade:r=!0}=e;if($(".mask").length)return;const o=$("<div>",{class:"mask "+(n||"")});return r&&o.addClass("fade show"),$(o).appendTo(J.getTarget(t)),$(J.getTarget(t)).addClass("mask-lock"),o},hideMask(e){const t=e||$(".mask");if(!t.length)return;$(".mask-lock").removeClass("mask-lock"),t.remove()},getTarget(e){const t=$(e||"#app");if(t.length)return t}};var K=n(238),Q=n(75),Z=n(23);const X={getContextualSearchQueryParams(e){if(!e||!e.get("filterParam"))return{};return{[e.get("filterParam")]:e.get("filterValue")}}};var ee;!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(ee||(ee={}));var te=n(122);const ne=te.a.SuggestionLimit,re={prepareQuery:(e,t,n={})=>{const{model:r,libraryIds:o,presentationId:i}=n;r&&r.get("filterValue")&&(e+=` ${r.get("filterParam")}:"${r.get("filterValue")}"`);let a=`${t.url}?q=${e}`;return o&&(a+="&ids="+o),i&&(a+="&presentationId="+i),a},bloodhoundConfig:(e,t)=>({datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:T.partial(re.prepareQuery,T,T,t),transform:T.partial(re.handleResult,T,e)}}),handleResult:(e={},t,n={})=>t===Z.a.Subjects?re.processSubjectResult(e[t]):t===Z.a.Video?re.processVideoResult(e[t]):n.showFolder&&t===Z.a.Folder?re.processFolderResult(e[t]):t===Z.a.Series?re.processSeriesResult(e[t]):t===Z.a.Tags?re.processTagsResult(e[t]):[],processSubjectResult:e=>e?(e=re.processCollection(e),T.map(e,e=>(e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e))):[],processVideoResult:e=>e?(e=re.processCollection(e),T.map(e,e=>(e.cached||(e.topics=T.map(e.topics,e=>({name:e})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e))):[],processTagsResult(e){if(!e)return[];const t=i.a.getInstance(s.a.SEARCH,this);return e=re.processCollection(e),T.map(e,e=>(e.cached||(e.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},t.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e))},processSeriesResult:e=>e?(e=re.processCollection(e),T.map(e,e=>{let t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=T.first(e.folder)),T.extend({},e,{collectionType:void 0,collection:t})})):[],processFolderResult:e=>e?(e=re.processCollection(e,{limit:ne.Folder}),T.map(e,e=>{const{library:t={}}=e;return t.type===ee.Exchange&&(t.name="Exchange"),T.extend({},e,{libraryId:t.id,libraryName:t.name,libraryType:t.type})})):[],processCollection(e,t={}){const{limit:n=ne.Default}=t;return e.slice(0,n)}},oe={getRecentSearches(e,t){let n=t.cacheGet(e);return T.isArray(n)||(n=[]),n},setRecentSearches(e,t,n){T.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches(e,t,n){const{add:r,remove:o,query:i,limit:a=5}=n;let s=oe.getRecentSearches(e,t);const c=T.indexOf(s,i);return r&&-1===c&&s.unshift(i),o&&c>-1&&s.splice(c,1),s.length>a&&(s=s.slice(0,a)),oe.setRecentSearches(e,s,t),s}};var ie,ae=n(95);!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(ie||(ie={}));class se extends r.a.Behavior{get defaults(){return{title:"",placement:ie.bottom,size:"popover-md"}}set defaults(e){}get ui(){return{popoverContainer:this.options.containerSelector}}set ui(e){let t={};this.view.ui&&(t=T.result(this.view,"ui")),this.view._ui=T.extend({},t,e)}events(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}bindListeners(){this.options.toggleEventName&&this.listenTo(this.view.channelName,""+this.options.toggleEventName,this.toggle)}bindBodyClickListener(){$("body").one("click.popover"+this.view.cid,this.onClickOutside.bind(this))}bindDropdownListener(){$("body").one("show.bs.dropdown.popover"+this.view.cid,this.onClickOutside.bind(this))}onPopoverInserted(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}onPopoverHidden(){$("body").off("click.popover"+this.view.cid),$("body").off("show.bs.dropdown.popover"+this.view.cid)}toggle(){this.view.$el.popover("toggle")}hide(){this.view.$el.popover("hide")}onClickPopover(e){e.stopPropagation()}onClickOutside(){this.hide()}getTrigger(){return this.options.toggleEventName?"manual":"click"}onAttach(){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)}}var ce=n(705),ue=n.n(ce),le=n(706),fe=n.n(le),pe=n(252),he=n.n(pe);class de extends r.a.Component{get name(){return"SearchTipComponentItem"}get template(){return fe.a}get className(){return"py-2 "+he.a.tip}viewOptions(){return{styles:he.a}}}class ye extends r.a.ComponentCollection{get name(){return"SearchTipComponentCollection"}get childView(){return de}}class ge extends r.a.Component{initialize(){this.collection=new r.a.Collection([{term:[""+V.a.getPhrase(this.lang,"firstTerm")],description:""+V.a.getPhrase(this.lang,"firstDescription")},{term:[""+V.a.getPhrase(this.lang,"secondTerm")],description:""+V.a.getPhrase(this.lang,"secondDescription")},{term:[""+V.a.getPhrase(this.lang,"thirdTerm")],description:""+V.a.getPhrase(this.lang,"thirdDescription")},{term:[""+V.a.getPhrase(this.lang,"fourthTerm1"),""+V.a.getPhrase(this.lang,"fourthTerm2")],description:""+V.a.getPhrase(this.lang,"fourthDescription")},{term:[""+V.a.getPhrase(this.lang,"fifthTerm")],description:""+V.a.getPhrase(this.lang,"fifthDescription")}])}get name(){return"SearchTipsComponent"}get template(){return ue.a}get lang(){return"search.searchTips"}get behaviors(){return[{behaviorClass:se,containerSelector:".popover-container",title:V.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:e=>this.renderTips(e)}]}renderTips(e){this.showChildView(e,new ye({collection:this.collection}))}viewOptions(){return{styles:he.a,searchInfoSvg:c.a.getSvg(c.b.Info)}}}var be=n(135),me=n(707),ve=n.n(me),Se=n(133),we=n.n(Se);class Oe extends r.a.Component{initialize(){this.listenTo(q.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}get name(){return"SearchContextComponent"}get template(){return ve.a}get tagName(){return"span"}get className(){return we.a.searchContextContainer}get behaviors(){return[{behaviorClass:be.a,selector:".tool-tip",placement:"left"}]}get elements(){return{contextTag:"."+we.a.searchContextTag,clearSvg:"."+we.a.svgContainer}}events(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}onClick(){x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}onMouseEnter(){this.model.set("preventTypeaheadClose",!0)}onMouseLeave(){this.model.set("preventTypeaheadClose",!1)}toggleFocus(e){const t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(we.a.tagFocus):t.removeClass(we.a.tagFocus))}viewOptions(){return{styles:we.a,closeSvg:c.a.getSvg(c.b.Close)}}onBeforeRender(){return!!this.model.get("searchTag")}}var Ce=n(708),Ee=n.n(Ce),ke=n(709),Re=n.n(ke);class Pe extends r.a.Component{constructor(e){super(e)}get name(){return"RecentSearchResultComponent"}get template(){return Ee.a}get className(){return"text-capitalize p-2 container-fluid"}events(){return{"click .remove-recent":"onClick"}}viewOptions(){return{styles:Re.a,closeSvg:c.a.getSvg(c.b.Close)}}onClick(e){return e.stopPropagation(),setTimeout(()=>{x.Radio.channel(this.options.channelName).trigger("remove:recent",this.model.get("name"))},0),this.destroy(),!1}}var _e=n(710),Ae=n.n(_e);class Te extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(s.a.SEARCH,this)}get name(){return"SeriesSearchResultComponent"}get template(){return Ae.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(z.slugify(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}viewOptions(){return{url:this.getUrl(),name:this.model.get("name")}}}var xe=n(711),Le=n.n(xe);class Ne extends r.a.Component{get name(){return"TagSearchResultComponent"}get template(){return Le.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}}var De=n(192),Ie=n(713),Ve=n.n(Ie);class je extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(s.a.SEARCH,this)}get name(){return"VideoSearchResultComponent"}get template(){return Ve.a}get className(){return"video-result p-2 container-fluid"}regions(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getCollection(){const{categories:e,series:t}=this.model;if(e&&e.length){return{name:e.first().get("name"),type:"Folder"}}if(t&&t.get("name"))return{name:t.get("name"),type:"Series"}}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(z.slugify(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}renderThumbnail(){const e=new De.a({model:this.model});this.showChildView("thumbnail",e)}viewOptions(){return{collection:this.getCollection(),url:this.getUrl()}}onRender(){this.renderThumbnail()}}var Be=n(286),Me=n(714),Ue=n.n(Me);class Fe extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(s.a.SEARCH,this)}get name(){return"ClassificationSearchResultComponent"}get template(){return Ue.a}get className(){return"p-2 container-fluid"}regions(){return{cover:{replaceElement:!0,el:".cover-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),z.slugify(this.model.get("name"))]}))}renderThumbnail(){const e=new De.a({model:this.model,classNameOverride:Be.coverImage+" responsive-img"});this.showChildView("cover",e)}viewOptions(){return{url:this.getUrl(),styles:Be}}onRender(){this.renderThumbnail()}}var He=n(467),ze=n.n(He),qe=n(468),We=n.n(qe),Ye=n(469),Ge=n.n(Ye),Je=n(470),$e=n.n(Je),Ke=n(471),Qe=n.n(Ke),Ze=n(472),Xe=n.n(Ze),et=n(473),tt=n.n(et),nt=n(474),rt=n.n(nt),ot=n(715),it=n.n(ot),at=n(287),st=n.n(at),ct=n(716),ut=n.n(ct),lt=n(717),ft=n.n(lt),pt=n(139);const{SuggestionLimit:ht}=te.a;class dt extends r.a.View{constructor(e){super(e),this.viewCache={}}initialize(){this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.appVariables=i.a.getInstance(s.a.SEARCH,this),this.storageHelper=I.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}get name(){return"SearchBarView"}get title(){return!1}get tagName(){return"form"}get template(){return it.a}get lang(){return"search.searchBar"}get channelName(){return"searchbar:"+this.cid}get className(){return"search-query-container position-relative m-0 w-100 form-control p-0 "+st.a.searchBar}get defaults(){return{showRecentSearch:!0}}get elements(){return{input:"#search",searchBarContainer:".search-bar-container"}}events(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}get bindings(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}regions(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:g.a.Component,options:{template:ft.a,className:"w-100",viewOptions:{styles:ut.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}get recentSearchKey(){return"recent:search:"+this.currentUser.id}bindListeners(){this.listenTo(q.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(q.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}getOrCacheView(e,t){const{ctor:n,viewOptions:r}=t;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}clearViewCache(){T.each(this.viewCache,e=>e.destroy()),this.viewCache={}}getDynamicTemplate(e){return e===Q.b.Recent?e=>this.getOrCacheView("recent:"+e,{ctor:Pe,viewOptions:{model:new r.a.Model({name:e}),channelName:this.channelName}}).render().el:e===Z.a.Subjects?e=>this.getOrCacheView(e.id,{ctor:Fe,viewOptions:{model:new r.a.Model(e)}}).render().el:e===Z.a.Video?e=>this.getOrCacheView(e.id,{ctor:je,viewOptions:{model:new r.a.Model(e)}}).render().el:e===Z.a.Folder?ze.a:e===Z.a.Series?e=>this.getOrCacheView(e.id,{ctor:Te,viewOptions:{model:new r.a.Model(e)}}).render().el:e===Z.a.Tags?e=>this.getOrCacheView(e.id,{ctor:Ne,viewOptions:{model:new r.a.Model(e)}}).render().el:void 0}getLimits(e){return Z.a.Folder,ht.Folder}updateSearchHistory(e){const{add:t,remove:n}=e;let{query:r}=e;r=r.trim();const o=oe.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:ht.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}handleRecentSearch(){if(!this.options.showRecentSearch)return;if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(oe.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}onDeleteRecentSearch(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}getInstantSearchAppLink(e,t){if(t===Z.a.Series){const t=[e.id];return this.appVariables.addSlugs&&t.push(z.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:t})}if(t===Z.a.Video){const t=[e.id];return this.appVariables.addSlugs&&t.push(z.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t})}return t===Z.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===Z.a.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id,z.slugify(e.name)]}):void 0}onTypeaheadSelect(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?Z.a.Subjects:n,"object"==typeof t&&t.id){const e=this.getInstantSearchAppLink(t,n);if(!e)return!1;const{data:o,action:i}=N.a.buildInstantSearchEvent(this.model.get("query"),t,n);return D.a.log(L.UserAction.InstantSearch,o,i),this.model.clear(),this.getUI("input").typeahead("close"),x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(e),!1}const o="string"==typeof t?t:t.query;this.model.set({query:o});const i=n===Q.b.Recent?L.DirectSearchDescriptor.Recent:L.DirectSearchDescriptor.ShowAll;return this.submitQuery(i),!1}onClickSearch(e){return e.stopPropagation(),this.submitQuery(L.DirectSearchDescriptor.SearchIcon),!1}onClickClose(){pt.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}onSubmit(e){return e.preventDefault(),this.submitQuery(L.DirectSearchDescriptor.Submit),!1}submitQuery(e){this.updateInitialQuery();const t=this.model.get("query");if(!t)return;this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");const n=X.getContextualSearchQueryParams(this.searchContext);x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}resetQuery(){this.model.set({query:this.model.get("initialQuery")})}updateInitialQuery(){this.model.set({initialQuery:this.model.get("query")})}logSearch(e,t){const{data:n,action:r}=N.a.buildSearchEvent(e,t);D.a.log(L.UserAction.Search,n,r)}onTypeaheadOpen(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});const e=this.model.get("query");e&&e.length>=te.a.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}onBeforeTypeaheadClose(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}onTypeaheadClose(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}showMask(){this.options.disableMask||(this.$el.addClass("active"),J.showMask())}hideMask(){this.options.disableMask||J.hideMask()}alignTypeahead(){const e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}onTypeaheadRender(e,t,n,r){r===Q.b.Recent&&this.handleRecentSearch()}initTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:select",T.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",T.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",T.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",T.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",T.bind(this.onTypeaheadOpen,this))}initNoLibrariesTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:open",T.bind(this.showMask,this)),e.on("typeahead:close",T.bind(this.hideMask,this)),e.on("typeahead:select",T.bind(()=>{r.a.AppLinkHelper.trigger(this.appVariables.appLinks.newLibrary)},this))}onKeydown(e){8!==e.keyCode||this.model.get("query")||x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}onResetSearchContext(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}getRecentSearchBloodhound(){const e=oe.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}getDynamicBloodhoundConfig(){return re.bloodhoundConfig}getDynamicTypeaheadConfig(){const e=ae.a.getTemplate(Xe.a,{fallbackTemplate:$e.a}),t=ae.a.getTemplate(Ge.a,{fallbackTemplate:$e.a,templateText:V.a.getPhrase(this.lang,"findingResults")});return(n,r)=>({name:this.getConfigName(n.name),source:ae.a.handleQuery(n.bloodhound,{fetchType:Q.a.Remote}),limit:this.getLimits(n.name),display:e=>e.name,async:!0,templates:{header:e,pending:0===r?t:$e.a,notFound:$e.a,suggestion:this.getDynamicTemplate(n.name),footer:Qe.a}})}getConfigName(e){switch(e){case Z.a.Subjects:return V.a.getPhrase(this.lang,"classifications");case Z.a.Video:return V.a.getPhrase(this.lang,"videos");case Z.a.Tags:return V.a.getPhrase(this.lang,"tags");case Z.a.Series:return V.a.getPhrase(this.lang,"series")}return e}getDynamicOptions(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}getRecentSearchSources(){return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:Q.b.Recent,source:ae.a.handleQuery(this.recentSearchEngine,{fetchType:Q.a.Local,ignoreOnQuery:!0}),limit:ht.Default,templates:{header:()=>tt.a({templateText:V.a.getPhrase(this.lang,"recentSearches")}),suggestion:this.getDynamicTemplate(Q.b.Recent)}}]}getDirectSearchSources(){return[{name:Q.b.Direct,source:ae.a.handleQuery(),display:e=>e.query,templates:{suggestion:ae.a.getTemplate(We.a,{fallbackTemplate:$e.a,templateText:V.a.getPhrase(this.lang,"allResults")}),footer:Qe.a}}]}getDynamicSearchSources(){const e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return ae.a.getSearchSources([{name:Z.a.Subjects,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}getSources(){const e=[...this.getDirectSearchSources(),...this.getDynamicSearchSources()];return this.options.showRecentSearch&&e.push(...this.getRecentSearchSources()),e}getNoLibrariesSource(){return[{name:"NoLibrary",source:ae.a.handleQuery(),display:e=>e.query,templates:{suggestion:ae.a.getTemplate(rt.a,{fallbackTemplate:$e.a,templateText:V.a.getPhrase(this.lang,"noLibraries")})}}]}initializeTypeahead(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}hasLibraries(){return!!this.libraryCollection.length}getLibraryIds(){return this.libraryCollection.map(e=>e.id)}viewOptions(){return{styles:st.a,svg:c.a.getSvg(c.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:c.a.getSvg(c.b.Close),libraryText:this.appVariables.searchBarPlaceholder||V.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}get requiredResources(){return{currentUser:G.currentUser,libraryCollection:K.a.libraries}}renderSearchTips(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new ge)}renderSearch(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),x.Validation.bind(this)}renderPartialSearch(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}renderSearchContext(){this.isRendered()&&this.showChildView("searchContext",new Oe({model:this.searchContext}))}onRender(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}onClose(){this.getUI("input").off(),this.unstickit(),x.Validation.unbind(this)}}var yt=n(137),gt=n(82),bt=n(0),mt=n(718),vt=n.n(mt),St=n(288),wt=n.n(St),Ot=n(190),Ct=n(136),Et=n(12),kt=n(298),Rt=n(720),Pt=n.n(Rt),_t=n(721),At=n.n(_t);function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nt(e,t,n){return t&&Lt(e.prototype,t),n&&Lt(e,n),e}function Dt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}function It(e,t){return(It=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bt(e);if(t){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jt(this,n)}}function jt(e,t){return!t||"object"!==Tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bt(e){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){Dt(n,e);var t=Vt(n);function n(e){return xt(this,n),t.call(this,e)}return Nt(n,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return Pt.a}},{key:"onRender",value:function(){this.showChildView("items",new Ut({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 At.a}}]),n}(r.a.Component),Ut=function(e){Dt(n,e);var t=Vt(n);function n(e){return xt(this,n),t.call(this,e)}return Nt(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return kt.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}(a,e);var t,n,o,i=Wt(a);function a(){return Ht(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Mt({model:this.currentUser,collection:new r.a.Collection([{title:V.a.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:c.a.getSvg(c.b.NewWindow)},{title:V.a.getPhrase(this.lang,"settings"),href:gt.a.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:c.a.getSvg(c.b.NewWindow)},{title:V.a.getPhrase(this.lang,"helpCentre"),href:gt.a.safeUrlConcat(this.config.get("supportSiteUrl"),bt.y.LIBRARY_EDITOR),external:!0,icon:c.a.getSvg(c.b.NewWindow)},{divider:!0},{title:V.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(e=Et.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:wt.a,avatar:e,arrowSvg:c.a.getSvg(c.b.ChevronDown)}):{};var e}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return vt.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(wt.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:Ot.b.config,currentUser:Ct.b.currentUser}}}])&&zt(t.prototype,n),o&&zt(t,o),a}(r.a.View),$t=n(44),Kt=n(9),Qt=n(307),Zt=n(723),Xt=n.n(Zt);function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return an(this,n)}}function an(e,t){return!t||"object"!==en(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}(a,e);var t,n,r,o=on(a);function a(){return tn(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(bt.x.PendingItems,this),this.listenTo(q.c.PENDING_ITEMS,$t.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:Kt.h.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(e){var t=this;this.pendingItemsService.clearPendingItem(e,(function(){t.render()}))}},{key:"onRetryPendingItem",value:function(e){var t=this;this.pendingItemsService.retryPendingItem(e,(function(){t.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new Qt.a({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Xt.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)}}])&&nn(t.prototype,n),r&&nn(t,r),a}(r.a.View),un=n(289),ln=n.n(un),fn=n(724),pn=n.n(fn),hn=n(308),dn=n(138);function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bn(e,t){return(bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vn(this,n)}}function vn(e,t){return!t||"object"!==yn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bn(e,t)}(s,e);var t,n,r,a=mn(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){var e=this;this.pendingItemsService=i.a.getInstance(bt.x.PendingItems,this),this.listenTo(bt.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){e.model.get("items")||e.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 hn.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new cn)}},{key:"viewOptions",value:function(){return{styles:ln.a,uploadSvg:c.a.getSvg(c.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 e={},t=".".concat(ln.a.upload),n={application:bt.b.UPLOAD,action:bt.a.Upload.FILE_SELECTION},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"channelName",get:function(){return bt.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 pn.a}},{key:"requiredResources",get:function(){return{libraries:dn.b.libraries}}}])&&gn(t.prototype,n),r&&gn(t,r),s}(r.a.View),On=n(726),Cn=n.n(On),En=n(727),kn=n.n(En);function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xn(e);if(t){var o=xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tn(this,n)}}function Tn(e,t){return!t||"object"!==Rn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"PageHeaderComponent",(function(){return Ln}));var Ln=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_n(e,t)}(a,e);var t,n,r,i=An(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"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 e={actionType:L.UserAction.Click,descriptor:L.ClickDescriptor.NavigateHome,location:L.LocationContext.TopNav,entity:L.EntityType.Logo},t={currentLocation:N.a.buildCurrentLocation()};N.a.logUserAction(t,e)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:yt.c})}},{key:"renderSearchBar",value:function(){var e=new dt({model:this.getSearchModel()});this.showChildView("search",e)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var e=new wn;this.showChildView("upload",e)}}},{key:"renderNotificationsStatus",value:function(){var e=new A;this.showChildView("notifications",e)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new Jt)}},{key:"viewOptions",value:function(){return{styles:kn.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 Cn.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&Pn(t.prototype,n),r&&Pn(t,r),a}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),i=n(3),a=n(15),s=n(61),c=n(728),u=n.n(c),l=n(729),f=n.n(l),p=n(9),h=n(730),d=n.n(h),y=n(291),g=n.n(y);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){w(n,e);var t=C(n);function n(e){return m(this,n),t.call(this,e)}return S(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 e=this.model.get("getCount");if(r.isFunction(e))return e()}},{key:"viewOptions",value:function(){return{styles:g.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(g.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 d.a}}]),n}(o.a.Component),P=function(e){w(n,e);var t=C(n);function n(e){return m(this,n),t.call(this,e)}return S(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return R}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),_=n(58),A=n(0),T=n(136),x=n(5),L={warningPublisherArchive:n(731)};function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"TopNavigationView",(function(){return M}));var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(h,e);var t,n,c,l=V(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,e)}return t=h,(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(A.g.ContentUpdates,this),this.settingsDataService=x.a.getInstance(A.g.Settings,this),this.migrationVideoDataService=x.a.getInstance(A.g.MigrationVideo,this),this.staffRequestDataService=x.a.getInstance(A.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(A.e.SETTINGS,"".concat(A.f.SETTINGS,":sync"),this.render),this.listenTo(A.e.VIDEO,"".concat(A.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(A.e.STAFF_REQUEST,"".concat(A.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(A.e.MIGRATION,"".concat(A.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(A.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var e=this,t=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:A.b.LIBRARY_EDITOR,action:A.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:A.b.STAFF_REQUESTS,action:A.a.StaffRequests.HOME,getCount:function(){return e.staffRequestCollection&&e.staffRequestCollection.length},requiredSetting:{name:s.a.StaffRequest,value:p.k.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:A.b.CONTENT_UPDATES,action:A.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return e.contentUpdatesCollection&&e.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:A.b.VIDEO_ACCESS,action:A.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(t)),_.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:A.b.MIGRATION_WIZARD,action:A.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?L.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(e){var t=this;return e.filter((function(e){if(!r.has(e,"requiredSetting"))return!0;var n=t.settings.findWhere({name:e.requiredSetting.name});return!!n&&n.get("value")===e.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 P({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(f.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}}}])&&D(t.prototype,n),c&&D(t,c),h}(o.a.View)},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){},function(e,t,n){},function(e,t){e.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(e),o=[],a=[];for(n=new c(n),t=0;t<r.length;t++){var p=r[t];if("StartTag"!==p.type)if("Chars"===p.type){var h=u(p.chars,n);o.push.apply(o,h)}else o.push(p);else{o.push(p);var d=p.tagName.toUpperCase(),y="A"===d||s.contains(n.ignoreTags,d);if(!y)continue;var g=o.length;l(d,r,++t,o),t+=o.length-g-1}}for(t=0;t<o.length;t++){var b=o[t];switch(b.type){case"StartTag":var m="<"+b.tagName;if(b.attributes.length>0){var v=f(b.attributes);m+=" "+v.join(" ")}m+=">",a.push(m);break;case"EndTag":a.push("</"+b.tagName+">");break;case"Chars":a.push(b.chars);break;case"Comment":a.push("\x3c!--"+b.chars+"--\x3e")}}return a.join("")};var r,o=n(986),i=(r=o)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(348));var s=a.options,c=s.Options;function u(e,t){for(var n=a.tokenize(e),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&t.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&t.check(i)){var s=t.resolve(i),c=s.formatted,u=s.formattedHref,l=s.tagName,f=s.className,p=s.target,h=s.attributes,d=[["href",u]];for(var y in f&&d.push(["class",f]),p&&d.push(["target",p]),h)d.push([y,h[y]]);r.push({type:"StartTag",tagName:l,attributes:d,selfClosing:!1}),r.push({type:"Chars",chars:c}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(e,t,n,r){for(var o=1;n<t.length&&o>0;){var i=t[n];"StartTag"===i.type&&i.tagName.toUpperCase()===e?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function f(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=r[0],i=r[1];t.push(o+'="'+(i.replace(/"/g,"&quot;")+'"'))}return t}},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(344)),o=c(n(345)),i=c(n(346)),a=c(n(347)),s=c(n(988));function c(e){return e&&e.__esModule?e:{default:e}}var u={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:s.default};t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.isSpace=function(e){return r.test(e)},t.isAlpha=function(e){return o.test(e)},t.preprocessInput=function(e){return e.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return new r.default(new o.default(i.default),t).tokenize(e)};var r=a(n(347)),o=a(n(345)),i=a(n(344));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(349),o=n(256),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),g=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(u,g),g.on(u,g);for(var b=0;b<a.length;b++){var m=(0,r.stateify)(a[b],p,o.TLD,o.DOMAIN);l.push.apply(l,m)}var v=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,v),l.push.apply(l,S),l.push.apply(l,w),l.push.apply(l,O);var C=v.pop(),E=S.pop(),k=w.pop(),R=O.pop(),P=f(o.DOMAIN),_=f(o.PROTOCOL),A=f(o.MAILTO);E.on("s",P).on(":",_),k.on("s",P).on(":",_),l.push(P),C.on(":",_),P.on(":",_),R.on(":",A);var T=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,T),p.on(s,h),h.on("-",y).on(s,h).on(c,d),d.on("-",y).on(c,d);for(var x=0;x<l.length;x++)l[x].on("-",y).on(c,d);y.on("-",y).on(s,d).on(c,d),p.defaultTransition=f(o.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],o=0;o<n;){for(var i=p,a=null,s=0,c=null,u=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(u=0,c=i):u>=0&&u++,s++,o++;if(!(u<0)){o-=u,s-=u;var l=c.emit();r.push(new l(e.substr(o-s,s)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(349),o=n(992),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),a=n(256);var s=function(e){return new r.TokenState(e)},c=s(),u=s(),l=s(),f=s(),p=s(),h=s(),d=s(),y=s(o.URL),g=s(),b=s(o.URL),m=s(o.URL),v=s(),S=s(),w=s(),O=s(),C=s(),E=s(o.URL),k=s(o.URL),R=s(o.URL),P=s(o.URL),_=s(),A=s(),T=s(),x=s(),L=s(),N=s(),D=s(o.EMAIL),I=s(),V=s(o.EMAIL),j=s(o.MAILTOEMAIL),B=s(),M=s(),U=s(),F=s(),H=s(o.NL);c.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),c.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,m).on(a.DOMAIN,m).on(a.NUM,m).on(a.LOCALHOST,m),h.on(a.DOT,d),L.on(a.DOT,N),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),N.on(a.TLD,D).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),D.on(a.DOT,N),y.on(a.COLON,g).on(a.SLASH,m),g.on(a.NUM,b),b.on(a.SLASH,m),D.on(a.COLON,I),I.on(a.NUM,V);var z=[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,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),v.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),S.on(a.CLOSEBRACE,m),w.on(a.CLOSEBRACKET,m),O.on(a.CLOSEANGLEBRACKET,m),C.on(a.CLOSEPAREN,m),E.on(a.CLOSEBRACE,m),k.on(a.CLOSEBRACKET,m),R.on(a.CLOSEANGLEBRACKET,m),P.on(a.CLOSEPAREN,m),_.on(a.CLOSEBRACE,m),A.on(a.CLOSEBRACKET,m),T.on(a.CLOSEANGLEBRACKET,m),x.on(a.CLOSEPAREN,m),S.on(z,E),w.on(z,k),O.on(z,R),C.on(z,P),S.on(q,_),w.on(q,A),O.on(q,T),C.on(q,x),E.on(z,E),k.on(z,k),R.on(z,R),P.on(z,P),E.on(q,E),k.on(q,k),R.on(q,R),P.on(q,P),_.on(z,E),A.on(z,k),T.on(z,R),x.on(z,P),_.on(q,_),A.on(q,A),T.on(q,T),x.on(q,x),m.on(z,m),v.on(z,m),m.on(q,v),v.on(q,v),l.on(a.TLD,j).on(a.DOMAIN,j).on(a.NUM,j).on(a.LOCALHOST,j),j.on(z,j).on(q,B),B.on(z,j).on(q,B);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,M).on(a.AT,U),y.on(W,M).on(a.AT,U),d.on(W,M),M.on(W,M).on(a.AT,U).on(a.DOT,F),F.on(W,M),U.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,D);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var a=c,s=null,u=null,l=0,f=null,p=-1;n<t&&!(s=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(350),o=n(197),i=n(256);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,o=[],s=0;r[s]instanceof i.PROTOCOL;)t=!0,o.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof i.SLASH;)n=!0,o.push(r[s].toString()),s++;for(;a(r[s]);)o.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)o.push(r[s].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(348));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}function c(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+s(r)+'"')}return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=o(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,h=f.formattedHref,d=f.tagName,y=f.className,g=f.target,b=f.attributes,m="<"+d+' href="'+s(h)+'"';y&&(m+=' class="'+s(y)+'"'),g&&(m+=' target="'+s(g)+'"'),b&&(m+=" "+c(b)),m+=">"+a(p)+"</"+d+">",r.push(m)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+h]=255&a,h+=d,a/=256,u-=8);e[n+h-d]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(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),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931),n(932),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983);var r=n(2),o=n(6),i=n(1);var a=n(0);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,r,s=f(p);function p(){return c(this,p),s.apply(this,arguments)}return t=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var e=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==e.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==e.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(e){this.listenTo(this.channelName,"visbility:change",e)}},{key:"removeVisibilityChangeListener",value:function(e){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",e)}},{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}}])&&u(t.prototype,n),r&&u(t,r),p}(r.a.Service),y=n(48),g=n(5),b=n(74),m=n(16),v=n(222),S=n(223);var w=n(153),O=n(19),C=n(14),E=n(30),k=n(139),R=n(120),P=n(231),_=n(232);var A=n(42);class T extends r.a.Service{constructor(e){super(),this.clients={},this.enrichers={};E.a.get("application:options").set(e),this.bindNavigationListener()}get name(){return _.a.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(P.a.ANALYTICS,R.a.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(e,t){this.validateConstructor(e);const n=new e(t);return this.enrichers[e.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){const t=e.prototype.name;t||r.a.ErrorHelper.throw(new O.a(`Classes registered with ${this.name} must have a unique name property.`));const n=t=>k.a.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.a.ErrorHelper.throw(new O.a(`A client class with the name: ${t} has already been registered with ${this.name}`)),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.a.ErrorHelper.throw(new O.a(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){var t;this.executeMiddleware=(t=this.executeMiddleware,(n,r)=>t(n,()=>e(n,r)))}executeMiddleware(e,t){t(e)}bindNavigationListener(){this.listenTo(C.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}logNavigate(e,t){A.a.logNavigate(e,t)}}var x=n(51);class L extends x.Object{}class N extends L{get name(){return"EventTransport"}get channelName(){return"event:transport"}publish(e){this.getChannel().trigger(R.a.Outlet,e)}subscribe(e){const t=e,n=n=>{k.a.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};i.isFunction(t.listenTo)?t.listenTo(this.getChannel(),R.a.Outlet,n):this.listenTo(this.getChannel(),R.a.Outlet,n)}}class D extends r.a.Service{enrich(e,t){}isType(e){return e===D.type}}D.type="BaseAnalyticsEnricher";class I extends D{get name(){return"UserDataEnricher"}initialize(){this.user=E.a.get("application:options").get("user")}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich("user",this.getUser(this.user)),t(e)}getUser(e){return{country:e.countryCode,customerId:e.customerId,id:e.id,role:e.role}}}var V="URLSearchParams"in self,j="Symbol"in self&&"iterator"in Symbol,B="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),M="FormData"in self,U="ArrayBuffer"in self;if(U)var F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],H=ArrayBuffer.isView||function(e){return e&&F.indexOf(Object.prototype.toString.call(e))>-1};function z(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function q(e){return"string"!=typeof e&&(e=String(e)),e}function W(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return j&&(t[Symbol.iterator]=function(){return t}),t}function Y(e){this.map={},e instanceof Y?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function G(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function J(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function K(e){var t=new FileReader,n=J(t);return t.readAsArrayBuffer(e),n}function Q(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Z(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:B&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:M&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:V&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():U&&B&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Q(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):U&&(ArrayBuffer.prototype.isPrototypeOf(e)||H(e))?this._bodyArrayBuffer=Q(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):V&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},B&&(this.blob=function(){var e=G(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?G(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var e,t,n,r=G(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=J(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},M&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}Y.prototype.append=function(e,t){e=z(e),t=q(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Y.prototype.delete=function(e){delete this.map[z(e)]},Y.prototype.get=function(e){return e=z(e),this.has(e)?this.map[e]:null},Y.prototype.has=function(e){return this.map.hasOwnProperty(z(e))},Y.prototype.set=function(e,t){this.map[z(e)]=q(t)},Y.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Y.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),W(e)},Y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),W(e)},Y.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),W(e)},j&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var X=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ee(e,t){var n,r,o=(t=t||{}).body;if(e instanceof ee){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Y(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Y(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),X.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function te(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function ne(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new Y(t.headers),this.url=t.url||"",this._initBody(e)}ee.prototype.clone=function(){return new ee(this,{body:this._bodyInit})},Z.call(ee.prototype),Z.call(ne.prototype),ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ne.error=function(){var e=new ne(null,{status:0,statusText:""});return e.type="error",e};var re=[301,302,303,307,308];ne.redirect=function(e,t){if(-1===re.indexOf(t))throw new RangeError("Invalid status code");return new ne(null,{status:t,headers:{location:e}})};var oe=self.DOMException;try{new oe}catch(e){(oe=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),oe.prototype.constructor=oe}function ie(e,t){return new Promise((function(n,r){var o=new ee(e,t);if(o.signal&&o.signal.aborted)return r(new oe("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Y,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new ne(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 oe("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(B?i.responseType="blob":U&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}ie.polyfill=!0,self.fetch||(self.fetch=ie,self.Headers=Y,self.Request=ee,self.Response=ne);var ae=n(681),se=n.n(ae),ce=n(682);const ue={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 le(e,t,n){const r=t.exec(n)||[];let[o]=r;return o||(o="Unknown"),{name:e,version:o}}function fe(e,t,n){if(!t)return{name:e,version:"Unknown"};const r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():"Unknown"}}const pe={getDeviceType(){const e=window.navigator.userAgent;return ue.mobileDevice.test(e)?ue.iphone.test(e)?"iPhone":ue.ipad.test(e)?"iPad":ue.android.test(e)?"Android":ue.blackberry.test(e)?"Blackberry":ue.windowsPhone.test(e)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return ue.android.test(e)?fe("Android",ue.androidVersion,e):ue.iphone.test(e)||ue.ipad.test(e)?fe("iOS",ue.iosVersion,e):ue.linux.test(e)?fe("Linux",null,e):ue.unix.test(e)?fe("Unix",null,e):ue.mac.test(e)?fe("Macintosh",ue.osxVersion,e):ue.windows.test(e)?function(e,t){const n={name:e,version:null};return ue.win2000.test(t)&&(n.version="2000"),ue.winXP.test(t)&&(n.version="XP"),ue.winVista.test(t)&&(n.version="Vista"),ue.win7.test(t)&&(n.version="7"),ue.win8.test(t)&&(n.version="8"),ue.win81.test(t)&&(n.version="8.1"),ue.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):ue.blackberry.test(e)?fe("BlackBerry",ue.blackberryVersion,e):ue.windowsPhone.test(e)?fe("Windows Phone",ue.windowsPhoneVersion,e):{name:"Unknown",version:"Unknown"}},getBrowser(){const e=window.navigator.userAgent;return ue.chrome.test(e)?le("Chrome",ue.generalVersion,e):ue.firefox.test(e)?le("Firefox",ue.generalVersion,e):ue.safari.test(e)?le("Safari",ue.generalVersion,e):ue.ie.test(e)?le("Internet Explorer",ue.ieVersion,e):ue.edge.test(e)?le("Edge",ue.edgeVersion,e):ue.opera.test(e)?le("Opera",ue.operaVersion,e):{name:"Unknown",version:"Unknown"}},isTouchScreen:()=>!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},he={isObject(e){const t=typeof e;return"function"===t||"object"===t&&!!e},isFunction:e=>"function"==typeof e},de={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith("/")||(n+="/"),t?(n+=t.startsWith("/")?t.slice(1):t,n):n}};var ye,ge=n(224);!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(ye||(ye={}));const be={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:ye.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:ye.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:ye.CvEuWest1}};var me;!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(me||(me={}));const ve={[me.AU]:ye.CvApSoutheast1,[me.NZ]:ye.CvApSoutheast2,[me.UK]:ye.CvEuWest1};var Se=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class we{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions()}get name(){return"CollectionApiClient"}log(e){return Se(this,void 0,void 0,(function*(){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),yield this.postData(yield this.formatData(e)))}))}logBulk(e){return Se(this,void 0,void 0,(function*(){const t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));const n=yield Promise.all(t.map(e=>this.formatData(e)));yield this.postData(n)}))}validateOptions(){if(!he.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(e){return!he.isFunction(this.options.shouldLog)||this.options.shouldLog(e)}postData(e){return Se(this,void 0,void 0,(function*(){const t=yield this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(n));let o=de.safeUrlConcat(t,"/v1/ingest");Array.isArray(e)&&(o=de.safeUrlConcat(o,"/bulk")),yield fetch(o,{method:"POST",mode:"cors",headers:r,body:n})}))}getSignatureHeader(e){const t=new se.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash("B64")}`}}getRegionalUrl(e){return Se(this,void 0,void 0,(function*(){switch((yield this.getRegion()).systemName){case ye.CvEuWest1:return e.cvEuWest1;case ye.CvApSoutheast2:return e.cvApSoutheast2;case ye.CvApSoutheast1:default:return e.cvApSoutheast1}}))}validateEvent(e){if("string"!=typeof e.type)throw new Error("Event type is required.");if(!he.isObject(e.actionContext))throw new Error("Event actionContext is required.");if(!e.actionContext.entity)throw new Error("Event actionContext entity is required.")}formatData(e){return Se(this,void 0,void 0,(function*(){return{type:e.type,data:yield this.getEventData(e),metadata:this.getEventMetadata(e)}}))}getEventData(e){return Se(this,void 0,void 0,(function*(){const t=e.actionContext,n={user:yield this.getUserData(),action:t,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},r=this.extractData(e),o=Object.keys(n).map(e=>e.toLowerCase()),i=Object.keys(r).map(e=>e.toLowerCase());return o.forEach(e=>{if(i.includes(e))throw Error(e+" is a reserved key.")}),Object.assign(Object.assign({},n),r)}))}extractData(e){return he.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}getUserData(){var e,t;return Se(this,void 0,void 0,(function*(){const n=yield this.options.getUser();if(null==n?void 0:n.id)return{id:n.id,role:(null===(e=n.role)||void 0===e?void 0:e.toLowerCase())||"unknown",userGroup:(null===(t=n.userGroup)||void 0===t?void 0:t.toLowerCase())||ge.a.Unknown,yearGroup:this.normalizeYearGroup(n.yearGroup),customer:{id:n.customerId,name:n.customerName,customerGuid:n.customerGuid,crmId:n.crmId,country:n.countryCode,region:yield this.getRegion(),openCustomer:!!n.isOpenCustomer}}}))}getRegion(){var e;return Se(this,void 0,void 0,(function*(){const t=yield this.options.getUser(),n=null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase(),r=n?ve[n]:this.options.regionName;return this.getRegionByName(r)}))}getPlatformMetadata(){return{browser:pe.getBrowser(),os:pe.getOperatingSystem(),request:{url:window.location.href,referrer:document.referrer},screenResolution:`${window.screen.width}x${window.screen.height}`}}getEventMetadata(e){return{client:{name:this.name+".ts",version:ce.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(be).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(" ").join("_"):"unknown"}}var Oe=n(683),Ce=n(63),Ee=n(233);class ke extends Ee.a{get name(){return"DebuggerClient"}shouldLog(){return Ce.a.isDevelopment}log(e){const t=i.clone(e);for(let n in e){let e=t[n];(e instanceof r.a.Model||e instanceof r.a.Collection)&&(t[n]=e.toJSON())}console.log("Event Debugger: ",t)}}var Re=n(29),Pe=n(186);class _e extends D{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return"CoreContextEnricher"}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich("coreContext",this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return Re.utc().toISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}getClientInfo(){const e=Pe.a.getOperatingSystem(),t=Pe.a.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`}}}var Ae=n(4);const Te={allow:()=>!0,restrict:()=>!1};function xe(e){const t={};return Object.keys(e).forEach(n=>{t[n]=((e,t)=>{switch(t){case"description":return Ae.EventDefaultValue.ValueUpdated;case"channel":case"rating":case"series":case"distributor":case"producer":return e&&e.id||Ae.EventDefaultValue.EntityRemoved;default:return e}})(e[n],n)}),t}const Le={passthrough:e=>e,getEditData(e,t){const{entity:n,location:r}=function(e){return he.isObject(e)&&he.isObject(e.actionContext)?{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}:{}}(t);return n===Ae.EntityType.Video&&r===Ae.LocationContext.EditVideoDetails?xe(e):e}};function Ne(e){if(e&&e.code)return e.code}function De(e,t={}){if(!e||!e.id)return;const n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}function Ie(e){if(!e||!e.length)return;const t=e[0];return{id:t.id,title:t.name}}const Ve={getVideoData(e){const{playbackStatus:t}=e,n=e.model,r=function(e){if(!e||!e.id)throw new Error("Video model required. Checking logging.");return{id:e.id,title:e.name,trackingCode:e.trackingCode,duration:e.duration}}(n),o=De(n.series),i=Ie(n.categories),a=De(n.owner,{ignoreTitle:!0}),s=De(n.playlist),c=Ne(n.rating),u={video:r};return c&&(u.rating=c),o&&(u.series=o),i&&(u.folder=i),a&&(u.owner=a),s&&(u.playlist=s),t&&(u.playbackStatus=t),u},getLegacyVideoData(e){const t=e.model,n={id:t.id.toString(),year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=Ne(t.rating),o=De(t.series),i=Ie(t.categories),a=De(t.owner,{ignoreTitle:!0}),s=De(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),s&&(n.playlist=s),n}},je={getUploadData(e,t){const{entity:n}=t.actionContext;if(n===Ae.EntityType.Video)return je.formatVideoUpload(e,t);if(n===Ae.EntityType.Resource||n===Ae.EntityType.Subtitle)return je.formatResourceUpload(e);if(n===Ae.EntityType.Banner||n===Ae.EntityType.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload(e,t){const{workflowPhase:n}=t.actionContext;return n===Ae.WorkflowPhase.Start?je.getStartVideoUploadData(e):n===Ae.WorkflowPhase.Discard?je.getDiscardVideoUploadData(e):n===Ae.WorkflowPhase.Complete?je.getCompleteUploadData(e):void 0},getStartVideoUploadData:e=>e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length}))):[],getDiscardVideoUploadData(e){const t=t=>{const{type:n,name:r,status:o,cvUpload:i}=t.file,a={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:o};return t.progress&&(a.progress=t.progress.toFixed(2)),i&&(a.uploadId=i.uploadId),a};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData:e=>e&&e.length?e.map(t=>{const{fileName:n,libraryId:r,folderId:o}=t;return{fileName:n,libraryId:r,folderId:o,count:e.length}}):[],formatResourceUpload(e){const{id:t,name:n}=e,r={id:t,name:n};return he.isObject(e.metadata)&&(r.type=e.metadata.type),r}},Be={[Ae.UserAction.Navigate]:Te.restrict,[Ae.UserAction.Click]:Te.allow,[Ae.UserAction.Search]:Te.allow,[Ae.UserAction.InstantSearch]:Te.allow,[Ae.UserAction.Play]:Te.allow,[Ae.UserAction.Stream]:Te.allow,[Ae.UserAction.StreamRaw]:Te.restrict,[Ae.UserAction.StreamProgress]:Te.allow,[Ae.UserAction.Rename]:Te.allow,[Ae.UserAction.Move]:Te.allow,[Ae.UserAction.Create]:Te.allow,[Ae.UserAction.Delete]:Te.allow,[Ae.UserAction.Associate]:Te.allow,[Ae.UserAction.Dissociate]:Te.allow,[Ae.UserAction.Filter]:Te.allow,[Ae.UserAction.Sort]:Te.allow,[Ae.UserAction.Approve]:Te.allow,[Ae.UserAction.Reject]:Te.allow,[Ae.UserAction.Disable]:Te.allow,[Ae.UserAction.Upload]:Te.allow,[Ae.UserAction.Download]:Te.restrict,[Ae.UserAction.SetAccess]:Te.allow,[Ae.UserAction.AddToLocalCache]:Te.restrict,[Ae.UserAction.Share]:Te.allow,[Ae.UserAction.Edit]:Te.allow,[Ae.UserAction.Suggest]:Te.allow,[Ae.UserAction.ResolveWarning]:Te.allow,[Ae.UserAction.DismissWarning]:Te.allow,[Ae.UserAction.EditAssoc]:Te.allow,[Ae.UserAction.Follow]:Te.allow},Me={[Ae.UserAction.Search]:Le.passthrough,[Ae.UserAction.InstantSearch]:Le.passthrough,[Ae.UserAction.Play]:Le.passthrough,[Ae.UserAction.Stream]:Ve.getLegacyVideoData,[Ae.UserAction.StreamRaw]:Le.passthrough,[Ae.UserAction.StreamProgress]:Le.passthrough,[Ae.UserAction.Click]:Le.passthrough,[Ae.UserAction.Filter]:Le.passthrough,[Ae.UserAction.Sort]:Le.passthrough,[Ae.UserAction.SetAccess]:Le.passthrough,[Ae.UserAction.Approve]:Le.passthrough,[Ae.UserAction.Reject]:Le.passthrough,[Ae.UserAction.Create]:Le.passthrough,[Ae.UserAction.Delete]:Le.passthrough,[Ae.UserAction.Rename]:Le.passthrough,[Ae.UserAction.Move]:Le.passthrough,[Ae.UserAction.Edit]:Le.passthrough,[Ae.UserAction.Share]:Le.passthrough,[Ae.UserAction.Disable]:Le.passthrough,[Ae.UserAction.Suggest]:Le.passthrough,[Ae.UserAction.Upload]:je.getUploadData,[Ae.UserAction.ResolveWarning]:Le.passthrough,[Ae.UserAction.DismissWarning]:Le.passthrough,[Ae.UserAction.Follow]:Le.passthrough},Ue={[Ae.UserAction.Search]:()=>"search",[Ae.UserAction.InstantSearch]:()=>"search",[Ae.UserAction.Filter]:()=>"filter",[Ae.UserAction.StreamRaw]:e=>e.actionContext.entity===Ae.EntityType.Interactive?Ae.EntityType.Video:e.actionContext.entity},Fe={user:"target_user"},He={[Ae.UserAction.StreamProgress]:!0},ze={shouldLog:e=>!!Be[e.type](e),formatData(e){const t=Me[e.type],n=he.isFunction(t)?t(e.data,e):e.data;if(He[e.type])return n;let r=e.actionContext.entity;return he.isFunction(Ue[e.type])&&(r=Ue[e.type](e)),Fe[r]&&(r=Fe[r]),{[r]:n}}};var qe=n(96);function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t,n){return t&&Ge(e.prototype,t),n&&Ge(e,n),e}function $e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=function(e){$e(n,e);var t=Qe(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Je(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),tt=function(e){$e(o,e);var t=Qe(o);function o(){return Ye(this,o),t.apply(this,arguments)}return Je(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 qe.e)}},{key:"notFound",value:function(){var e=this;n.e(51).then(n.bind(null,1595)).then((function(t){var n=t.NotFoundView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var e=this;n.e(50).then(n.bind(null,1596)).then((function(t){var n=t.ErrorView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var e=this;n.e(70).then(n.bind(null,1597)).then((function(t){var n=t.DevErrorView;e.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 et}}]),o}(r.a.Application),nt=n(97),rt=n(12),ot=n(193),it=n(69);var at=n(225);function st(e){return function(t,n){var o=g.a.getInstance(a.g.User),s=g.a.getInstance(a.g.Config);o.getCurrentUser((function(o){g.a.releaseInstance(a.g.User),i.contains(e,o.get("role"))?n(t):s.getConfig((function(t){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new at.a(e,t.get("onlineUrl")))}))}))}}function ct(e,t){var n=g.a.getInstance(a.g.User),o=g.a.getInstance(a.g.Config);n.getCurrentUser((function(n){g.a.releaseInstance(a.g.User),n.get("emailVerified")?t(e):o.getConfig((function(e){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new qe.b(e.get("onlineUrl")))}))}))}var ut=n(61);function lt(e,t){if(Ce.a.isDevelopment)t(e);else{var n=g.a.getInstance(a.g.Settings);g.a.getInstance(a.g.User).getCurrentUser((function(o){g.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),ut.a.CustomLibrariesBetaAccess,(function(n){(g.a.releaseInstance(a.g.Settings),n.get("value"))?t(e):g.a.getInstance(a.g.Config).getConfig((function(e){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new qe.d(e.get("marketingSiteUrl")))}))}))}))}}var ft=n(49),pt=n(58),ht=n(297);function dt(e,t){var n=g.a.getInstance(a.g.MigrationVideo),o=e.appLink;n.getCustomerMetadata((function(n){if(g.a.releaseInstance(a.g.MigrationVideo),pt.a.noPublisher(n))return r.a.ErrorHelper.throw(new qe.e),void r.a.AppLinkUtility.routingEnded();var s=pt.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(!s&&i.contains(c,o.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new ht.a);var u=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(pt.a.backupNotStarted(n)&&!i.contains(u,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(s&&pt.a.backupProcessing(n)&&!i.contains(l,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var f=[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(s&&pt.a.backupComplete(n)&&!i.contains(f,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function yt(e,t){if(Ce.a.isDevelopment)t(e);else{var n=e.appLink;g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(o){if(g.a.releaseInstance(a.g.MigrationVideo),pt.a.isCurrentlyMigratingAll(o)&&n.application!==a.b.MIGRATION_WIZARD&&n.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[o.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(pt.a.isInitialMigration(o)&&n.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 s=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(pt.a.isPublishingLibraries(o)&&!i.contains(s,n.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();t(e)}))}}var gt=function(){var e=docCookies.getItem("clear-video-cache");e&&(g.a.getInstance(a.g.Video).clearVideoCache(),g.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",e))};function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t,n){return t&&vt(e.prototype,t),n&&vt(e,n),e}function wt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kt(e);if(t){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Et(this,n)}}function Et(e,t){return!t||"object"!==bt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rt=function(e){wt(n,e);var t=Ct(n);function n(){return mt(this,n),t.apply(this,arguments)}return St(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Pt=function(e){wt(o,e);var t=Ct(o);function o(){return mt(this,o),t.apply(this,arguments)}return St(o,[{key:"initialize",value:function(){this.libraryDataService=g.a.getInstance(m.a.Library,this),g.a.getInstance(m.b.VideoDragDrop,this),g.a.getInstance(m.b.FolderDragDrop,this),this.pageVisibilityService=g.a.getInstance(m.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(e){e||gt()})),gt()}},{key:"index",value:function(){var e=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(t){var o=t.first();o?(e.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:e.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(e.renderLeftNav(),n.e(72).then(n.bind(null,1598)).then((function(t){var n=new(0,t.NoLibraryView);e.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(e){var t=this;this.libraryDataService.deselectAll(),this.renderLeftNav(e),n.e(26).then(n.bind(null,1650)).then((function(n){var r=new(0,n.LibraryView)({libraryId:e});t.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(e,t){var r=this,o=t.sort||rt.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(e),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new ot.a(e,rt.p.GetSortTypeFromName(o),t.cursor),analyticsOptions:{entity:Ae.EntityType.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(t){var n=ft.a.getLibrary(e,t);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(40)]).then(n.bind(null,1599)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Rename,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1600)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Move,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Create,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"newSubFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({parentId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Create,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteFolder",value:function(e){var t=this;n.e(65).then(n.bind(null,1602)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Delete,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(e,t){var r=this,o=t.sort||rt.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new ot.a(e,rt.p.GetSortTypeFromName(o),t.cursor);Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(e){var t=new(0,e.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:Ae.EntityType.Series}});r.layout.showChildView(a.n.CONTENT,t)})),this.renderLeftNav()}},{key:"moveVideos",value:function(e,t){var r=this,o=e.split(",");Promise.all([n.e(0),n.e(33)]).then(n.bind(null,1603)).then((function(e){var n=new(0,e.MoveVideoView)({videoIds:o,folderId:t,analyticsOptions:{descriptor:o.length>1?Ae.OperationDescriptor.Bulk:Ae.OperationDescriptor.Single,location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Move,entity:Ae.EntityType.Video,workflowPhase:Ae.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(e,t,r){var o=this;n.e(66).then(n.bind(null,1604)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:e,videoIds:t.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:t.length>1?Ae.OperationDescriptor.Bulk:Ae.OperationDescriptor.Single,location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Delete,entity:Ae.EntityType.Video,workflowPhase:Ae.WorkflowPhase.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(e){var t=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(25)]).then(n.bind(null,1646)).then((function(n){var r=new(0,n.VideoDetailsView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:e.toString()});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"editVideo",value:function(e){var t=this;nt.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ae.LocationContext.EditVideoDetails),Promise.all([n.e(9),n.e(13),n.e(27)]).then(n.bind(null,1644)).then((function(n){var r=new(0,n.EditVideoView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(e){var t=this;nt.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ae.LocationContext.EditVideoChapters),Promise.all([n.e(2),n.e(1),n.e(30)]).then(n.bind(null,1605)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(e){var t=this;nt.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ae.LocationContext.EditVideoResources),n.e(23).then(n.bind(null,1640)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(e,t){var r=this;n.e(35).then(n.bind(null,1606)).then((function(n){var o=new(0,n.EditResourceView)({videoId:e,resourceId:t,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Edit,entity:Ae.EntityType.Resource,workflowPhase:Ae.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var e=this;n.e(36).then(n.bind(null,1607)).then((function(t){var n=new(0,t.NewLibraryView)({});e.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(e){var t=this;n.e(64).then(n.bind(null,1608)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Rename,entity:Ae.EntityType.Library,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(e){var t=this;n.e(71).then(n.bind(null,1609)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Delete,entity:Ae.EntityType.Library,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(e,t){var r=this,o=t.sort||rt.p.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1610)).then((function(t){var n=new(0,t.GeneratePdfView)({collectionIdentifier:new ot.a(e,rt.p.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(e){var t=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1611)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(e){var t=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1612)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:e});t.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(e){var t=this;n.e(69).then(n.bind(null,1615)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(e){var t=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;t.layout.showChildView(a.n.POPUP,new r({masterId:e}))}))}},{key:"editFolderImages",value:function(e){var t=this;Promise.all([n.e(11),n.e(37)]).then(n.bind(null,1651)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(e){var t=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,1652)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:e});t.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(e,t){var r=this;Promise.all([n.e(9),n.e(38)]).then(n.bind(null,1645)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:e,metadata:t.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(e,t){var r=this;n.e(34).then(n.bind(null,1617)).then((function(n){var o=new(0,n.EditLinkView)({videoId:e,linkId:t,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Edit,entity:Ae.EntityType.Link,workflowPhase:Ae.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(e){var t=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(e,t){A.a.logUserAction(e,{actionType:Ae.UserAction.Edit,location:t,entity:Ae.EntityType.Video,descriptor:Ae.PageDescriptor.PageLoad,workflowPhase:Ae.WorkflowPhase.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 Rt}}]),o}(r.a.Application),_t=n(119);function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),e}function Nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dt(e,t)}function Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jt(e);if(t){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bt=function(e){Nt(n,e);var t=It(n);function n(){return Tt(this,n),t.apply(this,arguments)}return Lt(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Mt=function(e){Nt(r,e);var t=It(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Lt(r,[{key:"index",value:function(e){var t=this;if(nt.a.fromPageLoad()){var r=e&&e.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,1653)).then((function(n){var r=new(0,n.SearchView)({queryParams:e});t.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:e.toString()});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:e});t.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(e){if(e){var t=A.a.buildSearchEvent(e,Ae.PageDescriptor.PageLoad),n=t.data,r=t.action;_t.a.log(Ae.UserAction.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(e){var t=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:e});t.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 Bt}}]),r}(r.a.Application);function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zt(e,t,n){return t&&Ht(e.prototype,t),n&&Ht(e,n),e}function qt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}function Wt(e,t){return(Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jt(e);if(t){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==Ut(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jt(e){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $t=function(e){qt(n,e);var t=Yt(n);function n(){return Ft(this,n),t.apply(this,arguments)}return zt(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Kt=function(e){qt(r,e);var t=Yt(r);function r(){return Ft(this,r),t.apply(this,arguments)}return zt(r,[{key:"index",value:function(e){var t=this,r=i.isNaN(+e.page)?"1":e.page;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(24)]).then(n.bind(null,1619)).then((function(e){var n=e.RestrictedVideoListView;t.layout.showChildView(y.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(y.a.POPUP,new r({videoId:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(y.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 $t}}]),r}(r.a.Application),Qt=n(9);function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t,n){return t&&en(e.prototype,t),n&&en(e,n),e}function nn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return an(this,n)}}function an(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cn=function(e){nn(n,e);var t=on(n);function n(){return Xt(this,n),t.apply(this,arguments)}return tn(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[lt,st([it.a.Admin]),ct,(e=[{name:ut.a.StaffRequest,value:Qt.k.StaffRequest}],function(t,n){var o=g.a.getInstance(a.g.User),i=g.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){g.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){g.a.releaseInstance(a.g.Settings);var i=!1;e.forEach((function(e){var t=o.findWhere({name:e.name});if(!t||t.get("value")!==e.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new qe.a(e.name))})),i||n(t)}))}))}),yt];var e}}]),n}(r.a.AppRouter),un=function(e){nn(r,e);var t=on(r);function r(){return Xt(this,r),t.apply(this,arguments)}return tn(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(t){var n=t.StaffRequestsView;e.layout.showChildView(y.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(e,t){var r=this;t=t||{},Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(y.a.CONTENT,new o({requestId:e,referrer:t.referrer}))}))}},{key:"approveRequest",value:function(e,t,r){var o=this;this.editRequest(e),e&&t&&r&&n.e(68).then(n.bind(null,1620)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(y.a.POPUP,new i({requestId:e,libraryId:t,folderId:r}))}))}},{key:"rejectRequest",value:function(e){var t=this;this.editRequest(e),n.e(60).then(n.bind(null,1621)).then((function(n){var r=n.RejectStaffRequestView;t.layout.showChildView(y.a.POPUP,new r({requestId:e}))}))}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!1});t.layout.showChildView(y.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(y.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 cn}}]),r}(r.a.Application),ln=n(295),fn=n(27);function pn(e){return(pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(e,t,n){return t&&dn(e.prototype,t),n&&dn(e,n),e}function gn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bn(e,t)}function bn(e,t){return(bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vn(this,n)}}function vn(e,t){return!t||"object"!==pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wn=function(e){gn(n,e);var t=mn(n);function n(){return hn(this,n),t.apply(this,arguments)}return yn(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[lt,st([Qt.m.Admin]),ct,yt]}}]),n}(r.a.AppRouter),On=function(e){gn(o,e);var t=mn(o);function o(){return hn(this,o),t.apply(this,arguments)}return yn(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 e=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(22)]).then(n.bind(null,1622)).then((function(t){var n=t.AwaitingReviewView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(e){var t,r,o,s=this,c=e[fn.a.ReleaseDate]||ln.e.queryString,u=(t={},r=fn.a.ReleaseDate,o=c,r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t);this.setDefaultQueryParams(u),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(20)]).then(n.bind(null,1649)).then((function(t){var n=t.PastReleasesView;s.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},e,u)}))}))}},{key:"generatePdf",value:function(e){var t=this;n.e(43).then(n.bind(null,1623)).then((function(n){var r=n.GeneratePastReleasesPdfView;t.layout.showChildView(a.n.POPUP,new r({librariesQueryString:e[fn.a.Libraries],dateQueryString:e[fn.a.ReleaseDate],subjectQueryString:e[fn.a.Subjects]}))}))}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=n.ShareView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"disableReview",value:function(){var e=this;n.e(63).then(n.bind(null,1624)).then((function(t){var n=t.DisableReviewView;e.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"addToLibrary",value:function(e){var t=this;Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1625)).then((function(n){var r=n.AddToLibraryView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=t.PublishLibraryView;e.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 wn}}]),o}(r.a.Application);function Cn(e){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(e,t,n){return t&&kn(e.prototype,t),n&&kn(e,n),e}function Pn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_n(e,t)}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xn(e);if(t){var o=xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tn(this,n)}}function Tn(e,t){return!t||"object"!==Cn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ln=function(e){Pn(n,e);var t=An(n);function n(){return En(this,n),t.apply(this,arguments)}return Rn(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Nn=function(e){Pn(r,e);var t=An(r);function r(){return En(this,r),t.apply(this,arguments)}return Rn(r,[{key:"index",value:function(e){var t=this;n.e(49).then(n.bind(null,1626)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(a.n.CONTENT,new r({params:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.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 Ln}}]),r}(r.a.Application);function Dn(e){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t,n){return t&&Vn(e.prototype,t),n&&Vn(e,n),e}function Bn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mn(e,t)}function Mn(e,t){return(Mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hn(e);if(t){var o=Hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fn(this,n)}}function Fn(e,t){return!t||"object"!==Dn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hn(e){return(Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zn=function(e){Bn(n,e);var t=Un(n);function n(){return In(this,n),t.apply(this,arguments)}return jn(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),qn=function(e){Bn(r,e);var t=Un(r);function r(){return In(this,r),t.apply(this,arguments)}return jn(r,[{key:"initialize",value:function(){this.videoUploadService=g.a.getInstance(a.x.VideoUpload,this)}},{key:"fileSelection",value:function(){var e=this;n.e(61).then(n.bind(null,1627)).then((function(t){var n=new(0,t.FileSelectView);e.layout.showChildView(y.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(e){var t=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(13),n.e(29)]).then(n.bind(null,1642)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:e.folderId,analyticsOptions:{actionType:Ae.UserAction.Upload,entity:Ae.EntityType.Video,location:Ae.LocationContext.VideoUpload}});t.layout.showChildView(y.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var e=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1628)).then((function(t){var n=new(0,t.UploadCompleteView);e.layout.showChildView(y.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!1});t.layout.showChildView(y.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(y.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 zn}}]),r}(r.a.Application),Wn=n(3),Yn=/^clickviewactasuser.*/i,Gn={handleMismatch:function(){g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(e){(g.a.releaseInstance(a.g.MigrationVideo),pt.a.isInitialMigration(e))&&(e.keyContact&&e.keyContact.get("fullName")&&(Yn.test(e.keyContact.get("username"))||g.a.getInstance(a.g.User).getCurrentUser((function(t){g.a.releaseInstance(a.g.User),e.keyContact.get("userId")!==t.get("id")&&Gn.showDialog(e)}))))}))},showDialog:function(e){new rt.d({title:Wn.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:Wn.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:e.keyContact.get("fullName")}),buttons:[{text:Wn.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:Wn.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){g.a.getInstance(a.g.Config).getConfig((function(e){g.a.releaseInstance(a.g.Config),window.location=e.get("onlineUrl")}))}))}};function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),e}function Zn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xn(e,t)}function Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nr(e);if(t){var o=nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tr(this,n)}}function tr(e,t){return!t||"object"!==Jn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rr=function(e){Zn(n,e);var t=er(n);function n(){return $n(this,n),t.apply(this,arguments)}return Qn(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 Ce.a.isDevelopment?[ct]:[lt,ct,dt]}}]),n}(r.a.AppRouter),or=function(e){Zn(o,e);var t=er(o);function o(){return $n(this,o),t.apply(this,arguments)}return Qn(o,[{key:"initialize",value:function(){this.migrationVideoDataService=g.a.getInstance(a.g.MigrationVideo,this)}},{key:"index",value:function(e){e.folder?this.folder(e.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var e=this;n.e(57).then(n.bind(null,1629)).then((function(t){var n=t.PublisherBackupWelcomeView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var e=this;n.e(58).then(n.bind(null,1630)).then((function(t){var n=t.PublisherBackupView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var e=this;n.e(41).then(n.bind(null,1631)).then((function(t){var n=t.PublisherBackupProgressView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var e=this;n.e(56).then(n.bind(null,1632)).then((function(t){var n=t.PublisherBackupCompleteView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var e=this;n.e(46).then(n.bind(null,1633)).then((function(t){var n=t.StartView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(e){this.migrationVideoDataService.setSelected(e),this.renderSmartMigration(e)}},{key:"search",value:function(e){this.renderSmartMigration(void 0,e.term)}},{key:"progress",value:function(e,t){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1634)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:e,firstTime:!!t.initialMigration}))}))}},{key:"videosAdded",value:function(e,t){var r=this;n.e(59).then(n.bind(null,1635)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:e,firstTime:!!t.initialMigration}))}))}},{key:"selected",value:function(e){var t=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1636)).then((function(n){var r=n.SelectedVideosView;t.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:e}))}))}},{key:"showPublisherVideo",value:function(e){var t=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;t.layout.showChildView(a.n.POPUP,new r({trackingCode:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(e,t,r){var o=this;n.e(67).then(n.bind(null,1637)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:e,masterId:t,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var e=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1656)).then((function(t){var n=new(0,t.PublishLibraryProgressView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var e=this;n.e(54).then(n.bind(null,1638)).then((function(t){var n=new(0,t.PublishLibraryCompleteView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var e=this;Promise.all([n.e(2),n.e(1),n.e(6),n.e(28)]).then(n.bind(null,1641)).then((function(t){var n=new(0,t.MigrationErrorView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(e){var t=this;n.e(47).then(n.bind(null,1639)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:e.options});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(6),n.e(42)]).then(n.bind(null,1654)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:e,searchTerm:t});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var e=this;this.layoutLoaded||Gn.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(t){pt.a.isInitialMigration(t)||(pt.a.isCurrentlyMigratingAll(t)?Promise.resolve().then(n.bind(null,736)).then((function(t){var n=t.PageHeaderComponent;e.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,736)).then((function(t){var r=t.PageHeaderComponent;e.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,737)).then((function(t){var n=t.TopNavigationView;e.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 rr}}]),o}(r.a.Application);var ir=n(121),ar=n(68),sr=n(11);class cr extends ar.a{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[]}get name(){return ir.a.Fifo}removeCacheKey(e){this.cachedkeys=i.without(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){e&&t||sr.c.throw(new O.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);const n=t();return this.set(e,n),n}remove(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}invalidate(e,t){const n=i.object(this.cachedkeys,this.cachedkeys);let r=[];i.each(e,e=>{n[e]&&r.push(e);const t=new RegExp(e,"i"),o=i.filter(n,e=>t.test(e));r.push(...o)}),r.length&&(r=i.uniq(r),i.each(r,e=>{delete this.cache[e],i.isFunction(t)&&t(e)}),this.cachedkeys=i.without(this.cachedkeys,...r))}}var ur,lr=n(150);!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(ur||(ur={}));var fr=n(115);const pr={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=""+n.errorCode;return n.errorSubCode&&(r+="."+n.errorSubCode),e[r]||e[t]}};class hr extends x.Object{constructor(e){super(e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return b.a.Ajax}parseUrl(e){const t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}makeHttps(e){const t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}base(e,t,n,r={}){n||(n=ur.GET);const o=i.defaults(r,{forceHttps:!1}),a={url:e,method:n,type:n};t&&(a.data=n===ur.POST||n===ur.PUT?JSON.stringify(t):t),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);const s=$.ajax(a);return i.keys(this.successMiddleware).length&&s.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&s.fail(i.values(this.errorMiddleware)),s}create(e,t,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.base(e,t,ur.POST).done((e,t,n)=>r.trigger(o,e,t,n)).fail((e,t,n)=>r.trigger(i,e,t,n))}read(e,t){const{channel:n,successEvent:r,errorEvent:o}=t;this.base(e,null,ur.GET).done((e,t,o)=>{n.trigger(r,e,t,o)}).fail((e,t,r)=>{n.trigger(o,e,t,r)})}update(e,t,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.base(e,t,ur.PUT).done((e,t,n)=>r.trigger(o,e,t,n)).fail((e,t,n)=>r.trigger(i,e,t,n))}delete(e,t){const{channel:n,successEvent:r,errorEvent:o}=t;this.base(e,null,ur.DELETE).done((e,t,o)=>n.trigger(r,e,t,o)).fail((e,t,r)=>n.trigger(o,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){const t=e.responseJSON,n=lr.a;switch(n.code=e.status,n.message=pr.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=fr.a.BadRequest;break;case 401:n.type=fr.a.Unauthorized;break;case 403:n.type=fr.a.Forbidden;break;case 404:n.type=fr.a.NotFound;break;case 500:n.type=fr.a.InternalServer}return n}}var dr=n(181);var yr=n(52),gr=n(13),br=n(53),mr=n(24),vr=n(22);class Sr extends r.a.Model{}class wr extends gr.a{get name(){return vr.a.NotificationSocket}get channelName(){return mr.b.NOTIFICATIONS_SOCKET}receiveLatestNotifications(e){return this.get({callback:e,formatData:e=>new Sr(e),resource:"notify",eventPrefix:br.a.NOTIFICATIONS+":new"})}receiveUnreadNotificationCount(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:br.a.NOTIFICATIONS+":count"})}}var Or=n(82),Cr=n(123);class Er extends r.a.Collection{get model(){return Sr}parse(e){return e.data||e}}var kr=n(98);const Rr=(e,t)=>{const n=`/api/domain/v2/objects/${e}/notifications?query={orderbydesc:datecreated}`;if(!t)return n;const{limit:r,cursor:o,before:i}=t,a=[],s=Or.a.buildFilter({limit:r,before:i});return s&&a.push("filter="+s),o&&a.push("cursor="+o),a.length?`${n}&${a.join("&")}`:n},Pr=e=>"/api/notifications/v1/notifications/"+e,_r="/api/notifications/v1/notifications",Ar="/api/domain/v1/notifications";class Tr extends gr.a{get name(){return vr.a.Notification}get channelName(){return mr.b.NOTIFICATIONS}get lang(){return"notifications.services"}getNotifications(e,t,n,r){return this.get({resource:Rr(e,t),expiryTime:kr.a.STANDARD,eventPrefix:n,formatData:e=>new Er(e,{parse:!0}),callback:r})}markRead(e,t){return this.update({callback:t,data:{notificationStatus:Cr.a.Read},resource:Pr(e),eventPrefix:br.a.NOTIFICATIONS+":read"})}markSeen(e){const t=Re().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Cr.a.Seen},resource:`${_r}?to=${t}&notificationStatus=${Cr.a.Received}`,eventPrefix:br.a.NOTIFICATIONS+":seen"})}getNotificationsCursors(e){return this.getCursors(e)}suggestEdit(e,t){return this.create({resource:""+Ar,eventPrefix:""+br.a.SUGGEST_EDIT,callback:t,data:e,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}const xr="locale",Lr="phrases";class Nr extends gr.a{get name(){return vr.a.Language}get channelName(){return mr.b.LANGUAGE}getLanguageConfig(e){const t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:br.a.LOCALE,expiryTime:kr.a.STANDARD,bootstrapName:xr,callback:n=>{t.locale=n,t.phrases&&i.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:br.a.PHRASES,expiryTime:kr.a.STANDARD,bootstrapName:Lr,callback:n=>{t.phrases=n,t.locale&&i.isFunction(e)&&e(t)}})}}var Dr=n(15),Ir=n(106),Vr=n.n(Ir),jr=n(692),Br=n.n(jr);function Mr(e){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return(Fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qr(e);if(t){var o=qr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Mr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qr(e){return(qr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fr(e,t)}(a,e);var t,n,r,i=Hr(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"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(e){return e.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 e=this;return this.$el.addClass(Vr.a.removing),this.$el.addClass(Vr.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return e.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var e=this,t=this.model.get("timeout")||this.options.timeout;t&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return e.triggerRemoval()}),t))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(Vr.a.removing),this.$el.removeClass(Vr.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case yr.a.Success:return Dr.a.getSvg(Dr.b.CheckCircleOutline);case yr.a.Fail:case yr.a.Warning:return Dr.a.getSvg(Dr.b.Warning);case yr.a.Info:default:return Dr.a.getSvg(Dr.b.Info)}}},{key:"getTypeClass",value:function(){var e=this.model.get("type").toLowerCase();return"text-".concat(e)}},{key:"viewOptions",value:function(){return{styles:Vr.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(Vr.a.alertItem," show clearfix")}},{key:"template",get:function(){return Br.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&Ur(t.prototype,n),r&&Ur(t,r),a}(r.a.Component);function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $r(e,t){return($r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zr(e);if(t){var o=Zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qr(this,n)}}function Qr(e,t){return!t||"object"!==Yr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zr(e){return(Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xr,eo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$r(e,t)}(i,e);var t,n,r,o=Kr(i);function i(){return Gr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(Vr.a.alertList," alert-list")}},{key:"channelName",get:function(){return C.a.ALERT}},{key:"childView",get:function(){return Wr}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Jr(t.prototype,n),r&&Jr(t,r),i}(r.a.ComponentCollection);function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function no(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oo(e,t,n){return(oo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=co(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=co(e);if(t){var o=co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return so(this,n)}}function so(e,t){return!t||"object"!==to(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Xr||(Xr={}));var uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}(i,e);var t,n,r,o=ao(i);function i(){return no(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"success",value:function(e){return oo(co(i.prototype),"success",this).call(this,e)}},{key:"error",value:function(e){return oo(co(i.prototype),"error",this).call(this,e)}},{key:"name",get:function(){return a.x.Alerts}}])&&ro(t.prototype,n),r&&ro(t,r),i}(yr.b),lo=n(190),fo=n(136),po=n(237),ho=n(17);function yo(e){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mo(e,t){return(mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wo(e);if(t){var o=wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return So(this,n)}}function So(e,t){return!t||"object"!==yo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wo(e){return(wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mo(e,t)}(i,e);var t,n,r,o=vo(i);function i(){return go(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getCustomer",value:function(e,t){return this.get({resource:"/api/domain/v2/objects/".concat(e),formatData:function(e){return new po.a(e)},eventPrefix:a.f.CUSTOMER,expiryTime:ho.a.STANDARD,callback:t})}},{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}}])&&bo(t.prototype,n),r&&bo(t,r),i}(gr.a),Co=n(235);function Eo(e){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){return(Ro=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var o=Ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _o(this,n)}}function _o(e,t){return!t||"object"!==Eo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ao(e){return(Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var To=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ro(e,t)}(n,e);var t=Po(n);function n(){return ko(this,n),t.apply(this,arguments)}return n}(r.a.Model);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Io(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jo(e);if(t){var o=jo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vo(this,n)}}function Vo(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(i,e);var t,n,r,o=Io(i);function i(){return Lo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return To}}])&&No(t.prototype,n),r&&No(t,r),i}(r.a.Collection);function Mo(e){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t){return(Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wo(e);if(t){var o=Wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qo(this,n)}}function qo(e,t){return!t||"object"!==Mo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wo(e){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yo=function(e,t){var n="/api/domain/v3/settings/".concat(e);return Co.a[t]&&(n+="?kind=".concat(t)),n},Go=function(e){return"/api/domain/v3/settings/".concat(e)},Jo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(s,e);var t,n,r,o=zo(s);function s(){return Uo(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getSetting",value:function(e,t,n){var r=i.isFunction(n)?function(e){var r=e.findWhere({name:t});i.isFunction(n)&&n(r)}:null,o=this.getSettings(e,null,r);return o?o.findWhere({name:t}):null}},{key:"getSettings",value:function(e,t,n){return this.get({callback:n,resource:Yo(e,t),formatData:function(e){return new Bo(e)},eventPrefix:a.f.SETTINGS,expiryTime:kr.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(e,t,n,r){return this.update({callback:r,resource:Go(e),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(ut.a.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:t,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return m.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}}])&&Fo(t.prototype,n),r&&Fo(t,r),s}(gr.a),$o=n(138),Ko=n(100),Qo=n(91);function Zo(e){return(Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ei(e,t){return(ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ri(e);if(t){var o=ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ni(this,n)}}function ni(e,t){return!t||"object"!==Zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ei(e,t)}(n,e);var t=ti(n);function n(){return Xo(this,n),t.apply(this,arguments)}return n}(r.a.Model),ii=n(180),ai=n(50),si=n(147),ci=n(32),ui=n(304);function li(e){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hi(e,t){return(hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gi(e);if(t){var o=gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){return!t||"object"!==li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gi(e){return(gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bi=function(e,t,n){var r=["query={status:[1,5],".concat(t,"}").concat(ii.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(e,"/videos?").concat(r.join("&"))},mi=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(ii.a.VIDEO)},vi=function(e){return"/api/domain/v2/objects/".concat(e)},Si=function(){return"/api/domain/v2/objects/move"},wi=function(){return"/api/domain/v1/share"},Oi=function(e){return"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=categories")},Ci=function(e,t,n){var r=n.map((function(e){return"videoIds=".concat(e)}));return"/api/domain/v1/libraries/".concat(e,"/videos?categoryId=").concat(t,"&").concat(r.join("&"))},Ei=function(e){return"/api/domain/v2/objects/".concat(e,"/thumbnail")},ki=function(e,t){return"/api/domain/v2/objects/".concat(e,"/thumbnail/").concat(t)},Ri=function(e,t,n){return"/api/domain/v2/objects/".concat(e,"/").concat(t,"?").concat(xi.getDissocIds(n))},Pi=function(e){return"/api/domain/v2/videos/".concat(e,"/copy")},_i=function(e){return"/api/domain/v2/objects/".concat(e,"/libraries")},Ai=function(){return"/api/domain/v1/staffrequests"},Ti=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hi(e,t)}(u,e);var t,n,s,c=di(u);function u(){return fi(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(m.b.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([ci.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(e,t){var n=this,r=rt.p.GetFilterFromSort(e.sort),o=bi(e.id,r,e.cursor);return this.get({resource:o,formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,e,t)},expiryTime:ho.a.STANDARD,eventPrefix:e.toString()})}},{key:"getSeriesVideos",value:function(e,t,n){var r=this,o=rt.p.GetFilterFromSort(e.sort),i="libraries.id:[".concat(t.join(","),"]"),a="".concat(o,",").concat(i),s=bi(e.id,a,e.cursor);return this.get({resource:s,formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,e,n)},expiryTime:ho.a.STANDARD,eventPrefix:e.toString()})}},{key:"getVideo",value:function(e,t){var n=this;return this.get({resource:mi(e),formatData:function(e){return new Ko.a(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoData(e,t)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEOS,":").concat(e)})}},{key:"clearCacheAndGetVideo",value:function(e,t,n){var r=this;return this.clearCacheAndGet({resource:mi(e),formatData:function(e){return new Ko.a(e,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoData(e,t)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEOS,":").concat(e),errorHandler:n})}},{key:"getVideos",value:function(e,t){var n=this;return this.get({resource:Oi(e),formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoCollectionData(e,null,t)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEOS_BY_ID,":").concat(e.join(","))})}},{key:"hasPhysicalChapters",value:function(e,t){return this.get({resource:"/legacy/videos/".concat(e,"/hasphysicalchapters"),formatData:function(e){return new r.a.Model(e)},callback:t,expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(e)})}},{key:"updateVideo",value:function(e,t,n,r){var o=["".concat(e)];return t&&o.push("".concat(t)),this.update({resource:vi(e),eventPrefix:"".concat(ci.a.UPDATE_VIDEO,":").concat(e),data:n,invalidationKeys:o,callback:r})}},{key:"addOrUpdateThumbnail",value:function(e,t,n,r){var o={fileId:t.id.toString(),fileIdType:Qt.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:ki(e,n),eventPrefix:ci.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:Ei(e),eventPrefix:"".concat(ci.a.UPDATE_VIDEO_THUMBNAIL,":").concat(e),data:o,formatData:function(e){return new Qo.a(e)},invalidationKeys:[ci.a.VIDEOS],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(e,t,n,r,o){var a=this;this.create({resource:Si(),eventPrefix:"".concat(ci.a.MOVE_VIDEOS,":").concat(e.join(",")),formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:t,assocType:"has",objectIds:e},invalidationKeys:["".concat(ci.a.VIDEOS,":collection:").concat(n),"".concat(ci.a.VIDEOS,":collection:").concat(t)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(e,t,n,r){var o=this;this.delete({resource:Ci(e,t,n),eventPrefix:ci.a.DELETE_VIDEO,invalidationKeys:[ci.a.VIDEOS],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(e,t,n){var r={id:e,privacy:t};return this.create({data:r,resource:wi(),formatData:function(e){return new oi(e)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(e,t,n,r){var o=ui.a.addVideoToLibraryAlert(t,n);this.create({resource:Ai(),eventPrefix:"add:to:library",callback:r,data:e,invalidationKeys:["".concat(ci.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(e,t,n){if(e&&t){var r=new w.a(i.keys(t).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(t),(function(n){a.delete({resource:Ri(e,n.toLowerCase(),t[n]),eventPrefix:"".concat(ci.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(e,t,n,r){this.create({resource:Pi(e),data:{libraryId:t,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(e,t){this.get({resource:_i(e),eventPrefix:"video:libraries:".concat(e),formatData:function(e){return new si.a(e.data)},callback:t})}},{key:"invalidateCollectionVideos",value:function(e){this.invalidateCache([e.toString()])}},{key:"name",get:function(){return m.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&pi(t.prototype,n),s&&pi(t,s),u}(gr.a),xi={videoCollection:function(e){return{dataServiceName:m.a.Video,eventName:"".concat(e.toString,":sync"),getData:function(t){return t.getCollectionVideos(e)},getInstance:function(e){return g.a.getInstance(m.a.Video,e)},beforeOnBeforeRender:!0}},getDissocIds:function(e){return"string"==typeof e?"id=".concat(e):e.map((function(e){return"id=".concat(e)})).join("&")}},Li=n(102);function Ni(e){return(Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vi(e,t){return(Vi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mi(e);if(t){var o=Mi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bi(this,n)}}function Bi(e,t){return!t||"object"!==Ni(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ui,Fi,Hi=function(e){return"/api/domain/v2/search/videos?".concat(e,"&with=").concat(a.A.VIDEO_COLLECTION)},zi=function(e){return"/api/domain/v1/search/nav?".concat(e)},qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vi(e,t)}(i,e);var t,n,r,o=ji(i);function i(){return Di(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(a.x.VideoMixin,this)}},{key:"searchVideos",value:function(e,t,n){var r=this;return this.clearCacheAndGet({callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,null,n)},resource:Hi(e),formatData:function(e){return new ai.a(e.data)},eventPrefix:t.toString()})}},{key:"getDynamicFilters",value:function(e,t){return this.clearCacheAndGet({callback:t,resource:zi(e),formatData:function(e){return new Li.a(e,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}},{key:"name",get:function(){return vr.a.Search}},{key:"channelName",get:function(){return mr.b.SEARCH}}])&&Ii(t.prototype,n),r&&Ii(t,r),i}(gr.a);function Wi(e){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ji(e,t){return(Ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qi(e);if(t){var o=Qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ki(this,n)}}function Ki(e,t){return!t||"object"!==Wi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qi(e){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(Ui||(Ui={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Fi||(Fi={}));var Zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ji(e,t)}(c,e);var t,n,o,s=$i(c);function c(){return Yi(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"getPendingItem",value:function(e,t){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(e),eventPrefix:"pending:item:".concat(e),formatData:function(e){return new r.a.Model(e)},callback:t})}},{key:"getPendingItems",value:function(e){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:e})}},{key:"clearPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"clear:pending:".concat(e.join(",")),callback:t})}},{key:"cancelPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"cancel:pending:".concat(e.join(",")),callback:t})}},{key:"retryPendingItems",value:function(e,t){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"retry:pending:".concat(e.join(",")),callback:t,data:null})}},{key:"completeVideoUploads",value:function(e,t,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:e,customerId:t,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:Ui.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n),subtitleOptions:{subtitleExtractOptions:Fi.EmbeddedOnly},autoCaption:n.get("autoCaption")},errorHandler:o.alertService.error(Wn.a.getPhrase(o.lang,"processingError",{videoName:rt.v.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(e){var t=this,n=e.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:Ui.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return t.setAssoc(r,n,e)})),n}},{key:"setAssoc",value:function(e,t,n){var o=n[e];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;t[e]=o.map((function(e){return e.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;t[e]=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"}}])&&Gi(t.prototype,n),o&&Gi(t,o),c}(gr.a),Xi=n(305);function ea(e){return(ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ra(e,t){return(ra=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aa(e);if(t){var o=aa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ia(this,n)}}function ia(e,t){return!t||"object"!==ea(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function aa(e){return(aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ra(e,t)}(i,e);var t,n,r,o=oa(i);function i(){return ta(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"uploadBase64Image",value:function(e,t,n){return this.create({resource:"/api/image/upload?type=".concat(t),eventPrefix:a.f.UPLOAD_IMAGE,data:e,formatData:function(e){return new Xi.a(e)},callback:n})}},{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}}])&&na(t.prototype,n),r&&na(t,r),i}(gr.a),ca=n(151);function ua(e){return(ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function la(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pa(e,t){return(pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ya(e);if(t){var o=ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return da(this,n)}}function da(e,t){return!t||"object"!==ua(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ya(e){return(ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ga=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pa(e,t)}(i,e);var t,n,r,o=ha(i);function i(){return la(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return ca.a}}])&&fa(t.prototype,n),r&&fa(t,r),i}(r.a.Collection);function ba(e){return(ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sa(e,t){return(Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ca(e);if(t){var o=Ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oa(this,n)}}function Oa(e,t){return!t||"object"!==ba(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sa(e,t)}(i,e);var t,n,r,o=wa(i);function i(){return ma(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return ca.b}}])&&va(t.prototype,n),r&&va(t,r),i}(r.a.Collection),ka=n(246);function Ra(e){return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Aa(e,t){return(Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=La(e);if(t){var o=La(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xa(this,n)}}function xa(e,t){return!t||"object"!==Ra(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function La(e){return(La=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(Qt.g.Video,"&status=").concat(ka.a.Pending)},Da=function(e){return"/api/domain/v1/staffrequests/".concat(e)},Ia=function(){return"/api/domain/v1/staffrequests"},Va=function(e){return"/api/domain/v1/staffrequests/".concat(e,"/messages")},ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}(s,e);var t,n,r,i=Ta(s);function s(){return Pa(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"clearRequestCache",value:function(){this.invalidateCache([ci.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(e){return this.get({resource:Na(),formatData:function(e){return new ga(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:ci.a.STAFF_REQUESTS,callback:e})}},{key:"getStaffRequest",value:function(e,t){return this.get({resource:Da(e),formatData:function(e){return new ca.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.STAFF_REQUEST_BY_ID,":").concat(e),callback:t})}},{key:"approveStaffRequest",value:function(e,t,n,r){var o={id:e,status:ka.a.Approved,metadata:{destinationLibraryId:t,destinationCategoryId:n}};return this.update({data:o,resource:Ia(),eventPrefix:"".concat(ci.a.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[ci.a.VIDEOS,ci.a.STAFF_REQUESTS,ci.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(e,t,n){var r={id:e,status:ka.a.Rejected,message:t};return this.update({data:r,resource:Ia(),eventPrefix:"".concat(ci.a.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[ci.a.STAFF_REQUESTS,ci.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(e,t){return this.get({resource:Va(e),formatData:function(e){return new Ea(e)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.STAFF_REQUEST_MESSAGES,":").concat(e),callback:t})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&_a(t.prototype,n),r&&_a(t,r),s}(gr.a),Ba=n(227);function Ma(e){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function za(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wa(e);if(t){var o=Wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qa(this,n)}}function qa(e,t){return!t||"object"!==Ma(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ya=function(e){return"/api/domain/v2/objects/".concat(e,"/tags")},Ga=function(e,t){return"/api/domain/v2/objects/".concat(t,"/videos/").concat(e)},Ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ha(e,t)}(i,e);var t,n,r,o=za(i);function i(){return Ua(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createTag",value:function(e,t,n){if(e&&t)return this.create({resource:Ya(t),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(rt.v.slugify(e)),formatData:function(e){return new Ba.a(e)},invalidationKeys:["".concat(t)],data:{name:e},callback:n})}},{key:"dissociateTag",value:function(e,t,n){if(e&&t)return this.delete({resource:Ga(t,e),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(e),invalidationKeys:["".concat(t)],callback:n})}},{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}}])&&Fa(t.prototype,n),r&&Fa(t,r),i}(gr.a),$a=n(187),Ka=n(155);function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function es(e,t){return(es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rs(e);if(t){var o=rs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ns(this,n)}}function ns(e,t){return!t||"object"!==Qa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rs(e){return(rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var os=function(){return"/api/domain/v1/series"},is=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(a.A.SERIES)},as=function(e){return"/api/domain/v2/objects/".concat(e,"/seasons")},ss=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&es(e,t)}(i,e);var t,n,r,o=ts(i);function i(){return Za(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createSeries",value:function(e,t){if(e){var n=rt.v.slugify(e);return this.create({resource:os(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(e){return new $a.a(e)},invalidationKeys:["".concat(n)],data:{name:e},callback:t})}}},{key:"getSeries",value:function(e,t){return this.get({callback:t,expiryTime:a.d.STANDARD,resource:is(e),formatData:function(e){return new $a.a(e)},eventPrefix:"".concat(a.f.SERIES,":").concat(e)})}},{key:"createSeason",value:function(e,t,n){if(e.number&&t)return this.create({data:e,resource:as(t),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(t),formatData:function(e){return new Ka.a(e)},callback:n})}},{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}}])&&Xa(t.prototype,n),r&&Xa(t,r),i}(gr.a),cs=n(462);function us(e){return(us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ls(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ys(e);if(t){var o=ys(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ds(this,n)}}function ds(e,t){return!t||"object"!==us(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gs=function(){return"/api/domain/v2/me/ratings"},bs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ps(e,t)}(i,e);var t,n,r,o=hs(i);function i(){return ls(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getAllRatings",value:function(e){return this.get({resource:gs(),formatData:function(e){return new cs.a(e)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:e})}},{key:"name",get:function(){return m.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}}])&&fs(t.prototype,n),r&&fs(t,r),i}(gr.a),ms=n(311),vs=n(184);function Ss(e){return(Ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Os(e,t){return(Os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ks(e);if(t){var o=ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Es(this,n)}}function Es(e,t){return!t||"object"!==Ss(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ks(e){return(ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Os(e,t)}(n,e);var t=Cs(n);function n(){return ws(this,n),t.apply(this,arguments)}return n}(r.a.Model),Ps=n(294);function _s(e){return(_s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xs(e,t){return(xs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ds(e);if(t){var o=Ds(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ns(this,n)}}function Ns(e,t){return!t||"object"!==_s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Is,Vs=function(e){return"/api/domain/v2/objects/".concat(e,"/chapters")},js=function(e){return"/api/domain/v2/objects/".concat(e)},Bs=function(e){return"/api/domain/v2/objects/".concat(e)},Ms=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},Us=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},Fs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xs(e,t)}(s,e);var t,n,r,o=Ls(s);function s(){return As(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"clearVideoCache",value:function(e){this.invalidateCache(["".concat(e)])}},{key:"createChapter",value:function(e,t,n,r){if(e&&t&&i.isNumber(n))return this.create({resource:Vs(e),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(rt.v.slugify(t)),formatData:function(e){return new vs.a(e)},invalidationKeys:["".concat(e)],data:{name:t,startTime:n},callback:r})}},{key:"updateChapter",value:function(e,t,n,r,o){if(e&&t&&i.isNumber(n))return this.update({resource:js(e),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(e),formatData:function(e){return new vs.a(e)},invalidationKeys:["".concat(e),"".concat(rt.v.slugify(t))],data:{name:t,startTime:n},successHandler:this.alertService.success(o||Wn.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(e,t){if(e)return this.delete({resource:Bs(e),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(e)],callback:t})}},{key:"getConcatenateRequest",value:function(e,t){var n=this;return this.clearCacheAndGet({resource:Ms(e),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(e),formatData:function(e){return new Rs(e,{parse:!0})},callback:function(r){r.get("status")===Ps.a.SingleFile&&n.clearVideoCache(e),i.isFunction(t)&&t(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(e,t){return this.create({resource:Us(e),formatData:function(e){return new Rs(e)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(e),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(e)],data:null,callback:t})}},{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Ts(t.prototype,n),r&&Ts(t,r),s}(gr.a);function Hs(e){return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ws(e,t){return(Ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ys(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Js(e);if(t){var o=Js(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gs(this,n)}}function Gs(e,t){return!t||"object"!==Hs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Js(e){return(Js=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.CollectionPdf="collection_pdf",e.CustomListPdf="custom_list_pdf"}(Is||(Is={}));var $s=function(e){return"/api/domain/v2/export/formats/pdf/types/".concat(e)},Ks=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ws(e,t)}(s,e);var t,n,r,o=Ys(s);function s(){return zs(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"generateCollectionPdf",value:function(e,t,n,r,o){var s=i.extend({},this.getBaseExportData(n),{libraryId:e,collectionId:t});return r&&(s=i.extend({},s,{sortType:rt.p.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:$s(Is.CollectionPdf),data:s,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(t),successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(e,t,n,r,o){var s=i.extend({},this.getBaseExportData(r),{title:e,header:t,videoIds:n});return this.create({callback:o,resource:$s(Is.CustomListPdf),data:s,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(e){return{firstName:e.get("givenName"),lastName:e.get("familyName"),countryCode:e.get("countryCode"),userId:e.id,customerId:e.get("customerId"),userEmail:e.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"}}])&&qs(t.prototype,n),r&&qs(t,r),s}(gr.a),Qs=n(245),Zs=n(244);function Xs(e){return(Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t){return(nc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ic(e);if(t){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(e,t){return!t||"object"!==Xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ac,sc=function(e){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(e.join("&videoId="))},cc=function(e){return"".concat("/api/localcache","/v1/customers/").concat(e,"/devices")},uc=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(e){e[e.MasterObject=0]="MasterObject",e[e.TrackingCode=1]="TrackingCode"}(ac||(ac={}));var lc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nc(e,t)}(i,e);var t,n,r,o=rc(i);function i(){return ec(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getDownloadsForVideos",value:function(e,t){return this.get({resource:sc(e),formatData:function(e){return new Zs.a(e)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(e.join(",")),expiryTime:ho.a.STANDARD,callback:t})}},{key:"getDevices",value:function(e,t){return this.get({resource:cc(e),formatData:function(e){return new Qs.a(e)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:ho.a.STANDARD,callback:t})}},{key:"downloadVideoToLocalCache",value:function(e,t,n){this.create({resource:uc(),data:this.getDownloadVideoData(e,t),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(e,t){return{deviceId:e,videoId:t,videoIdType:ac.MasterObject,expiresOn:Re().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"}}])&&tc(t.prototype,n),r&&tc(t,r),i}(gr.a);function fc(e){return(fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(e,t){return(hc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gc(e);if(t){var o=gc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yc(this,n)}}function yc(e,t){return!t||"object"!==fc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gc(e){return(gc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hc(e,t)}(n,e);var t=dc(n);function n(){return pc(this,n),t.apply(this,arguments)}return n}(r.a.Model);function mc(e){return(mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wc(e,t){return(wc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ec(e);if(t){var o=Ec(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cc(this,n)}}function Cc(e,t){return!t||"object"!==mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ec(e){return(Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wc(e,t)}(i,e);var t,n,r,o=Oc(i);function i(){return vc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return bc}}])&&Sc(t.prototype,n),r&&Sc(t,r),i}(r.a.Collection);function Rc(e){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e,t){return(Ac=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lc(e);if(t){var o=Lc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xc(this,n)}}function xc(e,t){return!t||"object"!==Rc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lc(e){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nc=function(e){var t=["type=".concat(Qt.i.RestrictedByAdmin),"objectTypeId=".concat(Qt.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return e&&t.push("page=".concat(e)),"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},Dc=function(e){var t=["type=".concat(Qt.i.RestrictedByAdmin),"objectTypeId=".concat(Qt.g.Video)],n="";return e&&e.forEach((function(e){return n+="&objectId=".concat(e)})),"/api/domain/v1/restrictedobjects?".concat(t.join("&")).concat(n)},Ic=function(){return"/api/domain/v1/restrictedobjects"},Vc=function(e){return"/api/domain/v1/restrictedobjects?objectId=".concat(e,"&objectTypeId=").concat(Qt.g.Video)},jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ac(e,t)}(i,e);var t,n,r,o=Tc(i);function i(){return Pc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getPaginationCursors",value:function(e){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(e))}},{key:"getRestrictedVideos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",t=arguments.length>1?arguments[1]:void 0;return this.get({callback:t,resource:Nc(e),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(e)})}},{key:"getVideoRestrictions",value:function(e,t,n){var r=t?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.join(","));return this.get({callback:n,resource:Dc(e),formatData:function(e){return new kc(e)},expiryTime:ho.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(e,t,n,r,o){var i={groupId:t,objectId:e,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:Ic(),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(Wn.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(e,t){this.delete({callback:t,resource:Vc(e),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(Wn.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"}}])&&_c(t.prototype,n),r&&_c(t,r),i}(gr.a),Bc=n(228);function Mc(e){return(Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hc(e,t){return(Hc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wc(e);if(t){var o=Wc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qc(this,n)}}function qc(e,t){return!t||"object"!==Mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yc(e){return function(e){if(Array.isArray(e))return Gc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Jc=function(e,t,n,r,o){var i=e.map((function(e){return"libraryId=".concat(e)})),s=[].concat(Yc(i),["from=".concat(t),"to=".concat(n)]);o&&s.push("offset=".concat(o));var c=a.A.HOSTED_VIDEO_COLLECTION;return r&&s.push.apply(s,Yc(r.map((function(e){return"categoryId=".concat(e)})))),"/api/domain/v2/videos/recent?query=".concat(c,"&").concat(s.join("&"))},$c=function(e,t,n){var r=e.map((function(e){return"libraryId=".concat(e)})),o=[].concat(Yc(r),["from=".concat(t),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Kc=function(){var e=["type=".concat(Qt.i.TermUpdate),"objectTypeId=".concat(Qt.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(e.join("&"))},Qc=function(){var e=["type=".concat(Qt.i.TermUpdate),"objectTypeId=".concat(Qt.g.Video)];return"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},Zc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hc(e,t)}(s,e);var t,n,r,o=zc(s);function s(){return Uc(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(a.x.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"getRecentVideos",value:function(e,t){var n=this,r=e.toParams();return this.get({resource:Jc(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:e.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,e,t)}})}},{key:"getRecentVideosAllPages",value:function(e,t){var n,r=this,o=e.toParams(),s=new ai.a;this.get({resource:Jc(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString()),callback:function c(u){s.add(u.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Jc(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString(),":").concat(n.next),callback:c}):i.isFunction(t)&&t(s)}})}},{key:"getRecentVideoSubjects",value:function(e,t){var n=e.toParams();return this.get({resource:$c(n.libraryIds,n.from,n.to),formatData:function(e){return new Bc.a(e)},expiryTime:ho.a.STANDARD,eventPrefix:e.toString(),callback:t})}},{key:"getVideosToReview",value:function(e){return this.get({callback:e,resource:Kc(),formatData:function(e){return new ai.a(e)},expiryTime:ho.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(e){return this.delete({callback:e,resource:Qc(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Wn.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"}}])&&Fc(t.prototype,n),r&&Fc(t,r),s}(gr.a);function Xc(e){return(Xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nu(e,t){return(nu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ru(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iu(e);if(t){var o=iu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ou(this,n)}}function ou(e,t){return!t||"object"!==Xc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function iu(e){return(iu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var au=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nu(e,t)}(s,e);var t,n,o,i=ru(s);function s(){return eu(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"createDownloadToken",value:function(e,t){this.create({data:{objectId:e},resource:"/api/downloadproxy/api/tokens",formatData:function(e){return new r.a.Model(e)},eventPrefix:"token:".concat(e),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"linkRetrievalError")),callback:t})}},{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&tu(t.prototype,n),o&&tu(t,o),s}(gr.a),su=n(178);function cu(e){return(cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fu(e,t){return(fu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(e,t){return!t||"object"!==cu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yu=function(e){return"/api/domain/v2/objects/".concat(e,"/resources")},gu=function(e){return"/api/domain/v2/objects/".concat(e)},bu=function(e){return"/api/domain/v2/objects/".concat(e)},mu=function(e){return"/api/domain/v2/objects/".concat(e)},vu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fu(e,t)}(s,e);var t,n,r,o=pu(s);function s(){return uu(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"addResource",value:function(e,t,n){var r=this,o=this.chain();i.each(t,(function(i,s){o.create({resource:yu(e),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(e){return new su.a(e)},callback:n,data:i,successHandler:s+1===t.length&&r.alertService.success(Wn.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(e,t){return this.get({resource:gu(e),formatData:function(e){return new su.a(e)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(e),callback:t})}},{key:"updateResource",value:function(e,t,n){var r=this,o=t.pick(["id","name"]);this.update({resource:bu(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(t){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(e,t,n){var r=this;this.delete({resource:mu(t),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(Wn.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"}}])&&lu(t.prototype,n),r&&lu(t,r),s}(gr.a),Su=n(236);function wu(e){return(wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eu(e,t){return(Eu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ku(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pu(e);if(t){var o=Pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ru(this,n)}}function Ru(e,t){return!t||"object"!==wu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pu(e){return(Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _u=function(e){return"/api/domain/v2/objects/".concat(e,"/subtitles")},Au=function(e){return"/api/domain/v2/objects/".concat(e)},Tu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Eu(e,t)}(i,e);var t,n,r,o=ku(i);function i(){return Ou(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"addSubtitle",value:function(e,t,n){this.create({resource:_u(e),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(e){return new Su.a(e)},callback:n,data:t,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(e,t,n){var r=this;this.delete({resource:Au(t),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(Wn.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"}}])&&Cu(t.prototype,n),r&&Cu(t,r),i}(gr.a),xu=n(185);function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bu(e);if(t){var o=Bu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ju(this,n)}}function ju(e,t){return!t||"object"!==Lu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bu(e){return(Bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mu=function(e){return"/api/domain/v2/objects/".concat(e,"/links")},Uu=function(e){return"/api/domain/v2/objects/".concat(e)},Fu=function(e){return"/api/domain/v2/objects/".concat(e)},Hu=function(e){return"/api/domain/v2/objects/".concat(e)},zu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Iu(e,t)}(i,e);var t,n,r,o=Vu(i);function i(){return Nu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"addLink",value:function(e,t,n){this.create({resource:Mu(e),eventPrefix:a.f.CREATE_LINK,formatData:function(e){return new xu.a(e)},callback:n,data:t,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(e,t){return this.get({resource:Uu(e),formatData:function(e){return new xu.a(e)},eventPrefix:"".concat(a.f.LINK,":").concat(e),callback:t})}},{key:"updateLink",value:function(e,t,n){var r=this,o=t.pick(["id","name"]);this.update({resource:Fu(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(t){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(e,t,n){var r=this;this.delete({resource:Hu(t),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(Wn.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"}}])&&Du(t.prototype,n),r&&Du(t,r),i}(gr.a);function qu(e){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yu(e,t){return(Yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$u(e);if(t){var o=$u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ju(this,n)}}function Ju(e,t){return!t||"object"!==qu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $u(e){return($u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yu(e,t)}(n,e);var t=Gu(n);function n(){return Wu(this,n),t.apply(this,arguments)}return n}(r.a.Model);function Qu(e){return(Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function el(e,t){return(el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rl(e);if(t){var o=rl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nl(this,n)}}function nl(e,t){return!t||"object"!==Qu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ol=function(){return"/api/domain/v2/people"},il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&el(e,t)}(i,e);var t,n,r,o=tl(i);function i(){return Zu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createPerson",value:function(e,t){if(e)return this.create({resource:ol(),eventPrefix:a.f.CREATE_PERSON,formatData:function(e){return new Ku(e)},data:{name:e},callback:t})}},{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}}])&&Xu(t.prototype,n),r&&Xu(t,r),i}(gr.a);function al(e){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cl(e,t){return(cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ul(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fl(e);if(t){var o=fl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ll(this,n)}}function ll(e,t){return!t||"object"!==al(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fl(e){return(fl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cl(e,t)}(n,e);var t=ul(n);function n(){return sl(this,n),t.apply(this,arguments)}return n}(r.a.Model);function hl(e){return(hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gl(e,t){return(gl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vl(e);if(t){var o=vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ml(this,n)}}function ml(e,t){return!t||"object"!==hl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sl=function(){return"/api/domain/v2/companies"},wl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gl(e,t)}(i,e);var t,n,r,o=bl(i);function i(){return dl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createCompany",value:function(e,t){if(e)return this.create({resource:Sl(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(e){return new pl(e)},data:{name:e},callback:t})}},{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}}])&&yl(t.prototype,n),r&&yl(t,r),i}(gr.a);function Ol(e){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kl(e,t){return(kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_l(e);if(t){var o=_l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pl(this,n)}}function Pl(e,t){return!t||"object"!==Ol(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _l(e){return(_l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Al=function(e){return"/api/domain/v2/objects/".concat(e)},Tl=function(e){return"/api/domain/v2/objects/".concat(e,"/fields")},xl=function(e){return"/api/domain/v2/objects/".concat(e)},Ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kl(e,t)}(s,e);var t,n,r,o=Rl(s);function s(){return Cl(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"updateField",value:function(e,t){this.update({resource:Al(e.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(e.id),data:e,callback:t})}},{key:"addField",value:function(e,t,n){var r=i.omit(t,"id");this.create({resource:Tl(e),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(e,t){this.delete({resource:xl(e),eventPrefix:a.f.DELETE_FIELD,callback:t})}},{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}}])&&El(t.prototype,n),r&&El(t,r),s}(gr.a);var Nl=n(221),Dl=n(693),Il=n.n(Dl),Vl=n(160),jl=n(694),Bl=n.n(jl);function Ml(e){return(Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fl(e,t){return(Fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ql(e);if(t){var o=ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zl(this,n)}}function zl(e,t){return!t||"object"!==Ml(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ql(e){return(ql=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fl(e,t)}(i,e);var t,n,r,o=Hl(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Bl.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&Ul(t.prototype,n),r&&Ul(t,r),i}(r.a.Component),Yl=n(628),Gl=n(240),Jl=n(44),$l=n(161),Kl=n.n($l),Ql=n(695),Zl=n.n(Ql);class Xl extends r.a.Behavior{initialize(){this.listenTo(this.options.channelName,Jl.a.FILES_SELECTED,this.onDragLeave);this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}get events(){return{drop:"onDrop",dragover:"onDragOver",["dragleave ."+Kl.a.dropArea]:"onDragLeave"}}get lang(){return"shared.behaviors.fileDrop"}lock(){this.locked=!0}unlock(){this.locked=!1}onDrop(){this.locked||this.$el.removeClass(Kl.a.dragOver)}onDragOver(e){this.locked||Gl.a.isFileDrag(e)&&(this.$el.addClass(Kl.a.dragOver),e.preventDefault())}onDragLeave(){this.locked||this.$el.removeClass(Kl.a.dragOver)}onRender(){this.$el.append(Zl()({styles:Kl.a,fileDropText:Wn.a.getPhrase(this.lang,"fileDrop")}))}}var ef=n(736),tf=n(737),nf=n(135),rf=n(99),of=n(309),af=n(732),sf=n.n(af),cf=n(733),uf=n.n(cf);function lf(e){return(lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pf(e,t){return(pf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yf(e);if(t){var o=yf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return df(this,n)}}function df(e,t){return!t||"object"!==lf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yf(e){return(yf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pf(e,t)}(c,e);var t,n,o,s=hf(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=g.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(of.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(C.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 e=r.a.AppLinkHelper.getCurrentAppLink();if(e.application!==a.b.MIGRATION_WIZARD)return!1;var t=[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(t,e.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var e=this.getUI("makeAvailable");e instanceof jQuery&&e.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(e){return e.get("status")!==rf.a.Draft}))||pt.a.isPublishingLibraries(this.customerMetadata)||pt.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var e=this.isDisabled();return{styles:sf.a,disabled:e}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return uf.a}},{key:"behaviors",get:function(){return[{behaviorClass:nf.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:$o.b.libraries}}}])&&ff(t.prototype,n),o&&ff(t,o),c}(r.a.View),bf=n(47);function mf(e){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wf(e,t,n){return(wf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=kf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Of(e,t){return(Of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kf(e);if(t){var o=kf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ef(this,n)}}function Ef(e,t){return!t||"object"!==mf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kf(e){return(kf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Of(e,t)}(c,e);var t,n,o,s=Cf(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,o=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=i.omit(e,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(e){r.push("".concat(e,":").concat(n[e]))})),r.length&&(r.sort(),t+=":".concat(r.join(":"))),t}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,Jl.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,Jl.a.FILES_ADDED,this.onFilesAdded),this.configDataService=g.a.getInstance(m.a.Config,this),this.videoUploadService=g.a.getInstance(m.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=g.a.getInstance(m.a.MigrationVideo,this)}},{key:"regions",value:function(){var e;return vf(e={},a.n.TOP_BANNER,".top-banner-region"),vf(e,a.n.POPUP,".popup-region"),vf(e,a.n.TOP_NAV,".top-nav-region"),vf(e,a.n.CONTENT,".content-region"),vf(e,a.n.LEFT_NAV,".left-nav-region"),vf(e,a.n.PAGE_HEADER,".page-header-region"),vf(e,a.n.ALERT,".alert-region"),vf(e,a.n.PAGE_FOOTER,".page-footer-region"),vf(e,a.n.HIDDEN,".hidden-region"),e}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logAction(e,t)}},{key:"logAction",value:function(e,t){var n={actionType:Ae.UserAction.Upload,entity:Ae.EntityType.Video,location:Ae.LocationContext.VideoUpload,workflowPhase:Ae.WorkflowPhase.Start,descriptor:A.a.mapInteractionType(t)};A.a.logUserAction(e,n)}},{key:"onFilesAdded",value:function(){var e=r.a.AppLinkHelper.getCurrentAppLink(),t=e.application===a.b.LIBRARY_EDITOR&&e.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};t&&(n.params={folderId:e.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var e=Vl.contentBox;return this.options.showLeftNav&&(e+=" ".concat(Vl.leftNavContentBox)),e}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(e){this.options=i.extend({},this.defaults,e),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var e=this.getRegion(a.n.CONTENT).currentView;e?e.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new gf({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new ef.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new tf.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var e=this.configDataService.getVersion();e&&this.showChildView(a.n.PAGE_FOOTER,new Wl({version:e}))}},{key:"showChildView",value:function(e,t,n){e===a.n.CONTENT&&$(window).scrollTop(0),wf(kf(c.prototype),"showChildView",this).call(this,e,t,n)}},{key:"handleNoIntercom",value:function(){var e=this.migrationVideoDataService.getCustomerMetadata();e&&e.get("customerMeta")!==bf.a.LibraryPublished&&this.getUI("alertRegion").removeClass(Vl.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Vl,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 Il.a}},{key:"className",get:function(){return Vl.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:Yl.a,channelName:this.channelName},{behaviorClass:Xl,channelName:this.channelName}]}}])&&Sf(t.prototype,n),o&&Sf(t,o),c}(r.a.LayoutView);var Pf=n(43);class _f extends r.a.Service{initialize(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(mr.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(mr.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}get name(){return vr.b.ContextualSearch}get lang(){return"search.services"}getSearchContext(){return this.searchContext}onRouteChange(e,t){t.isAppRoute&&this.setSearchContext(e)}onTypeaheadToggle(e){if(e.open||this.searchContext.get("filterValue"))return;const t=nt.a.getCurrentContext().appLink;this.setSearchContext(t)}setSearchContext(e){const t=this.isValidSearchContext(e);if(t)this.updateSearchContext(t,e.args);else if(!this.inSearchView(e)){o.Radio.channel(mr.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}}updateSearchContext(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}setFilterValue(e){const t={filterValue:e,title:e};this.searchContext.set(t)}resetSearchContext(){this.searchContext.clear({silent:!0})}isValidSearchContext(e){return this.appVariables||(this.appVariables=g.a.getInstance(Pf.a.SEARCH,this)),i.find(((e,t)=>{const n=[];return t.folder&&n.push({appLink:t.folder,searchTag:Wn.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:(e,t)=>{g.a.getInstance(vr.a.Library,t).getFolder(i.first(e.appLink.args).toString(),e=>{t.setFilterValue(e.get("name")),g.a.releaseInstance(vr.a.Library)})}}),t.series&&n.push({appLink:t.series,searchTag:Wn.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:(e,t)=>{g.a.getInstance(vr.a.Series,t).getSeries(i.first(e.appLink.args).toString(),e=>{const n=e instanceof r.a.Model?e.get("name"):e.name;t.setFilterValue(n),g.a.releaseInstance(vr.a.Series)})}}),n})(this.lang,this.appVariables.appLinks),t=>e.application===t.appLink.application&&e.action===t.appLink.action)}inSearchView(e){const t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}}var Af=n(241);class Tf extends r.a.Service{constructor(){super()}get name(){return vr.b.Notification}initDataServices(){this.notificationDataService=g.a.getInstance(vr.a.Notification,this),this.notificationSocketService=g.a.getInstance(vr.a.NotificationSocket,this),this.userDataService=g.a.getInstance(vr.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}bindSocketListeners(){const e=br.a.NOTIFICATIONS;this.listenTo(mr.b.NOTIFICATIONS_SOCKET,e+":new:sync",this.addNewNotification),this.listenTo(mr.b.NOTIFICATIONS_SOCKET,e+":count:sync",this.updateUnreadCount),this.listenTo(mr.b.NOTIFICATIONS,e+":seen",this.updateUnreadCount)}bindAppListeners(){this.listenTo(mr.a.NOTIFICATIONS,Af.a.Read,this.markNotificationRead)}getDataServices(){this.dataServicesExist()||this.initDataServices()}dataServicesExist(){return!!this.notificationSocketService&&!!this.notificationDataService}addNewNotification(e){this.userDataService.getCurrentUser(t=>{this.notificationDataService.getNotifications(t.id,null,br.a.NOTIFICATIONS,t=>{t.add(e,{at:0})})})}updateUnreadCount(e=0){E.a.get(br.a.NOTIFICATIONS).set("unreadCount",e)}getNotifications(e,t,n){this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser(r=>{this.notificationDataService.getNotifications(r.id,e,t.toString(),n)})}getNotificationsMetadata(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),E.a.get(br.a.NOTIFICATIONS)}markNotificationsSeen(){this.notificationDataService.markSeen()}markNotificationRead(e){this.notificationDataService.markRead(e)}getNotificationsCursors(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}var xf,Lf,Nf=n(54),Df=n(87),If=n(734),Vf=n(8),jf=(xf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}xf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Bf=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return jf(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Nf.a):e.method?e.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=e.headers;i&&Object.keys(i).forEach((function(e){o.setRequestHeader(e,i[e])})),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){o.abort(),r(new Nf.a)}),e.timeout&&(o.timeout=e.timeout),o.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Df.b(o.status,o.statusText,o.response||o.responseText)):r(new Nf.b(o.statusText,o.status))},o.onerror=function(){t.logger.log(Vf.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new Nf.b(o.statusText,o.status))},o.ontimeout=function(){t.logger.log(Vf.a.Warning,"Timeout from HTTP request."),r(new Nf.c)},o.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(Df.a),Mf=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uf=function(e){function t(t){var n=e.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Bf(t):n.httpClient=new If.a(t),n}return Mf(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Nf.a):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(Df.a),Ff=n(735);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(Lf||(Lf={}));var Hf,zf=n(21),qf=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new zf.d(this,e)},e}(),Wf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Yf=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(Hf||(Hf={}));var Gf,Jf,$f=function(){function e(e,t,n,r){var o=this;zf.a.isRequired(e,"connection"),zf.a.isRequired(t,"logger"),zf.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new Ff.a,this.connection.onreceive=function(e){return o.processIncomingData(e)},this.connection.onclose=function(e){return o.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Hf.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:Lf.Ping})}return e.create=function(t,n,r,o){return new e(t,n,r,o)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==Hf.Disconnected&&this.connectionState!==Hf.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return Wf(this,void 0,void 0,(function(){var e;return Yf(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Hf.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Hf.Connecting,this.logger.log(Vf.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=Hf.Connected,this.connectionStarted=!0,this.logger.log(Vf.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=Hf.Disconnected,this.logger.log(Vf.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return Wf(this,void 0,void 0,(function(){var e,t,n,r=this;return Yf(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(Vf.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return o.sent(),this.logger.log(Vf.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log(Vf.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return Wf(this,void 0,void 0,(function(){var e;return Yf(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===Hf.Disconnected?(this.logger.log(Vf.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Hf.Disconnecting?(this.logger.log(Vf.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Hf.Disconnecting,this.logger.log(Vf.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(Vf.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],s=i[1],c=this.createStreamInvocation(e,n,s),u=new qf;return u.cancelCallback=function(){var e=t.createCancelInvocation(c.invocationId);return delete t.callbacks[c.invocationId],o.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[c.invocationId]=function(e,t){t?u.error(t):e&&(e.type===Lf.Completion?e.error?u.error(new Error(e.error)):u.complete():u.next(e.item))},o=this.sendWithProtocol(c).catch((function(e){u.error(e),delete t.callbacks[c.invocationId]})),this.launchStreams(a,o),u},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,i));return this.launchStreams(o,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],s=this.createInvocation(e,n,!1,a),c=new Promise((function(e,n){t.callbacks[s.invocationId]=function(t,r){r?n(r):t&&(t.type===Lf.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(s).catch((function(e){n(e),delete t.callbacks[s.invocationId]}));t.launchStreams(i,r)}));return c},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case Lf.Invocation:this.invokeClientMethod(r);break;case Lf.StreamItem:case Lf.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===Lf.Completion&&delete this.callbacks[r.invocationId],o(r));break;case Lf.Ping:break;case Lf.Close:this.logger.log(Vf.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log(Vf.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var o="Error parsing handshake response: "+e;this.logger.log(Vf.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log(Vf.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log(Vf.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return Wf(e,void 0,void 0,(function(){return Yf(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Hf.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log(Vf.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log(Vf.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log(Vf.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log(Vf.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Hf.Disconnecting?this.completeClose(e):this.connectionState===Hf.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===Hf.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=Hf.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log(Vf.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return Wf(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return Yf(this,(function(s){switch(s.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log(Vf.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=Hf.Reconnecting,e?this.logger.log(Vf.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log(Vf.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log(Vf.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==Hf.Reconnecting)return this.logger.log(Vf.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}s.label=1;case 1:return null===o?[3,7]:(this.logger.log(Vf.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,o)}))]);case 2:if(s.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Hf.Reconnecting)return this.logger.log(Vf.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(s.sent(),this.connectionState=Hf.Connected,this.logger.log(Vf.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log(Vf.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return i=s.sent(),this.logger.log(Vf.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==Hf.Reconnecting?(this.logger.log(Vf.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log(Vf.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log(Vf.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return{arguments:t,streamIds:r,target:e,type:Lf.Invocation};var o=this.invocationId;return this.invocationId++,{arguments:t,invocationId:o.toString(),streamIds:r,target:e,type:Lf.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var o;o=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var o in e)r(o)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var o=e[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,t[i]=o,n.push(i.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:Lf.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:Lf.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:Lf.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:Lf.Completion}:{invocationId:e,result:n,type:Lf.Completion}},e}(),Kf=[0,2e3,1e4,3e4,null],Qf=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):Kf}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(Gf||(Gf={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(Jf||(Jf={}));var Zf=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),Xf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ep=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},tp=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new Zf,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return Xf(this,void 0,void 0,(function(){var n,r,o,i;return ep(this,(function(a){switch(a.label){case 0:if(zf.a.isRequired(e,"url"),zf.a.isRequired(t,"transferFormat"),zf.a.isIn(t,Jf,"transferFormat"),this.url=e,this.logger.log(Vf.a.Trace,"(LongPolling transport) Connecting."),t===Jf.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===Jf.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),o=e+"&_="+Date.now(),this.logger.log(Vf.a.Trace,"(LongPolling transport) polling: "+o+"."),[4,this.httpClient.get(o,n)];case 2:return 200!==(i=a.sent()).statusCode?(this.logger.log(Vf.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new Nf.b(i.statusText||"",i.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},e.prototype.getAccessToken=function(){return Xf(this,void 0,void 0,(function(){return ep(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return Xf(this,void 0,void 0,(function(){var n,r,o,i;return ep(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log(Vf.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log(Vf.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log(Vf.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new Nf.b(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log(Vf.a.Trace,"(LongPolling transport) data received. "+Object(zf.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log(Vf.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof Nf.c?this.logger.log(Vf.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log(Vf.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(Vf.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return Xf(this,void 0,void 0,(function(){return ep(this,(function(t){return this.running?[2,Object(zf.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return Xf(this,void 0,void 0,(function(){var e,t;return ep(this,(function(n){switch(n.label){case 0:this.logger.log(Vf.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(Vf.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=n.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return n.sent(),this.logger.log(Vf.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(Vf.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log(Vf.a.Trace,e),this.onclose(this.closeError)}},e}(),np=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},rp=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},op=function(){function e(e,t,n,r,o){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=o,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return np(this,void 0,void 0,(function(){var n,r=this;return rp(this,(function(o){switch(o.label){case 0:return zf.a.isRequired(e,"url"),zf.a.isRequired(t,"transferFormat"),zf.a.isIn(t,Jf,"transferFormat"),this.logger.log(Vf.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(t===Jf.Text){var a;if(zf.c.isBrowser||zf.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:!0});else{var s=r.httpClient.getCookieString(e);a=new r.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:s}})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log(Vf.a.Trace,"(SSE transport) data received. "+Object(zf.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");i?r.close(t):o(t)},a.onopen=function(){r.logger.log(Vf.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(e){return void o(e)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return np(this,void 0,void 0,(function(){return rp(this,(function(t){return this.eventSource?[2,Object(zf.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),ip=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ap=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},sp=function(){function e(e,t,n,r,o){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=e,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return ip(this,void 0,void 0,(function(){var n,r=this;return ap(this,(function(o){switch(o.label){case 0:return zf.a.isRequired(e,"url"),zf.a.isRequired(t,"transferFormat"),zf.a.isIn(t,Jf,"transferFormat"),this.logger.log(Vf.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),s=!1;zf.c.isNode&&a&&(i=new r.webSocketConstructor(e,void 0,{headers:{Cookie:""+a}})),i||(i=new r.webSocketConstructor(e)),t===Jf.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(t){r.logger.log(Vf.a.Information,"WebSocket connected to "+e+"."),r.webSocket=i,s=!0,n()},i.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)},i.onmessage=function(e){r.logger.log(Vf.a.Trace,"(WebSockets transport) data received. "+Object(zf.f)(e.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(e.data)},i.onclose=function(e){if(s)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(Vf.a.Trace,"(WebSockets transport) sending data. "+Object(zf.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(Vf.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e}(),cp=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},up=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},lp=null,fp=null;if(zf.c.isNode){var pp=require;lp=pp("ws"),fp=pp("eventsource")}var hp=function(){function e(e,t){void 0===t&&(t={}),this.features={},this.negotiateVersion=1,zf.a.isRequired(e,"url"),this.logger=Object(zf.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,zf.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?zf.c.isNode&&!t.WebSocket&&lp&&(t.WebSocket=lp):t.WebSocket=WebSocket,zf.c.isNode||"undefined"==typeof EventSource||t.EventSource?zf.c.isNode&&!t.EventSource&&void 0!==fp&&(t.EventSource=fp):t.EventSource=EventSource,this.httpClient=t.httpClient||new Uf(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return cp(this,void 0,void 0,(function(){var t;return up(this,(function(n){switch(n.label){case 0:return e=e||Jf.Binary,zf.a.isIn(e,Jf,"transferFormat"),this.logger.log(Vf.a.Debug,"Starting connection with transfer format '"+Jf[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log(Vf.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(Vf.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new dp(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return cp(this,void 0,void 0,(function(){var t=this;return up(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(Vf.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(Vf.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return cp(this,void 0,void 0,(function(){var t;return up(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log(Vf.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(Vf.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return cp(this,void 0,void 0,(function(){var t,n,r,o,i,a;return up(this,(function(s){switch(s.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,s.label=1;case 1:return s.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==Gf.WebSockets?[3,3]:(this.transport=this.constructTransport(Gf.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return s.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var e;return up(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(t)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,i.accessTokenFactory=function(){return e}),r++,[2]}}))},i=this,s.label=6;case 6:return[5,o()];case 7:s.sent(),s.label=8;case 8:if(n.url&&r<100)return[3,6];s.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:s.sent(),s.label=11;case 11:return this.transport instanceof tp&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(Vf.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=s.sent(),this.logger.log(Vf.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return cp(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return up(this,(function(c){switch(c.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=c.sent())&&((t={}).Authorization="Bearer "+r,n=t),c.label=2;case 2:o=this.resolveNegotiateUrl(e),this.logger.log(Vf.a.Debug,"Sending negotiation request: "+o+"."),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.httpClient.post(o,{content:"",headers:n})];case 4:return 200!==(i=c.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+i.statusCode))]:((!(a=JSON.parse(i.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return s=c.sent(),this.logger.log(Vf.a.Error,"Failed to complete negotiation with the server: "+s),[2,Promise.reject(s)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return cp(this,void 0,void 0,(function(){var o,i,a,s,c,u,l,f,p,h,d;return up(this,(function(y){switch(y.label){case 0:return o=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log(Vf.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(o,r)]):[3,2];case 1:return y.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],s=n,c=0,u=a,y.label=3;case 3:return c<u.length?(l=u[c],(f=this.resolveTransportOrError(l,t,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,s)return[3,9];y.label=5;case 5:return y.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return s=y.sent(),[3,8];case 7:return p=y.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(e,s.connectionToken),y.label=9;case 9:return y.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return y.sent(),this.connectionId=s.connectionId,[2];case 11:return h=y.sent(),this.logger.log(Vf.a.Error,"Failed to start the transport '"+l.transport+"': "+h),s=void 0,i.push(l.transport+" failed: "+h),"Connecting "!==this.connectionState?(d="Failed to select transport before stop() was called.",this.logger.log(Vf.a.Debug,d),[2,Promise.reject(new Error(d))]):[3,12];case 12:return c++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case Gf.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new sp(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case Gf.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new op(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case Gf.LongPolling:return new tp(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=Gf[e.transport];if(null==r)return this.logger.log(Vf.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log(Vf.a.Debug,"Skipping transport '"+Gf[r]+"' because it was disabled by the client."),new Error("'"+Gf[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return Jf[e]})).indexOf(n)>=0))return this.logger.log(Vf.a.Debug,"Skipping transport '"+Gf[r]+"' because it does not support the requested transfer format '"+Jf[n]+"'."),new Error("'"+Gf[r]+"' does not support "+Jf[n]+".");if(r===Gf.WebSockets&&!this.options.WebSocket||r===Gf.ServerSentEvents&&!this.options.EventSource)return this.logger.log(Vf.a.Debug,"Skipping transport '"+Gf[r]+"' because it is not supported in your environment.'"),new Error("'"+Gf[r]+"' is not supported in your environment.");this.logger.log(Vf.a.Debug,"Selecting transport '"+Gf[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log(Vf.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log(Vf.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(Vf.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log(Vf.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log(Vf.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log(Vf.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(Vf.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!zf.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(Vf.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var dp=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new yp,this.transportResult=new yp,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new yp),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return cp(this,void 0,void 0,(function(){var t,n,r;return up(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new yp,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),t.resolve(),[3,5];case 4:return r=o.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,o=0,i=e;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},e}(),yp=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),gp=n(116),bp=n(125),mp=function(){function e(){this.name="json",this.version=1,this.transferFormat=Jf.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=gp.a.instance);for(var n=[],r=0,o=bp.a.parse(e);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case Lf.Invocation:this.isInvocationMessage(a);break;case Lf.StreamItem:this.isStreamItemMessage(a);break;case Lf.Completion:this.isCompletionMessage(a);break;case Lf.Ping:case Lf.Close:break;default:t.log(Vf.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return bp.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),vp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sp={trace:Vf.a.Trace,debug:Vf.a.Debug,info:Vf.a.Information,information:Vf.a.Information,warn:Vf.a.Warning,warning:Vf.a.Warning,error:Vf.a.Error,critical:Vf.a.Critical,none:Vf.a.None};var wp=function(){function e(){}return e.prototype.configureLogging=function(e){if(zf.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=Sp[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new zf.b(t)}else this.logger=new zf.b(e);return this},e.prototype.withUrl=function(e,t){return zf.a.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=vp({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return zf.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Qf(e):this.reconnectPolicy=e:this.reconnectPolicy=new Qf,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new hp(this.url,e);return $f.create(t,this.logger||gp.a.instance,this.protocol||new mp,this.reconnectPolicy)},e}();class Op extends x.Object{constructor(e){super(),this.subscribeEvent="subscribe",this.reconnectTimeout=5e3,this.reconnectAttempts=100,this.reconnectTries=0,this.connection=this.createConnection(e),this.authEndpoint=e.authEndpoint,this.setProviderOptions(e),this.attachSocketEvents(),!1===e.lazy&&this.openConnection()}setProviderOptions(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}openConnection(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Hf.Connecting),this.connect()}connect(){return $.when(this.getConnectionToken(),this.connection.start()).then(e=>this.start.apply(this,e),e=>this.onConnectionError.apply(this,e))}start(e){return this.connection.invoke(this.subscribeEvent,e.token).then(()=>this.setConnectionState(Hf.Connected)).catch(e=>this.onConnectionError(e))}stop(){if(this.isConnectedOrConnecting())return this.connection.stop()}attachSocketEvents(){this.connection.onclose(()=>this.onConnectionError),this.connection.onreconnected(()=>this.onReconnect)}onReconnect(){this.reconnectTries=0}onConnectionError(e){e?console.log("Connection Error. Reason: "+e):console.log("Connection Error."),this.setConnectionState(Hf.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout(()=>(this.reconnectTries++,this.openConnection()),this.reconnectTimeout||5e3)}createConnection(e){const t=new wp,n=`${Or.a.removeTrailingSlash(e.endpoint)}/hubs/${e.hubName}`,r={logger:Vf.a.Error};return e.logging&&(r.logger=Vf.a.Debug),t.withUrl(n,r).build()}getConnectionToken(){const e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}setConnectionState(e){e===Hf.Connected&&console.log("Connected!"),e===Hf.Disconnected&&console.log("Disconnected!"),this.connectionState=e}isConnectedOrConnecting(){return this.connectionState===Hf.Connecting||this.connectionState===Hf.Connected||this.connectionState===Hf.Reconnecting}create(e,t,n){this.openConnection(),this.rpc(e,t,n)}read(e,t){this.openConnection(),this.subscribe(e,t)}update(e,t,n){this.openConnection(),this.rpc(e,t,n)}delete(e,t){this.openConnection(),this.rpc(e,null,t)}parseError(){return lr.a}rpc(e,t,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.connection.invoke(e,t).then(e=>r.trigger(o,...e)).catch(e=>r.trigger(i,...e))}subscribe(e,t){const{channel:n,successEvent:r}=t;this.connection.on(e,(...e)=>{n.trigger(r,...e)})}}class Cp extends Op{get name(){return b.a.Notifications}}var Ep=n(310),kp=n(36);function Rp(e){return(Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _p(e,t){return(_p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ap(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xp(e);if(t){var o=xp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tp(this,n)}}function Tp(e,t){return!t||"object"!==Rp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xp(e){return(xp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_p(e,t)}(i,e);var t,n,r,o=Ap(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Wn.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return t=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:Wn.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:Wn.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:Wn.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&Pp(t.prototype,n),r&&Pp(t,r),i}(kp.a);function Np(e){return(Np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vp(e,t,n){return(Vp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Up(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function jp(e,t){return(jp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Up(e);if(t){var o=Up(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mp(this,n)}}function Mp(e,t){return!t||"object"!==Np(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Up(e){return(Up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jp(e,t)}(s,e);var t,n,o,i=Bp(s);function s(){return Dp(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"addFiles",value:function(e){var t=this;g.a.getInstance(a.g.Library).getLibraries((function(n){g.a.releaseInstance(a.g.Library),n&&n.length?Vp(Up(s.prototype),"addFiles",t).call(t,e):r.a.ErrorHelper.throw(new Lp)}))}}])&&Ip(t.prototype,n),o&&Ip(t,o),s}(Ep.a);class Hp extends r.a.Model{get idAttribute(){return"masterVideoId"}}class zp extends r.a.Collection{get model(){return Hp}}var qp=n(124);class Wp extends r.a.Service{get name(){return vr.b.PendingItems}get channelName(){return mr.c.PENDING_ITEMS}initialize(){this.videoDataService=g.a.getInstance(vr.a.Video,this),this.videoUploadDataService=g.a.getInstance(vr.a.VideoUpload,this)}clearPendingItem(e,t){switch(e.get("pendingProcessStatus")){case qp.a.Completed:case qp.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.updateViewModel(),this.videoDataService.clearVideoCache(),i.isFunction(t)&&t()});break;case qp.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.videoDataService.clearVideoCache(),this.updateViewModel(),i.isFunction(t)&&t()})}}forceFetchPendingItems(e){this.fetchPendingItems(e)}retryPendingItem(e,t){this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],()=>{this.fetchPendingItems({resetTimeout:!1,callback:t})})}itemStatusChanged(){o.Radio.channel(this.channelName).trigger(Jl.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}getPendingItems(){return this.pendingItems||(this.pendingItems=new zp,this.listenTo(this.pendingItems,"change:foregroundComplete",e=>{if(!e.get("foregroundComplete"))return;this.itemStatusChanged();e.get("video")&&o.Radio.channel(this.channelName).trigger(Jl.a.PENDING_ITEM_READY_TO_WATCH,e)}),this.listenTo(this.pendingItems,"remove",e=>{e.get("clearing")||this.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),e=>{e.get("status")===qp.a.Completed&&this.itemStatusChanged()})}),this.fetchPendingItems()),this.pendingItems}fetchPendingItems(e={resetTimeout:!0}){this.isDestroyed()||this.videoUploadDataService.getPendingItems(t=>{const n=i.map(t,e=>e.masterVideoId.toString()),o=n=>{i.each(t,e=>{const t=n.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===rf.a.Processing&&t.set("status",rf.a.Published))}),this.pendingItems.set(t),this.updateViewModel(),e.resetTimeout&&window.setTimeout(i.bind(this.fetchPendingItems,this),this.getTimeoutLength()),i.isFunction(e.callback)&&e.callback()};n.length?this.videoDataService.getVideos(n,o):o(new r.a.Collection)})}updateViewModel(){const e=E.a.get("process:progress");if(!this.pendingItems||!this.pendingItems.length)return void e.set({progress:0,items:0});const t=this.pendingItems.where(e=>e.get("pendingProcessStatus")>=0);let n=0;i.each(t,e=>n+=e.get("foregroundProgress"));const r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}getTimeoutLength(){return this.pendingItems.any(e=>e.get("pendingProcessStatus")===qp.a.Processing)?5e3:3e4}}var Yp=n(101);function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kp(e,t,n){return(Kp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eh(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Qp(e,t){return(Qp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eh(e);if(t){var o=eh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xp(this,n)}}function Xp(e,t){return!t||"object"!==Gp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function eh(e){return(eh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var th=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qp(e,t)}(i,e);var t,n,r,o=Zp(i);function i(){return Jp(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Kp(eh(i.prototype),"initialize",this).call(this),this.alertService=g.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,Jl.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(e){var t=e.get("video");if(t){var n=Wn.a.getPhrase(this.lang,"readyToWatch",{videoName:rt.v.escapeExpression(t.get("name"))});Yp.a.isDone(e)||(n+=Wn.a.getPhrase(this.lang,"processingResolutions"));var r={heading:Wn.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:t.get("name")}),message:n,type:yr.a.Success,appLinkText:Wn.a.getPhrase(this.lang,"goToVideo",{videoName:t.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[t.get("id")]}};this.alertService.createAlert(r)}}},{key:"lang",get:function(){return"upload.services"}}])&&$p(t.prototype,n),r&&$p(t,r),i}(Wp),nh=n(148),rh=n.n(nh),oh=n(229);function ih(e){return(ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ah(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ch(e,t){return(ch=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fh(e);if(t){var o=fh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lh(this,n)}}function lh(e,t){return!t||"object"!==ih(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fh(e){return(fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ph=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ch(e,t)}(c,e);var t,n,r,s=uh(c);function c(){var e;return ah(this,c),(e=s.apply(this,arguments)).disabledLibraryIds=[],e}return t=c,(n=[{key:"initialize",value:function(){var e=this;this.videoDataService=g.a.getInstance(a.g.Video,this),this.libraryDataService=g.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(t){return e.customLibraries=t}))}},{key:"onDragStart",value:function(e,t){var n;this.videos=e,this.collectionIdentifier=t,$("body").addClass(rh.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(e){return!!this.videos&&!i.any(this.videos,(function(t){return t.categories.any((function(t){return t.id===e.id}))}))}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(e){r||(r=e.categories.find((function(e){return e.get("id")===+n.collectionIdentifier.id})),o=e)}));var a=this.videos,s=this.videos.map((function(e){return e.get("id")})),c=1===s.length?o.get("name"):"",u=oh.a.moveVideoAlert(r.get("name"),e.get("name"),e.get("id"),s.length,c);this.videoDataService.moveVideos(s,e.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(e){return e.collection.remove(e)})),n.logAction(i.map(s,(function(t){return{id:t,newParentId:e.get("id"),oldParentId:r.get("id"),count:s.length}})),t)}),u),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(rh.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var e=this,t=this.customLibraries.find((function(t){return!!rt.f.getModelFromCollection(e.collectionIdentifier.id,t.get("children"))})),n=[];this.videos.forEach((function(e){e.get("libraries").forEach((function(e){e.get("id").toString()!==t.get("id").toString()&&n.push(e.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(e,t){var n=A.a.mergeOptions({actionType:Ae.UserAction.Move,entity:Ae.EntityType.Video,descriptor:Ae.InteractionTypeDescriptor.DragDrop},t);A.a.logUserAction(e,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}}])&&sh(t.prototype,n),r&&sh(t,r),c}(r.a.Service),hh=n(162),dh=n(92),yh=n(195);function gh(e){return(gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vh(e,t){return(vh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oh(e);if(t){var o=Oh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wh(this,n)}}function wh(e,t){return!t||"object"!==gh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oh(e){return(Oh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ch=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vh(e,t)}(c,e);var t,n,i,s=Sh(c);function c(){return bh(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.libraryDataService=g.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(e){this.libraries=e}},{key:"accept",value:function(e){return!(!this.folder||this.isSameFolder(e)||!this.isSameLibrary(e)||this.isParentFolder(e)||this.isChildFolder(e))}},{key:"isSameFolder",value:function(e){return this.folder.id===e.id}},{key:"isSameLibrary",value:function(e){var t=rt.f.getLibrary(this.folder.id,this.libraries),n=rt.f.getLibrary(e.id,this.libraries);return!(!t||!n)&&t.id===n.id}},{key:"isParentFolder",value:function(e){var t=rt.f.getParent(this.folder.id,this.libraries);return!!t&&t.id===e.id}},{key:"isChildFolder",value:function(e){for(var t=rt.f.getModelFromCollection(e.id,this.libraries);t&&t.collection&&t.collection.parent;)if((t=t.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(e){return rt.f.calculateDestinationFolderDepth(this.folder,e.id,this.libraries)>hh.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(e){this.folder=e,$("body").addClass(rh.a.dragging)}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(e))window.setTimeout((function(){r.a.ErrorHelper.throw(new yh.b)}),hh.a.POPUP_FADE_TIMEOUT);else{var a=rt.f.getSelected(dh.a.LIBRARY_EDITOR,i),s=rt.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,e.id,s.id,(function(){a&&rt.f.setSelected(dh.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:e.id,oldParentId:s.id},t)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(rh.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(e,t){var n=A.a.mergeOptions({actionType:Ae.UserAction.Move,entity:Ae.EntityType.Folder,descriptor:Ae.InteractionTypeDescriptor.DragDrop},t);A.a.logUserAction(e,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}}])&&mh(t.prototype,n),i&&mh(t,i),c}(r.a.Service),Eh=n(90);function kh(e){return(kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ph(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _h(e,t){return(_h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ah(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xh(e);if(t){var o=xh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Th(this,n)}}function Th(e,t){return!t||"object"!==kh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xh(e){return(xh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_h(e,t)}(c,e);var t,n,r,s=Ah(c);function c(){return Rh(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=E.a.get(this.viewModelName,{videos:{}},{ctor:Ko.a,storage:{type:Eh.c.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(e,t){i.isArray(e)||(e=[e]);var n={};e.forEach((function(e){return n["".concat(e.id,":").concat(t)]={id:e.id.toString(),folderChord:t}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(e){var t={};e.each((function(e){return t["".concat(e.id,":").concat(e.get("chord"))]={id:e.id.toString(),folderChord:e.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),t);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(e,t){i.isArray(e)||(e=[e]);var n=e.map((function(e){return"".concat(e.id,":").concat(t)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(e,t){return i.contains(n,t)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var e=this.getSelectedVideos();return i.map(i.keys(e),(function(t){return e[t]&&e[t].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}}])&&Ph(t.prototype,n),r&&Ph(t,r),c}(r.a.Service);function Nh(e){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ih(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vh(e,t){return(Vh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mh(e);if(t){var o=Mh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bh(this,n)}}function Bh(e,t){return!t||"object"!==Nh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mh(e){return(Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vh(e,t)}(i,e);var t,n,r,o=jh(i);function i(){return Dh(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(e,t){this.options[e]=t}},{key:"getOption",value:function(e){return this.options[e]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}}])&&Ih(t.prototype,n),r&&Ih(t,r),i}(r.a.Service);function Fh(e){return(Fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qh(e,t){return(qh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gh(e);if(t){var o=Gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yh(this,n)}}function Yh(e,t){return!t||"object"!==Fh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gh(e){return(Gh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qh(e,t)}(s,e);var t,n,r,o=Wh(s);function s(){return Hh(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(e,t){return this.folderChordMap&&!this.collectionUpdated(t)||this.buildFolderChordMap(t),this.folderChordMap[e]}},{key:"buildFolderChordMap",value:function(e){var t=this;this.folderChordMap={},e.each((function e(n){t.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(e)}))}},{key:"collectionUpdated",value:function(e){return!(this.cachedFolderCollectionCid&&e.customCid&&this.cachedFolderCollectionCid===e.customCid||(e.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}}])&&zh(t.prototype,n),r&&zh(t,r),s}(r.a.Service);function $h(e){return($h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zh(e,t){return(Zh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td(e);if(t){var o=td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ed(this,n)}}function ed(e,t){return!t||"object"!==$h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zh(e,t)}(s,e);var t,n,r,o=Xh(s);function s(){return Kh(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=g.a.getInstance(a.g.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(e,t,n){this.getAndMixinVideoCollectionRestrictions(e,t,n)}},{key:"mixinVideoData",value:function(e,t){this.getAndMixinVideoRestriction(e,t)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(e,t,n){var r=this;if(e&&e.length){var o=e.map((function(e){return e.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,t,(function(t){e.forEach((function(e){return r.mixinVideoRestriction(e,t)})),i.isFunction(n)&&n(e)}))}else i.isFunction(n)&&n(e)}},{key:"getAndMixinVideoRestriction",value:function(e,t){var n=this;this.restrictedVideoDataService.getVideoRestrictions([e.id],null,(function(r){n.mixinVideoRestriction(e,r),i.isFunction(t)&&t(e)}))}},{key:"mixinLocalCacheDownloads",value:function(e,t){e.unset("localCacheDownloads"),t&&t.findWhere({objectId:e.get("id").toString()})&&e.set("localCacheDownloads",t)}},{key:"mixinVideoRestriction",value:function(e,t){if(e.unset("restrictions"),t){var n=t.findWhere({objectId:e.get("id")});n&&e.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}}])&&Qh(t.prototype,n),r&&Qh(t,r),s}(r.a.Service),rd=n(25);function od(e){return(od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ad(e,t){return(ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ud(e);if(t){var o=ud(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cd(this,n)}}function cd(e,t){return!t||"object"!==od(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ud(e){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ld=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ad(e,t)}(i,e);var t,n,r,o=sd(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return 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}}])&&id(t.prototype,n),r&&id(t,r),i}(r.a.Component);function fd(e){return(fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hd(e,t){return(hd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gd(e);if(t){var o=gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yd(this,n)}}function yd(e,t){return!t||"object"!==fd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gd(e){return(gd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hd(e,t)}(i,e);var t,n,r,o=dd(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){var e=g.a.getInstance(a.x.PartialLoading,this);this.collection=e.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var e=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(e+=this.options.className),e}},{key:"childView",get:function(){return ld}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&pd(t.prototype,n),r&&pd(t,r),i}(r.a.ComponentCollection);function md(e){return(md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wd(e,t){return(wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Od(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ed(e);if(t){var o=Ed(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cd(this,n)}}function Cd(e,t){return!t||"object"!==md(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ed(e){return(Ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wd(e,t)}(c,e);var t,n,o,s=Od(c);function c(){return vd(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(e,t){var n=this,r=this.getPartialLoadingRegions(e);i.each(i.keys(r),(function(o){if(!t||o===t){var i=r[o],a=n.getComponent(i.partialLoading);e.showChildView(o,a)}}))}},{key:"getComponent",value:function(e){var t="number"==typeof e?a.u[e]:e;return"number"!=typeof e&&(e=Qt.h.Unselected),t||r.a.ErrorHelper.throw(new O.a("Must define PartialLoading type: ".concat(Qt.h[e],"."))),t.component||r.a.ErrorHelper.throw(new O.a("Must select a component for PartialLoading type: ".concat(Qt.h[e],"."))),t.options||r.a.ErrorHelper.throw(new O.a("Must provide options for PartialLoading type: ".concat(Qt.h[e],"."))),new(this.getCtor(t.component))(t.options)}},{key:"getCtor",value:function(e){switch(e){case rd.a.ComponentCollection:return bd;case rd.a.Component:default:return ld}}},{key:"getPartialLoadingRegions",value:function(e){return i.pick(e.regions,(function(e){return i.has(e,"partialLoading")}))}},{key:"getCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t=new Array(e);return new r.a.Collection(t)}},{key:"name",get:function(){return a.x.PartialLoading}}])&&Sd(t.prototype,n),o&&Sd(t,o),c}(r.a.Service);function Rd(e){return(Rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ad(e,t){return(Ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ld(e);if(t){var o=Ld(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xd(this,n)}}function xd(e,t){return!t||"object"!==Rd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ld(e){return(Ld=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ad(e,t)}(s,e);var t,n,o,i=Td(s);function s(){return Pd(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return a.x.Intercom}}])&&_d(t.prototype,n),o&&_d(t,o),s}(r.a.Service);function Dd(e){return(Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jd(e,t){return(jd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ud(e);if(t){var o=Ud(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Md(this,n)}}function Md(e,t){return!t||"object"!==Dd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ud(e){return(Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jd(e,t)}(c,e);var t,n,i,s=Bd(c);function c(){return Id(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;this.lockOptions=e,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(e){return e.returnValue=t,t}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(e){var t=this;new rt.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),t.unlock(),r.a.AppLinkHelper.trigger(e)}))}},{key:"getNavLockOptions",value:function(){var e=this.lockOptions,t=e.title,n=e.text;return{title:t||Wn.a.getPhrase(this.lang,"discardChanges"),text:n||Wn.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:Wn.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:Wn.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"}}])&&Vd(t.prototype,n),i&&Vd(t,i),c}(r.a.Service);function Hd(e){return(Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wd(e,t){return(Wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jd(e);if(t){var o=Jd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gd(this,n)}}function Gd(e,t){return!t||"object"!==Hd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $d=" - ClickView",Kd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wd(e,t)}(s,e);var t,n,o,i=Yd(s);function s(){return zd(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(e){e&&r.a.LocationUtils.SetPageTitle(this.trimTitle(e))}},{key:"trimTitle",value:function(e){return e?e.length+$d.length<=60?e+$d:e.substring(0,57)+"..."+$d:""}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}}])&&qd(t.prototype,n),o&&qd(t,o),s}(r.a.Service);sr.a;var Qd=n(242),Zd=n(40),Xd=n(196),ey=n(140),ty=n(146),ny=n(226);function ry(e){var t=E.a.get("informational:error:handler");t.get("rendered")||(t.set("rendered",!0),new Xd.a(Object.assign(Object.assign({},e.dialogOptions),{channelName:"informational:error"})).render().done((function(){return e.onDone()})).fail((function(){return e.onFail()})).always((function(){return t.clear()})))}function oy(e){g.a.getInstance(m.b.Alerts).createAlert({heading:yr.c.Fail,type:yr.a.Fail,message:e.message})}function iy(){r.a.AppLinkHelper.trigger({application:ey.a.DEFAULT,action:ty.a.Default.NOT_FOUND})}function ay(e){o.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:ey.a.DEFAULT,action:ty.a.Default.ERROR})}var sy=n(10);const cy={register(){sy.registerHelper("lang",(e,t)=>{if(!this.isValid(e,t))return;const n=t.data.root.languageNamespace;return Wn.a.getPhrase(n,e,t.hash)})},isValid:(e,t)=>"string"!=typeof e?(r.a.ErrorHelper.throw(new O.a("No language key provided.")),!1):"object"!=typeof t?(r.a.ErrorHelper.throw(new O.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new O.a("No `lang` property provided.")),!1)};var uy=n(243);function ly(e){return(ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function py(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hy(e,t){return(hy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gy(e);if(t){var o=gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yy(this,n)}}function yy(e,t){return!t||"object"!==ly(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gy(e){return(gy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var by=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hy(e,t)}(i,e);var t,n,r,o=dy(i);function i(){return fy(this,i),o.apply(this,arguments)}return t=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}}}},{key:"addSlugs",get:function(){return!1}},{key:"searchBarPlaceholder",get:function(){return null}},{key:"showSearchTips",get:function(){return!0}}])&&py(t.prototype,n),r&&py(t,r),i}(uy.BaseSearchAppVariables),my=n(62);function vy(e){return(vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oy(e,t){return(Oy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ky(e);if(t){var o=ky(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ey(this,n)}}function Ey(e,t){return!t||"object"!==vy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ky(e){return(ky=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ry=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oy(e,t)}(i,e);var t,n,r,o=Cy(i);function i(){return Sy(this,i),o.apply(this,arguments)}return t=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[my.a.VideoReviewReminder,my.a.VideoReviewAddedToLibrary,my.a.CustomLibraryVideoAvailable,my.a.StaffRequest,my.a.StaffRequestFulfilled,my.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&wy(t.prototype,n),r&&wy(t,r),i}(uy.BaseNotificationsAppVariables);new d,o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(e,t){const n=e.$("[name="+t+"]"),r=n.closest(".form-group");n.removeClass("is-invalid"),r.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(e,t,n){const r=e.$("[name="+t+"]"),o=r.closest(".form-group");r.addClass("is-invalid"),o.find(".form-feedback").addClass("invalid-feedback").html(n)}});var Py=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[y.a.ALERT,y.a.POPUP,y.a.HIDDEN]})});Py.addInitializationStep((function(e,t){e.registerLayout(Nl.a.ManageLayout,Rf),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(cr,{size:100}),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(by).registerInstance(Ry),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(hr,{dataServiceErrorMessageMappings:dr.a,defaultErrorMessageKey:dr.b}),t(e)})).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:yr.c.Success,type:yr.a.Success},defaultErrorAlert:{heading:yr.c.Fail,type:yr.a.Fail},alertViewCtor:eo};g.a.registerSingleton(new uo(n));var r=g.a.getInstance(m.b.Alerts),o={cache:ir.a.Fifo,dataProvider:b.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,g.a.registerDataService(lo.a,o).registerDataService(fo.a,o).registerDataService(Oo,o).registerDataService(Jo,o).registerDataService($o.a,o).registerDataService(Ti,o).registerDataService(qi,o).registerDataService(Zi,o).registerDataService(sa,o).registerDataService(Tr,o).registerDataService(ja,o).registerDataService(Ja,o).registerDataService(ss,o).registerDataService(bs,o).registerDataService(ms.a,o).registerDataService(Fs,o).registerDataService(Ks,o).registerDataService(lc,o).registerDataService(jc,o).registerDataService(Nr,o).registerDataService(Zc,o).registerDataService(au,o).registerDataService(vu,o).registerDataService(Tu,o).registerDataService(zu,o).registerDataService(il,o).registerDataService(wl,o).registerDataService(Ll,o);var i={cache:ir.a.Fifo,dataProvider:b.a.Notifications,alertService:r};g.a.registerDataService(wr,i),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(Fp).registerInstance(th).registerInstance(ph).registerInstance(Ch).registerInstance(Tf).registerInstance(Lh).registerInstance(Uh).registerInstance(Jh).registerInstance(nd).registerInstance(d),g.a.registerSingleton(new _f).registerSingleton(new kd).registerSingleton(new Nd).registerSingleton(new Fd).registerSingleton(new Kd),g.a.getInstance(m.a.Config).getConfig((function(n){g.a.registerInstance(Cp,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),g.a.getInstance(m.a.Language).getLanguageConfig((function(e){Wn.a.setConfig(e),g.a.releaseInstance(m.a.Language)})),t(e),g.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(e,t){var n,r,o,i=g.a.getInstance(m.a.Config),a=g.a.getInstance(m.a.User);function s(){return new Promise((function(e,t){a.getCurrentUser((function(t){e(t.toJSON())}),(function(){t()}))}))}var c=new w.a(3),u=function(){if(c.decrement(),!(c.getValue()>0)){var i=new T({user:r.toJSON(),config:n.toJSON()});g.a.registerSingleton(i),i.registerTransport(N),i.registerClient(ke);var a=n.get("countryCode").toLowerCase();i.registerClient(we,{productName:"cloud.web",productVersion:o,regionName:ve[a],collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:s,shouldLog:ze.shouldLog,formatData:ze.formatData}),i.registerEnricher(_e,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(I),i.registerClient(Oe.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),g.a.releaseInstance(m.a.Config),g.a.releaseInstance(m.a.User),t(e)}};i.getVersion((function(e){o=e,u()})),i.getConfig((function(e){n=e,u()})),a.getCurrentUser((function(e){r=e,u()}))})).addInitializationStep((function(e,t){e.registerApplication(tt).registerApplication(Pt).registerApplication(Mt).registerApplication(Kt).registerApplication(un).registerApplication(On).registerApplication(Nn).registerApplication(qn).registerApplication(or),t(e)})).addInitializationStep((function(e,t){g.a.getInstance(m.a.Config).getVersion((function(n){var o=g.a.getInstance(b.a.Ajax);o.useMiddleware("versionInvalidation",(function(e,t,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new v.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(e){401===e.status&&r.a.ErrorHelper.throw(new S.a)})),t(e),g.a.releaseInstance(b.a.Ajax),g.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:i.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){cy.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Zd.a,ay).registerErrorHandler(kp.a,ry).registerErrorHandler(Qd.a,oy).registerErrorHandler(ny.a,iy),t()})),Py.addStartUpStep((function(e,t,n){var r=g.a.getInstance(m.a.Config);r.getConfig((function(){r.getVersion((function(r){t.environment="DEVELOPMENT",t.version=r,Ce.a.setUpVariables({isDevelopment:!1}),n(e,t),g.a.releaseInstance(m.a.Config)}))}))})).addStartUpStep((function(e,t,n){g.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(e,t),g.a.releaseInstance(m.a.Config)}))})),Py.start()},function(e,t){e.exports=u},function(e,t){e.exports=l}])}));
8
+ var r=n(994),o=n(995),i=n(996);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var f=!0,p=0;p<c;p++)if(u(e,i+p)!==u(t,p)){f=!1;break}if(f)return i}return-1}function v(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function S(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function O(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return H(F(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=d,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):y.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){i=u[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=M(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function x(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:U(new c(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(257))},function(e,t,n){"use strict";var r=n(477);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(479);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(480);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(481);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(482);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(483);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(198);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var l=n(484);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(485);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(486);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(487);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var d=n(488);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var y=n(489);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var g=n(490);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var b=n(491);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var m=n(492);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var v=n(493);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var S=n(494);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(495);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(496);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var C=n(497);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var E=n(498);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var k=n(499);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var R=n(500);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(501);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}))},function(e,t,n){"use strict";var r=n(478);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(503);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(506);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(513);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(514);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(515);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(516);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(517);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var l=n(518);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));n(519);var f=n(520);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(521);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(522);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var d=n(199);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var y=n(523);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var g=n(524);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var b=n(525);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var m=n(526);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var v=n(527);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var S=n(528);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(200);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(529);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var C=n(530);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var E=n(531);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var k=n(532);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var R=n(533);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(534);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));var _=n(201);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));n(535);var A=n(536);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables}));var T=n(537);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables}));var x=n(538);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables}));var L=n(539);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables}));var N=n(540);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables}));var D=n(541);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables}));var I=n(542);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables}));var V=n(543);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables}));var j=n(544);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables}));var B=n(545);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables}));var M=n(546);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables}));var U=n(547);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables}));var F=n(548);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables}));var H=n(549);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables}));var z=n(550);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables}));var q=n(551);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables}));var W=n(552);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var Y=n(553);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables}));var G=n(554);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables}));var J=n(555);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables}));var $=n(556);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables})),n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var K=n(557);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables}));var Q=n(558);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables}));var Z=n(559);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables}));var X=n(560);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables}));var ee=n(561);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables}))},function(e,t,n){"use strict";var r=n(504);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(505);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(507);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(508);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(509);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));n(510);var a=n(511);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(512);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e.Pink="colour:0",e.Pizazz="colour:1",e.Emerald="colour:2",e.PictonBlue="colour:3",e.EastSide="colour:4",e.Portage="colour:5"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(563);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(e,t){},function(e,t,n){"use strict";var r=n(565);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(566);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(567);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(568);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(569);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(570);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(571);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(573);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(574);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(575);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(576);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var s=n(577);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var c=n(578);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(579);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(43);class o{get name(){return r.a.SEARCH}}class i{get name(){return r.a.NOTIFICATIONS}}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(2),o=n(6),i=n(36),a=n(3);const s="shared.tooManyFiles";class c extends i.a{constructor(){super(a.a.getPhrase(s,"title"))}get name(){return"TooManyFilesError"}get dialogOptions(){return{title:a.a.getPhrase(s,"heading"),text:a.a.getPhrase(s,"body"),buttons:[{text:a.a.getPhrase(s,"okay"),className:"btn btn-primary",success:!0}]}}}var u=n(240),l=n(234),f=n(44);n.d(t,"a",(function(){return p}));class p extends r.a.Behavior{initialize(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}get events(){return{drop:"onDrop",drag:"onDrag"}}lock(){this.locked=!0}unlock(){this.locked=!1}onDrop(e){if(this.locked)return;e.preventDefault();const t=e.originalEvent;if(!u.a.isFileDrag(e))return;const n=[];if(t.dataTransfer.items)for(let e=0;e<t.dataTransfer.items.length;e++)"file"===t.dataTransfer.items[e].kind&&n.push(t.dataTransfer.items[e].getAsFile());else for(let e=0;e<t.dataTransfer.files.length;e++){const r=t.dataTransfer.files[e];n.push(r)}if(n.length>1&&!this.options.acceptMultiple)return void r.a.ErrorHelper.throw(new c);o.Radio.channel(this.options.channelName).trigger(f.a.FILES_SELECTED,n,l.a.DragDrop),t.dataTransfer.items?t.dataTransfer.items.clear():t.dataTransfer.clearData()}}},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return m}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){e.exports={videoGroupList:"_38Usa"}},function(e,t,n){e.exports={partialSubFolder:"_1ltue"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.title:i,t))+'"></h6>\r\n<p class="my-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestedBy:i,t))+'"></p>\r\n<p class="my-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.date:i,t))+'"></p>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badge:i,t))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>'},useData:!0})},function(e,t,n){e.exports={content:"_3_8yg"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>'},useData:!0})},function(e,t,n){e.exports={button:"_3owCz"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.video:i,t))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' partial-loading-background"></div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+' partial-loading-background mt-1"></div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subSubText:i,t))+' partial-loading-background mt-1"></div>'},useData:!0})},function(e,t,n){e.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"z4_PP",subText:"_1CvDv"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.back:i,t))+'"></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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.detailsTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.chaptersTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learningTab:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background">&nbsp</button>\r\n\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textbox:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background mb-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.player:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={player:"H6oUk"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c=e.lambda,u=e.escapeExpression;return' <div class="col-12 pr-3 py-1 '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.videoRow:s,t))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n <div class="partial-loading-background d-inline-block '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.text:s,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.views:s,t))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c=e.lambda,u=e.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.sortingRow:s,t))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.bulkCheckbox:s,t))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.sortOption:s,t))+'">\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 '+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.sortOption:s,t))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+u(c(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.videoList:s,t))+'">\r\n'+(null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=(s=null!=t?t.options:t)?s.videoItems:s,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?s:"")+"</div>"},useData:!0,useDepths:!0})},function(e,t,n){e.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.toggle:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={row:"rShIv"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled>&nbsp</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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled>&nbsp</button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button">&nbsp</button>'},useData:!0})},function(e,t,n){e.exports={button:"_1CETN"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.multilineSubText:i,t))+'"></div>\r\n <div class="my-2 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_2x-al",item:"hFvEo"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth1:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth3:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,s=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+c)>>>2,s.length<=i&&s.push(0),s[i]|=e[o]<<8*(u+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(s=(o>>>1)+u)>>>2;c.length<=a;)c.push(0);c[a]|=i<<8*(l+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,s,c,u,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,s=0;s<e.length;s+=1)for(a=[],128>(i=e.charCodeAt(s))?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):(s+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(s)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),c=0;c<a.length;c+=1){for(u=(l=h+y)>>>2;d.length<=u;)d.push(0);d[u]|=a[c]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,s=0;s<e.length;s+=1){for(i=e.charCodeAt(s),!0===p&&(i=(c=255&i)<<8|i>>>8),u=(l=h+y)>>>2;d.length<=u;)d.push(0);d[u]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,s,c,u,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(c=e.substr(i,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(u=(l=f+h)>>>2;p.length<=u;)p.push(0);p[u]|=(s>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,s,c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(s=i+u)>>>2,c.length<=a&&c.push(0),c[a]|=o<<8*(l+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",s=t/8,c=-1===n?3:0;for(o=0;o<s;o+=1)i=e[o>>>2]>>>8*(c+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,s,c,u,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(c=i+1<f?e[i+1>>>2]:0,u=i+2<f?e[i+2>>>2]:0,s=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(c>>>8*(p+r*((i+1)%4))&255)<<8|u>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(s>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(s+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),s=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function u(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,d,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)y[h]=h<16?e[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),s(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),c(r,o,i),f,2400959708,y[h]):l(a(n,5),s(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=u(n,t[0]),t[1]=u(r,t[1]),t[2]=u(o,t[2]),t[3]=u(i,t[3]),t[4]=u(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,s=i>>>5;for(t=0;t<s;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=i(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=o(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));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 c(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.18-rc.6"}')},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(1),o=n(4),i=n(233);const a=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],s=["sort"],c=["release-date","subjects"];class u extends i.a{constructor(e){super(e)}initialize(){this.bootstrap(this.options.trackingId,this.options.userId)}get name(){return"GoogleAnalyticsClient"}shouldLog(e){const t=u.eventWhitelist[e.type];return r.isBoolean(t)?t:!!r.isFunction(t)&&t(e)}log(e){this.logPageView(e)}logPageView(e){if(!e||r.isArray(e.data))return;const t=e.data.currentLocation;t&&this.ga("set","page",t),this.ga("send","pageview")}bootstrap(t,n){this.ga||(e.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:t,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:u.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}static get queryParamWhitelist(){return[...a,...c,...s]}static get eventWhitelist(){return{[o.UserAction.Navigate]:e=>!r.isArray(e.data)&&e.data.currentLocation}}}}).call(this,n(984))},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"multiple"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'accept="'+e.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=t?t.mimeType:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=t?t.acceptMultiple:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=t?t.mimeType:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" />"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.spinnerEl:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.each.call(a,null!=t?t.buttons:t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.spinnerButton:t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return' <button type="'+u("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:c)?a.call(s,{name:"type",hash:{},data:o}):a)+'" class="'+u("function"==typeof(a=null!=(a=n.className||(null!=t?t.className:t))?a:c)?a.call(s,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(s,null!=t?t.close:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">"+u("function"==typeof(a=null!=(a=n.text||(null!=t?t.text:t))?a:c)?a.call(s,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(e,t,n,r,o){return'data-dismiss="modal"'},5:function(e,t,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="modal-dialog '+u("function"==typeof(a=null!=(a=n.size||(null!=t?t.size:t))?a:c)?a.call(s,{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">'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:c)?a.call(s,{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">&times;</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!=t?t.content:t))?a:c)?a.call(s,{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(s,null!=t?t.buttons:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))?i:""},useData:!0})},function(e,t,n){e.exports=n(985).default},function(e,t,n){e.exports={svgContainer:"_1nWzn"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.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="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</span> "+c(s(null!=(i=null!=t?t.options:t)?i.createText:i,t))+" "+c("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:l)?a.call(u,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)?a.call(u,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(e,t,n){"use strict";var r=n(453);n.d(t,"BaseCollectionIdentifier",(function(){return r.a}));n(454),n(455),n(456),n(150),n(457),n(458),n(459),n(460)},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.link:i,t))+'">'+s("function"==typeof(a=null!=(a=n.appLinkText||(null!=t?t.appLinkText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="d-inline-block '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">\r\n <span class=" d-inline-block '+c(s(null!=(i=null!=t?t.options:t)?i.svgClass:i,t))+" "+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.typeSvg:i,t))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertContent:i,t))+'">\r\n <p class="p-0 m-0 pb-1 '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.heading:i,t))+'">'+c("function"==typeof(a=null!=(a=n.heading||(null!=t?t.heading:t))?a:l)?a.call(u,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=t?t.message:t))?a:l)?a.call(u,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(u,null!=t?t.appLink:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">&times;</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="left-nav-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.leftNav:i,t))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.topNav:i,t))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sizingBox:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLeftNav:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+s(a(null!=(i=null!=t?t.options:t)?i.contentBoxClassName:i,t))+'">\r\n <div class="content-region container px-0 '+s(a(null!=(i=null!=t?t.options:t)?i.contentContainerClassName:i,t))+'"></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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBox:i,t))+" "+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBoxWithIntercom:i,t))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return"ClickView "+a(e.lambda(null!=(i=null!=t?t.options:t)?i.currentYear:i,t))+" | "+a((n.lang||t&&t.lang||c).call(s,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||t&&t.lang||c).call(s,"version",{name:"lang",hash:{version:null!=(i=null!=t?t.options:t)?i.version:i},data:o}))},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.dropMask:i,t))+'"></div>\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.dropContent:i,t))+'">\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.border:i,t))+'">\r\n <h1>'+c("function"==typeof(a=null!=(a=n.fileDropText||(null!=t?t.fileDropText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+c(s(null!=(i=null!=t?t.styles:t)?i.dropArea:i,t))+'"></div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+s(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+s(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+s(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+s(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+s(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+s(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){e.exports=n(993).default},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c=e.lambda,u=e.escapeExpression;return' <span class="border rounded align-middle '+u(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.term:s,t))+'">'+u(c(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var s,c,u=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+u(e.lambda(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.termContainer:s,t))+'">\r\n'+(null!=(s=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?s:"")+"</span>\r\n<span>"+u("function"==typeof(c=null!=(c=n.description||(null!=t?t.description:t))?c:e.hooks.helperMissing)?c.call(l,{name:"description",hash:{},data:o}):c)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+c("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(u,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+c("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(u,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression,c=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:s)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+c("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:s)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:s)?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">'+c("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:s)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+c(s(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<span class="badge float-right '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+s(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return' <div class="result-title collection"> '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<a class="row" href="'+s(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(c,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression;return'<a class="row" href="'+c(s(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+s(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchIcons:i,t))+'">\r\n <span class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+' search-btn">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showCloseButton:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"</div>\r\n"},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+' close-btn">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n"},4:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+s(a(null!=(i=null!=t?t.options:t)?i.avatar:i,t))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block svg-container '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.arrow:i,t))+'">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.arrowSvg:i,t))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.iconSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return(null!=(i=a(null!=(i=null!=t?t.options:t)?i.prefix:i,t))?i:"")+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.title:i,t))+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.iconSvg:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){e.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="dropdown-item '+c(s(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'">\r\n <div class="m-0 '+c(s(null!=(i=null!=t?t.options:t)?i.displayName:i,t))+'"><strong>'+c("function"==typeof(a=null!=(a=n.displayName||(null!=t?t.displayName:t))?a:l)?a.call(u,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+c("function"==typeof(a=null!=(a=n.customerName||(null!=t?t.customerName:t))?a:l)?a.call(u,{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(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"text-danger "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.errorMargin:i,t))},3:function(e,t,n,r,o){return"mr-3"},5:function(e,t,n,r,o){return"text-danger"},7:function(e,t,n,r,o){return"text-muted"},9:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+s(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'%" aria-valuenow="'+s(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.isDone:i,{name:"unless",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o}))?i:"")+' <span class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+" "+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hiddenCancel:i,t))+'" title="'+c((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},12:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},14:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+c((n.lang||t&&t.lang||s).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+c((n.lang||t&&t.lang||s).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+' align-middle" title="'+c((n.lang||t&&t.lang||s).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+'">\r\n '+c(s(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(7,o,0),data:o}))?i:"")+' progress-text">'+c(s(null!=(i=null!=t?t.options:t)?i.status:i,t))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+c(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(11,o,0),inverse:e.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.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(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressDropdown:i,t))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"><span class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.uploadButtonSvg:i,t))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.uploadSvg:i,t))?i:"")+"</span>"+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasLibraries:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.items:t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.itemCount:i,t))+'">'+s("function"==typeof(a=null!=(a=n.items||(null!=t?t.items:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hasErrors:t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression;return'<a class="navbar-brand text-hide align-top '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.logoContainer:i,t))+' 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 '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBarContainer:i,t))+'">\r\n <div class="search-bar-region container '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionButtons:i,t))+'">\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(e,t,n){e.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(e,t,n){e.exports={topNav:"_3xqNh"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a;e.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.count:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,s=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(s,null!=t?t.icon:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" "+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.count:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,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>'+e.escapeExpression(e.lambda(t,t))+'</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(e,t,n){e.exports={banner:"_1kvBB"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"disabled"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return'title="'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="py-2 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.banner:i,t))+'">\r\n '+a((n.lang||t&&t.lang||c).call(s,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">"+a((n.lang||t&&t.lang||c).call(s,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r,o,i=n(54),a=n(87),s=n(8),c=n(21),u=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};if("undefined"==typeof XMLHttpRequest){var f=require;o=f("request")}var p=function(t){function n(e){var n=t.call(this)||this;if(void 0===o)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=o.jar(),n.request=o.defaults({jar:n.cookieJar}),n}return u(n,t),n.prototype.send=function(t){var n=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new i.a):new Promise((function(r,o){var u;u=Object(c.g)(t.content)?e.from(t.content):t.content||"";var f=n.request(t.url,{body:u,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:l({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(e,c,u){if(t.abortSignal&&(t.abortSignal.onabort=null),e)return"ETIMEDOUT"===e.code&&(n.logger.log(s.a.Warning,"Timeout from HTTP request."),o(new i.c)),n.logger.log(s.a.Warning,"Error from HTTP request. "+e),void o(e);c.statusCode>=200&&c.statusCode<300?r(new a.b(c.statusCode,c.statusMessage||"",u)):o(new i.b(c.statusMessage||"",c.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){f.abort(),o(new i.a)})}))},n.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},n}(a.a)}).call(this,n(475).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(125),o=n(21),i=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,i;if(Object(o.g)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(c=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var s=c+1;n=String.fromCharCode.apply(null,a.slice(0,s)),i=a.byteLength>s?a.slice(s).buffer:null}else{var c,u=t;if(-1===(c=u.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=u.substring(0,s),i=u.length>s?u.substring(s):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[i,f]},t}()}).call(this,n(475).Buffer)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(30),i=n(5),a=n(22),s=n(43),c=n(15),u=n(696),l=n.n(u),f=n(249),p=n.n(f);class h extends r.a.Component{constructor(e){super(e)}get name(){return"NotificationStatusComponent"}get className(){return`notification-status mx-2 ${p.a.notificationIcon} ${p.a[this.options.color]}`}get template(){return l.a}initialize(){this.listenTo(this.model,"change:unreadCount",this.render)}viewOptions(){return{styles:p.a,svg:c.a.getSvg(c.b.Bell),unreadCount:this.model.get("unreadCount")}}}var d=n(230),y=n(53),g=n(25),b=n(191),m=n(700),v=n.n(m),S=n(465),w=n.n(S),O=n(466),C=n.n(O);class E extends r.a.View{constructor(e){super(e)}get name(){return"NotificationPopoverView"}get title(){return!1}get lang(){return"notifications.notificationsPopover"}get className(){return"notifications-container"}get template(){return v.a}regions(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:g.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:w.a,className:"px-1 py-2",viewOptions:{styles:C.a}}}}}}}get elements(){return{anchor:".see-all"}}get appLinks(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}initialize(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(s.a.NOTIFICATIONS,this)}onData(e){this.collection=e,this.render()}getCollectionIdentifier(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new b.a({collectionPrefix:y.a.NOTIFICATIONS})}renderNotificationList(){const e=new d.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}triggerSeen(){this.notificationService.markNotificationsSeen()}onBeforeRender(){return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),e=>this.onData(e)),!!this.collection}viewOptions(){return{hasNotifications:this.collection&&this.collection.length}}onRender(){this.renderNotificationList(),this.triggerSeen()}}var k=n(701),R=n.n(k),P=n(702),_=n.n(P);class A extends r.a.View{initialize(){this.appVariables=i.a.getInstance(s.a.NOTIFICATIONS)}get name(){return"NotificationHeaderView"}get title(){return!1}get className(){return"d-flex align-items-center position-relative"}get template(){return R.a}regions(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}events(){return{"click .notifications-status-region":"renderNotificationList"}}renderNotificationList(){const e=new E({childType:d.a.Popover});this.showChildView("notifications",e)}renderNotificationStatus(){const e=i.a.getInstance(a.b.Notification),t=new h({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}viewOptions(){return _.a}onRender(){this.renderNotificationStatus()}}var T=n(1),x=n(6),L=n(4),N=n(42),D=n(119),I=n(90),V=n(3),j=n(703),B=n.n(j);const M=/&/g,U=/[\W]+/g,F=/\s+/g,H={className:"info-link"},z={escapeExpression:e=>window.Handlebars.escapeExpression(e),escapeRegExp:e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),slugify(e){if(e)return e.toLowerCase().replace(M,"and").replace(U," ").trim().replace(F,"-").substr(0,80)},linkifyText(e,t){if(!e)return;const n=t?T.extend({},H,t):H;return B()(e,n)},isEqual:(e,t)=>!!e&&!!t&&e.toString()===t.toString(),toTitleCase:e=>e.split(" ").map(e=>(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")).join(" ")};var q=n(24),W=n(13);n(98);W.a;const Y={dataServiceName:a.a.User,dataChannelName:q.b.USER},G={getCurrentUserFetchOptions:(e,t)=>Object.assign(Object.assign({},Y),{eventPrefix:y.a.CURRENT_USER,fetchData:e=>e.getCurrentUser(),setData:e,onError:t}),currentUser:{dataServiceName:a.a.User,eventName:y.a.CURRENT_USER+":sync",getData:e=>e.getCurrentUser(),getInstance:e=>i.a.getInstance(a.a.User,e),beforeOnBeforeRender:!0}},J={showMask(e={}){const{targetSelector:t,additionalClasses:n,fade:r=!0}=e;if($(".mask").length)return;const o=$("<div>",{class:"mask "+(n||"")});return r&&o.addClass("fade show"),$(o).appendTo(J.getTarget(t)),$(J.getTarget(t)).addClass("mask-lock"),o},hideMask(e){const t=e||$(".mask");if(!t.length)return;$(".mask-lock").removeClass("mask-lock"),t.remove()},getTarget(e){const t=$(e||"#app");if(t.length)return t}};var K=n(238),Q=n(75),Z=n(23);const X={getContextualSearchQueryParams(e){if(!e||!e.get("filterParam"))return{};return{[e.get("filterParam")]:e.get("filterValue")}}};var ee;!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(ee||(ee={}));var te=n(122);const ne=te.a.SuggestionLimit,re={prepareQuery:(e,t,n={})=>{const{model:r,libraryIds:o,presentationId:i}=n;r&&r.get("filterValue")&&(e+=` ${r.get("filterParam")}:"${r.get("filterValue")}"`);let a=`${t.url}?q=${e}`;return o&&(a+="&ids="+o),i&&(a+="&presentationId="+i),a},bloodhoundConfig:(e,t)=>({datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:T.partial(re.prepareQuery,T,T,t),transform:T.partial(re.handleResult,T,e)}}),handleResult:(e={},t,n={})=>t===Z.a.Subjects?re.processSubjectResult(e[t]):t===Z.a.Video?re.processVideoResult(e[t]):n.showFolder&&t===Z.a.Folder?re.processFolderResult(e[t]):t===Z.a.Series?re.processSeriesResult(e[t]):t===Z.a.Tags?re.processTagsResult(e[t]):[],processSubjectResult:e=>e?(e=re.processCollection(e),T.map(e,e=>(e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e))):[],processVideoResult:e=>e?(e=re.processCollection(e),T.map(e,e=>(e.cached||(e.topics=T.map(e.topics,e=>({name:e})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e))):[],processTagsResult(e){if(!e)return[];const t=i.a.getInstance(s.a.SEARCH,this);return e=re.processCollection(e),T.map(e,e=>(e.cached||(e.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},t.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e))},processSeriesResult:e=>e?(e=re.processCollection(e),T.map(e,e=>{let t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=T.first(e.folder)),T.extend({},e,{collectionType:void 0,collection:t})})):[],processFolderResult:e=>e?(e=re.processCollection(e,{limit:ne.Folder}),T.map(e,e=>{const{library:t={}}=e;return t.type===ee.Exchange&&(t.name="Exchange"),T.extend({},e,{libraryId:t.id,libraryName:t.name,libraryType:t.type})})):[],processCollection(e,t={}){const{limit:n=ne.Default}=t;return e.slice(0,n)}},oe={getRecentSearches(e,t){let n=t.cacheGet(e);return T.isArray(n)||(n=[]),n},setRecentSearches(e,t,n){T.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches(e,t,n){const{add:r,remove:o,query:i,limit:a=5}=n;let s=oe.getRecentSearches(e,t);const c=T.indexOf(s,i);return r&&-1===c&&s.unshift(i),o&&c>-1&&s.splice(c,1),s.length>a&&(s=s.slice(0,a)),oe.setRecentSearches(e,s,t),s}};var ie,ae=n(95);!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(ie||(ie={}));class se extends r.a.Behavior{get defaults(){return{title:"",placement:ie.bottom,size:"popover-md"}}set defaults(e){}get ui(){return{popoverContainer:this.options.containerSelector}}set ui(e){let t={};this.view.ui&&(t=T.result(this.view,"ui")),this.view._ui=T.extend({},t,e)}events(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}bindListeners(){this.options.toggleEventName&&this.listenTo(this.view.channelName,""+this.options.toggleEventName,this.toggle)}bindBodyClickListener(){$("body").one("click.popover"+this.view.cid,this.onClickOutside.bind(this))}bindDropdownListener(){$("body").one("show.bs.dropdown.popover"+this.view.cid,this.onClickOutside.bind(this))}onPopoverInserted(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}onPopoverHidden(){$("body").off("click.popover"+this.view.cid),$("body").off("show.bs.dropdown.popover"+this.view.cid)}toggle(){this.view.$el.popover("toggle")}hide(){this.view.$el.popover("hide")}onClickPopover(e){e.stopPropagation()}onClickOutside(){this.hide()}getTrigger(){return this.options.toggleEventName?"manual":"click"}onAttach(){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)}}var ce=n(705),ue=n.n(ce),le=n(706),fe=n.n(le),pe=n(252),he=n.n(pe);class de extends r.a.Component{get name(){return"SearchTipComponentItem"}get template(){return fe.a}get className(){return"py-2 "+he.a.tip}viewOptions(){return{styles:he.a}}}class ye extends r.a.ComponentCollection{get name(){return"SearchTipComponentCollection"}get childView(){return de}}class ge extends r.a.Component{initialize(){this.collection=new r.a.Collection([{term:[""+V.a.getPhrase(this.lang,"firstTerm")],description:""+V.a.getPhrase(this.lang,"firstDescription")},{term:[""+V.a.getPhrase(this.lang,"secondTerm")],description:""+V.a.getPhrase(this.lang,"secondDescription")},{term:[""+V.a.getPhrase(this.lang,"thirdTerm")],description:""+V.a.getPhrase(this.lang,"thirdDescription")},{term:[""+V.a.getPhrase(this.lang,"fourthTerm1"),""+V.a.getPhrase(this.lang,"fourthTerm2")],description:""+V.a.getPhrase(this.lang,"fourthDescription")},{term:[""+V.a.getPhrase(this.lang,"fifthTerm")],description:""+V.a.getPhrase(this.lang,"fifthDescription")}])}get name(){return"SearchTipsComponent"}get template(){return ue.a}get lang(){return"search.searchTips"}get behaviors(){return[{behaviorClass:se,containerSelector:".popover-container",title:V.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:e=>this.renderTips(e)}]}renderTips(e){this.showChildView(e,new ye({collection:this.collection}))}viewOptions(){return{styles:he.a,searchInfoSvg:c.a.getSvg(c.b.Info)}}}var be=n(135),me=n(707),ve=n.n(me),Se=n(133),we=n.n(Se);class Oe extends r.a.Component{initialize(){this.listenTo(q.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}get name(){return"SearchContextComponent"}get template(){return ve.a}get tagName(){return"span"}get className(){return we.a.searchContextContainer}get behaviors(){return[{behaviorClass:be.a,selector:".tool-tip",placement:"left"}]}get elements(){return{contextTag:"."+we.a.searchContextTag,clearSvg:"."+we.a.svgContainer}}events(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}onClick(){x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}onMouseEnter(){this.model.set("preventTypeaheadClose",!0)}onMouseLeave(){this.model.set("preventTypeaheadClose",!1)}toggleFocus(e){const t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(we.a.tagFocus):t.removeClass(we.a.tagFocus))}viewOptions(){return{styles:we.a,closeSvg:c.a.getSvg(c.b.Close)}}onBeforeRender(){return!!this.model.get("searchTag")}}var Ce=n(708),Ee=n.n(Ce),ke=n(709),Re=n.n(ke);class Pe extends r.a.Component{constructor(e){super(e)}get name(){return"RecentSearchResultComponent"}get template(){return Ee.a}get className(){return"text-capitalize p-2 container-fluid"}events(){return{"click .remove-recent":"onClick"}}viewOptions(){return{styles:Re.a,closeSvg:c.a.getSvg(c.b.Close)}}onClick(e){return e.stopPropagation(),setTimeout(()=>{x.Radio.channel(this.options.channelName).trigger("remove:recent",this.model.get("name"))},0),this.destroy(),!1}}var _e=n(710),Ae=n.n(_e);class Te extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(s.a.SEARCH,this)}get name(){return"SeriesSearchResultComponent"}get template(){return Ae.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(z.slugify(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}viewOptions(){return{url:this.getUrl(),name:this.model.get("name")}}}var xe=n(711),Le=n.n(xe);class Ne extends r.a.Component{get name(){return"TagSearchResultComponent"}get template(){return Le.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}}var De=n(192),Ie=n(713),Ve=n.n(Ie);class je extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(s.a.SEARCH,this)}get name(){return"VideoSearchResultComponent"}get template(){return Ve.a}get className(){return"video-result p-2 container-fluid"}regions(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getCollection(){const{categories:e,series:t}=this.model;if(e&&e.length){return{name:e.first().get("name"),type:"Folder"}}if(t&&t.get("name"))return{name:t.get("name"),type:"Series"}}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(z.slugify(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}renderThumbnail(){const e=new De.a({model:this.model});this.showChildView("thumbnail",e)}viewOptions(){return{collection:this.getCollection(),url:this.getUrl()}}onRender(){this.renderThumbnail()}}var Be=n(286),Me=n(714),Ue=n.n(Me);class Fe extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(s.a.SEARCH,this)}get name(){return"ClassificationSearchResultComponent"}get template(){return Ue.a}get className(){return"p-2 container-fluid"}regions(){return{cover:{replaceElement:!0,el:".cover-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),z.slugify(this.model.get("name"))]}))}renderThumbnail(){const e=new De.a({model:this.model,classNameOverride:Be.coverImage+" responsive-img"});this.showChildView("cover",e)}viewOptions(){return{url:this.getUrl(),styles:Be}}onRender(){this.renderThumbnail()}}var He=n(467),ze=n.n(He),qe=n(468),We=n.n(qe),Ye=n(469),Ge=n.n(Ye),Je=n(470),$e=n.n(Je),Ke=n(471),Qe=n.n(Ke),Ze=n(472),Xe=n.n(Ze),et=n(473),tt=n.n(et),nt=n(474),rt=n.n(nt),ot=n(715),it=n.n(ot),at=n(287),st=n.n(at),ct=n(716),ut=n.n(ct),lt=n(717),ft=n.n(lt),pt=n(139);const{SuggestionLimit:ht}=te.a;class dt extends r.a.View{constructor(e){super(e),this.viewCache={}}initialize(){this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.appVariables=i.a.getInstance(s.a.SEARCH,this),this.storageHelper=I.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}get name(){return"SearchBarView"}get title(){return!1}get tagName(){return"form"}get template(){return it.a}get lang(){return"search.searchBar"}get channelName(){return"searchbar:"+this.cid}get className(){return"search-query-container position-relative m-0 w-100 form-control p-0 "+st.a.searchBar}get defaults(){return{showRecentSearch:!0}}get elements(){return{input:"#search",searchBarContainer:".search-bar-container"}}events(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}get bindings(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}regions(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:g.a.Component,options:{template:ft.a,className:"w-100",viewOptions:{styles:ut.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}get recentSearchKey(){return"recent:search:"+this.currentUser.id}bindListeners(){this.listenTo(q.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(q.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}getOrCacheView(e,t){const{ctor:n,viewOptions:r}=t;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}clearViewCache(){T.each(this.viewCache,e=>e.destroy()),this.viewCache={}}getDynamicTemplate(e){return e===Q.b.Recent?e=>this.getOrCacheView("recent:"+e,{ctor:Pe,viewOptions:{model:new r.a.Model({name:e}),channelName:this.channelName}}).render().el:e===Z.a.Subjects?e=>this.getOrCacheView(e.id,{ctor:Fe,viewOptions:{model:new r.a.Model(e)}}).render().el:e===Z.a.Video?e=>this.getOrCacheView(e.id,{ctor:je,viewOptions:{model:new r.a.Model(e)}}).render().el:e===Z.a.Folder?ze.a:e===Z.a.Series?e=>this.getOrCacheView(e.id,{ctor:Te,viewOptions:{model:new r.a.Model(e)}}).render().el:e===Z.a.Tags?e=>this.getOrCacheView(e.id,{ctor:Ne,viewOptions:{model:new r.a.Model(e)}}).render().el:void 0}getLimits(e){return Z.a.Folder,ht.Folder}updateSearchHistory(e){const{add:t,remove:n}=e;let{query:r}=e;r=r.trim();const o=oe.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:ht.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}handleRecentSearch(){if(!this.options.showRecentSearch)return;if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(oe.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}onDeleteRecentSearch(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}getInstantSearchAppLink(e,t){if(t===Z.a.Series){const t=[e.id];return this.appVariables.addSlugs&&t.push(z.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:t})}if(t===Z.a.Video){const t=[e.id];return this.appVariables.addSlugs&&t.push(z.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t})}return t===Z.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===Z.a.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id,z.slugify(e.name)]}):void 0}onTypeaheadSelect(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?Z.a.Subjects:n,"object"==typeof t&&t.id){const e=this.getInstantSearchAppLink(t,n);if(!e)return!1;const{data:o,action:i}=N.a.buildInstantSearchEvent(this.model.get("query"),t,n);return D.a.log(L.UserAction.InstantSearch,o,i),this.model.clear(),this.getUI("input").typeahead("close"),x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(e),!1}const o="string"==typeof t?t:t.query;this.model.set({query:o});const i=n===Q.b.Recent?L.DirectSearchDescriptor.Recent:L.DirectSearchDescriptor.ShowAll;return this.submitQuery(i),!1}onClickSearch(e){return e.stopPropagation(),this.submitQuery(L.DirectSearchDescriptor.SearchIcon),!1}onClickClose(){pt.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}onSubmit(e){return e.preventDefault(),this.submitQuery(L.DirectSearchDescriptor.Submit),!1}submitQuery(e){this.updateInitialQuery();const t=this.model.get("query");if(!t)return;this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");const n=X.getContextualSearchQueryParams(this.searchContext);x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}resetQuery(){this.model.set({query:this.model.get("initialQuery")})}updateInitialQuery(){this.model.set({initialQuery:this.model.get("query")})}logSearch(e,t){const{data:n,action:r}=N.a.buildSearchEvent(e,t);D.a.log(L.UserAction.Search,n,r)}onTypeaheadOpen(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});const e=this.model.get("query");e&&e.length>=te.a.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}onBeforeTypeaheadClose(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}onTypeaheadClose(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}showMask(){this.options.disableMask||(this.$el.addClass("active"),J.showMask())}hideMask(){this.options.disableMask||J.hideMask()}alignTypeahead(){const e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}onTypeaheadRender(e,t,n,r){r===Q.b.Recent&&this.handleRecentSearch()}initTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:select",T.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",T.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",T.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",T.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",T.bind(this.onTypeaheadOpen,this))}initNoLibrariesTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:open",T.bind(this.showMask,this)),e.on("typeahead:close",T.bind(this.hideMask,this)),e.on("typeahead:select",T.bind(()=>{r.a.AppLinkHelper.trigger(this.appVariables.appLinks.newLibrary)},this))}onKeydown(e){8!==e.keyCode||this.model.get("query")||x.Radio.channel(q.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}onResetSearchContext(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}getRecentSearchBloodhound(){const e=oe.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}getDynamicBloodhoundConfig(){return re.bloodhoundConfig}getDynamicTypeaheadConfig(){const e=ae.a.getTemplate(Xe.a,{fallbackTemplate:$e.a}),t=ae.a.getTemplate(Ge.a,{fallbackTemplate:$e.a,templateText:V.a.getPhrase(this.lang,"findingResults")});return(n,r)=>({name:this.getConfigName(n.name),source:ae.a.handleQuery(n.bloodhound,{fetchType:Q.a.Remote}),limit:this.getLimits(n.name),display:e=>e.name,async:!0,templates:{header:e,pending:0===r?t:$e.a,notFound:$e.a,suggestion:this.getDynamicTemplate(n.name),footer:Qe.a}})}getConfigName(e){switch(e){case Z.a.Subjects:return V.a.getPhrase(this.lang,"classifications");case Z.a.Video:return V.a.getPhrase(this.lang,"videos");case Z.a.Tags:return V.a.getPhrase(this.lang,"tags");case Z.a.Series:return V.a.getPhrase(this.lang,"series")}return e}getDynamicOptions(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}getRecentSearchSources(){return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:Q.b.Recent,source:ae.a.handleQuery(this.recentSearchEngine,{fetchType:Q.a.Local,ignoreOnQuery:!0}),limit:ht.Default,templates:{header:()=>tt.a({templateText:V.a.getPhrase(this.lang,"recentSearches")}),suggestion:this.getDynamicTemplate(Q.b.Recent)}}]}getDirectSearchSources(){return[{name:Q.b.Direct,source:ae.a.handleQuery(),display:e=>e.query,templates:{suggestion:ae.a.getTemplate(We.a,{fallbackTemplate:$e.a,templateText:V.a.getPhrase(this.lang,"allResults")}),footer:Qe.a}}]}getDynamicSearchSources(){const e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return ae.a.getSearchSources([{name:Z.a.Subjects,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Z.a.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}getSources(){const e=[...this.getDirectSearchSources(),...this.getDynamicSearchSources()];return this.options.showRecentSearch&&e.push(...this.getRecentSearchSources()),e}getNoLibrariesSource(){return[{name:"NoLibrary",source:ae.a.handleQuery(),display:e=>e.query,templates:{suggestion:ae.a.getTemplate(rt.a,{fallbackTemplate:$e.a,templateText:V.a.getPhrase(this.lang,"noLibraries")})}}]}initializeTypeahead(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}hasLibraries(){return!!this.libraryCollection.length}getLibraryIds(){return this.libraryCollection.map(e=>e.id)}viewOptions(){return{styles:st.a,svg:c.a.getSvg(c.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:c.a.getSvg(c.b.Close),libraryText:this.appVariables.searchBarPlaceholder||V.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}get requiredResources(){return{currentUser:G.currentUser,libraryCollection:K.a.libraries}}renderSearchTips(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new ge)}renderSearch(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),x.Validation.bind(this)}renderPartialSearch(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}renderSearchContext(){this.isRendered()&&this.showChildView("searchContext",new Oe({model:this.searchContext}))}onRender(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}onClose(){this.getUI("input").off(),this.unstickit(),x.Validation.unbind(this)}}var yt=n(137),gt=n(82),bt=n(0),mt=n(718),vt=n.n(mt),St=n(288),wt=n.n(St),Ot=n(190),Ct=n(136),Et=n(12),kt=n(298),Rt=n(720),Pt=n.n(Rt),_t=n(721),At=n.n(_t);function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nt(e,t,n){return t&&Lt(e.prototype,t),n&&Lt(e,n),e}function Dt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}function It(e,t){return(It=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bt(e);if(t){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jt(this,n)}}function jt(e,t){return!t||"object"!==Tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bt(e){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){Dt(n,e);var t=Vt(n);function n(e){return xt(this,n),t.call(this,e)}return Nt(n,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return Pt.a}},{key:"onRender",value:function(){this.showChildView("items",new Ut({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 At.a}}]),n}(r.a.Component),Ut=function(e){Dt(n,e);var t=Vt(n);function n(e){return xt(this,n),t.call(this,e)}return Nt(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return kt.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}(a,e);var t,n,o,i=Wt(a);function a(){return Ht(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Mt({model:this.currentUser,collection:new r.a.Collection([{title:V.a.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:c.a.getSvg(c.b.NewWindow)},{title:V.a.getPhrase(this.lang,"settings"),href:gt.a.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:c.a.getSvg(c.b.NewWindow)},{title:V.a.getPhrase(this.lang,"helpCentre"),href:gt.a.safeUrlConcat(this.config.get("supportSiteUrl"),bt.y.LIBRARY_EDITOR),external:!0,icon:c.a.getSvg(c.b.NewWindow)},{divider:!0},{title:V.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(e=Et.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:wt.a,avatar:e,arrowSvg:c.a.getSvg(c.b.ChevronDown)}):{};var e}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return vt.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(wt.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:Ot.b.config,currentUser:Ct.b.currentUser}}}])&&zt(t.prototype,n),o&&zt(t,o),a}(r.a.View),$t=n(44),Kt=n(9),Qt=n(307),Zt=n(723),Xt=n.n(Zt);function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return an(this,n)}}function an(e,t){return!t||"object"!==en(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}(a,e);var t,n,r,o=on(a);function a(){return tn(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(bt.x.PendingItems,this),this.listenTo(q.c.PENDING_ITEMS,$t.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:Kt.h.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(e){var t=this;this.pendingItemsService.clearPendingItem(e,(function(){t.render()}))}},{key:"onRetryPendingItem",value:function(e){var t=this;this.pendingItemsService.retryPendingItem(e,(function(){t.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new Qt.a({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Xt.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)}}])&&nn(t.prototype,n),r&&nn(t,r),a}(r.a.View),un=n(289),ln=n.n(un),fn=n(724),pn=n.n(fn),hn=n(308),dn=n(138);function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bn(e,t){return(bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vn(this,n)}}function vn(e,t){return!t||"object"!==yn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bn(e,t)}(s,e);var t,n,r,a=mn(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){var e=this;this.pendingItemsService=i.a.getInstance(bt.x.PendingItems,this),this.listenTo(bt.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){e.model.get("items")||e.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 hn.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new cn)}},{key:"viewOptions",value:function(){return{styles:ln.a,uploadSvg:c.a.getSvg(c.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 e={},t=".".concat(ln.a.upload),n={application:bt.b.UPLOAD,action:bt.a.Upload.FILE_SELECTION},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"channelName",get:function(){return bt.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 pn.a}},{key:"requiredResources",get:function(){return{libraries:dn.b.libraries}}}])&&gn(t.prototype,n),r&&gn(t,r),s}(r.a.View),On=n(726),Cn=n.n(On),En=n(727),kn=n.n(En);function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xn(e);if(t){var o=xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tn(this,n)}}function Tn(e,t){return!t||"object"!==Rn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"PageHeaderComponent",(function(){return Ln}));var Ln=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_n(e,t)}(a,e);var t,n,r,i=An(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"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 e={actionType:L.UserAction.Click,descriptor:L.ClickDescriptor.NavigateHome,location:L.LocationContext.TopNav,entity:L.EntityType.Logo},t={currentLocation:N.a.buildCurrentLocation()};N.a.logUserAction(t,e)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:yt.c})}},{key:"renderSearchBar",value:function(){var e=new dt({model:this.getSearchModel()});this.showChildView("search",e)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var e=new wn;this.showChildView("upload",e)}}},{key:"renderNotificationsStatus",value:function(){var e=new A;this.showChildView("notifications",e)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new Jt)}},{key:"viewOptions",value:function(){return{styles:kn.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 Cn.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&Pn(t.prototype,n),r&&Pn(t,r),a}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),i=n(3),a=n(15),s=n(61),c=n(728),u=n.n(c),l=n(729),f=n.n(l),p=n(9),h=n(730),d=n.n(h),y=n(291),g=n.n(y);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){w(n,e);var t=C(n);function n(e){return m(this,n),t.call(this,e)}return S(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 e=this.model.get("getCount");if(r.isFunction(e))return e()}},{key:"viewOptions",value:function(){return{styles:g.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(g.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 d.a}}]),n}(o.a.Component),P=function(e){w(n,e);var t=C(n);function n(e){return m(this,n),t.call(this,e)}return S(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return R}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),_=n(58),A=n(0),T=n(136),x=n(5),L={warningPublisherArchive:n(731)};function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"TopNavigationView",(function(){return M}));var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(h,e);var t,n,c,l=V(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,e)}return t=h,(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(A.g.ContentUpdates,this),this.settingsDataService=x.a.getInstance(A.g.Settings,this),this.migrationVideoDataService=x.a.getInstance(A.g.MigrationVideo,this),this.staffRequestDataService=x.a.getInstance(A.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(A.e.SETTINGS,"".concat(A.f.SETTINGS,":sync"),this.render),this.listenTo(A.e.VIDEO,"".concat(A.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(A.e.STAFF_REQUEST,"".concat(A.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(A.e.MIGRATION,"".concat(A.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(A.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var e=this,t=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:A.b.LIBRARY_EDITOR,action:A.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:A.b.STAFF_REQUESTS,action:A.a.StaffRequests.HOME,getCount:function(){return e.staffRequestCollection&&e.staffRequestCollection.length},requiredSetting:{name:s.a.StaffRequest,value:p.k.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:A.b.CONTENT_UPDATES,action:A.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return e.contentUpdatesCollection&&e.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:A.b.VIDEO_ACCESS,action:A.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(t)),_.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:A.b.MIGRATION_WIZARD,action:A.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?L.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(e){var t=this;return e.filter((function(e){if(!r.has(e,"requiredSetting"))return!0;var n=t.settings.findWhere({name:e.requiredSetting.name});return!!n&&n.get("value")===e.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 P({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(f.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}}}])&&D(t.prototype,n),c&&D(t,c),h}(o.a.View)},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){},function(e,t,n){},function(e,t){e.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(e),o=[],a=[];for(n=new c(n),t=0;t<r.length;t++){var p=r[t];if("StartTag"!==p.type)if("Chars"===p.type){var h=u(p.chars,n);o.push.apply(o,h)}else o.push(p);else{o.push(p);var d=p.tagName.toUpperCase(),y="A"===d||s.contains(n.ignoreTags,d);if(!y)continue;var g=o.length;l(d,r,++t,o),t+=o.length-g-1}}for(t=0;t<o.length;t++){var b=o[t];switch(b.type){case"StartTag":var m="<"+b.tagName;if(b.attributes.length>0){var v=f(b.attributes);m+=" "+v.join(" ")}m+=">",a.push(m);break;case"EndTag":a.push("</"+b.tagName+">");break;case"Chars":a.push(b.chars);break;case"Comment":a.push("\x3c!--"+b.chars+"--\x3e")}}return a.join("")};var r,o=n(986),i=(r=o)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(348));var s=a.options,c=s.Options;function u(e,t){for(var n=a.tokenize(e),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&t.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&t.check(i)){var s=t.resolve(i),c=s.formatted,u=s.formattedHref,l=s.tagName,f=s.className,p=s.target,h=s.attributes,d=[["href",u]];for(var y in f&&d.push(["class",f]),p&&d.push(["target",p]),h)d.push([y,h[y]]);r.push({type:"StartTag",tagName:l,attributes:d,selfClosing:!1}),r.push({type:"Chars",chars:c}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(e,t,n,r){for(var o=1;n<t.length&&o>0;){var i=t[n];"StartTag"===i.type&&i.tagName.toUpperCase()===e?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function f(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=r[0],i=r[1];t.push(o+'="'+(i.replace(/"/g,"&quot;")+'"'))}return t}},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(344)),o=c(n(345)),i=c(n(346)),a=c(n(347)),s=c(n(988));function c(e){return e&&e.__esModule?e:{default:e}}var u={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:s.default};t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.isSpace=function(e){return r.test(e)},t.isAlpha=function(e){return o.test(e)},t.preprocessInput=function(e){return e.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return new r.default(new o.default(i.default),t).tokenize(e)};var r=a(n(347)),o=a(n(345)),i=a(n(344));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(349),o=n(256),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),g=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(u,g),g.on(u,g);for(var b=0;b<a.length;b++){var m=(0,r.stateify)(a[b],p,o.TLD,o.DOMAIN);l.push.apply(l,m)}var v=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,v),l.push.apply(l,S),l.push.apply(l,w),l.push.apply(l,O);var C=v.pop(),E=S.pop(),k=w.pop(),R=O.pop(),P=f(o.DOMAIN),_=f(o.PROTOCOL),A=f(o.MAILTO);E.on("s",P).on(":",_),k.on("s",P).on(":",_),l.push(P),C.on(":",_),P.on(":",_),R.on(":",A);var T=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,T),p.on(s,h),h.on("-",y).on(s,h).on(c,d),d.on("-",y).on(c,d);for(var x=0;x<l.length;x++)l[x].on("-",y).on(c,d);y.on("-",y).on(s,d).on(c,d),p.defaultTransition=f(o.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],o=0;o<n;){for(var i=p,a=null,s=0,c=null,u=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(u=0,c=i):u>=0&&u++,s++,o++;if(!(u<0)){o-=u,s-=u;var l=c.emit();r.push(new l(e.substr(o-s,s)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(349),o=n(992),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),a=n(256);var s=function(e){return new r.TokenState(e)},c=s(),u=s(),l=s(),f=s(),p=s(),h=s(),d=s(),y=s(o.URL),g=s(),b=s(o.URL),m=s(o.URL),v=s(),S=s(),w=s(),O=s(),C=s(),E=s(o.URL),k=s(o.URL),R=s(o.URL),P=s(o.URL),_=s(),A=s(),T=s(),x=s(),L=s(),N=s(),D=s(o.EMAIL),I=s(),V=s(o.EMAIL),j=s(o.MAILTOEMAIL),B=s(),M=s(),U=s(),F=s(),H=s(o.NL);c.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),c.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,m).on(a.DOMAIN,m).on(a.NUM,m).on(a.LOCALHOST,m),h.on(a.DOT,d),L.on(a.DOT,N),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),N.on(a.TLD,D).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),D.on(a.DOT,N),y.on(a.COLON,g).on(a.SLASH,m),g.on(a.NUM,b),b.on(a.SLASH,m),D.on(a.COLON,I),I.on(a.NUM,V);var z=[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,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),v.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),S.on(a.CLOSEBRACE,m),w.on(a.CLOSEBRACKET,m),O.on(a.CLOSEANGLEBRACKET,m),C.on(a.CLOSEPAREN,m),E.on(a.CLOSEBRACE,m),k.on(a.CLOSEBRACKET,m),R.on(a.CLOSEANGLEBRACKET,m),P.on(a.CLOSEPAREN,m),_.on(a.CLOSEBRACE,m),A.on(a.CLOSEBRACKET,m),T.on(a.CLOSEANGLEBRACKET,m),x.on(a.CLOSEPAREN,m),S.on(z,E),w.on(z,k),O.on(z,R),C.on(z,P),S.on(q,_),w.on(q,A),O.on(q,T),C.on(q,x),E.on(z,E),k.on(z,k),R.on(z,R),P.on(z,P),E.on(q,E),k.on(q,k),R.on(q,R),P.on(q,P),_.on(z,E),A.on(z,k),T.on(z,R),x.on(z,P),_.on(q,_),A.on(q,A),T.on(q,T),x.on(q,x),m.on(z,m),v.on(z,m),m.on(q,v),v.on(q,v),l.on(a.TLD,j).on(a.DOMAIN,j).on(a.NUM,j).on(a.LOCALHOST,j),j.on(z,j).on(q,B),B.on(z,j).on(q,B);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,M).on(a.AT,U),y.on(W,M).on(a.AT,U),d.on(W,M),M.on(W,M).on(a.AT,U).on(a.DOT,F),F.on(W,M),U.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,D);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var a=c,s=null,u=null,l=0,f=null,p=-1;n<t&&!(s=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(350),o=n(197),i=n(256);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,o=[],s=0;r[s]instanceof i.PROTOCOL;)t=!0,o.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof i.SLASH;)n=!0,o.push(r[s].toString()),s++;for(;a(r[s]);)o.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)o.push(r[s].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(348));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}function c(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+s(r)+'"')}return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=o(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,h=f.formattedHref,d=f.tagName,y=f.className,g=f.target,b=f.attributes,m="<"+d+' href="'+s(h)+'"';y&&(m+=' class="'+s(y)+'"'),g&&(m+=' target="'+s(g)+'"'),b&&(m+=" "+c(b)),m+=">"+a(p)+"</"+d+">",r.push(m)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+h]=255&a,h+=d,a/=256,u-=8);e[n+h-d]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(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),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931),n(932),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983);var r=n(2),o=n(6),i=n(1);var a=n(0);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,r,s=f(p);function p(){return c(this,p),s.apply(this,arguments)}return t=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var e=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==e.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==e.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(e){this.listenTo(this.channelName,"visbility:change",e)}},{key:"removeVisibilityChangeListener",value:function(e){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",e)}},{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}}])&&u(t.prototype,n),r&&u(t,r),p}(r.a.Service),y=n(48),g=n(5),b=n(74),m=n(16),v=n(222),S=n(223);var w=n(153),O=n(19),C=n(14),E=n(30),k=n(139),R=n(120),P=n(231),_=n(232);var A=n(42);class T extends r.a.Service{constructor(e){super(),this.clients={},this.enrichers={};E.a.get("application:options").set(e),this.bindNavigationListener()}get name(){return _.a.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(P.a.ANALYTICS,R.a.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(e,t){this.validateConstructor(e);const n=new e(t);return this.enrichers[e.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){const t=e.prototype.name;t||r.a.ErrorHelper.throw(new O.a(`Classes registered with ${this.name} must have a unique name property.`));const n=t=>k.a.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.a.ErrorHelper.throw(new O.a(`A client class with the name: ${t} has already been registered with ${this.name}`)),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.a.ErrorHelper.throw(new O.a(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){var t;this.executeMiddleware=(t=this.executeMiddleware,(n,r)=>t(n,()=>e(n,r)))}executeMiddleware(e,t){t(e)}bindNavigationListener(){this.listenTo(C.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}logNavigate(e,t){A.a.logNavigate(e,t)}}var x=n(51);class L extends x.Object{}class N extends L{get name(){return"EventTransport"}get channelName(){return"event:transport"}publish(e){this.getChannel().trigger(R.a.Outlet,e)}subscribe(e){const t=e,n=n=>{k.a.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};i.isFunction(t.listenTo)?t.listenTo(this.getChannel(),R.a.Outlet,n):this.listenTo(this.getChannel(),R.a.Outlet,n)}}class D extends r.a.Service{enrich(e,t){}isType(e){return e===D.type}}D.type="BaseAnalyticsEnricher";class I extends D{get name(){return"UserDataEnricher"}initialize(){this.user=E.a.get("application:options").get("user")}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich("user",this.getUser(this.user)),t(e)}getUser(e){return{country:e.countryCode,customerId:e.customerId,id:e.id,role:e.role}}}var V="URLSearchParams"in self,j="Symbol"in self&&"iterator"in Symbol,B="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),M="FormData"in self,U="ArrayBuffer"in self;if(U)var F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],H=ArrayBuffer.isView||function(e){return e&&F.indexOf(Object.prototype.toString.call(e))>-1};function z(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function q(e){return"string"!=typeof e&&(e=String(e)),e}function W(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return j&&(t[Symbol.iterator]=function(){return t}),t}function Y(e){this.map={},e instanceof Y?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function G(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function J(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function K(e){var t=new FileReader,n=J(t);return t.readAsArrayBuffer(e),n}function Q(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Z(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:B&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:M&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:V&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():U&&B&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Q(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):U&&(ArrayBuffer.prototype.isPrototypeOf(e)||H(e))?this._bodyArrayBuffer=Q(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):V&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},B&&(this.blob=function(){var e=G(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?G(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var e,t,n,r=G(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=J(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},M&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}Y.prototype.append=function(e,t){e=z(e),t=q(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Y.prototype.delete=function(e){delete this.map[z(e)]},Y.prototype.get=function(e){return e=z(e),this.has(e)?this.map[e]:null},Y.prototype.has=function(e){return this.map.hasOwnProperty(z(e))},Y.prototype.set=function(e,t){this.map[z(e)]=q(t)},Y.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Y.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),W(e)},Y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),W(e)},Y.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),W(e)},j&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var X=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ee(e,t){var n,r,o=(t=t||{}).body;if(e instanceof ee){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Y(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Y(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),X.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function te(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function ne(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new Y(t.headers),this.url=t.url||"",this._initBody(e)}ee.prototype.clone=function(){return new ee(this,{body:this._bodyInit})},Z.call(ee.prototype),Z.call(ne.prototype),ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ne.error=function(){var e=new ne(null,{status:0,statusText:""});return e.type="error",e};var re=[301,302,303,307,308];ne.redirect=function(e,t){if(-1===re.indexOf(t))throw new RangeError("Invalid status code");return new ne(null,{status:t,headers:{location:e}})};var oe=self.DOMException;try{new oe}catch(e){(oe=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),oe.prototype.constructor=oe}function ie(e,t){return new Promise((function(n,r){var o=new ee(e,t);if(o.signal&&o.signal.aborted)return r(new oe("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Y,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new ne(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 oe("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(B?i.responseType="blob":U&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}ie.polyfill=!0,self.fetch||(self.fetch=ie,self.Headers=Y,self.Request=ee,self.Response=ne);var ae=n(681),se=n.n(ae),ce=n(682);const ue={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 le(e,t,n){const r=t.exec(n)||[];let[o]=r;return o||(o="Unknown"),{name:e,version:o}}function fe(e,t,n){if(!t)return{name:e,version:"Unknown"};const r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():"Unknown"}}const pe={getDeviceType(){const e=window.navigator.userAgent;return ue.mobileDevice.test(e)?ue.iphone.test(e)?"iPhone":ue.ipad.test(e)?"iPad":ue.android.test(e)?"Android":ue.blackberry.test(e)?"Blackberry":ue.windowsPhone.test(e)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return ue.android.test(e)?fe("Android",ue.androidVersion,e):ue.iphone.test(e)||ue.ipad.test(e)?fe("iOS",ue.iosVersion,e):ue.linux.test(e)?fe("Linux",null,e):ue.unix.test(e)?fe("Unix",null,e):ue.mac.test(e)?fe("Macintosh",ue.osxVersion,e):ue.windows.test(e)?function(e,t){const n={name:e,version:null};return ue.win2000.test(t)&&(n.version="2000"),ue.winXP.test(t)&&(n.version="XP"),ue.winVista.test(t)&&(n.version="Vista"),ue.win7.test(t)&&(n.version="7"),ue.win8.test(t)&&(n.version="8"),ue.win81.test(t)&&(n.version="8.1"),ue.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):ue.blackberry.test(e)?fe("BlackBerry",ue.blackberryVersion,e):ue.windowsPhone.test(e)?fe("Windows Phone",ue.windowsPhoneVersion,e):{name:"Unknown",version:"Unknown"}},getBrowser(){const e=window.navigator.userAgent;return ue.chrome.test(e)?le("Chrome",ue.generalVersion,e):ue.firefox.test(e)?le("Firefox",ue.generalVersion,e):ue.safari.test(e)?le("Safari",ue.generalVersion,e):ue.ie.test(e)?le("Internet Explorer",ue.ieVersion,e):ue.edge.test(e)?le("Edge",ue.edgeVersion,e):ue.opera.test(e)?le("Opera",ue.operaVersion,e):{name:"Unknown",version:"Unknown"}},isTouchScreen:()=>!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},he={isObject(e){const t=typeof e;return"function"===t||"object"===t&&!!e},isFunction:e=>"function"==typeof e},de={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith("/")||(n+="/"),t?(n+=t.startsWith("/")?t.slice(1):t,n):n}};var ye,ge=n(224);!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(ye||(ye={}));const be={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:ye.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:ye.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:ye.CvEuWest1}};var me;!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(me||(me={}));const ve={[me.AU]:ye.CvApSoutheast1,[me.NZ]:ye.CvApSoutheast2,[me.UK]:ye.CvEuWest1};var Se=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class we{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions()}get name(){return"CollectionApiClient"}log(e){return Se(this,void 0,void 0,(function*(){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),yield this.postData(yield this.formatData(e)))}))}logBulk(e){return Se(this,void 0,void 0,(function*(){const t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));const n=yield Promise.all(t.map(e=>this.formatData(e)));yield this.postData(n)}))}validateOptions(){if(!he.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(e){return!he.isFunction(this.options.shouldLog)||this.options.shouldLog(e)}postData(e){return Se(this,void 0,void 0,(function*(){const t=yield this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(n));let o=de.safeUrlConcat(t,"/v1/ingest");Array.isArray(e)&&(o=de.safeUrlConcat(o,"/bulk")),yield fetch(o,{method:"POST",mode:"cors",headers:r,body:n})}))}getSignatureHeader(e){const t=new se.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash("B64")}`}}getRegionalUrl(e){return Se(this,void 0,void 0,(function*(){switch((yield this.getRegion()).systemName){case ye.CvEuWest1:return e.cvEuWest1;case ye.CvApSoutheast2:return e.cvApSoutheast2;case ye.CvApSoutheast1:default:return e.cvApSoutheast1}}))}validateEvent(e){if("string"!=typeof e.type)throw new Error("Event type is required.");if(!he.isObject(e.actionContext))throw new Error("Event actionContext is required.");if(!e.actionContext.entity)throw new Error("Event actionContext entity is required.")}formatData(e){return Se(this,void 0,void 0,(function*(){return{type:e.type,data:yield this.getEventData(e),metadata:this.getEventMetadata(e)}}))}getEventData(e){return Se(this,void 0,void 0,(function*(){const t=e.actionContext,n={user:yield this.getUserData(),action:t,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},r=this.extractData(e),o=Object.keys(n).map(e=>e.toLowerCase()),i=Object.keys(r).map(e=>e.toLowerCase());return o.forEach(e=>{if(i.includes(e))throw Error(e+" is a reserved key.")}),Object.assign(Object.assign({},n),r)}))}extractData(e){return he.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}getUserData(){var e,t;return Se(this,void 0,void 0,(function*(){const n=yield this.options.getUser();if(null==n?void 0:n.id)return{id:n.id,role:(null===(e=n.role)||void 0===e?void 0:e.toLowerCase())||"unknown",userGroup:(null===(t=n.userGroup)||void 0===t?void 0:t.toLowerCase())||ge.a.Unknown,yearGroup:this.normalizeYearGroup(n.yearGroup),customer:{id:n.customerId,name:n.customerName,customerGuid:n.customerGuid,crmId:n.crmId,country:n.countryCode,region:yield this.getRegion(),openCustomer:!!n.isOpenCustomer}}}))}getRegion(){var e;return Se(this,void 0,void 0,(function*(){const t=yield this.options.getUser(),n=null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase(),r=n?ve[n]:this.options.regionName;return this.getRegionByName(r)}))}getPlatformMetadata(){return{browser:pe.getBrowser(),os:pe.getOperatingSystem(),request:{url:window.location.href,referrer:document.referrer},screenResolution:`${window.screen.width}x${window.screen.height}`}}getEventMetadata(e){return{client:{name:this.name+".ts",version:ce.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(be).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(" ").join("_"):"unknown"}}var Oe=n(683),Ce=n(63),Ee=n(233);class ke extends Ee.a{get name(){return"DebuggerClient"}shouldLog(){return Ce.a.isDevelopment}log(e){const t=i.clone(e);for(let n in e){let e=t[n];(e instanceof r.a.Model||e instanceof r.a.Collection)&&(t[n]=e.toJSON())}console.log("Event Debugger: ",t)}}var Re=n(29),Pe=n(186);class _e extends D{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return"CoreContextEnricher"}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich("coreContext",this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return Re.utc().toISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}getClientInfo(){const e=Pe.a.getOperatingSystem(),t=Pe.a.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`}}}var Ae=n(4);const Te={allow:()=>!0,restrict:()=>!1};function xe(e){const t={};return Object.keys(e).forEach(n=>{t[n]=((e,t)=>{switch(t){case"description":return Ae.EventDefaultValue.ValueUpdated;case"channel":case"rating":case"series":case"distributor":case"producer":return e&&e.id||Ae.EventDefaultValue.EntityRemoved;default:return e}})(e[n],n)}),t}const Le={passthrough:e=>e,getEditData(e,t){const{entity:n,location:r}=function(e){return he.isObject(e)&&he.isObject(e.actionContext)?{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}:{}}(t);return n===Ae.EntityType.Video&&r===Ae.LocationContext.EditVideoDetails?xe(e):e}};function Ne(e){if(e&&e.code)return e.code}function De(e,t={}){if(!e||!e.id)return;const n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}function Ie(e){if(!e||!e.length)return;const t=e[0];return{id:t.id,title:t.name}}const Ve={getVideoData(e){const{playbackStatus:t}=e,n=e.model,r=function(e){if(!e||!e.id)throw new Error("Video model required. Checking logging.");return{id:e.id,title:e.name,trackingCode:e.trackingCode,duration:e.duration}}(n),o=De(n.series),i=Ie(n.categories),a=De(n.owner,{ignoreTitle:!0}),s=De(n.playlist),c=Ne(n.rating),u={video:r};return c&&(u.rating=c),o&&(u.series=o),i&&(u.folder=i),a&&(u.owner=a),s&&(u.playlist=s),t&&(u.playbackStatus=t),u},getLegacyVideoData(e){const t=e.model,n={id:t.id.toString(),year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=Ne(t.rating),o=De(t.series),i=Ie(t.categories),a=De(t.owner,{ignoreTitle:!0}),s=De(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),s&&(n.playlist=s),n}},je={getUploadData(e,t){const{entity:n}=t.actionContext;if(n===Ae.EntityType.Video)return je.formatVideoUpload(e,t);if(n===Ae.EntityType.Resource||n===Ae.EntityType.Subtitle)return je.formatResourceUpload(e);if(n===Ae.EntityType.Banner||n===Ae.EntityType.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload(e,t){const{workflowPhase:n}=t.actionContext;return n===Ae.WorkflowPhase.Start?je.getStartVideoUploadData(e):n===Ae.WorkflowPhase.Discard?je.getDiscardVideoUploadData(e):n===Ae.WorkflowPhase.Complete?je.getCompleteUploadData(e):void 0},getStartVideoUploadData:e=>e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length}))):[],getDiscardVideoUploadData(e){const t=t=>{const{type:n,name:r,status:o,cvUpload:i}=t.file,a={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:o};return t.progress&&(a.progress=t.progress.toFixed(2)),i&&(a.uploadId=i.uploadId),a};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData:e=>e&&e.length?e.map(t=>{const{fileName:n,libraryId:r,folderId:o}=t;return{fileName:n,libraryId:r,folderId:o,count:e.length}}):[],formatResourceUpload(e){const{id:t,name:n}=e,r={id:t,name:n};return he.isObject(e.metadata)&&(r.type=e.metadata.type),r}},Be={[Ae.UserAction.Navigate]:Te.restrict,[Ae.UserAction.Click]:Te.allow,[Ae.UserAction.Search]:Te.allow,[Ae.UserAction.InstantSearch]:Te.allow,[Ae.UserAction.Play]:Te.allow,[Ae.UserAction.Stream]:Te.allow,[Ae.UserAction.StreamRaw]:Te.restrict,[Ae.UserAction.StreamProgress]:Te.allow,[Ae.UserAction.Rename]:Te.allow,[Ae.UserAction.Move]:Te.allow,[Ae.UserAction.Create]:Te.allow,[Ae.UserAction.Delete]:Te.allow,[Ae.UserAction.Associate]:Te.allow,[Ae.UserAction.Dissociate]:Te.allow,[Ae.UserAction.Filter]:Te.allow,[Ae.UserAction.Sort]:Te.allow,[Ae.UserAction.Approve]:Te.allow,[Ae.UserAction.Reject]:Te.allow,[Ae.UserAction.Disable]:Te.allow,[Ae.UserAction.Upload]:Te.allow,[Ae.UserAction.Download]:Te.restrict,[Ae.UserAction.SetAccess]:Te.allow,[Ae.UserAction.AddToLocalCache]:Te.restrict,[Ae.UserAction.Share]:Te.allow,[Ae.UserAction.Edit]:Te.allow,[Ae.UserAction.Suggest]:Te.allow,[Ae.UserAction.ResolveWarning]:Te.allow,[Ae.UserAction.DismissWarning]:Te.allow,[Ae.UserAction.EditAssoc]:Te.allow,[Ae.UserAction.Follow]:Te.allow},Me={[Ae.UserAction.Search]:Le.passthrough,[Ae.UserAction.InstantSearch]:Le.passthrough,[Ae.UserAction.Play]:Le.passthrough,[Ae.UserAction.Stream]:Ve.getLegacyVideoData,[Ae.UserAction.StreamRaw]:Le.passthrough,[Ae.UserAction.StreamProgress]:Le.passthrough,[Ae.UserAction.Click]:Le.passthrough,[Ae.UserAction.Filter]:Le.passthrough,[Ae.UserAction.Sort]:Le.passthrough,[Ae.UserAction.SetAccess]:Le.passthrough,[Ae.UserAction.Approve]:Le.passthrough,[Ae.UserAction.Reject]:Le.passthrough,[Ae.UserAction.Create]:Le.passthrough,[Ae.UserAction.Delete]:Le.passthrough,[Ae.UserAction.Rename]:Le.passthrough,[Ae.UserAction.Move]:Le.passthrough,[Ae.UserAction.Edit]:Le.passthrough,[Ae.UserAction.Share]:Le.passthrough,[Ae.UserAction.Disable]:Le.passthrough,[Ae.UserAction.Suggest]:Le.passthrough,[Ae.UserAction.Upload]:je.getUploadData,[Ae.UserAction.ResolveWarning]:Le.passthrough,[Ae.UserAction.DismissWarning]:Le.passthrough,[Ae.UserAction.Follow]:Le.passthrough},Ue={[Ae.UserAction.Search]:()=>"search",[Ae.UserAction.InstantSearch]:()=>"search",[Ae.UserAction.Filter]:()=>"filter",[Ae.UserAction.StreamRaw]:e=>e.actionContext.entity===Ae.EntityType.Interactive?Ae.EntityType.Video:e.actionContext.entity},Fe={user:"target_user"},He={[Ae.UserAction.StreamProgress]:!0},ze={shouldLog:e=>!!Be[e.type](e),formatData(e){const t=Me[e.type],n=he.isFunction(t)?t(e.data,e):e.data;if(He[e.type])return n;let r=e.actionContext.entity;return he.isFunction(Ue[e.type])&&(r=Ue[e.type](e)),Fe[r]&&(r=Fe[r]),{[r]:n}}};var qe=n(96);function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t,n){return t&&Ge(e.prototype,t),n&&Ge(e,n),e}function $e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xe(e);if(t){var o=Xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ze(this,n)}}function Ze(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=function(e){$e(n,e);var t=Qe(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Je(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),tt=function(e){$e(o,e);var t=Qe(o);function o(){return Ye(this,o),t.apply(this,arguments)}return Je(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 qe.e)}},{key:"notFound",value:function(){var e=this;n.e(51).then(n.bind(null,1595)).then((function(t){var n=t.NotFoundView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var e=this;n.e(50).then(n.bind(null,1596)).then((function(t){var n=t.ErrorView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var e=this;n.e(70).then(n.bind(null,1597)).then((function(t){var n=t.DevErrorView;e.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 et}}]),o}(r.a.Application),nt=n(97),rt=n(12),ot=n(193),it=n(69);var at=n(225);function st(e){return function(t,n){var o=g.a.getInstance(a.g.User),s=g.a.getInstance(a.g.Config);o.getCurrentUser((function(o){g.a.releaseInstance(a.g.User),i.contains(e,o.get("role"))?n(t):s.getConfig((function(t){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new at.a(e,t.get("onlineUrl")))}))}))}}function ct(e,t){var n=g.a.getInstance(a.g.User),o=g.a.getInstance(a.g.Config);n.getCurrentUser((function(n){g.a.releaseInstance(a.g.User),n.get("emailVerified")?t(e):o.getConfig((function(e){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new qe.b(e.get("onlineUrl")))}))}))}var ut=n(61);function lt(e,t){if(Ce.a.isDevelopment)t(e);else{var n=g.a.getInstance(a.g.Settings);g.a.getInstance(a.g.User).getCurrentUser((function(o){g.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),ut.a.CustomLibrariesBetaAccess,(function(n){(g.a.releaseInstance(a.g.Settings),n.get("value"))?t(e):g.a.getInstance(a.g.Config).getConfig((function(e){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new qe.d(e.get("marketingSiteUrl")))}))}))}))}}var ft=n(49),pt=n(58),ht=n(297);function dt(e,t){var n=g.a.getInstance(a.g.MigrationVideo),o=e.appLink;n.getCustomerMetadata((function(n){if(g.a.releaseInstance(a.g.MigrationVideo),pt.a.noPublisher(n))return r.a.ErrorHelper.throw(new qe.e),void r.a.AppLinkUtility.routingEnded();var s=pt.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(!s&&i.contains(c,o.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new ht.a);var u=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(pt.a.backupNotStarted(n)&&!i.contains(u,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(s&&pt.a.backupProcessing(n)&&!i.contains(l,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var f=[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(s&&pt.a.backupComplete(n)&&!i.contains(f,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function yt(e,t){if(Ce.a.isDevelopment)t(e);else{var n=e.appLink;g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(o){if(g.a.releaseInstance(a.g.MigrationVideo),pt.a.isCurrentlyMigratingAll(o)&&n.application!==a.b.MIGRATION_WIZARD&&n.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[o.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(pt.a.isInitialMigration(o)&&n.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 s=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(pt.a.isPublishingLibraries(o)&&!i.contains(s,n.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();t(e)}))}}var gt=function(){var e=docCookies.getItem("clear-video-cache");e&&(g.a.getInstance(a.g.Video).clearVideoCache(),g.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",e))};function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t,n){return t&&vt(e.prototype,t),n&&vt(e,n),e}function wt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kt(e);if(t){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Et(this,n)}}function Et(e,t){return!t||"object"!==bt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rt=function(e){wt(n,e);var t=Ct(n);function n(){return mt(this,n),t.apply(this,arguments)}return St(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Pt=function(e){wt(o,e);var t=Ct(o);function o(){return mt(this,o),t.apply(this,arguments)}return St(o,[{key:"initialize",value:function(){this.libraryDataService=g.a.getInstance(m.a.Library,this),g.a.getInstance(m.b.VideoDragDrop,this),g.a.getInstance(m.b.FolderDragDrop,this),this.pageVisibilityService=g.a.getInstance(m.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(e){e||gt()})),gt()}},{key:"index",value:function(){var e=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(t){var o=t.first();o?(e.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:e.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(e.renderLeftNav(),n.e(72).then(n.bind(null,1598)).then((function(t){var n=new(0,t.NoLibraryView);e.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(e){var t=this;this.libraryDataService.deselectAll(),this.renderLeftNav(e),n.e(26).then(n.bind(null,1650)).then((function(n){var r=new(0,n.LibraryView)({libraryId:e});t.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(e,t){var r=this,o=t.sort||rt.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(e),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new ot.a(e,rt.p.GetSortTypeFromName(o),t.cursor),analyticsOptions:{entity:Ae.EntityType.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(t){var n=ft.a.getLibrary(e,t);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(40)]).then(n.bind(null,1599)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Rename,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1600)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Move,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Create,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"newSubFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({parentId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Create,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteFolder",value:function(e){var t=this;n.e(65).then(n.bind(null,1602)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Delete,entity:Ae.EntityType.Folder,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(e,t){var r=this,o=t.sort||rt.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new ot.a(e,rt.p.GetSortTypeFromName(o),t.cursor);Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(e){var t=new(0,e.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:Ae.EntityType.Series}});r.layout.showChildView(a.n.CONTENT,t)})),this.renderLeftNav()}},{key:"moveVideos",value:function(e,t){var r=this,o=e.split(",");Promise.all([n.e(0),n.e(33)]).then(n.bind(null,1603)).then((function(e){var n=new(0,e.MoveVideoView)({videoIds:o,folderId:t,analyticsOptions:{descriptor:o.length>1?Ae.OperationDescriptor.Bulk:Ae.OperationDescriptor.Single,location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Move,entity:Ae.EntityType.Video,workflowPhase:Ae.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(e,t,r){var o=this;n.e(66).then(n.bind(null,1604)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:e,videoIds:t.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:t.length>1?Ae.OperationDescriptor.Bulk:Ae.OperationDescriptor.Single,location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Delete,entity:Ae.EntityType.Video,workflowPhase:Ae.WorkflowPhase.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(e){var t=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(25)]).then(n.bind(null,1646)).then((function(n){var r=new(0,n.VideoDetailsView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:e.toString()});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"editVideo",value:function(e){var t=this;nt.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ae.LocationContext.EditVideoDetails),Promise.all([n.e(9),n.e(13),n.e(27)]).then(n.bind(null,1644)).then((function(n){var r=new(0,n.EditVideoView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(e){var t=this;nt.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ae.LocationContext.EditVideoChapters),Promise.all([n.e(2),n.e(1),n.e(30)]).then(n.bind(null,1605)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(e){var t=this;nt.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ae.LocationContext.EditVideoResources),n.e(23).then(n.bind(null,1640)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(e,t){var r=this;n.e(35).then(n.bind(null,1606)).then((function(n){var o=new(0,n.EditResourceView)({videoId:e,resourceId:t,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Edit,entity:Ae.EntityType.Resource,workflowPhase:Ae.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var e=this;n.e(36).then(n.bind(null,1607)).then((function(t){var n=new(0,t.NewLibraryView)({});e.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(e){var t=this;n.e(64).then(n.bind(null,1608)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Rename,entity:Ae.EntityType.Library,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(e){var t=this;n.e(71).then(n.bind(null,1609)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:e,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Delete,entity:Ae.EntityType.Library,workflowPhase:Ae.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(e,t){var r=this,o=t.sort||rt.p.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1610)).then((function(t){var n=new(0,t.GeneratePdfView)({collectionIdentifier:new ot.a(e,rt.p.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(e){var t=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1611)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(e){var t=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1612)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:e});t.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(e){var t=this;n.e(69).then(n.bind(null,1615)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(e){var t=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;t.layout.showChildView(a.n.POPUP,new r({masterId:e}))}))}},{key:"editFolderImages",value:function(e){var t=this;Promise.all([n.e(11),n.e(37)]).then(n.bind(null,1651)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(e){var t=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,1652)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:e});t.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(e,t){var r=this;Promise.all([n.e(9),n.e(38)]).then(n.bind(null,1645)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:e,metadata:t.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(e,t){var r=this;n.e(34).then(n.bind(null,1617)).then((function(n){var o=new(0,n.EditLinkView)({videoId:e,linkId:t,analyticsOptions:{location:Ae.LocationContext.Popup,actionType:Ae.UserAction.Edit,entity:Ae.EntityType.Link,workflowPhase:Ae.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(e){var t=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(e,t){A.a.logUserAction(e,{actionType:Ae.UserAction.Edit,location:t,entity:Ae.EntityType.Video,descriptor:Ae.PageDescriptor.PageLoad,workflowPhase:Ae.WorkflowPhase.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 Rt}}]),o}(r.a.Application),_t=n(119);function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),e}function Nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dt(e,t)}function Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jt(e);if(t){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bt=function(e){Nt(n,e);var t=It(n);function n(){return Tt(this,n),t.apply(this,arguments)}return Lt(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Mt=function(e){Nt(r,e);var t=It(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Lt(r,[{key:"index",value:function(e){var t=this;if(nt.a.fromPageLoad()){var r=e&&e.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,1653)).then((function(n){var r=new(0,n.SearchView)({queryParams:e});t.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:e.toString()});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:e});t.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(e){if(e){var t=A.a.buildSearchEvent(e,Ae.PageDescriptor.PageLoad),n=t.data,r=t.action;_t.a.log(Ae.UserAction.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(e){var t=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:e});t.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 Bt}}]),r}(r.a.Application);function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zt(e,t,n){return t&&Ht(e.prototype,t),n&&Ht(e,n),e}function qt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}function Wt(e,t){return(Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jt(e);if(t){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==Ut(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jt(e){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $t=function(e){qt(n,e);var t=Yt(n);function n(){return Ft(this,n),t.apply(this,arguments)}return zt(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Kt=function(e){qt(r,e);var t=Yt(r);function r(){return Ft(this,r),t.apply(this,arguments)}return zt(r,[{key:"index",value:function(e){var t=this,r=i.isNaN(+e.page)?"1":e.page;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(24)]).then(n.bind(null,1619)).then((function(e){var n=e.RestrictedVideoListView;t.layout.showChildView(y.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(y.a.POPUP,new r({videoId:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(y.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 $t}}]),r}(r.a.Application),Qt=n(9);function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t,n){return t&&en(e.prototype,t),n&&en(e,n),e}function nn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return an(this,n)}}function an(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cn=function(e){nn(n,e);var t=on(n);function n(){return Xt(this,n),t.apply(this,arguments)}return tn(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[lt,st([it.a.Admin]),ct,(e=[{name:ut.a.StaffRequest,value:Qt.k.StaffRequest}],function(t,n){var o=g.a.getInstance(a.g.User),i=g.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){g.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){g.a.releaseInstance(a.g.Settings);var i=!1;e.forEach((function(e){var t=o.findWhere({name:e.name});if(!t||t.get("value")!==e.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new qe.a(e.name))})),i||n(t)}))}))}),yt];var e}}]),n}(r.a.AppRouter),un=function(e){nn(r,e);var t=on(r);function r(){return Xt(this,r),t.apply(this,arguments)}return tn(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(t){var n=t.StaffRequestsView;e.layout.showChildView(y.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(e,t){var r=this;t=t||{},Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(y.a.CONTENT,new o({requestId:e,referrer:t.referrer}))}))}},{key:"approveRequest",value:function(e,t,r){var o=this;this.editRequest(e),e&&t&&r&&n.e(68).then(n.bind(null,1620)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(y.a.POPUP,new i({requestId:e,libraryId:t,folderId:r}))}))}},{key:"rejectRequest",value:function(e){var t=this;this.editRequest(e),n.e(60).then(n.bind(null,1621)).then((function(n){var r=n.RejectStaffRequestView;t.layout.showChildView(y.a.POPUP,new r({requestId:e}))}))}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!1});t.layout.showChildView(y.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(y.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 cn}}]),r}(r.a.Application),ln=n(295),fn=n(27);function pn(e){return(pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(e,t,n){return t&&dn(e.prototype,t),n&&dn(e,n),e}function gn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bn(e,t)}function bn(e,t){return(bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vn(this,n)}}function vn(e,t){return!t||"object"!==pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wn=function(e){gn(n,e);var t=mn(n);function n(){return hn(this,n),t.apply(this,arguments)}return yn(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[lt,st([Qt.m.Admin]),ct,yt]}}]),n}(r.a.AppRouter),On=function(e){gn(o,e);var t=mn(o);function o(){return hn(this,o),t.apply(this,arguments)}return yn(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 e=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(22)]).then(n.bind(null,1622)).then((function(t){var n=t.AwaitingReviewView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(e){var t,r,o,s=this,c=e[fn.a.ReleaseDate]||ln.e.queryString,u=(t={},r=fn.a.ReleaseDate,o=c,r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t);this.setDefaultQueryParams(u),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(20)]).then(n.bind(null,1649)).then((function(t){var n=t.PastReleasesView;s.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},e,u)}))}))}},{key:"generatePdf",value:function(e){var t=this;n.e(43).then(n.bind(null,1623)).then((function(n){var r=n.GeneratePastReleasesPdfView;t.layout.showChildView(a.n.POPUP,new r({librariesQueryString:e[fn.a.Libraries],dateQueryString:e[fn.a.ReleaseDate],subjectQueryString:e[fn.a.Subjects]}))}))}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=n.ShareView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"disableReview",value:function(){var e=this;n.e(63).then(n.bind(null,1624)).then((function(t){var n=t.DisableReviewView;e.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"addToLibrary",value:function(e){var t=this;Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1625)).then((function(n){var r=n.AddToLibraryView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=t.PublishLibraryView;e.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 wn}}]),o}(r.a.Application);function Cn(e){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(e,t,n){return t&&kn(e.prototype,t),n&&kn(e,n),e}function Pn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_n(e,t)}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xn(e);if(t){var o=xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tn(this,n)}}function Tn(e,t){return!t||"object"!==Cn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ln=function(e){Pn(n,e);var t=An(n);function n(){return En(this,n),t.apply(this,arguments)}return Rn(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),Nn=function(e){Pn(r,e);var t=An(r);function r(){return En(this,r),t.apply(this,arguments)}return Rn(r,[{key:"index",value:function(e){var t=this;n.e(49).then(n.bind(null,1626)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(a.n.CONTENT,new r({params:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.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 Ln}}]),r}(r.a.Application);function Dn(e){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t,n){return t&&Vn(e.prototype,t),n&&Vn(e,n),e}function Bn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mn(e,t)}function Mn(e,t){return(Mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hn(e);if(t){var o=Hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fn(this,n)}}function Fn(e,t){return!t||"object"!==Dn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hn(e){return(Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zn=function(e){Bn(n,e);var t=Un(n);function n(){return In(this,n),t.apply(this,arguments)}return jn(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[lt,st([it.a.Admin]),ct,yt]}}]),n}(r.a.AppRouter),qn=function(e){Bn(r,e);var t=Un(r);function r(){return In(this,r),t.apply(this,arguments)}return jn(r,[{key:"initialize",value:function(){this.videoUploadService=g.a.getInstance(a.x.VideoUpload,this)}},{key:"fileSelection",value:function(){var e=this;n.e(61).then(n.bind(null,1627)).then((function(t){var n=new(0,t.FileSelectView);e.layout.showChildView(y.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(e){var t=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(13),n.e(29)]).then(n.bind(null,1642)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:e.folderId,analyticsOptions:{actionType:Ae.UserAction.Upload,entity:Ae.EntityType.Video,location:Ae.LocationContext.VideoUpload}});t.layout.showChildView(y.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var e=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1628)).then((function(t){var n=new(0,t.UploadCompleteView);e.layout.showChildView(y.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!1});t.layout.showChildView(y.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(y.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 zn}}]),r}(r.a.Application),Wn=n(3),Yn=/^clickviewactasuser.*/i,Gn={handleMismatch:function(){g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(e){(g.a.releaseInstance(a.g.MigrationVideo),pt.a.isInitialMigration(e))&&(e.keyContact&&e.keyContact.get("fullName")&&(Yn.test(e.keyContact.get("username"))||g.a.getInstance(a.g.User).getCurrentUser((function(t){g.a.releaseInstance(a.g.User),e.keyContact.get("userId")!==t.get("id")&&Gn.showDialog(e)}))))}))},showDialog:function(e){new rt.d({title:Wn.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:Wn.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:e.keyContact.get("fullName")}),buttons:[{text:Wn.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:Wn.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){g.a.getInstance(a.g.Config).getConfig((function(e){g.a.releaseInstance(a.g.Config),window.location=e.get("onlineUrl")}))}))}};function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),e}function Zn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xn(e,t)}function Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nr(e);if(t){var o=nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tr(this,n)}}function tr(e,t){return!t||"object"!==Jn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rr=function(e){Zn(n,e);var t=er(n);function n(){return $n(this,n),t.apply(this,arguments)}return Qn(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 Ce.a.isDevelopment?[ct]:[lt,ct,dt]}}]),n}(r.a.AppRouter),or=function(e){Zn(o,e);var t=er(o);function o(){return $n(this,o),t.apply(this,arguments)}return Qn(o,[{key:"initialize",value:function(){this.migrationVideoDataService=g.a.getInstance(a.g.MigrationVideo,this)}},{key:"index",value:function(e){e.folder?this.folder(e.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var e=this;n.e(57).then(n.bind(null,1629)).then((function(t){var n=t.PublisherBackupWelcomeView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var e=this;n.e(58).then(n.bind(null,1630)).then((function(t){var n=t.PublisherBackupView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var e=this;n.e(41).then(n.bind(null,1631)).then((function(t){var n=t.PublisherBackupProgressView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var e=this;n.e(56).then(n.bind(null,1632)).then((function(t){var n=t.PublisherBackupCompleteView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var e=this;n.e(46).then(n.bind(null,1633)).then((function(t){var n=t.StartView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(e){this.migrationVideoDataService.setSelected(e),this.renderSmartMigration(e)}},{key:"search",value:function(e){this.renderSmartMigration(void 0,e.term)}},{key:"progress",value:function(e,t){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1634)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:e,firstTime:!!t.initialMigration}))}))}},{key:"videosAdded",value:function(e,t){var r=this;n.e(59).then(n.bind(null,1635)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:e,firstTime:!!t.initialMigration}))}))}},{key:"selected",value:function(e){var t=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1636)).then((function(n){var r=n.SelectedVideosView;t.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:e}))}))}},{key:"showPublisherVideo",value:function(e){var t=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;t.layout.showChildView(a.n.POPUP,new r({trackingCode:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1614)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(e,t,r){var o=this;n.e(67).then(n.bind(null,1637)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:e,masterId:t,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var e=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1656)).then((function(t){var n=new(0,t.PublishLibraryProgressView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var e=this;n.e(54).then(n.bind(null,1638)).then((function(t){var n=new(0,t.PublishLibraryCompleteView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var e=this;Promise.all([n.e(2),n.e(1),n.e(6),n.e(28)]).then(n.bind(null,1641)).then((function(t){var n=new(0,t.MigrationErrorView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(e){var t=this;n.e(47).then(n.bind(null,1639)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:e.options});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(6),n.e(42)]).then(n.bind(null,1654)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:e,searchTerm:t});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var e=this;this.layoutLoaded||Gn.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(t){pt.a.isInitialMigration(t)||(pt.a.isCurrentlyMigratingAll(t)?Promise.resolve().then(n.bind(null,736)).then((function(t){var n=t.PageHeaderComponent;e.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,736)).then((function(t){var r=t.PageHeaderComponent;e.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,737)).then((function(t){var n=t.TopNavigationView;e.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 rr}}]),o}(r.a.Application);var ir=n(121),ar=n(68),sr=n(11);class cr extends ar.a{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[]}get name(){return ir.a.Fifo}removeCacheKey(e){this.cachedkeys=i.without(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){e&&t||sr.c.throw(new O.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);const n=t();return this.set(e,n),n}remove(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}invalidate(e,t){const n=i.object(this.cachedkeys,this.cachedkeys);let r=[];i.each(e,e=>{n[e]&&r.push(e);const t=new RegExp(e,"i"),o=i.filter(n,e=>t.test(e));r.push(...o)}),r.length&&(r=i.uniq(r),i.each(r,e=>{delete this.cache[e],i.isFunction(t)&&t(e)}),this.cachedkeys=i.without(this.cachedkeys,...r))}}var ur,lr=n(150);!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(ur||(ur={}));var fr=n(115);const pr={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=""+n.errorCode;return n.errorSubCode&&(r+="."+n.errorSubCode),e[r]||e[t]}};class hr extends x.Object{constructor(e){super(e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return b.a.Ajax}parseUrl(e){const t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}makeHttps(e){const t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}base(e,t,n,r={}){n||(n=ur.GET);const o=i.defaults(r,{forceHttps:!1}),a={url:e,method:n,type:n};t&&(a.data=n===ur.POST||n===ur.PUT?JSON.stringify(t):t),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);const s=$.ajax(a);return i.keys(this.successMiddleware).length&&s.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&s.fail(i.values(this.errorMiddleware)),s}create(e,t,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.base(e,t,ur.POST).done((e,t,n)=>r.trigger(o,e,t,n)).fail((e,t,n)=>r.trigger(i,e,t,n))}read(e,t){const{channel:n,successEvent:r,errorEvent:o}=t;this.base(e,null,ur.GET).done((e,t,o)=>{n.trigger(r,e,t,o)}).fail((e,t,r)=>{n.trigger(o,e,t,r)})}update(e,t,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.base(e,t,ur.PUT).done((e,t,n)=>r.trigger(o,e,t,n)).fail((e,t,n)=>r.trigger(i,e,t,n))}delete(e,t){const{channel:n,successEvent:r,errorEvent:o}=t;this.base(e,null,ur.DELETE).done((e,t,o)=>n.trigger(r,e,t,o)).fail((e,t,r)=>n.trigger(o,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){const t=e.responseJSON,n=lr.a;switch(n.code=e.status,n.message=pr.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=fr.a.BadRequest;break;case 401:n.type=fr.a.Unauthorized;break;case 403:n.type=fr.a.Forbidden;break;case 404:n.type=fr.a.NotFound;break;case 500:n.type=fr.a.InternalServer}return n}}var dr=n(181);var yr=n(52),gr=n(13),br=n(53),mr=n(24),vr=n(22);class Sr extends r.a.Model{}class wr extends gr.a{get name(){return vr.a.NotificationSocket}get channelName(){return mr.b.NOTIFICATIONS_SOCKET}receiveLatestNotifications(e){return this.get({callback:e,formatData:e=>new Sr(e),resource:"notify",eventPrefix:br.a.NOTIFICATIONS+":new"})}receiveUnreadNotificationCount(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:br.a.NOTIFICATIONS+":count"})}}var Or=n(82),Cr=n(123);class Er extends r.a.Collection{get model(){return Sr}parse(e){return e.data||e}}var kr=n(98);const Rr=(e,t)=>{const n=`/api/domain/v2/objects/${e}/notifications?query={orderbydesc:datecreated}`;if(!t)return n;const{limit:r,cursor:o,before:i}=t,a=[],s=Or.a.buildFilter({limit:r,before:i});return s&&a.push("filter="+s),o&&a.push("cursor="+o),a.length?`${n}&${a.join("&")}`:n},Pr=e=>"/api/notifications/v1/notifications/"+e,_r="/api/notifications/v1/notifications",Ar="/api/domain/v1/notifications";class Tr extends gr.a{get name(){return vr.a.Notification}get channelName(){return mr.b.NOTIFICATIONS}get lang(){return"notifications.services"}getNotifications(e,t,n,r){return this.get({resource:Rr(e,t),expiryTime:kr.a.STANDARD,eventPrefix:n,formatData:e=>new Er(e,{parse:!0}),callback:r})}markRead(e,t){return this.update({callback:t,data:{notificationStatus:Cr.a.Read},resource:Pr(e),eventPrefix:br.a.NOTIFICATIONS+":read"})}markSeen(e){const t=Re().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Cr.a.Seen},resource:`${_r}?to=${t}&notificationStatus=${Cr.a.Received}`,eventPrefix:br.a.NOTIFICATIONS+":seen"})}getNotificationsCursors(e){return this.getCursors(e)}suggestEdit(e,t){return this.create({resource:""+Ar,eventPrefix:""+br.a.SUGGEST_EDIT,callback:t,data:e,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}const xr="locale",Lr="phrases";class Nr extends gr.a{get name(){return vr.a.Language}get channelName(){return mr.b.LANGUAGE}getLanguageConfig(e){const t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:br.a.LOCALE,expiryTime:kr.a.STANDARD,bootstrapName:xr,callback:n=>{t.locale=n,t.phrases&&i.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:br.a.PHRASES,expiryTime:kr.a.STANDARD,bootstrapName:Lr,callback:n=>{t.phrases=n,t.locale&&i.isFunction(e)&&e(t)}})}}var Dr=n(15),Ir=n(106),Vr=n.n(Ir),jr=n(692),Br=n.n(jr);function Mr(e){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return(Fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qr(e);if(t){var o=qr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Mr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qr(e){return(qr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fr(e,t)}(a,e);var t,n,r,i=Hr(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"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(e){return e.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 e=this;return this.$el.addClass(Vr.a.removing),this.$el.addClass(Vr.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return e.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var e=this,t=this.model.get("timeout")||this.options.timeout;t&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return e.triggerRemoval()}),t))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(Vr.a.removing),this.$el.removeClass(Vr.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case yr.a.Success:return Dr.a.getSvg(Dr.b.CheckCircleOutline);case yr.a.Fail:case yr.a.Warning:return Dr.a.getSvg(Dr.b.Warning);case yr.a.Info:default:return Dr.a.getSvg(Dr.b.Info)}}},{key:"getTypeClass",value:function(){var e=this.model.get("type").toLowerCase();return"text-".concat(e)}},{key:"viewOptions",value:function(){return{styles:Vr.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(Vr.a.alertItem," show clearfix")}},{key:"template",get:function(){return Br.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&Ur(t.prototype,n),r&&Ur(t,r),a}(r.a.Component);function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $r(e,t){return($r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zr(e);if(t){var o=Zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qr(this,n)}}function Qr(e,t){return!t||"object"!==Yr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zr(e){return(Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xr,eo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$r(e,t)}(i,e);var t,n,r,o=Kr(i);function i(){return Gr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(Vr.a.alertList," alert-list")}},{key:"channelName",get:function(){return C.a.ALERT}},{key:"childView",get:function(){return Wr}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Jr(t.prototype,n),r&&Jr(t,r),i}(r.a.ComponentCollection);function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function no(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oo(e,t,n){return(oo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=co(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=co(e);if(t){var o=co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return so(this,n)}}function so(e,t){return!t||"object"!==to(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Xr||(Xr={}));var uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}(i,e);var t,n,r,o=ao(i);function i(){return no(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"success",value:function(e){return oo(co(i.prototype),"success",this).call(this,e)}},{key:"error",value:function(e){return oo(co(i.prototype),"error",this).call(this,e)}},{key:"name",get:function(){return a.x.Alerts}}])&&ro(t.prototype,n),r&&ro(t,r),i}(yr.b),lo=n(190),fo=n(136),po=n(237),ho=n(17);function yo(e){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mo(e,t){return(mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wo(e);if(t){var o=wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return So(this,n)}}function So(e,t){return!t||"object"!==yo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wo(e){return(wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mo(e,t)}(i,e);var t,n,r,o=vo(i);function i(){return go(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getCustomer",value:function(e,t){return this.get({resource:"/api/domain/v2/objects/".concat(e),formatData:function(e){return new po.a(e)},eventPrefix:a.f.CUSTOMER,expiryTime:ho.a.STANDARD,callback:t})}},{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}}])&&bo(t.prototype,n),r&&bo(t,r),i}(gr.a),Co=n(235);function Eo(e){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){return(Ro=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var o=Ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _o(this,n)}}function _o(e,t){return!t||"object"!==Eo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ao(e){return(Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var To=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ro(e,t)}(n,e);var t=Po(n);function n(){return ko(this,n),t.apply(this,arguments)}return n}(r.a.Model);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Io(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jo(e);if(t){var o=jo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vo(this,n)}}function Vo(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(i,e);var t,n,r,o=Io(i);function i(){return Lo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return To}}])&&No(t.prototype,n),r&&No(t,r),i}(r.a.Collection);function Mo(e){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t){return(Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wo(e);if(t){var o=Wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qo(this,n)}}function qo(e,t){return!t||"object"!==Mo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wo(e){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yo=function(e,t){var n="/api/domain/v3/settings/".concat(e);return Co.a[t]&&(n+="?kind=".concat(t)),n},Go=function(e){return"/api/domain/v3/settings/".concat(e)},Jo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(s,e);var t,n,r,o=zo(s);function s(){return Uo(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getSetting",value:function(e,t,n){var r=i.isFunction(n)?function(e){var r=e.findWhere({name:t});i.isFunction(n)&&n(r)}:null,o=this.getSettings(e,null,r);return o?o.findWhere({name:t}):null}},{key:"getSettings",value:function(e,t,n){return this.get({callback:n,resource:Yo(e,t),formatData:function(e){return new Bo(e)},eventPrefix:a.f.SETTINGS,expiryTime:kr.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(e,t,n,r){return this.update({callback:r,resource:Go(e),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(ut.a.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:t,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return m.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}}])&&Fo(t.prototype,n),r&&Fo(t,r),s}(gr.a),$o=n(138),Ko=n(100),Qo=n(91);function Zo(e){return(Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ei(e,t){return(ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ri(e);if(t){var o=ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ni(this,n)}}function ni(e,t){return!t||"object"!==Zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ei(e,t)}(n,e);var t=ti(n);function n(){return Xo(this,n),t.apply(this,arguments)}return n}(r.a.Model),ii=n(180),ai=n(50),si=n(147),ci=n(32),ui=n(304);function li(e){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hi(e,t){return(hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gi(e);if(t){var o=gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){return!t||"object"!==li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gi(e){return(gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bi=function(e,t,n){var r=["query={status:[1,5],".concat(t,"}").concat(ii.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(e,"/videos?").concat(r.join("&"))},mi=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(ii.a.VIDEO)},vi=function(e){return"/api/domain/v2/objects/".concat(e)},Si=function(){return"/api/domain/v2/objects/move"},wi=function(){return"/api/domain/v1/share"},Oi=function(e){return"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=categories")},Ci=function(e,t,n){var r=n.map((function(e){return"videoIds=".concat(e)}));return"/api/domain/v1/libraries/".concat(e,"/videos?categoryId=").concat(t,"&").concat(r.join("&"))},Ei=function(e){return"/api/domain/v2/objects/".concat(e,"/thumbnail")},ki=function(e,t){return"/api/domain/v2/objects/".concat(e,"/thumbnail/").concat(t)},Ri=function(e,t,n){return"/api/domain/v2/objects/".concat(e,"/").concat(t,"?").concat(xi.getDissocIds(n))},Pi=function(e){return"/api/domain/v2/videos/".concat(e,"/copy")},_i=function(e){return"/api/domain/v2/objects/".concat(e,"/libraries")},Ai=function(){return"/api/domain/v1/staffrequests"},Ti=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hi(e,t)}(u,e);var t,n,s,c=di(u);function u(){return fi(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(m.b.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([ci.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(e,t){var n=this,r=rt.p.GetFilterFromSort(e.sort),o=bi(e.id,r,e.cursor);return this.get({resource:o,formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,e,t)},expiryTime:ho.a.STANDARD,eventPrefix:e.toString()})}},{key:"getSeriesVideos",value:function(e,t,n){var r=this,o=rt.p.GetFilterFromSort(e.sort),i="libraries.id:[".concat(t.join(","),"]"),a="".concat(o,",").concat(i),s=bi(e.id,a,e.cursor);return this.get({resource:s,formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,e,n)},expiryTime:ho.a.STANDARD,eventPrefix:e.toString()})}},{key:"getVideo",value:function(e,t){var n=this;return this.get({resource:mi(e),formatData:function(e){return new Ko.a(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoData(e,t)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEOS,":").concat(e)})}},{key:"clearCacheAndGetVideo",value:function(e,t,n){var r=this;return this.clearCacheAndGet({resource:mi(e),formatData:function(e){return new Ko.a(e,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoData(e,t)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEOS,":").concat(e),errorHandler:n})}},{key:"getVideos",value:function(e,t){var n=this;return this.get({resource:Oi(e),formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoCollectionData(e,null,t)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEOS_BY_ID,":").concat(e.join(","))})}},{key:"hasPhysicalChapters",value:function(e,t){return this.get({resource:"/legacy/videos/".concat(e,"/hasphysicalchapters"),formatData:function(e){return new r.a.Model(e)},callback:t,expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(e)})}},{key:"updateVideo",value:function(e,t,n,r){var o=["".concat(e)];return t&&o.push("".concat(t)),this.update({resource:vi(e),eventPrefix:"".concat(ci.a.UPDATE_VIDEO,":").concat(e),data:n,invalidationKeys:o,callback:r})}},{key:"addOrUpdateThumbnail",value:function(e,t,n,r){var o={fileId:t.id.toString(),fileIdType:Qt.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:ki(e,n),eventPrefix:ci.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:Ei(e),eventPrefix:"".concat(ci.a.UPDATE_VIDEO_THUMBNAIL,":").concat(e),data:o,formatData:function(e){return new Qo.a(e)},invalidationKeys:[ci.a.VIDEOS],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(e,t,n,r,o){var a=this;this.create({resource:Si(),eventPrefix:"".concat(ci.a.MOVE_VIDEOS,":").concat(e.join(",")),formatData:function(e){return new ai.a(e,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:t,assocType:"has",objectIds:e},invalidationKeys:["".concat(ci.a.VIDEOS,":collection:").concat(n),"".concat(ci.a.VIDEOS,":collection:").concat(t)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(e,t,n,r){var o=this;this.delete({resource:Ci(e,t,n),eventPrefix:ci.a.DELETE_VIDEO,invalidationKeys:[ci.a.VIDEOS],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(e,t,n){var r={id:e,privacy:t};return this.create({data:r,resource:wi(),formatData:function(e){return new oi(e)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(e,t,n,r){var o=ui.a.addVideoToLibraryAlert(t,n);this.create({resource:Ai(),eventPrefix:"add:to:library",callback:r,data:e,invalidationKeys:["".concat(ci.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(e,t,n){if(e&&t){var r=new w.a(i.keys(t).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(t),(function(n){a.delete({resource:Ri(e,n.toLowerCase(),t[n]),eventPrefix:"".concat(ci.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(e,t,n,r){this.create({resource:Pi(e),data:{libraryId:t,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(e,t){this.get({resource:_i(e),eventPrefix:"video:libraries:".concat(e),formatData:function(e){return new si.a(e.data)},callback:t})}},{key:"invalidateCollectionVideos",value:function(e){this.invalidateCache([e.toString()])}},{key:"name",get:function(){return m.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&pi(t.prototype,n),s&&pi(t,s),u}(gr.a),xi={videoCollection:function(e){return{dataServiceName:m.a.Video,eventName:"".concat(e.toString,":sync"),getData:function(t){return t.getCollectionVideos(e)},getInstance:function(e){return g.a.getInstance(m.a.Video,e)},beforeOnBeforeRender:!0}},getDissocIds:function(e){return"string"==typeof e?"id=".concat(e):e.map((function(e){return"id=".concat(e)})).join("&")}},Li=n(102);function Ni(e){return(Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vi(e,t){return(Vi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mi(e);if(t){var o=Mi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bi(this,n)}}function Bi(e,t){return!t||"object"!==Ni(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ui,Fi,Hi=function(e){return"/api/domain/v2/search/videos?".concat(e,"&with=").concat(a.A.VIDEO_COLLECTION)},zi=function(e){return"/api/domain/v1/search/nav?".concat(e)},qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vi(e,t)}(i,e);var t,n,r,o=ji(i);function i(){return Di(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(a.x.VideoMixin,this)}},{key:"searchVideos",value:function(e,t,n){var r=this;return this.clearCacheAndGet({callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,null,n)},resource:Hi(e),formatData:function(e){return new ai.a(e.data)},eventPrefix:t.toString()})}},{key:"getDynamicFilters",value:function(e,t){return this.clearCacheAndGet({callback:t,resource:zi(e),formatData:function(e){return new Li.a(e,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}},{key:"name",get:function(){return vr.a.Search}},{key:"channelName",get:function(){return mr.b.SEARCH}}])&&Ii(t.prototype,n),r&&Ii(t,r),i}(gr.a);function Wi(e){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ji(e,t){return(Ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qi(e);if(t){var o=Qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ki(this,n)}}function Ki(e,t){return!t||"object"!==Wi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qi(e){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(Ui||(Ui={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Fi||(Fi={}));var Zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ji(e,t)}(c,e);var t,n,o,s=$i(c);function c(){return Yi(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"getPendingItem",value:function(e,t){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(e),eventPrefix:"pending:item:".concat(e),formatData:function(e){return new r.a.Model(e)},callback:t})}},{key:"getPendingItems",value:function(e){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:e})}},{key:"clearPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"clear:pending:".concat(e.join(",")),callback:t})}},{key:"cancelPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"cancel:pending:".concat(e.join(",")),callback:t})}},{key:"retryPendingItems",value:function(e,t){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"retry:pending:".concat(e.join(",")),callback:t,data:null})}},{key:"completeVideoUploads",value:function(e,t,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:e,customerId:t,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:Ui.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n),subtitleOptions:{subtitleExtractOptions:Fi.EmbeddedOnly},autoCaption:n.get("autoCaption")},errorHandler:o.alertService.error(Wn.a.getPhrase(o.lang,"processingError",{videoName:rt.v.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(e){var t=this,n=e.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:Ui.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return t.setAssoc(r,n,e)})),n}},{key:"setAssoc",value:function(e,t,n){var o=n[e];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;t[e]=o.map((function(e){return e.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;t[e]=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"}}])&&Gi(t.prototype,n),o&&Gi(t,o),c}(gr.a),Xi=n(305);function ea(e){return(ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ra(e,t){return(ra=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aa(e);if(t){var o=aa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ia(this,n)}}function ia(e,t){return!t||"object"!==ea(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function aa(e){return(aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ra(e,t)}(i,e);var t,n,r,o=oa(i);function i(){return ta(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"uploadBase64Image",value:function(e,t,n){return this.create({resource:"/api/image/upload?type=".concat(t),eventPrefix:a.f.UPLOAD_IMAGE,data:e,formatData:function(e){return new Xi.a(e)},callback:n})}},{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}}])&&na(t.prototype,n),r&&na(t,r),i}(gr.a),ca=n(151);function ua(e){return(ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function la(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pa(e,t){return(pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ya(e);if(t){var o=ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return da(this,n)}}function da(e,t){return!t||"object"!==ua(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ya(e){return(ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ga=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pa(e,t)}(i,e);var t,n,r,o=ha(i);function i(){return la(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return ca.a}}])&&fa(t.prototype,n),r&&fa(t,r),i}(r.a.Collection);function ba(e){return(ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sa(e,t){return(Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ca(e);if(t){var o=Ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oa(this,n)}}function Oa(e,t){return!t||"object"!==ba(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sa(e,t)}(i,e);var t,n,r,o=wa(i);function i(){return ma(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return ca.b}}])&&va(t.prototype,n),r&&va(t,r),i}(r.a.Collection),ka=n(246);function Ra(e){return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Aa(e,t){return(Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=La(e);if(t){var o=La(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xa(this,n)}}function xa(e,t){return!t||"object"!==Ra(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function La(e){return(La=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(Qt.g.Video,"&status=").concat(ka.a.Pending)},Da=function(e){return"/api/domain/v1/staffrequests/".concat(e)},Ia=function(){return"/api/domain/v1/staffrequests"},Va=function(e){return"/api/domain/v1/staffrequests/".concat(e,"/messages")},ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}(s,e);var t,n,r,i=Ta(s);function s(){return Pa(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"clearRequestCache",value:function(){this.invalidateCache([ci.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(e){return this.get({resource:Na(),formatData:function(e){return new ga(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:ci.a.STAFF_REQUESTS,callback:e})}},{key:"getStaffRequest",value:function(e,t){return this.get({resource:Da(e),formatData:function(e){return new ca.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.STAFF_REQUEST_BY_ID,":").concat(e),callback:t})}},{key:"approveStaffRequest",value:function(e,t,n,r){var o={id:e,status:ka.a.Approved,metadata:{destinationLibraryId:t,destinationCategoryId:n}};return this.update({data:o,resource:Ia(),eventPrefix:"".concat(ci.a.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[ci.a.VIDEOS,ci.a.STAFF_REQUESTS,ci.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(e,t,n){var r={id:e,status:ka.a.Rejected,message:t};return this.update({data:r,resource:Ia(),eventPrefix:"".concat(ci.a.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[ci.a.STAFF_REQUESTS,ci.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(e,t){return this.get({resource:Va(e),formatData:function(e){return new Ea(e)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(ci.a.STAFF_REQUEST_MESSAGES,":").concat(e),callback:t})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&_a(t.prototype,n),r&&_a(t,r),s}(gr.a),Ba=n(227);function Ma(e){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function za(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wa(e);if(t){var o=Wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qa(this,n)}}function qa(e,t){return!t||"object"!==Ma(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ya=function(e){return"/api/domain/v2/objects/".concat(e,"/tags")},Ga=function(e,t){return"/api/domain/v2/objects/".concat(t,"/videos/").concat(e)},Ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ha(e,t)}(i,e);var t,n,r,o=za(i);function i(){return Ua(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createTag",value:function(e,t,n){if(e&&t)return this.create({resource:Ya(t),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(rt.v.slugify(e)),formatData:function(e){return new Ba.a(e)},invalidationKeys:["".concat(t)],data:{name:e},callback:n})}},{key:"dissociateTag",value:function(e,t,n){if(e&&t)return this.delete({resource:Ga(t,e),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(e),invalidationKeys:["".concat(t)],callback:n})}},{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}}])&&Fa(t.prototype,n),r&&Fa(t,r),i}(gr.a),$a=n(187),Ka=n(155);function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function es(e,t){return(es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rs(e);if(t){var o=rs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ns(this,n)}}function ns(e,t){return!t||"object"!==Qa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rs(e){return(rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var os=function(){return"/api/domain/v1/series"},is=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(a.A.SERIES)},as=function(e){return"/api/domain/v2/objects/".concat(e,"/seasons")},ss=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&es(e,t)}(i,e);var t,n,r,o=ts(i);function i(){return Za(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createSeries",value:function(e,t){if(e){var n=rt.v.slugify(e);return this.create({resource:os(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(e){return new $a.a(e)},invalidationKeys:["".concat(n)],data:{name:e},callback:t})}}},{key:"getSeries",value:function(e,t){return this.get({callback:t,expiryTime:a.d.STANDARD,resource:is(e),formatData:function(e){return new $a.a(e)},eventPrefix:"".concat(a.f.SERIES,":").concat(e)})}},{key:"createSeason",value:function(e,t,n){if(e.number&&t)return this.create({data:e,resource:as(t),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(t),formatData:function(e){return new Ka.a(e)},callback:n})}},{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}}])&&Xa(t.prototype,n),r&&Xa(t,r),i}(gr.a),cs=n(462);function us(e){return(us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ls(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ys(e);if(t){var o=ys(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ds(this,n)}}function ds(e,t){return!t||"object"!==us(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gs=function(){return"/api/domain/v2/me/ratings"},bs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ps(e,t)}(i,e);var t,n,r,o=hs(i);function i(){return ls(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getAllRatings",value:function(e){return this.get({resource:gs(),formatData:function(e){return new cs.a(e)},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:e})}},{key:"name",get:function(){return m.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}}])&&fs(t.prototype,n),r&&fs(t,r),i}(gr.a),ms=n(311),vs=n(184);function Ss(e){return(Ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Os(e,t){return(Os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ks(e);if(t){var o=ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Es(this,n)}}function Es(e,t){return!t||"object"!==Ss(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ks(e){return(ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Os(e,t)}(n,e);var t=Cs(n);function n(){return ws(this,n),t.apply(this,arguments)}return n}(r.a.Model),Ps=n(294);function _s(e){return(_s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xs(e,t){return(xs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ds(e);if(t){var o=Ds(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ns(this,n)}}function Ns(e,t){return!t||"object"!==_s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ds(e){return(Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Is,Vs=function(e){return"/api/domain/v2/objects/".concat(e,"/chapters")},js=function(e){return"/api/domain/v2/objects/".concat(e)},Bs=function(e){return"/api/domain/v2/objects/".concat(e)},Ms=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},Us=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},Fs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xs(e,t)}(s,e);var t,n,r,o=Ls(s);function s(){return As(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"clearVideoCache",value:function(e){this.invalidateCache(["".concat(e)])}},{key:"createChapter",value:function(e,t,n,r){if(e&&t&&i.isNumber(n))return this.create({resource:Vs(e),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(rt.v.slugify(t)),formatData:function(e){return new vs.a(e)},invalidationKeys:["".concat(e)],data:{name:t,startTime:n},callback:r})}},{key:"updateChapter",value:function(e,t,n,r,o){if(e&&t&&i.isNumber(n))return this.update({resource:js(e),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(e),formatData:function(e){return new vs.a(e)},invalidationKeys:["".concat(e),"".concat(rt.v.slugify(t))],data:{name:t,startTime:n},successHandler:this.alertService.success(o||Wn.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(e,t){if(e)return this.delete({resource:Bs(e),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(e)],callback:t})}},{key:"getConcatenateRequest",value:function(e,t){var n=this;return this.clearCacheAndGet({resource:Ms(e),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(e),formatData:function(e){return new Rs(e,{parse:!0})},callback:function(r){r.get("status")===Ps.a.SingleFile&&n.clearVideoCache(e),i.isFunction(t)&&t(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(e,t){return this.create({resource:Us(e),formatData:function(e){return new Rs(e)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(e),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(e)],data:null,callback:t})}},{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Ts(t.prototype,n),r&&Ts(t,r),s}(gr.a);function Hs(e){return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ws(e,t){return(Ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ys(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Js(e);if(t){var o=Js(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gs(this,n)}}function Gs(e,t){return!t||"object"!==Hs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Js(e){return(Js=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.CollectionPdf="collection_pdf",e.CustomListPdf="custom_list_pdf"}(Is||(Is={}));var $s=function(e){return"/api/domain/v2/export/formats/pdf/types/".concat(e)},Ks=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ws(e,t)}(s,e);var t,n,r,o=Ys(s);function s(){return zs(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"generateCollectionPdf",value:function(e,t,n,r,o){var s=i.extend({},this.getBaseExportData(n),{libraryId:e,collectionId:t});return r&&(s=i.extend({},s,{sortType:rt.p.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:$s(Is.CollectionPdf),data:s,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(t),successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(e,t,n,r,o){var s=i.extend({},this.getBaseExportData(r),{title:e,header:t,videoIds:n});return this.create({callback:o,resource:$s(Is.CustomListPdf),data:s,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(e){return{firstName:e.get("givenName"),lastName:e.get("familyName"),countryCode:e.get("countryCode"),userId:e.id,customerId:e.get("customerId"),userEmail:e.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"}}])&&qs(t.prototype,n),r&&qs(t,r),s}(gr.a),Qs=n(245),Zs=n(244);function Xs(e){return(Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t){return(nc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ic(e);if(t){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(e,t){return!t||"object"!==Xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ac,sc=function(e){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(e.join("&videoId="))},cc=function(e){return"".concat("/api/localcache","/v1/customers/").concat(e,"/devices")},uc=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(e){e[e.MasterObject=0]="MasterObject",e[e.TrackingCode=1]="TrackingCode"}(ac||(ac={}));var lc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nc(e,t)}(i,e);var t,n,r,o=rc(i);function i(){return ec(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getDownloadsForVideos",value:function(e,t){return this.get({resource:sc(e),formatData:function(e){return new Zs.a(e)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(e.join(",")),expiryTime:ho.a.STANDARD,callback:t})}},{key:"getDevices",value:function(e,t){return this.get({resource:cc(e),formatData:function(e){return new Qs.a(e)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:ho.a.STANDARD,callback:t})}},{key:"downloadVideoToLocalCache",value:function(e,t,n){this.create({resource:uc(),data:this.getDownloadVideoData(e,t),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(e,t){return{deviceId:e,videoId:t,videoIdType:ac.MasterObject,expiresOn:Re().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"}}])&&tc(t.prototype,n),r&&tc(t,r),i}(gr.a);function fc(e){return(fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(e,t){return(hc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gc(e);if(t){var o=gc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yc(this,n)}}function yc(e,t){return!t||"object"!==fc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gc(e){return(gc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hc(e,t)}(n,e);var t=dc(n);function n(){return pc(this,n),t.apply(this,arguments)}return n}(r.a.Model);function mc(e){return(mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wc(e,t){return(wc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ec(e);if(t){var o=Ec(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cc(this,n)}}function Cc(e,t){return!t||"object"!==mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ec(e){return(Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wc(e,t)}(i,e);var t,n,r,o=Oc(i);function i(){return vc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return bc}}])&&Sc(t.prototype,n),r&&Sc(t,r),i}(r.a.Collection);function Rc(e){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e,t){return(Ac=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lc(e);if(t){var o=Lc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xc(this,n)}}function xc(e,t){return!t||"object"!==Rc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lc(e){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nc=function(e){var t=["type=".concat(Qt.i.RestrictedByAdmin),"objectTypeId=".concat(Qt.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return e&&t.push("page=".concat(e)),"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},Dc=function(e){var t=["type=".concat(Qt.i.RestrictedByAdmin),"objectTypeId=".concat(Qt.g.Video)],n="";return e&&e.forEach((function(e){return n+="&objectId=".concat(e)})),"/api/domain/v1/restrictedobjects?".concat(t.join("&")).concat(n)},Ic=function(){return"/api/domain/v1/restrictedobjects"},Vc=function(e){return"/api/domain/v1/restrictedobjects?objectId=".concat(e,"&objectTypeId=").concat(Qt.g.Video)},jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ac(e,t)}(i,e);var t,n,r,o=Tc(i);function i(){return Pc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getPaginationCursors",value:function(e){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(e))}},{key:"getRestrictedVideos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",t=arguments.length>1?arguments[1]:void 0;return this.get({callback:t,resource:Nc(e),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(e)})}},{key:"getVideoRestrictions",value:function(e,t,n){var r=t?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.join(","));return this.get({callback:n,resource:Dc(e),formatData:function(e){return new kc(e)},expiryTime:ho.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(e,t,n,r,o){var i={groupId:t,objectId:e,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:Ic(),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(Wn.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(e,t){this.delete({callback:t,resource:Vc(e),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(Wn.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"}}])&&_c(t.prototype,n),r&&_c(t,r),i}(gr.a),Bc=n(228);function Mc(e){return(Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hc(e,t){return(Hc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wc(e);if(t){var o=Wc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qc(this,n)}}function qc(e,t){return!t||"object"!==Mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yc(e){return function(e){if(Array.isArray(e))return Gc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Jc=function(e,t,n,r,o){var i=e.map((function(e){return"libraryId=".concat(e)})),s=[].concat(Yc(i),["from=".concat(t),"to=".concat(n)]);o&&s.push("offset=".concat(o));var c=a.A.HOSTED_VIDEO_COLLECTION;return r&&s.push.apply(s,Yc(r.map((function(e){return"categoryId=".concat(e)})))),"/api/domain/v2/videos/recent?query=".concat(c,"&").concat(s.join("&"))},$c=function(e,t,n){var r=e.map((function(e){return"libraryId=".concat(e)})),o=[].concat(Yc(r),["from=".concat(t),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Kc=function(){var e=["type=".concat(Qt.i.TermUpdate),"objectTypeId=".concat(Qt.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(e.join("&"))},Qc=function(){var e=["type=".concat(Qt.i.TermUpdate),"objectTypeId=".concat(Qt.g.Video)];return"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},Zc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hc(e,t)}(s,e);var t,n,r,o=zc(s);function s(){return Uc(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(a.x.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"getRecentVideos",value:function(e,t){var n=this,r=e.toParams();return this.get({resource:Jc(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:e.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,e,t)}})}},{key:"getRecentVideosAllPages",value:function(e,t){var n,r=this,o=e.toParams(),s=new ai.a;this.get({resource:Jc(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString()),callback:function c(u){s.add(u.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Jc(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(e){return new ai.a(e,{parse:!0})},expiryTime:ho.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString(),":").concat(n.next),callback:c}):i.isFunction(t)&&t(s)}})}},{key:"getRecentVideoSubjects",value:function(e,t){var n=e.toParams();return this.get({resource:$c(n.libraryIds,n.from,n.to),formatData:function(e){return new Bc.a(e)},expiryTime:ho.a.STANDARD,eventPrefix:e.toString(),callback:t})}},{key:"getVideosToReview",value:function(e){return this.get({callback:e,resource:Kc(),formatData:function(e){return new ai.a(e)},expiryTime:ho.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(e){return this.delete({callback:e,resource:Qc(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Wn.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"}}])&&Fc(t.prototype,n),r&&Fc(t,r),s}(gr.a);function Xc(e){return(Xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nu(e,t){return(nu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ru(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iu(e);if(t){var o=iu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ou(this,n)}}function ou(e,t){return!t||"object"!==Xc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function iu(e){return(iu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var au=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nu(e,t)}(s,e);var t,n,o,i=ru(s);function s(){return eu(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"createDownloadToken",value:function(e,t){this.create({data:{objectId:e},resource:"/api/downloadproxy/api/tokens",formatData:function(e){return new r.a.Model(e)},eventPrefix:"token:".concat(e),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"linkRetrievalError")),callback:t})}},{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&tu(t.prototype,n),o&&tu(t,o),s}(gr.a),su=n(178);function cu(e){return(cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fu(e,t){return(fu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(e,t){return!t||"object"!==cu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yu=function(e){return"/api/domain/v2/objects/".concat(e,"/resources")},gu=function(e){return"/api/domain/v2/objects/".concat(e)},bu=function(e){return"/api/domain/v2/objects/".concat(e)},mu=function(e){return"/api/domain/v2/objects/".concat(e)},vu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fu(e,t)}(s,e);var t,n,r,o=pu(s);function s(){return uu(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"addResource",value:function(e,t,n){var r=this,o=this.chain();i.each(t,(function(i,s){o.create({resource:yu(e),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(e){return new su.a(e)},callback:n,data:i,successHandler:s+1===t.length&&r.alertService.success(Wn.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(e,t){return this.get({resource:gu(e),formatData:function(e){return new su.a(e)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(e),callback:t})}},{key:"updateResource",value:function(e,t,n){var r=this,o=t.pick(["id","name"]);this.update({resource:bu(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(t){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(e,t,n){var r=this;this.delete({resource:mu(t),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(Wn.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"}}])&&lu(t.prototype,n),r&&lu(t,r),s}(gr.a),Su=n(236);function wu(e){return(wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eu(e,t){return(Eu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ku(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pu(e);if(t){var o=Pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ru(this,n)}}function Ru(e,t){return!t||"object"!==wu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pu(e){return(Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _u=function(e){return"/api/domain/v2/objects/".concat(e,"/subtitles")},Au=function(e){return"/api/domain/v2/objects/".concat(e)},Tu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Eu(e,t)}(i,e);var t,n,r,o=ku(i);function i(){return Ou(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"addSubtitle",value:function(e,t,n){this.create({resource:_u(e),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(e){return new Su.a(e)},callback:n,data:t,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(e,t,n){var r=this;this.delete({resource:Au(t),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(Wn.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"}}])&&Cu(t.prototype,n),r&&Cu(t,r),i}(gr.a),xu=n(185);function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bu(e);if(t){var o=Bu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ju(this,n)}}function ju(e,t){return!t||"object"!==Lu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bu(e){return(Bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mu=function(e){return"/api/domain/v2/objects/".concat(e,"/links")},Uu=function(e){return"/api/domain/v2/objects/".concat(e)},Fu=function(e){return"/api/domain/v2/objects/".concat(e)},Hu=function(e){return"/api/domain/v2/objects/".concat(e)},zu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Iu(e,t)}(i,e);var t,n,r,o=Vu(i);function i(){return Nu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"addLink",value:function(e,t,n){this.create({resource:Mu(e),eventPrefix:a.f.CREATE_LINK,formatData:function(e){return new xu.a(e)},callback:n,data:t,successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(e,t){return this.get({resource:Uu(e),formatData:function(e){return new xu.a(e)},eventPrefix:"".concat(a.f.LINK,":").concat(e),callback:t})}},{key:"updateLink",value:function(e,t,n){var r=this,o=t.pick(["id","name"]);this.update({resource:Fu(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(t){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(Wn.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(e,t,n){var r=this;this.delete({resource:Hu(t),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(Wn.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(Wn.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"}}])&&Du(t.prototype,n),r&&Du(t,r),i}(gr.a);function qu(e){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yu(e,t){return(Yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$u(e);if(t){var o=$u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ju(this,n)}}function Ju(e,t){return!t||"object"!==qu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $u(e){return($u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yu(e,t)}(n,e);var t=Gu(n);function n(){return Wu(this,n),t.apply(this,arguments)}return n}(r.a.Model);function Qu(e){return(Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function el(e,t){return(el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rl(e);if(t){var o=rl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nl(this,n)}}function nl(e,t){return!t||"object"!==Qu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ol=function(){return"/api/domain/v2/people"},il=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&el(e,t)}(i,e);var t,n,r,o=tl(i);function i(){return Zu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createPerson",value:function(e,t){if(e)return this.create({resource:ol(),eventPrefix:a.f.CREATE_PERSON,formatData:function(e){return new Ku(e)},data:{name:e},callback:t})}},{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}}])&&Xu(t.prototype,n),r&&Xu(t,r),i}(gr.a);function al(e){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cl(e,t){return(cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ul(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fl(e);if(t){var o=fl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ll(this,n)}}function ll(e,t){return!t||"object"!==al(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fl(e){return(fl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cl(e,t)}(n,e);var t=ul(n);function n(){return sl(this,n),t.apply(this,arguments)}return n}(r.a.Model);function hl(e){return(hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gl(e,t){return(gl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vl(e);if(t){var o=vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ml(this,n)}}function ml(e,t){return!t||"object"!==hl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sl=function(){return"/api/domain/v2/companies"},wl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gl(e,t)}(i,e);var t,n,r,o=bl(i);function i(){return dl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"createCompany",value:function(e,t){if(e)return this.create({resource:Sl(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(e){return new pl(e)},data:{name:e},callback:t})}},{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}}])&&yl(t.prototype,n),r&&yl(t,r),i}(gr.a);function Ol(e){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kl(e,t){return(kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_l(e);if(t){var o=_l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pl(this,n)}}function Pl(e,t){return!t||"object"!==Ol(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _l(e){return(_l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Al=function(e){return"/api/domain/v2/objects/".concat(e)},Tl=function(e){return"/api/domain/v2/objects/".concat(e,"/fields")},xl=function(e){return"/api/domain/v2/objects/".concat(e)},Ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kl(e,t)}(s,e);var t,n,r,o=Rl(s);function s(){return Cl(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"updateField",value:function(e,t){this.update({resource:Al(e.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(e.id),data:e,callback:t})}},{key:"addField",value:function(e,t,n){var r=i.omit(t,"id");this.create({resource:Tl(e),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(e,t){this.delete({resource:xl(e),eventPrefix:a.f.DELETE_FIELD,callback:t})}},{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}}])&&El(t.prototype,n),r&&El(t,r),s}(gr.a);var Nl=n(221),Dl=n(693),Il=n.n(Dl),Vl=n(160),jl=n(694),Bl=n.n(jl);function Ml(e){return(Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fl(e,t){return(Fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ql(e);if(t){var o=ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zl(this,n)}}function zl(e,t){return!t||"object"!==Ml(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ql(e){return(ql=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fl(e,t)}(i,e);var t,n,r,o=Hl(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Bl.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&Ul(t.prototype,n),r&&Ul(t,r),i}(r.a.Component),Yl=n(628),Gl=n(240),Jl=n(44),$l=n(161),Kl=n.n($l),Ql=n(695),Zl=n.n(Ql);class Xl extends r.a.Behavior{initialize(){this.listenTo(this.options.channelName,Jl.a.FILES_SELECTED,this.onDragLeave);this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}get events(){return{drop:"onDrop",dragover:"onDragOver",["dragleave ."+Kl.a.dropArea]:"onDragLeave"}}get lang(){return"shared.behaviors.fileDrop"}lock(){this.locked=!0}unlock(){this.locked=!1}onDrop(){this.locked||this.$el.removeClass(Kl.a.dragOver)}onDragOver(e){this.locked||Gl.a.isFileDrag(e)&&(this.$el.addClass(Kl.a.dragOver),e.preventDefault())}onDragLeave(){this.locked||this.$el.removeClass(Kl.a.dragOver)}onRender(){this.$el.append(Zl()({styles:Kl.a,fileDropText:Wn.a.getPhrase(this.lang,"fileDrop")}))}}var ef=n(736),tf=n(737),nf=n(135),rf=n(99),of=n(309),af=n(732),sf=n.n(af),cf=n(733),uf=n.n(cf);function lf(e){return(lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pf(e,t){return(pf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yf(e);if(t){var o=yf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return df(this,n)}}function df(e,t){return!t||"object"!==lf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yf(e){return(yf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pf(e,t)}(c,e);var t,n,o,s=hf(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=g.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(of.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(C.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 e=r.a.AppLinkHelper.getCurrentAppLink();if(e.application!==a.b.MIGRATION_WIZARD)return!1;var t=[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(t,e.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var e=this.getUI("makeAvailable");e instanceof jQuery&&e.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(e){return e.get("status")!==rf.a.Draft}))||pt.a.isPublishingLibraries(this.customerMetadata)||pt.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var e=this.isDisabled();return{styles:sf.a,disabled:e}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return uf.a}},{key:"behaviors",get:function(){return[{behaviorClass:nf.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:$o.b.libraries}}}])&&ff(t.prototype,n),o&&ff(t,o),c}(r.a.View),bf=n(47);function mf(e){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wf(e,t,n){return(wf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=kf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Of(e,t){return(Of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kf(e);if(t){var o=kf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ef(this,n)}}function Ef(e,t){return!t||"object"!==mf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kf(e){return(kf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Of(e,t)}(c,e);var t,n,o,s=Cf(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,o=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=i.omit(e,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(e){r.push("".concat(e,":").concat(n[e]))})),r.length&&(r.sort(),t+=":".concat(r.join(":"))),t}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,Jl.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,Jl.a.FILES_ADDED,this.onFilesAdded),this.configDataService=g.a.getInstance(m.a.Config,this),this.videoUploadService=g.a.getInstance(m.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=g.a.getInstance(m.a.MigrationVideo,this)}},{key:"regions",value:function(){var e;return vf(e={},a.n.TOP_BANNER,".top-banner-region"),vf(e,a.n.POPUP,".popup-region"),vf(e,a.n.TOP_NAV,".top-nav-region"),vf(e,a.n.CONTENT,".content-region"),vf(e,a.n.LEFT_NAV,".left-nav-region"),vf(e,a.n.PAGE_HEADER,".page-header-region"),vf(e,a.n.ALERT,".alert-region"),vf(e,a.n.PAGE_FOOTER,".page-footer-region"),vf(e,a.n.HIDDEN,".hidden-region"),e}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logAction(e,t)}},{key:"logAction",value:function(e,t){var n={actionType:Ae.UserAction.Upload,entity:Ae.EntityType.Video,location:Ae.LocationContext.VideoUpload,workflowPhase:Ae.WorkflowPhase.Start,descriptor:A.a.mapInteractionType(t)};A.a.logUserAction(e,n)}},{key:"onFilesAdded",value:function(){var e=r.a.AppLinkHelper.getCurrentAppLink(),t=e.application===a.b.LIBRARY_EDITOR&&e.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};t&&(n.params={folderId:e.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var e=Vl.contentBox;return this.options.showLeftNav&&(e+=" ".concat(Vl.leftNavContentBox)),e}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(e){this.options=i.extend({},this.defaults,e),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var e=this.getRegion(a.n.CONTENT).currentView;e?e.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new gf({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new ef.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new tf.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var e=this.configDataService.getVersion();e&&this.showChildView(a.n.PAGE_FOOTER,new Wl({version:e}))}},{key:"showChildView",value:function(e,t,n){e===a.n.CONTENT&&$(window).scrollTop(0),wf(kf(c.prototype),"showChildView",this).call(this,e,t,n)}},{key:"handleNoIntercom",value:function(){var e=this.migrationVideoDataService.getCustomerMetadata();e&&e.get("customerMeta")!==bf.a.LibraryPublished&&this.getUI("alertRegion").removeClass(Vl.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Vl,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 Il.a}},{key:"className",get:function(){return Vl.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:Yl.a,channelName:this.channelName},{behaviorClass:Xl,channelName:this.channelName}]}}])&&Sf(t.prototype,n),o&&Sf(t,o),c}(r.a.LayoutView);var Pf=n(43);class _f extends r.a.Service{initialize(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(mr.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(mr.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}get name(){return vr.b.ContextualSearch}get lang(){return"search.services"}getSearchContext(){return this.searchContext}onRouteChange(e,t){t.isAppRoute&&this.setSearchContext(e)}onTypeaheadToggle(e){if(e.open||this.searchContext.get("filterValue"))return;const t=nt.a.getCurrentContext().appLink;this.setSearchContext(t)}setSearchContext(e){const t=this.isValidSearchContext(e);if(t)this.updateSearchContext(t,e.args);else if(!this.inSearchView(e)){o.Radio.channel(mr.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}}updateSearchContext(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}setFilterValue(e){const t={filterValue:e,title:e};this.searchContext.set(t)}resetSearchContext(){this.searchContext.clear({silent:!0})}isValidSearchContext(e){return this.appVariables||(this.appVariables=g.a.getInstance(Pf.a.SEARCH,this)),i.find(((e,t)=>{const n=[];return t.folder&&n.push({appLink:t.folder,searchTag:Wn.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:(e,t)=>{g.a.getInstance(vr.a.Library,t).getFolder(i.first(e.appLink.args).toString(),e=>{t.setFilterValue(e.get("name")),g.a.releaseInstance(vr.a.Library)})}}),t.series&&n.push({appLink:t.series,searchTag:Wn.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:(e,t)=>{g.a.getInstance(vr.a.Series,t).getSeries(i.first(e.appLink.args).toString(),e=>{const n=e instanceof r.a.Model?e.get("name"):e.name;t.setFilterValue(n),g.a.releaseInstance(vr.a.Series)})}}),n})(this.lang,this.appVariables.appLinks),t=>e.application===t.appLink.application&&e.action===t.appLink.action)}inSearchView(e){const t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}}var Af=n(241);class Tf extends r.a.Service{constructor(){super()}get name(){return vr.b.Notification}initDataServices(){this.notificationDataService=g.a.getInstance(vr.a.Notification,this),this.notificationSocketService=g.a.getInstance(vr.a.NotificationSocket,this),this.userDataService=g.a.getInstance(vr.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}bindSocketListeners(){const e=br.a.NOTIFICATIONS;this.listenTo(mr.b.NOTIFICATIONS_SOCKET,e+":new:sync",this.addNewNotification),this.listenTo(mr.b.NOTIFICATIONS_SOCKET,e+":count:sync",this.updateUnreadCount),this.listenTo(mr.b.NOTIFICATIONS,e+":seen",this.updateUnreadCount)}bindAppListeners(){this.listenTo(mr.a.NOTIFICATIONS,Af.a.Read,this.markNotificationRead)}getDataServices(){this.dataServicesExist()||this.initDataServices()}dataServicesExist(){return!!this.notificationSocketService&&!!this.notificationDataService}addNewNotification(e){this.userDataService.getCurrentUser(t=>{this.notificationDataService.getNotifications(t.id,null,br.a.NOTIFICATIONS,t=>{t.add(e,{at:0})})})}updateUnreadCount(e=0){E.a.get(br.a.NOTIFICATIONS).set("unreadCount",e)}getNotifications(e,t,n){this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser(r=>{this.notificationDataService.getNotifications(r.id,e,t.toString(),n)})}getNotificationsMetadata(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),E.a.get(br.a.NOTIFICATIONS)}markNotificationsSeen(){this.notificationDataService.markSeen()}markNotificationRead(e){this.notificationDataService.markRead(e)}getNotificationsCursors(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}var xf,Lf,Nf=n(54),Df=n(87),If=n(734),Vf=n(8),jf=(xf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}xf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Bf=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return jf(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Nf.a):e.method?e.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=e.headers;i&&Object.keys(i).forEach((function(e){o.setRequestHeader(e,i[e])})),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){o.abort(),r(new Nf.a)}),e.timeout&&(o.timeout=e.timeout),o.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Df.b(o.status,o.statusText,o.response||o.responseText)):r(new Nf.b(o.statusText,o.status))},o.onerror=function(){t.logger.log(Vf.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new Nf.b(o.statusText,o.status))},o.ontimeout=function(){t.logger.log(Vf.a.Warning,"Timeout from HTTP request."),r(new Nf.c)},o.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(Df.a),Mf=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uf=function(e){function t(t){var n=e.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Bf(t):n.httpClient=new If.a(t),n}return Mf(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Nf.a):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(Df.a),Ff=n(735);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(Lf||(Lf={}));var Hf,zf=n(21),qf=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new zf.d(this,e)},e}(),Wf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Yf=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(Hf||(Hf={}));var Gf,Jf,$f=function(){function e(e,t,n,r){var o=this;zf.a.isRequired(e,"connection"),zf.a.isRequired(t,"logger"),zf.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new Ff.a,this.connection.onreceive=function(e){return o.processIncomingData(e)},this.connection.onclose=function(e){return o.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Hf.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:Lf.Ping})}return e.create=function(t,n,r,o){return new e(t,n,r,o)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==Hf.Disconnected&&this.connectionState!==Hf.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return Wf(this,void 0,void 0,(function(){var e;return Yf(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Hf.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Hf.Connecting,this.logger.log(Vf.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=Hf.Connected,this.connectionStarted=!0,this.logger.log(Vf.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=Hf.Disconnected,this.logger.log(Vf.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return Wf(this,void 0,void 0,(function(){var e,t,n,r=this;return Yf(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(Vf.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return o.sent(),this.logger.log(Vf.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log(Vf.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return Wf(this,void 0,void 0,(function(){var e;return Yf(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===Hf.Disconnected?(this.logger.log(Vf.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Hf.Disconnecting?(this.logger.log(Vf.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Hf.Disconnecting,this.logger.log(Vf.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(Vf.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],s=i[1],c=this.createStreamInvocation(e,n,s),u=new qf;return u.cancelCallback=function(){var e=t.createCancelInvocation(c.invocationId);return delete t.callbacks[c.invocationId],o.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[c.invocationId]=function(e,t){t?u.error(t):e&&(e.type===Lf.Completion?e.error?u.error(new Error(e.error)):u.complete():u.next(e.item))},o=this.sendWithProtocol(c).catch((function(e){u.error(e),delete t.callbacks[c.invocationId]})),this.launchStreams(a,o),u},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,i));return this.launchStreams(o,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],s=this.createInvocation(e,n,!1,a),c=new Promise((function(e,n){t.callbacks[s.invocationId]=function(t,r){r?n(r):t&&(t.type===Lf.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(s).catch((function(e){n(e),delete t.callbacks[s.invocationId]}));t.launchStreams(i,r)}));return c},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case Lf.Invocation:this.invokeClientMethod(r);break;case Lf.StreamItem:case Lf.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===Lf.Completion&&delete this.callbacks[r.invocationId],o(r));break;case Lf.Ping:break;case Lf.Close:this.logger.log(Vf.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log(Vf.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var o="Error parsing handshake response: "+e;this.logger.log(Vf.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log(Vf.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log(Vf.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return Wf(e,void 0,void 0,(function(){return Yf(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Hf.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log(Vf.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log(Vf.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log(Vf.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log(Vf.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Hf.Disconnecting?this.completeClose(e):this.connectionState===Hf.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===Hf.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=Hf.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log(Vf.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return Wf(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return Yf(this,(function(s){switch(s.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log(Vf.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=Hf.Reconnecting,e?this.logger.log(Vf.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log(Vf.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log(Vf.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==Hf.Reconnecting)return this.logger.log(Vf.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}s.label=1;case 1:return null===o?[3,7]:(this.logger.log(Vf.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,o)}))]);case 2:if(s.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Hf.Reconnecting)return this.logger.log(Vf.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(s.sent(),this.connectionState=Hf.Connected,this.logger.log(Vf.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log(Vf.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return i=s.sent(),this.logger.log(Vf.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==Hf.Reconnecting?(this.logger.log(Vf.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log(Vf.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log(Vf.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return{arguments:t,streamIds:r,target:e,type:Lf.Invocation};var o=this.invocationId;return this.invocationId++,{arguments:t,invocationId:o.toString(),streamIds:r,target:e,type:Lf.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var o;o=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var o in e)r(o)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var o=e[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,t[i]=o,n.push(i.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:Lf.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:Lf.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:Lf.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:Lf.Completion}:{invocationId:e,result:n,type:Lf.Completion}},e}(),Kf=[0,2e3,1e4,3e4,null],Qf=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):Kf}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(Gf||(Gf={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(Jf||(Jf={}));var Zf=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),Xf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ep=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},tp=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new Zf,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return Xf(this,void 0,void 0,(function(){var n,r,o,i;return ep(this,(function(a){switch(a.label){case 0:if(zf.a.isRequired(e,"url"),zf.a.isRequired(t,"transferFormat"),zf.a.isIn(t,Jf,"transferFormat"),this.url=e,this.logger.log(Vf.a.Trace,"(LongPolling transport) Connecting."),t===Jf.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===Jf.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),o=e+"&_="+Date.now(),this.logger.log(Vf.a.Trace,"(LongPolling transport) polling: "+o+"."),[4,this.httpClient.get(o,n)];case 2:return 200!==(i=a.sent()).statusCode?(this.logger.log(Vf.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new Nf.b(i.statusText||"",i.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},e.prototype.getAccessToken=function(){return Xf(this,void 0,void 0,(function(){return ep(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return Xf(this,void 0,void 0,(function(){var n,r,o,i;return ep(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log(Vf.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log(Vf.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log(Vf.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new Nf.b(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log(Vf.a.Trace,"(LongPolling transport) data received. "+Object(zf.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log(Vf.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof Nf.c?this.logger.log(Vf.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log(Vf.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(Vf.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return Xf(this,void 0,void 0,(function(){return ep(this,(function(t){return this.running?[2,Object(zf.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return Xf(this,void 0,void 0,(function(){var e,t;return ep(this,(function(n){switch(n.label){case 0:this.logger.log(Vf.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(Vf.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=n.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return n.sent(),this.logger.log(Vf.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(Vf.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log(Vf.a.Trace,e),this.onclose(this.closeError)}},e}(),np=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},rp=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},op=function(){function e(e,t,n,r,o){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=o,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return np(this,void 0,void 0,(function(){var n,r=this;return rp(this,(function(o){switch(o.label){case 0:return zf.a.isRequired(e,"url"),zf.a.isRequired(t,"transferFormat"),zf.a.isIn(t,Jf,"transferFormat"),this.logger.log(Vf.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(t===Jf.Text){var a;if(zf.c.isBrowser||zf.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:!0});else{var s=r.httpClient.getCookieString(e);a=new r.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:s}})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log(Vf.a.Trace,"(SSE transport) data received. "+Object(zf.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");i?r.close(t):o(t)},a.onopen=function(){r.logger.log(Vf.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(e){return void o(e)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return np(this,void 0,void 0,(function(){return rp(this,(function(t){return this.eventSource?[2,Object(zf.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),ip=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ap=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},sp=function(){function e(e,t,n,r,o){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=e,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return ip(this,void 0,void 0,(function(){var n,r=this;return ap(this,(function(o){switch(o.label){case 0:return zf.a.isRequired(e,"url"),zf.a.isRequired(t,"transferFormat"),zf.a.isIn(t,Jf,"transferFormat"),this.logger.log(Vf.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),s=!1;zf.c.isNode&&a&&(i=new r.webSocketConstructor(e,void 0,{headers:{Cookie:""+a}})),i||(i=new r.webSocketConstructor(e)),t===Jf.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(t){r.logger.log(Vf.a.Information,"WebSocket connected to "+e+"."),r.webSocket=i,s=!0,n()},i.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)},i.onmessage=function(e){r.logger.log(Vf.a.Trace,"(WebSockets transport) data received. "+Object(zf.f)(e.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(e.data)},i.onclose=function(e){if(s)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(Vf.a.Trace,"(WebSockets transport) sending data. "+Object(zf.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(Vf.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e}(),cp=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},up=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},lp=null,fp=null;if(zf.c.isNode){var pp=require;lp=pp("ws"),fp=pp("eventsource")}var hp=function(){function e(e,t){void 0===t&&(t={}),this.features={},this.negotiateVersion=1,zf.a.isRequired(e,"url"),this.logger=Object(zf.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,zf.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?zf.c.isNode&&!t.WebSocket&&lp&&(t.WebSocket=lp):t.WebSocket=WebSocket,zf.c.isNode||"undefined"==typeof EventSource||t.EventSource?zf.c.isNode&&!t.EventSource&&void 0!==fp&&(t.EventSource=fp):t.EventSource=EventSource,this.httpClient=t.httpClient||new Uf(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return cp(this,void 0,void 0,(function(){var t;return up(this,(function(n){switch(n.label){case 0:return e=e||Jf.Binary,zf.a.isIn(e,Jf,"transferFormat"),this.logger.log(Vf.a.Debug,"Starting connection with transfer format '"+Jf[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log(Vf.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(Vf.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new dp(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return cp(this,void 0,void 0,(function(){var t=this;return up(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(Vf.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(Vf.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return cp(this,void 0,void 0,(function(){var t;return up(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log(Vf.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(Vf.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return cp(this,void 0,void 0,(function(){var t,n,r,o,i,a;return up(this,(function(s){switch(s.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,s.label=1;case 1:return s.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==Gf.WebSockets?[3,3]:(this.transport=this.constructTransport(Gf.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return s.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var e;return up(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(t)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,i.accessTokenFactory=function(){return e}),r++,[2]}}))},i=this,s.label=6;case 6:return[5,o()];case 7:s.sent(),s.label=8;case 8:if(n.url&&r<100)return[3,6];s.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:s.sent(),s.label=11;case 11:return this.transport instanceof tp&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(Vf.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=s.sent(),this.logger.log(Vf.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return cp(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return up(this,(function(c){switch(c.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=c.sent())&&((t={}).Authorization="Bearer "+r,n=t),c.label=2;case 2:o=this.resolveNegotiateUrl(e),this.logger.log(Vf.a.Debug,"Sending negotiation request: "+o+"."),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.httpClient.post(o,{content:"",headers:n})];case 4:return 200!==(i=c.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+i.statusCode))]:((!(a=JSON.parse(i.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return s=c.sent(),this.logger.log(Vf.a.Error,"Failed to complete negotiation with the server: "+s),[2,Promise.reject(s)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return cp(this,void 0,void 0,(function(){var o,i,a,s,c,u,l,f,p,h,d;return up(this,(function(y){switch(y.label){case 0:return o=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log(Vf.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(o,r)]):[3,2];case 1:return y.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],s=n,c=0,u=a,y.label=3;case 3:return c<u.length?(l=u[c],(f=this.resolveTransportOrError(l,t,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,s)return[3,9];y.label=5;case 5:return y.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return s=y.sent(),[3,8];case 7:return p=y.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(e,s.connectionToken),y.label=9;case 9:return y.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return y.sent(),this.connectionId=s.connectionId,[2];case 11:return h=y.sent(),this.logger.log(Vf.a.Error,"Failed to start the transport '"+l.transport+"': "+h),s=void 0,i.push(l.transport+" failed: "+h),"Connecting "!==this.connectionState?(d="Failed to select transport before stop() was called.",this.logger.log(Vf.a.Debug,d),[2,Promise.reject(new Error(d))]):[3,12];case 12:return c++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case Gf.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new sp(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case Gf.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new op(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case Gf.LongPolling:return new tp(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=Gf[e.transport];if(null==r)return this.logger.log(Vf.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log(Vf.a.Debug,"Skipping transport '"+Gf[r]+"' because it was disabled by the client."),new Error("'"+Gf[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return Jf[e]})).indexOf(n)>=0))return this.logger.log(Vf.a.Debug,"Skipping transport '"+Gf[r]+"' because it does not support the requested transfer format '"+Jf[n]+"'."),new Error("'"+Gf[r]+"' does not support "+Jf[n]+".");if(r===Gf.WebSockets&&!this.options.WebSocket||r===Gf.ServerSentEvents&&!this.options.EventSource)return this.logger.log(Vf.a.Debug,"Skipping transport '"+Gf[r]+"' because it is not supported in your environment.'"),new Error("'"+Gf[r]+"' is not supported in your environment.");this.logger.log(Vf.a.Debug,"Selecting transport '"+Gf[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log(Vf.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log(Vf.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(Vf.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log(Vf.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log(Vf.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log(Vf.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(Vf.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!zf.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(Vf.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var dp=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new yp,this.transportResult=new yp,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new yp),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return cp(this,void 0,void 0,(function(){var t,n,r;return up(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new yp,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),t.resolve(),[3,5];case 4:return r=o.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,o=0,i=e;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},e}(),yp=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),gp=n(116),bp=n(125),mp=function(){function e(){this.name="json",this.version=1,this.transferFormat=Jf.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=gp.a.instance);for(var n=[],r=0,o=bp.a.parse(e);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case Lf.Invocation:this.isInvocationMessage(a);break;case Lf.StreamItem:this.isStreamItemMessage(a);break;case Lf.Completion:this.isCompletionMessage(a);break;case Lf.Ping:case Lf.Close:break;default:t.log(Vf.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return bp.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),vp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sp={trace:Vf.a.Trace,debug:Vf.a.Debug,info:Vf.a.Information,information:Vf.a.Information,warn:Vf.a.Warning,warning:Vf.a.Warning,error:Vf.a.Error,critical:Vf.a.Critical,none:Vf.a.None};var wp=function(){function e(){}return e.prototype.configureLogging=function(e){if(zf.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=Sp[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new zf.b(t)}else this.logger=new zf.b(e);return this},e.prototype.withUrl=function(e,t){return zf.a.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=vp({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return zf.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Qf(e):this.reconnectPolicy=e:this.reconnectPolicy=new Qf,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new hp(this.url,e);return $f.create(t,this.logger||gp.a.instance,this.protocol||new mp,this.reconnectPolicy)},e}();class Op extends x.Object{constructor(e){super(),this.subscribeEvent="subscribe",this.reconnectTimeout=5e3,this.reconnectAttempts=100,this.reconnectTries=0,this.connection=this.createConnection(e),this.authEndpoint=e.authEndpoint,this.setProviderOptions(e),this.attachSocketEvents(),!1===e.lazy&&this.openConnection()}setProviderOptions(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}openConnection(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Hf.Connecting),this.connect()}connect(){return $.when(this.getConnectionToken(),this.connection.start()).then(e=>this.start.apply(this,e),e=>this.onConnectionError.apply(this,e))}start(e){return this.connection.invoke(this.subscribeEvent,e.token).then(()=>this.setConnectionState(Hf.Connected)).catch(e=>this.onConnectionError(e))}stop(){if(this.isConnectedOrConnecting())return this.connection.stop()}attachSocketEvents(){this.connection.onclose(()=>this.onConnectionError),this.connection.onreconnected(()=>this.onReconnect)}onReconnect(){this.reconnectTries=0}onConnectionError(e){e?console.log("Connection Error. Reason: "+e):console.log("Connection Error."),this.setConnectionState(Hf.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout(()=>(this.reconnectTries++,this.openConnection()),this.reconnectTimeout||5e3)}createConnection(e){const t=new wp,n=`${Or.a.removeTrailingSlash(e.endpoint)}/hubs/${e.hubName}`,r={logger:Vf.a.Error};return e.logging&&(r.logger=Vf.a.Debug),t.withUrl(n,r).build()}getConnectionToken(){const e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}setConnectionState(e){e===Hf.Connected&&console.log("Connected!"),e===Hf.Disconnected&&console.log("Disconnected!"),this.connectionState=e}isConnectedOrConnecting(){return this.connectionState===Hf.Connecting||this.connectionState===Hf.Connected||this.connectionState===Hf.Reconnecting}create(e,t,n){this.openConnection(),this.rpc(e,t,n)}read(e,t){this.openConnection(),this.subscribe(e,t)}update(e,t,n){this.openConnection(),this.rpc(e,t,n)}delete(e,t){this.openConnection(),this.rpc(e,null,t)}parseError(){return lr.a}rpc(e,t,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.connection.invoke(e,t).then(e=>r.trigger(o,...e)).catch(e=>r.trigger(i,...e))}subscribe(e,t){const{channel:n,successEvent:r}=t;this.connection.on(e,(...e)=>{n.trigger(r,...e)})}}class Cp extends Op{get name(){return b.a.Notifications}}var Ep=n(310),kp=n(36);function Rp(e){return(Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _p(e,t){return(_p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ap(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xp(e);if(t){var o=xp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tp(this,n)}}function Tp(e,t){return!t||"object"!==Rp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xp(e){return(xp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_p(e,t)}(i,e);var t,n,r,o=Ap(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Wn.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return t=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:Wn.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:Wn.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:Wn.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&Pp(t.prototype,n),r&&Pp(t,r),i}(kp.a);function Np(e){return(Np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vp(e,t,n){return(Vp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Up(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function jp(e,t){return(jp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Up(e);if(t){var o=Up(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mp(this,n)}}function Mp(e,t){return!t||"object"!==Np(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Up(e){return(Up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jp(e,t)}(s,e);var t,n,o,i=Bp(s);function s(){return Dp(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"addFiles",value:function(e){var t=this;g.a.getInstance(a.g.Library).getLibraries((function(n){g.a.releaseInstance(a.g.Library),n&&n.length?Vp(Up(s.prototype),"addFiles",t).call(t,e):r.a.ErrorHelper.throw(new Lp)}))}}])&&Ip(t.prototype,n),o&&Ip(t,o),s}(Ep.a);class Hp extends r.a.Model{get idAttribute(){return"masterVideoId"}}class zp extends r.a.Collection{get model(){return Hp}}var qp=n(124);class Wp extends r.a.Service{get name(){return vr.b.PendingItems}get channelName(){return mr.c.PENDING_ITEMS}initialize(){this.videoDataService=g.a.getInstance(vr.a.Video,this),this.videoUploadDataService=g.a.getInstance(vr.a.VideoUpload,this)}clearPendingItem(e,t){switch(e.get("pendingProcessStatus")){case qp.a.Completed:case qp.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.updateViewModel(),this.videoDataService.clearVideoCache(),i.isFunction(t)&&t()});break;case qp.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.videoDataService.clearVideoCache(),this.updateViewModel(),i.isFunction(t)&&t()})}}forceFetchPendingItems(e){this.fetchPendingItems(e)}retryPendingItem(e,t){this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],()=>{this.fetchPendingItems({resetTimeout:!1,callback:t})})}itemStatusChanged(){o.Radio.channel(this.channelName).trigger(Jl.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}getPendingItems(){return this.pendingItems||(this.pendingItems=new zp,this.listenTo(this.pendingItems,"change:foregroundComplete",e=>{if(!e.get("foregroundComplete"))return;this.itemStatusChanged();e.get("video")&&o.Radio.channel(this.channelName).trigger(Jl.a.PENDING_ITEM_READY_TO_WATCH,e)}),this.listenTo(this.pendingItems,"remove",e=>{e.get("clearing")||this.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),e=>{e.get("status")===qp.a.Completed&&this.itemStatusChanged()})}),this.fetchPendingItems()),this.pendingItems}fetchPendingItems(e={resetTimeout:!0}){this.isDestroyed()||this.videoUploadDataService.getPendingItems(t=>{const n=i.map(t,e=>e.masterVideoId.toString()),o=n=>{i.each(t,e=>{const t=n.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===rf.a.Processing&&t.set("status",rf.a.Published))}),this.pendingItems.set(t),this.updateViewModel(),e.resetTimeout&&window.setTimeout(i.bind(this.fetchPendingItems,this),this.getTimeoutLength()),i.isFunction(e.callback)&&e.callback()};n.length?this.videoDataService.getVideos(n,o):o(new r.a.Collection)})}updateViewModel(){const e=E.a.get("process:progress");if(!this.pendingItems||!this.pendingItems.length)return void e.set({progress:0,items:0});const t=this.pendingItems.where(e=>e.get("pendingProcessStatus")>=0);let n=0;i.each(t,e=>n+=e.get("foregroundProgress"));const r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}getTimeoutLength(){return this.pendingItems.any(e=>e.get("pendingProcessStatus")===qp.a.Processing)?5e3:3e4}}var Yp=n(101);function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kp(e,t,n){return(Kp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eh(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Qp(e,t){return(Qp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eh(e);if(t){var o=eh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xp(this,n)}}function Xp(e,t){return!t||"object"!==Gp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function eh(e){return(eh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var th=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qp(e,t)}(i,e);var t,n,r,o=Zp(i);function i(){return Jp(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Kp(eh(i.prototype),"initialize",this).call(this),this.alertService=g.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,Jl.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(e){var t=e.get("video");if(t){var n=Wn.a.getPhrase(this.lang,"readyToWatch",{videoName:rt.v.escapeExpression(t.get("name"))});Yp.a.isDone(e)||(n+=Wn.a.getPhrase(this.lang,"processingResolutions"));var r={heading:Wn.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:t.get("name")}),message:n,type:yr.a.Success,appLinkText:Wn.a.getPhrase(this.lang,"goToVideo",{videoName:t.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[t.get("id")]}};this.alertService.createAlert(r)}}},{key:"lang",get:function(){return"upload.services"}}])&&$p(t.prototype,n),r&&$p(t,r),i}(Wp),nh=n(148),rh=n.n(nh),oh=n(229);function ih(e){return(ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ah(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ch(e,t){return(ch=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fh(e);if(t){var o=fh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lh(this,n)}}function lh(e,t){return!t||"object"!==ih(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fh(e){return(fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ph=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ch(e,t)}(c,e);var t,n,r,s=uh(c);function c(){var e;return ah(this,c),(e=s.apply(this,arguments)).disabledLibraryIds=[],e}return t=c,(n=[{key:"initialize",value:function(){var e=this;this.videoDataService=g.a.getInstance(a.g.Video,this),this.libraryDataService=g.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(t){return e.customLibraries=t}))}},{key:"onDragStart",value:function(e,t){var n;this.videos=e,this.collectionIdentifier=t,$("body").addClass(rh.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(e){return!!this.videos&&!i.any(this.videos,(function(t){return t.categories.any((function(t){return t.id===e.id}))}))}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(e){r||(r=e.categories.find((function(e){return e.get("id")===+n.collectionIdentifier.id})),o=e)}));var a=this.videos,s=this.videos.map((function(e){return e.get("id")})),c=1===s.length?o.get("name"):"",u=oh.a.moveVideoAlert(r.get("name"),e.get("name"),e.get("id"),s.length,c);this.videoDataService.moveVideos(s,e.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(e){return e.collection.remove(e)})),n.logAction(i.map(s,(function(t){return{id:t,newParentId:e.get("id"),oldParentId:r.get("id"),count:s.length}})),t)}),u),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(rh.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var e=this,t=this.customLibraries.find((function(t){return!!rt.f.getModelFromCollection(e.collectionIdentifier.id,t.get("children"))})),n=[];this.videos.forEach((function(e){e.get("libraries").forEach((function(e){e.get("id").toString()!==t.get("id").toString()&&n.push(e.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(e,t){var n=A.a.mergeOptions({actionType:Ae.UserAction.Move,entity:Ae.EntityType.Video,descriptor:Ae.InteractionTypeDescriptor.DragDrop},t);A.a.logUserAction(e,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}}])&&sh(t.prototype,n),r&&sh(t,r),c}(r.a.Service),hh=n(162),dh=n(92),yh=n(195);function gh(e){return(gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vh(e,t){return(vh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oh(e);if(t){var o=Oh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wh(this,n)}}function wh(e,t){return!t||"object"!==gh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oh(e){return(Oh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ch=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vh(e,t)}(c,e);var t,n,i,s=Sh(c);function c(){return bh(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.libraryDataService=g.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(e){this.libraries=e}},{key:"accept",value:function(e){return!(!this.folder||this.isSameFolder(e)||!this.isSameLibrary(e)||this.isParentFolder(e)||this.isChildFolder(e))}},{key:"isSameFolder",value:function(e){return this.folder.id===e.id}},{key:"isSameLibrary",value:function(e){var t=rt.f.getLibrary(this.folder.id,this.libraries),n=rt.f.getLibrary(e.id,this.libraries);return!(!t||!n)&&t.id===n.id}},{key:"isParentFolder",value:function(e){var t=rt.f.getParent(this.folder.id,this.libraries);return!!t&&t.id===e.id}},{key:"isChildFolder",value:function(e){for(var t=rt.f.getModelFromCollection(e.id,this.libraries);t&&t.collection&&t.collection.parent;)if((t=t.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(e){return rt.f.calculateDestinationFolderDepth(this.folder,e.id,this.libraries)>hh.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(e){this.folder=e,$("body").addClass(rh.a.dragging)}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(e))window.setTimeout((function(){r.a.ErrorHelper.throw(new yh.b)}),hh.a.POPUP_FADE_TIMEOUT);else{var a=rt.f.getSelected(dh.a.LIBRARY_EDITOR,i),s=rt.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,e.id,s.id,(function(){a&&rt.f.setSelected(dh.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:e.id,oldParentId:s.id},t)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(rh.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(e,t){var n=A.a.mergeOptions({actionType:Ae.UserAction.Move,entity:Ae.EntityType.Folder,descriptor:Ae.InteractionTypeDescriptor.DragDrop},t);A.a.logUserAction(e,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}}])&&mh(t.prototype,n),i&&mh(t,i),c}(r.a.Service),Eh=n(90);function kh(e){return(kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ph(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _h(e,t){return(_h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ah(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xh(e);if(t){var o=xh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Th(this,n)}}function Th(e,t){return!t||"object"!==kh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xh(e){return(xh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_h(e,t)}(c,e);var t,n,r,s=Ah(c);function c(){return Rh(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=E.a.get(this.viewModelName,{videos:{}},{ctor:Ko.a,storage:{type:Eh.c.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(e,t){i.isArray(e)||(e=[e]);var n={};e.forEach((function(e){return n["".concat(e.id,":").concat(t)]={id:e.id.toString(),folderChord:t}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(e){var t={};e.each((function(e){return t["".concat(e.id,":").concat(e.get("chord"))]={id:e.id.toString(),folderChord:e.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),t);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(e,t){i.isArray(e)||(e=[e]);var n=e.map((function(e){return"".concat(e.id,":").concat(t)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(e,t){return i.contains(n,t)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var e=this.getSelectedVideos();return i.map(i.keys(e),(function(t){return e[t]&&e[t].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}}])&&Ph(t.prototype,n),r&&Ph(t,r),c}(r.a.Service);function Nh(e){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ih(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vh(e,t){return(Vh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mh(e);if(t){var o=Mh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bh(this,n)}}function Bh(e,t){return!t||"object"!==Nh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mh(e){return(Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vh(e,t)}(i,e);var t,n,r,o=jh(i);function i(){return Dh(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(e,t){this.options[e]=t}},{key:"getOption",value:function(e){return this.options[e]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}}])&&Ih(t.prototype,n),r&&Ih(t,r),i}(r.a.Service);function Fh(e){return(Fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qh(e,t){return(qh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gh(e);if(t){var o=Gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yh(this,n)}}function Yh(e,t){return!t||"object"!==Fh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gh(e){return(Gh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qh(e,t)}(s,e);var t,n,r,o=Wh(s);function s(){return Hh(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(e,t){return this.folderChordMap&&!this.collectionUpdated(t)||this.buildFolderChordMap(t),this.folderChordMap[e]}},{key:"buildFolderChordMap",value:function(e){var t=this;this.folderChordMap={},e.each((function e(n){t.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(e)}))}},{key:"collectionUpdated",value:function(e){return!(this.cachedFolderCollectionCid&&e.customCid&&this.cachedFolderCollectionCid===e.customCid||(e.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}}])&&zh(t.prototype,n),r&&zh(t,r),s}(r.a.Service);function $h(e){return($h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zh(e,t){return(Zh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td(e);if(t){var o=td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ed(this,n)}}function ed(e,t){return!t||"object"!==$h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zh(e,t)}(s,e);var t,n,r,o=Xh(s);function s(){return Kh(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=g.a.getInstance(a.g.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(e,t,n){this.getAndMixinVideoCollectionRestrictions(e,t,n)}},{key:"mixinVideoData",value:function(e,t){this.getAndMixinVideoRestriction(e,t)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(e,t,n){var r=this;if(e&&e.length){var o=e.map((function(e){return e.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,t,(function(t){e.forEach((function(e){return r.mixinVideoRestriction(e,t)})),i.isFunction(n)&&n(e)}))}else i.isFunction(n)&&n(e)}},{key:"getAndMixinVideoRestriction",value:function(e,t){var n=this;this.restrictedVideoDataService.getVideoRestrictions([e.id],null,(function(r){n.mixinVideoRestriction(e,r),i.isFunction(t)&&t(e)}))}},{key:"mixinLocalCacheDownloads",value:function(e,t){e.unset("localCacheDownloads"),t&&t.findWhere({objectId:e.get("id").toString()})&&e.set("localCacheDownloads",t)}},{key:"mixinVideoRestriction",value:function(e,t){if(e.unset("restrictions"),t){var n=t.findWhere({objectId:e.get("id")});n&&e.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}}])&&Qh(t.prototype,n),r&&Qh(t,r),s}(r.a.Service),rd=n(25);function od(e){return(od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ad(e,t){return(ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ud(e);if(t){var o=ud(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cd(this,n)}}function cd(e,t){return!t||"object"!==od(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ud(e){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ld=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ad(e,t)}(i,e);var t,n,r,o=sd(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return 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}}])&&id(t.prototype,n),r&&id(t,r),i}(r.a.Component);function fd(e){return(fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hd(e,t){return(hd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gd(e);if(t){var o=gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yd(this,n)}}function yd(e,t){return!t||"object"!==fd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gd(e){return(gd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hd(e,t)}(i,e);var t,n,r,o=dd(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){var e=g.a.getInstance(a.x.PartialLoading,this);this.collection=e.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var e=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(e+=this.options.className),e}},{key:"childView",get:function(){return ld}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&pd(t.prototype,n),r&&pd(t,r),i}(r.a.ComponentCollection);function md(e){return(md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wd(e,t){return(wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Od(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ed(e);if(t){var o=Ed(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cd(this,n)}}function Cd(e,t){return!t||"object"!==md(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ed(e){return(Ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wd(e,t)}(c,e);var t,n,o,s=Od(c);function c(){return vd(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(e,t){var n=this,r=this.getPartialLoadingRegions(e);i.each(i.keys(r),(function(o){if(!t||o===t){var i=r[o],a=n.getComponent(i.partialLoading);e.showChildView(o,a)}}))}},{key:"getComponent",value:function(e){var t="number"==typeof e?a.u[e]:e;return"number"!=typeof e&&(e=Qt.h.Unselected),t||r.a.ErrorHelper.throw(new O.a("Must define PartialLoading type: ".concat(Qt.h[e],"."))),t.component||r.a.ErrorHelper.throw(new O.a("Must select a component for PartialLoading type: ".concat(Qt.h[e],"."))),t.options||r.a.ErrorHelper.throw(new O.a("Must provide options for PartialLoading type: ".concat(Qt.h[e],"."))),new(this.getCtor(t.component))(t.options)}},{key:"getCtor",value:function(e){switch(e){case rd.a.ComponentCollection:return bd;case rd.a.Component:default:return ld}}},{key:"getPartialLoadingRegions",value:function(e){return i.pick(e.regions,(function(e){return i.has(e,"partialLoading")}))}},{key:"getCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t=new Array(e);return new r.a.Collection(t)}},{key:"name",get:function(){return a.x.PartialLoading}}])&&Sd(t.prototype,n),o&&Sd(t,o),c}(r.a.Service);function Rd(e){return(Rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ad(e,t){return(Ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ld(e);if(t){var o=Ld(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xd(this,n)}}function xd(e,t){return!t||"object"!==Rd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ld(e){return(Ld=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ad(e,t)}(s,e);var t,n,o,i=Td(s);function s(){return Pd(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return a.x.Intercom}}])&&_d(t.prototype,n),o&&_d(t,o),s}(r.a.Service);function Dd(e){return(Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jd(e,t){return(jd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ud(e);if(t){var o=Ud(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Md(this,n)}}function Md(e,t){return!t||"object"!==Dd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ud(e){return(Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jd(e,t)}(c,e);var t,n,i,s=Bd(c);function c(){return Id(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;this.lockOptions=e,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(e){return e.returnValue=t,t}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(e){var t=this;new rt.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),t.unlock(),r.a.AppLinkHelper.trigger(e)}))}},{key:"getNavLockOptions",value:function(){var e=this.lockOptions,t=e.title,n=e.text;return{title:t||Wn.a.getPhrase(this.lang,"discardChanges"),text:n||Wn.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:Wn.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:Wn.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"}}])&&Vd(t.prototype,n),i&&Vd(t,i),c}(r.a.Service);function Hd(e){return(Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wd(e,t){return(Wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jd(e);if(t){var o=Jd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gd(this,n)}}function Gd(e,t){return!t||"object"!==Hd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $d=" - ClickView",Kd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wd(e,t)}(s,e);var t,n,o,i=Yd(s);function s(){return zd(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(e){e&&r.a.LocationUtils.SetPageTitle(this.trimTitle(e))}},{key:"trimTitle",value:function(e){return e?e.length+$d.length<=60?e+$d:e.substring(0,57)+"..."+$d:""}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}}])&&qd(t.prototype,n),o&&qd(t,o),s}(r.a.Service);sr.a;var Qd=n(242),Zd=n(40),Xd=n(196),ey=n(140),ty=n(146),ny=n(226);function ry(e){var t=E.a.get("informational:error:handler");t.get("rendered")||(t.set("rendered",!0),new Xd.a(Object.assign(Object.assign({},e.dialogOptions),{channelName:"informational:error"})).render().done((function(){return e.onDone()})).fail((function(){return e.onFail()})).always((function(){return t.clear()})))}function oy(e){g.a.getInstance(m.b.Alerts).createAlert({heading:yr.c.Fail,type:yr.a.Fail,message:e.message})}function iy(){r.a.AppLinkHelper.trigger({application:ey.a.DEFAULT,action:ty.a.Default.NOT_FOUND})}function ay(e){o.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:ey.a.DEFAULT,action:ty.a.Default.ERROR})}var sy=n(10);const cy={register(){sy.registerHelper("lang",(e,t)=>{if(!this.isValid(e,t))return;const n=t.data.root.languageNamespace;return Wn.a.getPhrase(n,e,t.hash)})},isValid:(e,t)=>"string"!=typeof e?(r.a.ErrorHelper.throw(new O.a("No language key provided.")),!1):"object"!=typeof t?(r.a.ErrorHelper.throw(new O.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new O.a("No `lang` property provided.")),!1)};var uy=n(243);function ly(e){return(ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function py(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hy(e,t){return(hy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gy(e);if(t){var o=gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yy(this,n)}}function yy(e,t){return!t||"object"!==ly(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gy(e){return(gy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var by=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hy(e,t)}(i,e);var t,n,r,o=dy(i);function i(){return fy(this,i),o.apply(this,arguments)}return t=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}}}},{key:"addSlugs",get:function(){return!1}},{key:"searchBarPlaceholder",get:function(){return null}},{key:"showSearchTips",get:function(){return!0}}])&&py(t.prototype,n),r&&py(t,r),i}(uy.BaseSearchAppVariables),my=n(62);function vy(e){return(vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oy(e,t){return(Oy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ky(e);if(t){var o=ky(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ey(this,n)}}function Ey(e,t){return!t||"object"!==vy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ky(e){return(ky=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ry=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oy(e,t)}(i,e);var t,n,r,o=Cy(i);function i(){return Sy(this,i),o.apply(this,arguments)}return t=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[my.a.VideoReviewReminder,my.a.VideoReviewAddedToLibrary,my.a.CustomLibraryVideoAvailable,my.a.StaffRequest,my.a.StaffRequestFulfilled,my.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&wy(t.prototype,n),r&&wy(t,r),i}(uy.BaseNotificationsAppVariables);new d,o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(e,t){const n=e.$("[name="+t+"]"),r=n.closest(".form-group");n.removeClass("is-invalid"),r.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(e,t,n){const r=e.$("[name="+t+"]"),o=r.closest(".form-group");r.addClass("is-invalid"),o.find(".form-feedback").addClass("invalid-feedback").html(n)}});var Py=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[y.a.ALERT,y.a.POPUP,y.a.HIDDEN]})});Py.addInitializationStep((function(e,t){e.registerLayout(Nl.a.ManageLayout,Rf),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(cr,{size:100}),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(by).registerInstance(Ry),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(hr,{dataServiceErrorMessageMappings:dr.a,defaultErrorMessageKey:dr.b}),t(e)})).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:yr.c.Success,type:yr.a.Success},defaultErrorAlert:{heading:yr.c.Fail,type:yr.a.Fail},alertViewCtor:eo};g.a.registerSingleton(new uo(n));var r=g.a.getInstance(m.b.Alerts),o={cache:ir.a.Fifo,dataProvider:b.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,g.a.registerDataService(lo.a,o).registerDataService(fo.a,o).registerDataService(Oo,o).registerDataService(Jo,o).registerDataService($o.a,o).registerDataService(Ti,o).registerDataService(qi,o).registerDataService(Zi,o).registerDataService(sa,o).registerDataService(Tr,o).registerDataService(ja,o).registerDataService(Ja,o).registerDataService(ss,o).registerDataService(bs,o).registerDataService(ms.a,o).registerDataService(Fs,o).registerDataService(Ks,o).registerDataService(lc,o).registerDataService(jc,o).registerDataService(Nr,o).registerDataService(Zc,o).registerDataService(au,o).registerDataService(vu,o).registerDataService(Tu,o).registerDataService(zu,o).registerDataService(il,o).registerDataService(wl,o).registerDataService(Ll,o);var i={cache:ir.a.Fifo,dataProvider:b.a.Notifications,alertService:r};g.a.registerDataService(wr,i),t(e)})).addInitializationStep((function(e,t){g.a.registerInstance(Fp).registerInstance(th).registerInstance(ph).registerInstance(Ch).registerInstance(Tf).registerInstance(Lh).registerInstance(Uh).registerInstance(Jh).registerInstance(nd).registerInstance(d),g.a.registerSingleton(new _f).registerSingleton(new kd).registerSingleton(new Nd).registerSingleton(new Fd).registerSingleton(new Kd),g.a.getInstance(m.a.Config).getConfig((function(n){g.a.registerInstance(Cp,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),g.a.getInstance(m.a.Language).getLanguageConfig((function(e){Wn.a.setConfig(e),g.a.releaseInstance(m.a.Language)})),t(e),g.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(e,t){var n,r,o,i=g.a.getInstance(m.a.Config),a=g.a.getInstance(m.a.User);function s(){return new Promise((function(e,t){a.getCurrentUser((function(t){e(t.toJSON())}),(function(){t()}))}))}var c=new w.a(3),u=function(){if(c.decrement(),!(c.getValue()>0)){var i=new T({user:r.toJSON(),config:n.toJSON()});g.a.registerSingleton(i),i.registerTransport(N),i.registerClient(ke);var a=n.get("countryCode").toLowerCase();i.registerClient(we,{productName:"cloud.web",productVersion:o,regionName:ve[a],collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:s,shouldLog:ze.shouldLog,formatData:ze.formatData}),i.registerEnricher(_e,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(I),i.registerClient(Oe.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),g.a.releaseInstance(m.a.Config),g.a.releaseInstance(m.a.User),t(e)}};i.getVersion((function(e){o=e,u()})),i.getConfig((function(e){n=e,u()})),a.getCurrentUser((function(e){r=e,u()}))})).addInitializationStep((function(e,t){e.registerApplication(tt).registerApplication(Pt).registerApplication(Mt).registerApplication(Kt).registerApplication(un).registerApplication(On).registerApplication(Nn).registerApplication(qn).registerApplication(or),t(e)})).addInitializationStep((function(e,t){g.a.getInstance(m.a.Config).getVersion((function(n){var o=g.a.getInstance(b.a.Ajax);o.useMiddleware("versionInvalidation",(function(e,t,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new v.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(e){401===e.status&&r.a.ErrorHelper.throw(new S.a)})),t(e),g.a.releaseInstance(b.a.Ajax),g.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:i.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){cy.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Zd.a,ay).registerErrorHandler(kp.a,ry).registerErrorHandler(Qd.a,oy).registerErrorHandler(ny.a,iy),t()})),Py.addStartUpStep((function(e,t,n){var r=g.a.getInstance(m.a.Config);r.getConfig((function(){r.getVersion((function(r){t.environment="DEVELOPMENT",t.version=r,Ce.a.setUpVariables({isDevelopment:!1}),n(e,t),g.a.releaseInstance(m.a.Config)}))}))})).addStartUpStep((function(e,t,n){g.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(e,t),g.a.releaseInstance(m.a.Config)}))})),Py.start()},function(e,t){e.exports=u},function(e,t){e.exports=l}])}));